/* 2xN, Contact page
   Reuses tokens + chrome from styles.css.
   Editorial dark hero, a light "what happens" numbered flow,
   then a dark "get in touch" section with a white form card + direct-contact aside. */

/* ---- Hero (headline-led, mirrors about/support hero) ---- */
.contact-hero__inner {
  padding-block: 76px 92px;
}
.contact-hero__lead {
  max-width: 860px;
}
.contact-hero__h1 {
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.contact-hero__deck {
  font-size: 18px;
  line-height: 1.7;
  max-width: 62ch;
  margin-bottom: 20px;
}
.contact-hero__deck:last-of-type { margin-bottom: 0; }
.contact-hero__deck strong { color: #fff; font-weight: 600; }
@media (max-width: 640px) {
  .contact-hero__inner { padding-block: 40px 60px; }
  .contact-hero__deck { font-size: 16px; }
}

/* ============================================================
   WHAT HAPPENS, numbered flow (light section)
   ============================================================ */
.flow__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.flow__title {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-on-light);
  margin: 0;
}
.flow__intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-on-light-muted);
  max-width: 42ch;
  text-align: right;
  margin: 0;
}
.flow__intro strong { color: var(--text-on-light); font-weight: 700; }

.flow-list {
  background: var(--card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* interactive timeline uses homepage .process-* chrome — 5 steps instead of 6 */
.flow-timeline .process-steps { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .flow-timeline .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; } }
@media (max-width: 640px)  { .flow-timeline .process-steps { grid-template-columns: 1fr; row-gap: 32px; } }
.flow-step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 34px 44px;
  transition: background 200ms ease;
}
.flow-step + .flow-step { border-top: 1px solid var(--border-light); }
.flow-step:hover { background: rgba(168, 85, 247, 0.04); }
.flow-step__num {
  font-size: 44px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--purple);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.flow-step__body { min-width: 0; }
.flow-step__title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-light);
  margin: 0 0 8px;
}
.flow-step__copy {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-on-light-muted);
  margin: 0;
  max-width: 68ch;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .flow__head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .flow__intro { text-align: left; max-width: none; }
  .flow-step { grid-template-columns: 64px 1fr; gap: 22px; padding: 28px 30px; }
  .flow-step__num { font-size: 36px; }
}
@media (max-width: 560px) {
  .flow-step { grid-template-columns: 1fr; gap: 10px; padding: 26px 24px; }
}

/* ============================================================
   GET IN TOUCH, form + direct-contact aside (dark section)
   ============================================================ */
.getintouch { position: relative; overflow: hidden; }
.getintouch::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 760px 560px at 88% 4%, rgba(168, 85, 247, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 680px 620px at 4% 108%, rgba(88, 28, 135, 0.34) 0%, transparent 62%);
}
.getintouch > .container { position: relative; z-index: 1; }

.gi__head { max-width: 640px; margin: 0 0 44px; }
.gi__title {
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 16px;
}
.gi__title .accent { color: var(--purple-bright); }
.gi__lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  margin: 0;
}

.gi__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 940px) {
  .gi__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Form card ---- */
.cform-card {
  background: var(--card-light);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.5);
}
.cform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cfield { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cfield--full { grid-column: 1 / -1; }
.cfield__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-on-light);
}
.cfield__label .opt {
  font-weight: 500;
  color: var(--text-on-light-muted);
  letter-spacing: 0;
}
.cinput,
.ctextarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text-on-light);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.cinput::placeholder,
.ctextarea::placeholder { color: #9a8fb0; }
.cinput:focus,
.ctextarea:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.16);
}
.ctextarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.cinput:-webkit-autofill,
.cinput:-webkit-autofill:hover,
.cinput:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--text-on-light);
  transition: background-color 9999s ease 0s;
}

/* ---- Custom service dropdown (rebuilt for the rectangular field) ---- */
.cselect { position: relative; }
.cselect__trigger {
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 15px;
  color: #9a8fb0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 13px 44px 13px 15px;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.cselect.is-filled .cselect__trigger { color: var(--text-on-light); }
.cselect__trigger:focus-visible {
  outline: none;
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.16);
}
.cselect.is-invalid .cselect__trigger {
  border-color: #ef8f8f;
  box-shadow: 0 0 0 4px rgba(239, 143, 143, 0.16);
}
.cselect__chev {
  position: absolute;
  right: 15px; top: 41px;
  color: var(--purple-deep);
  pointer-events: none;
  display: inline-flex;
}
.cselect__chev svg { width: 18px; height: 18px; transition: transform 200ms ease; }
.cselect.is-open .cselect__chev svg { transform: rotate(180deg); }
.cselect__native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.cmenu {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  z-index: 40;
  margin: 0; padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 24px 56px -18px rgba(63, 28, 112, 0.4);
  max-height: 300px; overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 160ms ease, transform 160ms ease;
}
.cmenu[hidden] { display: none; }
.cselect.is-open .cmenu { opacity: 1; transform: translateY(0) scale(1); }
.cmenu__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px; color: var(--text-on-light);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.cmenu__opt.is-active { background: var(--icon-tile); color: var(--purple-deep); }
.cmenu__opt[aria-selected="true"] { font-weight: 700; color: var(--purple-deep); }

