/* TAM Client Application. Brand tokens and fonts come from the TAM Black Friday funnel:
   indigo family, midnight page, coral action colour. Display: Barlow Condensed 800 italic.
   UI: Manrope. Body: Open Sans. Shape rule: 4px sheets, 6px controls. One theme: dark.
   One accent: coral (actions, selection, progress). Indigo is used only as a neutral surface. */

@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlowcondensed-800i-latin.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/static/fonts/manrope-var-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/static/fonts/opensans-var-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --indigo-100: #E0E7FF; --indigo-300: #A5B4FC; --indigo-700: #4338CA; --indigo-950: #1E1B4B;
  --midnight: #0B1020; --night: #060914;
  --coral: #FF7A66; --coral-hover: #FF8E7C; --coral-soft: #FFD2C9;
  --ink: #17153B; --white: #FFFFFF;
  --on-dark: #E3E7F4; --on-dark-muted: #C3C9DE;
  --rule: rgba(227, 231, 244, 0.42); --rule-soft: rgba(227, 231, 244, 0.16);
  --surface: rgba(255, 255, 255, 0.045);
  --error: #FFB4A8;
  --font-display: "Barlow Condensed", "Arial Narrow", "Manrope", system-ui, sans-serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sheet: 4px; --r-ctl: 6px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .17 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--on-dark); background-color: var(--midnight); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; background-image: var(--grain); opacity: 0.5; pointer-events: none; }
img { max-width: 100%; height: auto; }
a { color: var(--coral-soft); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: var(--r-ctl); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--r-ctl); font-weight: 700; }
.skip:focus { top: 12px; }

/* header + progress */
.top { position: relative; width: 100%; max-width: 720px; margin: 0 auto; padding: 18px 20px 0; }
.top img { display: block; height: 54px; width: auto; }
.progress { margin-top: 14px; display: none; }
.js .progress.is-on { display: block; }
.progress__row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); }
.progress__bar { margin-top: 8px; height: 4px; background: var(--rule-soft); border-radius: 2px; overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; background: var(--coral); border-radius: 2px; transition: width 240ms ease; }

main { position: relative; flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 22px 20px 48px; }

