/* ==========================================================================
   contact.css — Modern, Premium Contact Page Styles (XMerak Tech Identity)
   All colors inherit directly from project root design tokens.
   ========================================================================== */

/* ============================================================
   1. HERO SECTION
   ============================================================ */
/* Inherits layout from .hero / .hero--products in styles.css / products.css.
   Only contact-specific overrides are defined here. */

.contact-hero__glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 104, 232, 0.18) 0%, rgba(29, 104, 232, 0.03) 55%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.contact-hero__content {
  position: relative;
  z-index: 1;
}

/* Trust filter pill bar — full styles (products.css not loaded here) */
.product-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: default;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.filter-btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(29, 104, 232, 0.35);
}


/* ============================================================
   2. MAIN CONTACT SECTION (INFO HUB + FORM)
   ============================================================ */
.contact-section {
  padding-block: clamp(70px, 10vh, 110px);
  background: var(--bg-deep);
  position: relative;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

/* ── Left Column: Contact Channels ── */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-header h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-block: 10px 14px;
}

.contact-info-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 44ch;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.contact-channel-card {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-channel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 104, 232, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.contact-channel-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(29, 104, 232, 0.12);
  border: 1px solid rgba(29, 104, 232, 0.28);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-channel-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.contact-channel-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-channel-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.contact-channel-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.contact-link {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.contact-link:hover {
  color: var(--accent);
}

.contact-channel-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Right Column: Premium Contact Form ── */
.contact-form-col {
  position: relative;
}

.contact-form-card {
  border-radius: clamp(24px, 3vw, 32px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.contact-form-header {
  margin-bottom: 28px;
}

.contact-form-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.contact-form-title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.contact-form-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

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

.contact-optional {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: normal;
  margin-left: 4px;
}

/* Input Fields inside Contact Form */
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.contact-form .field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.contact-form .field input,
.contact-form .field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.5;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.contact-form .field input:focus,
.contact-form .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(29, 104, 232, 0.04);
  box-shadow: 0 0 0 3.5px rgba(29, 104, 232, 0.22);
}

.contact-form .field textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form .error {
  font-size: 12.5px;
  color: #ff6b6b;
  min-height: 16px;
  font-weight: 500;
}

.contact-btn-submit {
  width: 100%;
  justify-content: center;
  padding: 15px 28px;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #1d68e8 0%, #1047a9 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16, 71, 169, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.contact-btn-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #185acb 0%, #0d3b8f 100%);
  box-shadow: 0 8px 28px rgba(16, 71, 169, 0.45);
}

.contact-btn-submit:active {
  transform: translateY(0);
}

.contact-form .form-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  min-height: 22px;
  color: var(--accent);
}

.contact-form-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

/* ============================================================
   3. INTEGRATED MAP SECTION
   ============================================================ */
.contact-map-section {
  padding-block: clamp(60px, 8vh, 100px);
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.contact-map-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-map-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-block: 8px 12px;
}

.contact-map-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-dark);
  background: var(--bg-elevated);
}

.contact-map-frame {
  width: 100%;
  height: clamp(360px, 45vh, 480px);
  position: relative;
  overflow: hidden;
}

.contact-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Dark tech map theme filter to harmoniously blend with XMerak dark UI */
  filter: invert(92%) hue-rotate(180deg) contrast(105%) saturate(120%);
}

.contact-map-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  max-width: 360px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(8, 12, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  z-index: 2;
}

.contact-map-overlay__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(29, 104, 232, 0.18);
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-map-overlay__body {
  min-width: 0;
}

.contact-map-overlay__label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}

.contact-map-overlay__name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0 3px;
}

.contact-map-overlay__addr {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.contact-map-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.contact-map-directions-btn:hover {
  color: #ffffff;
  transform: translateX(2px);
}

/* ============================================================
   3B. FAQ SECTION
   ============================================================ */
.faq-section {
  background: #0b0f14;
  color: var(--text-primary);
  border-top: 1px solid var(--border);
}
.faq-container-narrow {
  max-width: 820px;
  margin-inline: auto;
}

/* ============================================================
   4. DISCUSSION / MEETING SECTION
   ============================================================ */
.contact-discuss-section {
  padding-block: clamp(60px, 8vh, 100px);
  background: var(--bg-deep);
  position: relative;
  border-top: 1px solid var(--border);
}

.contact-discuss-card {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: clamp(40px, 6vw, 68px);
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}

.contact-discuss-glow {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 104, 232, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.contact-discuss-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-discuss-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-block: 10px 16px;
}

.contact-discuss-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 26px;
  max-width: 56ch;
}

.contact-discuss-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-discuss-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-discuss-checklist svg {
  color: var(--accent);
  background: rgba(29, 104, 232, 0.14);
  border-radius: 50%;
  padding: 4px;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Discussion Action Box */
.contact-discuss-box {
  padding: 36px 32px;
  border-radius: 24px;
  background: rgba(8, 12, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.contact-discuss-box__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.contact-discuss-box h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.contact-discuss-box p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.contact-discuss-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-pill);
}

.contact-discuss-box__sub {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ============================================================
   5. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1023px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-discuss-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-map-overlay {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .contact-hero {
    min-height: auto;
    padding-block: 130px 48px;
  }

  .contact-trust-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-trust-pill {
    width: 100%;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-channel-card {
    padding: 18px 20px;
  }

  .contact-form-card {
    padding: 24px 20px;
  }

  .contact-discuss-card {
    padding: 28px 20px;
  }

  .contact-discuss-box {
    padding: 24px 18px;
  }

  .contact-map-frame {
    height: 300px;
  }

  .faq-container-narrow {
    max-width: 100%;
  }
}
