/* Contact support page — layout, FAQ, theme-aware */

.cx-contact-page {
  min-height: 100vh;
  padding: calc(var(--navbar-height, 72px) + 48px) 16px 0;
  box-sizing: border-box;
}

.cx-contact-shell {
  max-width: 1280px;
  margin: 0 auto 32px;
  padding: 0 8px;
  box-sizing: border-box;
}

.cx-contact-hero {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 12px;
}

.cx-contact-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4.5vw, 2.1rem);
  font-weight: 700;
  color: var(--text-color, #111);
  line-height: 1.2;
}

.cx-contact-hero__subtitle {
  margin: 0 auto;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  color: var(--secondary-text-color, #666);
  line-height: 1.55;
  max-width: 46ch;
}

/* >768px: form center, FAQ 1×4 columns on left & right */
.cx-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}

.cx-contact-faq--side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cx-contact-form-wrap {
  width: 100%;
  min-width: 0;
}

.cx-contact-card {
  background: var(--surface-color, #fff);
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .cx-contact-card {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.cx-contact-faq__item {
  background: var(--surface-color, #fff);
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .cx-contact-faq__item {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* FAQ hover — emerald outer glow only (no bg / border tint) */
@media (hover: hover) {
  .cx-contact-faq__item:hover {
    transform: translateY(-4px);
    box-shadow:
      0 0 14px rgba(var(--electric-lime-rgb), 0.2),
      0 0 26px rgba(var(--electric-lime-rgb), 0.12),
      0 4px 16px rgba(0, 0, 0, 0.06);
  }

  .cx-contact-faq--side:first-of-type .cx-contact-faq__item:hover {
    transform: translateX(8px);
  }

  .cx-contact-faq--side:last-of-type .cx-contact-faq__item:hover {
    transform: translateX(-8px);
  }
}

[data-theme="dark"] .cx-contact-faq__item:hover {
  box-shadow:
    0 0 16px rgba(var(--electric-lime-rgb), 0.24),
    0 0 30px rgba(var(--electric-lime-rgb), 0.13),
    0 4px 16px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .cx-contact-faq__item {
    transition: box-shadow 0.2s ease;
  }

  .cx-contact-faq__item:hover {
    transform: none;
  }
}

.cx-contact-faq__q {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-color, #111);
  line-height: 1.35;
}

.cx-contact-faq__a {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--secondary-text-color, #666);
}

.cx-contact-faq__a a {
  color: var(--sapphire-blue, #0066cc);
  font-weight: 600;
  text-decoration: none;
}

.cx-contact-faq__a a:hover {
  text-decoration: underline;
}

[data-theme="dark"] .cx-contact-faq__a a {
  color: var(--electric-lime, #06c506);
}

[data-theme="dark"] .cx-contact-faq__a a:hover {
  color: var(--electric-lime, #06c506);
  text-decoration: underline;
}

.cx-contact-form .pub-enquiry__field {
  margin-bottom: 0.9rem;
}

.cx-contact-form .pub-enquiry__field--type {
  margin-bottom: 1rem;
}

.cx-contact-form .pub-enquiry__select {
  width: 100%;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  background: var(--input-bg, var(--surface-color, #fff));
  color: var(--text-color, #111);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 2.25rem;
}

.cx-contact-form .pub-enquiry__success {
  color: var(--electric-lime, #06c506);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

/* Mobile / tablet FAQ block — hidden on wide layouts */
.cx-contact-faq-bottom {
  display: none;
  margin-top: 28px;
}

.cx-contact-faq-bottom__title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text-color, #111);
  text-align: center;
}

/* About section visible on contact (scroll animations) */
body.cx-contact-page .landing-about-section .float-in-left,
body.cx-contact-page .landing-about-section .float-in-right,
body.cx-contact-page .landing-footer .float-in-up {
  opacity: 1;
  transform: none;
}

body.cx-contact-page > .landing-about-section,
body.cx-contact-page > .landing-about-section.cx-pub-biz-marketing-about {
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 32px);
  max-width: min(1400px, calc(100% - 32px));
}

/* ≤768px: FAQ grid below form, above About */
@media (max-width: 768px) {
  .cx-contact-page {
    padding-top: calc(var(--navbar-height, 64px) + 32px);
    padding-left: 10px;
    padding-right: 10px;
  }

  .cx-contact-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cx-contact-faq--side {
    display: none;
  }

  .cx-contact-faq-bottom {
    display: block;
    margin-top: 24px;
    margin-bottom: 8px;
  }

  .cx-contact-faq-bottom__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cx-contact-faq-bottom__grid .cx-contact-faq__item:hover {
    transform: translateY(-4px);
  }

  .cx-contact-faq-bottom__title {
    text-align: left;
  }

  .cx-contact-card {
    padding: 1.1rem 1rem 1.25rem;
    border-radius: 14px;
  }

  body.cx-contact-page > .landing-about-section,
  body.cx-contact-page > .landing-about-section.cx-pub-biz-marketing-about {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }
}

@media (max-width: 480px) {
  .cx-contact-faq-bottom__grid {
    grid-template-columns: 1fr;
  }
}