/* steps */
.js .step { display: none; }
.js .step.is-current { display: block; animation: rise 260ms ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step + .step { margin-top: 44px; }
.js .step + .step { margin-top: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; width: 100%; }
.q { margin: 6px 0 22px; font-family: var(--font-ui); font-weight: 800; font-size: clamp(1.45rem, 1.15rem + 1.5vw, 2.1rem); line-height: 1.22; letter-spacing: -0.01em; color: var(--white); text-wrap: balance; }
[tabindex="-1"]:focus { outline: none; }

.back { display: none; align-items: center; min-height: 44px; margin: 0 0 4px -10px; padding: 8px 10px; font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem; color: var(--on-dark-muted); background: none; border: 0; border-radius: var(--r-ctl); cursor: pointer; }
.js .step:not([data-step="0"]) .back { display: inline-flex; }
.back:hover { color: var(--white); }

/* answer options */
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt__text {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 18px;
  font-family: var(--font-ui); font-weight: 700; font-size: 1.04rem; line-height: 1.35; color: var(--on-dark);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-ctl);
  transition: border-color 140ms ease, background-color 140ms ease, transform 120ms ease;
}
.opt__text::before {
  content: ""; flex: none; width: 22px; height: 22px; border: 2px solid var(--on-dark-muted); border-radius: 50%; background: transparent;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.opt--multi .opt__text::before { border-radius: 4px; }
.opt:hover .opt__text { border-color: var(--coral-soft); background: rgba(255, 255, 255, 0.07); }
.opt input:active + .opt__text { transform: scale(0.99); }
.opt input:focus-visible + .opt__text { outline: 3px solid var(--white); outline-offset: 3px; }
.opt input:checked + .opt__text { border-color: var(--coral); background: rgba(255, 122, 102, 0.12); color: var(--white); }
.opt input:checked + .opt__text::before { border-color: var(--coral); background: var(--coral); box-shadow: inset 0 0 0 4px var(--midnight); }
.opt--multi input:checked + .opt__text::before { box-shadow: none; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23060914' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.opt input:disabled + .opt__text { opacity: 0.45; cursor: not-allowed; }

.helper { margin: 14px 0 0; font-size: 0.95rem; color: var(--on-dark-muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 60px; padding: 16px 24px;
  font-family: var(--font-ui); font-weight: 800; font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--night); background: var(--coral); border: 0; border-radius: var(--r-ctl); text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, transform 140ms ease;
}
.btn:hover { background: var(--coral-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { background: rgba(255, 122, 102, 0.28); color: var(--on-dark-muted); cursor: not-allowed; transform: none; }
.btn-text { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 8px 4px; font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem; color: var(--on-dark-muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-text:hover { color: var(--white); }
.next-row { margin-top: 18px; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.js .btn.js-only { display: inline-flex; }
.js-hide { }
.js .js-hide { display: none; }

/* opening */
.display { margin: 28px 0 0; font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1.02; letter-spacing: 0.004em; font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.2rem); color: var(--white); text-wrap: balance; padding-bottom: 0.06em; }
.lede { margin: 18px 0 28px; max-width: 34em; font-size: 1.12rem; color: var(--on-dark); }
.small { margin: 14px 0 0; font-size: 0.95rem; color: var(--on-dark-muted); }

/* contact fields */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem; color: var(--on-dark); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; min-height: 54px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid #8E97B0; border-radius: var(--r-ctl); caret-color: var(--indigo-700);
}
.field input:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 2px var(--error); }
.err { margin: 0; min-height: 0; font-size: 0.92rem; font-weight: 600; color: var(--error); }
.err:empty { display: none; }
.other { margin-top: 16px; }
.js .other.is-hidden { display: none; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 4px; cursor: pointer; font-size: 0.98rem; color: var(--on-dark); }
.consent a { color: inherit; text-decoration: underline; }
.consent-note { margin: 2px 0 10px 36px; font-size: 0.88rem; opacity: 0.85; }
.consent input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--coral); }
.form-error { margin: 14px 0 0; padding: 12px 14px; font-weight: 600; color: var(--white); background: rgba(244, 87, 75, 0.2); border: 1px solid var(--error); border-radius: var(--r-ctl); }
.form-error[hidden] { display: none; }
.preview-note { margin-top: 10px; font-size: 0.85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* decline + booking pages */
.page { padding-top: 6px; }
.page h1.display { margin-top: 24px; }
.page .copy { margin-top: 20px; max-width: 36em; }
.page .copy p { margin: 0 0 16px; font-size: 1.1rem; }
.page .cta { margin-top: 26px; max-width: 460px; }
.mail { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--rule); max-width: 460px; }
.mail h2 { margin: 0 0 14px; font-family: var(--font-ui); font-weight: 800; font-size: 1.15rem; line-height: 1.3; color: var(--white); }
.mail .btn { min-height: 54px; font-size: 1.02rem; }
.mail__done { margin: 0; padding: 14px 16px; font-weight: 700; color: var(--white); border: 1px solid var(--coral); border-radius: var(--r-ctl); background: rgba(255, 122, 102, 0.12); }
.mail__done[hidden] { display: none; }

.book { display: grid; gap: 28px; }
.book__intro { max-width: 36em; }
.book__who { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.book__who img { width: 76px; height: 95px; object-fit: cover; border-radius: var(--r-sheet); flex: none; }
.book__who p { margin: 0; font-family: var(--font-ui); font-weight: 700; line-height: 1.35; color: var(--white); }
.book__cal { background: var(--white); border-radius: var(--r-sheet); padding: 6px; scroll-margin-top: 16px; }
.book__cal iframe { display: block; min-height: 560px; }
.book__done { margin: 0 0 14px; padding: 14px 16px; font-weight: 700; color: var(--white); border: 1px solid var(--coral); border-radius: var(--r-ctl); background: rgba(255, 122, 102, 0.12); }
.book__done[hidden] { display: none; }

/* footer */
.site-foot { position: relative; padding: 30px 20px 36px; text-align: center; font-size: 0.92rem; color: var(--on-dark-muted); border-top: 1px solid var(--rule-soft); }
.site-foot p { margin: 0 0 8px; }
.site-foot nav { display: flex; gap: 22px; justify-content: center; }
.site-foot a { color: var(--on-dark); padding: 8px 2px; }

@media (min-width: 900px) {
  .top { padding-top: 26px; }
  .top img { height: 60px; }
  main { padding-top: 34px; }
  .book { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: start; }
  .book__intro { position: sticky; top: 24px; }
  .page .book + .x { margin-top: 0; }
}
@media (min-width: 900px) { .page--wide { max-width: none; } body:has(.book) main, body:has(.book) .top { max-width: 1160px; } }

@media (prefers-reduced-motion: reduce) {
  .js .step.is-current { animation: none; }
  .btn, .opt__text, .progress__bar i { transition: none; }
  .btn:hover { transform: none; }
}
