/* ============================================================
   Aurevon Studio: contact page
   Loads after site.css. The five-step qualifier on a white card;
   every hook the page script uses (data-q-*, .is-active, .is-on,
   .is-live, .is-error, #cf-*) is styled here, never renamed.
   ============================================================ */

.contact-page { padding-top: clamp(150px, 18vh + 60px, 220px); padding-bottom: clamp(80px, 8vw, 128px); background: var(--band); }
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(40px, 7vw, 112px); align-items: start;
}
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

/* ---------- intro ---------- */
.contact-title {
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem); font-weight: 500;
  letter-spacing: -0.04em; line-height: 0.98; max-width: 10ch;
}
.contact-intro .lead { margin-top: 26px; max-width: 40ch; }
.contact-direct { margin-top: 44px; border-top: 1px solid var(--line-strong); max-width: 440px; }
.contact-direct > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); font-size: var(--fs-sm); }
.contact-direct dt { color: var(--muted); }
.contact-direct dd { color: var(--ink); font-weight: 500; }
.contact-direct a { text-decoration: none; }
.contact-direct a:hover { color: var(--orange-ink); text-decoration: underline; }
@media (max-width: 480px) { .contact-direct > div { grid-template-columns: 1fr; } }

/* ---------- the qualifier card ---------- */
.contact-form {
  position: relative; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: clamp(24px, 3.5vw, 40px); min-height: 520px;
}
.q-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.q-count { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-progress { flex: 1; height: 4px; border-radius: 99px; background: var(--band); overflow: hidden; }
.q-progress span { display: block; height: 100%; background: var(--orange); border-radius: inherit; transform-origin: left center; transform: scaleX(0.2); transition: transform 0.6s var(--ease-out); }

.q-step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.q-step.is-active { display: block; }
.q-title { padding: 0; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 20px; }
.q-hint { margin: -10px 0 18px; font-size: var(--fs-sm); color: var(--muted); }

.q-options { display: grid; gap: 10px; }
.q-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; min-height: 60px; padding: 14px 18px; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.q-opt b { font-weight: 500; color: var(--ink); }
.q-opt i { font-style: normal; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-opt:hover { border-color: var(--ink); }
.q-opt.is-on { border-color: var(--ink); background: var(--band); box-shadow: inset 0 0 0 1px var(--ink); }
.q-opt.is-on i { color: var(--ink-2); }
@media (max-width: 560px) { .q-opt { flex-direction: column; align-items: flex-start; gap: 2px; } .q-opt i { white-space: normal; } }

.q-next { margin-top: 20px; }
.q-back {
  margin-top: 18px; padding: 6px 0; border: 0; background: none; cursor: pointer;
  font-size: var(--fs-sm); color: var(--muted);
}
.q-back:hover { color: var(--ink); text-decoration: underline; }

/* ---------- details step ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: 7px; margin-bottom: 16px; }
.form-field label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.form-field .opt { font-weight: 400; color: var(--muted); margin-left: 4px; }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 13px 15px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.form-field input { height: 52px; }
.form-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange-soft); }
.btn-block { width: 100%; justify-content: center; margin-top: 6px; }

.form-status { margin-top: 14px; font-size: var(--fs-sm); color: var(--muted); min-height: 1.2em; }
.form-status.is-error { color: var(--orange-ink); }

/* ---------- sent ---------- */
.form-success {
  position: absolute; inset: 0; z-index: 3; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 32px; text-align: center; background: var(--paper);
}
.form-success[hidden] { display: none; }
.fs-badge { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--done); margin-bottom: 6px; }
.fs-badge svg { width: 38px; height: 38px; }
.fs-check { stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; }
.form-success.is-live .fs-check { animation: fs-draw 0.55s 0.25s var(--ease-out) forwards; }
@keyframes fs-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .fs-check { stroke-dashoffset: 0; } .form-success.is-live .fs-check { animation: none; } }
.form-success h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }
.form-success p { color: var(--ink-2); max-width: 32ch; }
.fs-again { margin-top: 8px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; cursor: pointer; font-size: var(--fs-sm); color: var(--ink-2); }
.fs-again:hover { border-color: var(--ink); color: var(--ink); }

/* the grey page meets the footer directly; the gap only belongs under the orange close */
.contact-page + .footer { margin-top: 0; }
