/* Contact / booking flow — single centred column */

.contact { position: relative; overflow: hidden; padding: clamp(3rem, 9vh, 5.5rem) 0 clamp(4rem, 10vh, 7rem); text-align: center; }
.contact__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(44% 42% at 50% 12%, rgba(30, 95, 168, 0.34), transparent 70%),
    radial-gradient(30% 32% at 72% 4%, rgba(126, 197, 236, 0.13), transparent 72%);
}
.contact .container { position: relative; z-index: 1; }

.contact__head { max-width: 42rem; margin: 0 auto clamp(2.4rem, 5vw, 3.4rem); }
.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  letter-spacing: var(--track-title); line-height: 1.08;
  margin: 1.1rem 0 1.2rem;
  background: linear-gradient(168deg, #ffffff 0%, #eef3f9 42%, #b9c6d5 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact__lead { color: var(--ink-2); font-size: 1.1rem; line-height: 1.55; max-width: 46ch; margin-inline: auto; }
.contact__skip { margin-top: 0.9rem; font-size: 0.92rem; color: var(--muted); }
.contact__skip a { color: var(--sky-blue); text-decoration: underline; text-underline-offset: 3px; }
.contact__skip a:hover { color: #a9dcf7; }

/* ---------- Quiz card ---------- */
.quiz {
  position: relative; overflow: hidden;
  max-width: 40rem; margin-inline: auto;
  border-radius: 26px;
  padding: clamp(1.5rem, 3.4vw, 2.4rem);
  min-height: 430px; display: flex; flex-direction: column;
  text-align: left;
  background: linear-gradient(165deg, rgba(255,255,255,0.085) 0%, rgba(255,255,255,0.03) 48%, rgba(255,255,255,0.015) 100%);
  backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.34),
    0 44px 100px -40px rgba(0,0,0,0.95);
}
.quiz > * { position: relative; z-index: 1; }

.quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.quiz__count { color: var(--ink); }
.quiz__free { color: var(--muted-2); }

.quiz__bar { height: 2px; background: rgba(255,255,255,0.12); overflow: hidden; border-radius: 2px; }
.quiz__fill {
  height: 100%; width: 16.66%; border-radius: 2px;
  background: linear-gradient(90deg, var(--ocean-blue), var(--sky-blue));
  transition: width 520ms var(--ease-soft);
}

#bookingForm { display: flex; flex-direction: column; flex: 1; margin-top: 1.8rem; }

.step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; flex: 1; }
.step.is-active { display: flex; flex-direction: column; animation: stepIn 520ms var(--ease-soft) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .step.is-active { animation: none; } }

.step__q {
  display: block; font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 1.95rem); letter-spacing: var(--track-title); line-height: 1.16;
  color: var(--white); margin-bottom: 1.5rem;
}
.step__hint { color: var(--muted); font-size: 0.92rem; margin-top: -1.1rem; margin-bottom: 1.4rem; }

.field {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 12px;
  color: var(--white); font-family: var(--font-sans); font-size: 1.02rem;
  padding: 0.95rem 1.05rem; margin-bottom: 0.75rem;
  transition: border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}
.field::placeholder { color: var(--muted-2); }
.field:focus {
  outline: none; border-color: var(--sky-blue);
  background: rgba(126,197,236,0.07);
  box-shadow: 0 0 0 4px rgba(126,197,236,0.13);
}
textarea.field { resize: vertical; min-height: 104px; line-height: 1.5; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.choice {
  position: relative; display: flex; align-items: center;
  padding: 0.9rem 1.05rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.035);
  cursor: pointer; color: var(--ink-2); font-size: 0.95rem;
  transition: border-color 240ms ease, color 240ms ease, background 240ms ease, transform 200ms var(--ease-soft);
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .choice:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.07); color: var(--white); }
}
.choice:has(input:checked) {
  border-color: var(--sky-blue); color: var(--white);
  background: linear-gradient(180deg, rgba(30,95,168,0.5), rgba(30,95,168,0.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--sky-blue); outline-offset: 2px; }

.step__err { color: #ff9aa5; font-size: 0.86rem; min-height: 1.2em; margin-top: 0.35rem; }

.quiz__controls {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.09);
}
/* An author `display: flex` beats the UA rule for [hidden], so the controls
   stayed visible under the calendar on the booking step. */
.quiz__controls[hidden] { display: none; }
.btn-ghost {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.16); color: var(--muted);
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 500;
  padding: 0.82rem 1.4rem; border-radius: 12px; cursor: pointer;
  transition: transform 200ms var(--ease-soft), color 240ms ease, background 240ms ease;
}
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.btn-ghost:active { transform: scale(0.97); }
.quiz__controls .cta-gold { margin-left: auto; margin-top: 0; }
.cta-gold[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- Success ---------- */
.step--done { display: none; text-align: center; align-items: center; justify-content: center; }
.step--done.is-active { display: flex; flex-direction: column; }
.done__mark {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #04182c; background: linear-gradient(170deg, #bde4fa, var(--sky-blue) 55%, #3f8dcb);
  margin-bottom: 1.4rem;
}
.done__title { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.6vw, 2.3rem); letter-spacing: var(--track-title); margin-bottom: 0.7rem; }
.done__text { color: var(--ink-2); font-size: 1rem; max-width: 34ch; margin: 0 auto 1.8rem; }

/* ---------- Calendly ---------- */
/* Calendly's inline widget sizes its iframe to the container, so this needs
   an explicit height — min-height leaves the iframe collapsed at ~150px.
   The widget itself is light and cross-origin, so it can't be restyled from
   here. Instead it's framed as a deliberate white card: rounded, inset, with
   a blue rim glow so it reads as part of the design rather than a pasted-in
   rectangle. */
.cal {
  position: relative;
  width: 100%; height: 660px;
  margin-top: 0.2rem;
  border-radius: 18px; overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(126, 197, 236, 0.32);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 26px 60px -28px rgba(126, 197, 236, 0.55),
    0 10px 40px -20px rgba(0, 0, 0, 0.9);
}
.cal iframe { display: block; border: 0; width: 100%; height: 100%; }
.cal__fallback { margin-top: 0.9rem; }

/* The booking step uses the full card width. */
.step--done { width: 100%; }
.step--done .done__text { margin-bottom: 1.5rem; }
/* Tighter chrome on the booking step so the calendar gets the room. */
.step--done .done__mark { width: 44px; height: 44px; margin-bottom: 1rem; }
.step--done .done__title { font-size: clamp(1.5rem, 3.2vw, 2rem); }

@media (max-width: 700px) { .cal { height: 760px; border-radius: 14px; } }

/* ---------- What you get ---------- */
.promise {
  max-width: 46rem; margin: clamp(2.6rem, 5vw, 3.6rem) auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem;
  text-align: left;
}
.promise li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.2rem 1.3rem; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  color: var(--ink-2); font-size: 0.96rem; line-height: 1.5;
}
.promise__n {
  flex: none; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.3;
  background: linear-gradient(170deg, var(--sky-blue), var(--ocean-blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

@media (max-width: 700px) {
  .promise { grid-template-columns: 1fr; }
  .quiz { min-height: 380px; }
}
@media (max-width: 480px) {
  .choices { grid-template-columns: 1fr; }
  .quiz__controls .cta-gold { width: auto; }
}
