/* ==========================================================================
   WEB PARTNER SOLUTIONS - FOOTER & MODAL STYLESHEET (css/footer.css)
   Clean 5-Column Grid Layout with Brand Cyan (#00c2cb) Color Theme
   ========================================================================== */

/* --- Main Footer Container --- */
.footer {
  background: #091122 !important;
  color: #cbd5e1 !important;
  padding-top: 60px;
  padding-bottom: 25px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 194, 203, 0.2);
}

.footer .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Main 5-Column Grid --- */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.95fr 0.85fr 1.35fr;
  gap: 32px;
  align-items: start;
}

/* --- Brand Column (Col 1) --- */
.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-logo-brand {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 18px;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wps-logo-mark {
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-sub-title {
  color: #00c2cb;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.footer-about-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 24px;
  max-width: 320px;
}

/* Social Media Squircles */
.footer-connect-wrap {
  margin-top: 2px;
}

.connect-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.social-squircles-row {
  display: flex;
  gap: 10px;
}

.social-squircle-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-squircle-btn:hover {
  background: #00c2cb;
  border-color: #00c2cb;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 194, 203, 0.35);
}

/* --- Nav Columns (Col 2, 3, 4) --- */
.footer-col-header {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accent-bar {
  width: 3px;
  height: 16px;
  background: #00c2cb;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-nav-list li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-nav-list li a:hover {
  color: #00e5db;
  transform: translateX(3px);
}

.badge-new-pill {
  background: linear-gradient(135deg, #00c2cb, #0096a6);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
  display: inline-block;
}

.all-products-cta {
  color: #00c2cb !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.all-products-cta:hover {
  color: #00e5db !important;
  transform: translateX(4px);
}

/* --- Get in Touch Card (Col 5) --- */
.get-in-touch-card {
  background: rgba(12, 20, 39, 0.85);
  border: 1px solid rgba(0, 194, 203, 0.2);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.card-header-title {
  margin-bottom: 18px;
}

.card-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-bubble-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 194, 203, 0.12);
  color: #00c2cb;
  border: 1px solid rgba(0, 194, 203, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.84rem;
}

.contact-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
}

.contact-desc {
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
  font-size: 0.82rem;
}

.contact-channel-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.84rem;
  display: block;
  padding: 3px 0;
  min-height: 24px;
}

.contact-channel-link:hover {
  color: #00c2cb;
}

.card-cta-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* --- Dividers --- */
.footer-main-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 45px;
  margin-bottom: 22px;
}

/* --- Bottom Flex Bar --- */
.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-copyright-text {
  color: #64748b;
  font-size: 0.82rem;
  margin: 0;
}

.footer-policies-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.82rem;
  align-items: center;
}

.footer-policies-nav a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-policies-nav a:hover {
  color: #00e5db;
}

.footer-scroll-top-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 194, 203, 0.3);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.footer-scroll-top-btn:hover {
  background: #00c2cb;
  border-color: #00c2cb;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 194, 203, 0.35);
}

/* --- Consultation Modal System --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 39, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border: 1px solid rgba(0, 194, 203, 0.25);
  border-radius: var(--border-radius-xl, 16px);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-card::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}

body.dark-theme .modal-card {
  background: #0b152c;
  color: #f8fafc;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-alt, #f1f5f9);
  border: none;
  font-size: 1.4rem;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast, 0.2s);
}

.modal-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 1.55rem;
  margin-bottom: 6px;
  color: var(--text-primary, #0f172a);
}

.modal-header p {
  font-size: 0.92rem;
  color: var(--text-secondary, #64748b);
  margin-bottom: 0;
}

/* Modal Steps Indicator */
.modal-steps-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 194, 203, 0.2);
  transition: var(--transition-smooth, 0.3s);
}

.modal-step-dot.active {
  background: #00c2cb;
  width: 28px;
  border-radius: 10px;
}

.modal-form-step {
  display: none;
}

.modal-form-step.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 540px) {
  .modal-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--card-border, #e2e8f0);
}

.form-error {
  color: #ef4444;
  font-size: 0.82rem;
  margin-top: 4px;
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Footer Breakpoints */
@media (max-width: 1200px) {
  .footer-main-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 30px;
  }
  .footer-contact-card-col {
    grid-column: 1 / -1;
    max-width: 520px;
  }
}

@media (max-width: 991px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .footer-about-text {
    max-width: 100%;
  }
  .footer-contact-card-col {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .footer {
    padding-top: 45px;
    padding-bottom: 25px;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-nav-col .footer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
  }
  .footer-bottom-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-policies-nav {
    gap: 10px 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .footer-col-header {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }
  .get-in-touch-card {
    padding: 22px 16px;
    border-radius: 14px;
  }
  .contact-title {
    font-size: 0.92rem;
  }
  .contact-desc,
  .contact-channel-link {
    font-size: 0.85rem;
  }
  .card-cta-wrap .btn {
    font-size: 0.82rem;
    padding: 10px 14px;
  }
}