/* ---- Submit row ---- */
.cform__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cform__submit {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 12px 28px -12px rgba(126, 34, 206, 0.6);
}
.cform__submit:hover { background: var(--purple-deep); transform: translateY(-1px); }
.cform__submit:disabled { opacity: 0.7; cursor: default; transform: none; }
.cform__note {
  font-size: 13px;
  color: var(--text-on-light-muted);
  margin: 0;
  max-width: 34ch;
}
.cform__success {
  grid-column: 1 / -1;
  display: none;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #15803d;
}
.cform__success.is-visible { display: inline-flex; }
.cform__success-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}
.cform__success-check svg { width: 14px; height: 14px; }
.cform__error {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #b91c1c;
}
.cform__error a { color: inherit; text-decoration: underline; }

/* honeypot */
.c-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}

@media (max-width: 560px) {
  .cform-card { padding: 28px 22px; }
  .cform { grid-template-columns: 1fr; }
}

/* ---- Direct-contact aside ---- */
.direct {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.direct__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin: 0 0 4px;
}
.direct-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.direct-card:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.32);
}
.direct-card__ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.16);
  color: var(--purple-bright);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.direct-card__ic svg { width: 22px; height: 22px; }
.direct-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 0 0 4px;
}
.direct-card__value {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  word-break: break-word;
}
.direct-card__value a {
  color: #fff;
  border-bottom: 1.5px solid rgba(192, 132, 252, 0.4);
  transition: border-color 160ms ease, color 160ms ease;
}
.direct-card__value a:hover { color: var(--purple-bright); border-bottom-color: var(--purple-bright); }
.direct-card__meta {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin: 6px 0 0;
}

/* ============================================================
   DARK THEME, the light "what happens" section stays cohesive
   ============================================================ */
[data-theme="dark"] .flow-list { background: var(--card-light); border-color: var(--border-light); }
[data-theme="dark"] .flow-step + .flow-step { border-top-color: var(--border-light); }
[data-theme="dark"] .flow__title,
[data-theme="dark"] .flow-step__title { color: #fff; }
[data-theme="dark"] .flow__intro { color: var(--text-on-dark-muted); }
[data-theme="dark"] .flow__intro strong,
[data-theme="dark"] .flow-step__copy { color: var(--text-on-dark-muted); }
[data-theme="dark"] .flow-step__num { color: var(--purple-bright); }
[data-theme="dark"] .flow-step:hover { background: rgba(168, 85, 247, 0.07); }

/* Form card is a white surface in both themes → force dark text */
[data-theme="dark"] .cfield__label,
[data-theme="dark"] .cinput,
[data-theme="dark"] .ctextarea,
[data-theme="dark"] .cselect.is-filled .cselect__trigger,
[data-theme="dark"] .cmenu,
[data-theme="dark"] .cmenu__opt { color: #0d0518; }
[data-theme="dark"] .cfield__label .opt { color: #6a5d80; }
[data-theme="dark"] .cinput, [data-theme="dark"] .ctextarea,
[data-theme="dark"] .cselect__trigger { background: #fff; border-color: #ebe7f0; }
[data-theme="dark"] .cmenu { border-color: #ebe7f0; }
[data-theme="dark"] .cmenu__opt.is-active,
[data-theme="dark"] .cmenu__opt[aria-selected="true"] { color: var(--purple-deep); }
[data-theme="dark"] .cform__note { color: #6a5d80; }

/* ============================================================
   FAQ ACCORDION (ported from Pricing) — sits on a light section
   ============================================================ */
.faq {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq__item {
  border-radius: var(--radius-md);
  background: var(--card-light);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: border-color 200ms ease;
}
.faq__item[open] { border-color: rgba(168, 85, 247, 0.4); }
.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-on-light);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__sign {
  flex-shrink: 0;
  width: 26px; height: 26px;
  position: relative;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.16);
  transition: transform 240ms ease;
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  border-radius: 2px;
  background: var(--purple-deep);
  transform: translate(-50%, -50%);
  transition: opacity 200ms ease;
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__sign { transform: rotate(135deg); }
.faq__a {
  padding: 0 26px 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-on-light-muted);
  max-width: 72ch;
  margin: 0;
}
.faq__a strong { color: var(--text-on-light); font-weight: 600; }

/* dark-section variant */
.section--dark .faq__item { background: var(--bg-dark-2); border-color: rgba(255, 255, 255, 0.08); }
.section--dark .faq__q { color: #fff; }
.section--dark .faq__a { color: var(--text-on-dark-muted); }
.section--dark .faq__a strong { color: #fff; }
.section--dark .faq__sign::before,
.section--dark .faq__sign::after { background: var(--purple-bright); }

[data-theme="dark"] .faq__sign::before,
[data-theme="dark"] .faq__sign::after { background: var(--purple-bright); }
