/* Flip Flop Divers, pre-arrival registration */

/* Kanit (Cadson Demak, Bangkok). Metric overrides trim the tall Thai line box so Latin caps centre cleanly. */
@font-face {
  font-family: "Kanit";
  src: url("../assets/fonts/kanit-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  ascent-override: 92%; descent-override: 28%; line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kanit";
  src: url("../assets/fonts/kanit-700-latin-ext.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  ascent-override: 92%; descent-override: 28%; line-gap-override: 0%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Kanit";
  src: url("../assets/fonts/kanit-700i-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  ascent-override: 92%; descent-override: 28%; line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kanit";
  src: url("../assets/fonts/kanit-700i-latin-ext.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  ascent-override: 92%; descent-override: 28%; line-gap-override: 0%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Kanit";
  src: url("../assets/fonts/kanit-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  ascent-override: 92%; descent-override: 28%; line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kanit";
  src: url("../assets/fonts/kanit-600-latin-ext.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  ascent-override: 92%; descent-override: 28%; line-gap-override: 0%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --abyss: #041421;
  --midnight: #0a2540;
  --teal: #0e6e78;
  --lagoon: #1fb5b0;
  --glass: #8fe8da;
  --foam: #eaf7f5;
  --muted: #a9c9cd;
  --coral: #ff8a5b;
  --coral-hi: #ffa47f;
  --ink: #04121f;
  --danger: #ffa08f;
  --warn: #ffd27a;
  --line: rgba(143, 232, 218, 0.16);
  --line-strong: rgba(143, 232, 218, 0.36);
  --field: rgba(234, 247, 245, 0.045);
  --field-hi: rgba(234, 247, 245, 0.075);
  --card: rgba(4, 20, 33, 0.9);
  --r: 6px;
  --r-sm: 4px;
  --display: "Kanit", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --d: 0;
  --p: 0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--abyss); scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; min-height: 100vh; font: 400 1rem/1.6 var(--body); color: var(--foam); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* Page scrollbar hidden (the diver shows scroll position); lists and the waiver box keep theirs. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--glass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--foam); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; position: relative; z-index: 1; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--coral); color: var(--ink); font-weight: 600; border-radius: var(--r-sm); text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 1rem; color: var(--ink); }

/* ---------- Ocean scene ---------- */
.ocean { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; --sy: 0; --d: 0; --s: 0; --m: 5; }
/* Three viewport-sized water layers cross-fade with depth. Opacity-only changes stay cheap on every mobile GPU,
   unlike sliding a very tall gradient layer, which iOS Safari may stop repainting. */
.ocean__water, .ocean__mid, .ocean__deep { position: absolute; inset: 0; }
.ocean__water { background: linear-gradient(180deg, #13607a 0%, #0f4f6c 30%, #0b3a58 70%, #092c47 100%); }
.ocean__water::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 30%;
  background: radial-gradient(120% 60% at 30% 0%, rgba(143, 232, 218, 0.22), transparent 60%);
}
.ocean__mid { background: linear-gradient(180deg, #0a3452 0%, #082842 45%, #061d33 100%); opacity: clamp(0, var(--d) * 2.2, 1); will-change: opacity; }
.ocean__deep { background: linear-gradient(180deg, #05162a 0%, #030d19 55%, #020810 100%); opacity: clamp(0, (var(--d) - 0.35) * 1.6, 1); will-change: opacity; }
.ocean__rays { position: absolute; inset: -12vh 0 0; opacity: calc(0.95 - var(--d) * 0.8); transform: translate3d(0, calc(var(--sy) * -0.08px), 0); }
.ray {
  position: absolute; top: 0; height: 125vh; width: 12vw; min-width: 90px;
  background: linear-gradient(90deg, transparent, rgba(190, 250, 242, 0.13) 50%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  transform-origin: 50% 0;
  animation: sway 13s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.ray:nth-child(1) { left: 6%; --a: 16deg; animation-duration: 15s; }
.ray:nth-child(2) { left: 22%; --a: 9deg; width: 18vw; animation-duration: 19s; animation-delay: -6s; }
.ray:nth-child(3) { left: 44%; --a: 4deg; width: 8vw; animation-duration: 12s; animation-delay: -3s; }
.ray:nth-child(4) { left: 60%; --a: -3deg; width: 15vw; animation-duration: 17s; animation-delay: -9s; }
.ray:nth-child(5) { left: 80%; --a: -10deg; animation-duration: 14s; animation-delay: -2s; }
@keyframes sway {
  from { transform: rotate(calc(var(--a) - 3deg)); opacity: 0.45; }
  to { transform: rotate(calc(var(--a) + 3deg)); opacity: 1; }
}
.ocean__caustics { position: absolute; top: 0; left: 0; width: 200%; height: 64px; fill: none; stroke: rgba(190, 250, 242, 0.28); stroke-width: 1.2; opacity: calc(1 - var(--d) * 1.4); animation: drift 38s linear infinite; }
@keyframes drift { to { transform: translate3d(-50%, 0, 0); } }
/* One screen plus one tile tall, looping by exactly one tile so the repeat is seamless. */
.ocean__snow {
  position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 190px);
  background-image: radial-gradient(circle, rgba(234, 247, 245, 0.55) 0 1px, transparent 1.6px);
  background-size: 160px 190px;
  opacity: 0.35;
  animation: snow 15s linear infinite;
  will-change: transform;
}
.ocean__snow--far { height: calc(100% + 113px); background-size: 97px 113px; background-position: 40px 60px; opacity: 0.18; animation-name: snow-far; animation-duration: 14s; }
@keyframes snow { to { transform: translate3d(0, -190px, 0); } }
@keyframes snow-far { to { transform: translate3d(0, -113px, 0); } }

.draw { stroke-dasharray: 1 2; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) 0.2s forwards; }
.draw.d2 { animation-delay: 0.9s; }
.draw.d3 { animation-delay: 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.critter { position: absolute; color: var(--glass); }
.critter svg { width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.critter--manta { top: 17vh; left: 0; width: clamp(110px, 13vw, 190px); opacity: clamp(0.1, 0.7 - (var(--m) - 5) / 28, 0.7); animation: glide 58s linear infinite; animation-delay: -14s; will-change: transform; }
.manta__body { transform-box: fill-box; transform-origin: center; animation: flap 3.6s ease-in-out infinite; }
@keyframes glide { from { transform: translate3d(-25vw, 12vh, 0) rotate(-6deg); } to { transform: translate3d(115vw, -8vh, 0) rotate(-6deg); } }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.78); } }

.critter--shark { bottom: 24vh; left: 0; width: clamp(280px, 38vw, 600px); color: var(--lagoon); opacity: calc(0.6 + var(--d) * 0.3); animation: cruise 95s linear infinite; animation-delay: -30s; will-change: transform; }
.shark__fill { fill: rgba(5, 30, 46, 0.78); }
.shark__spots { fill: currentColor; stroke: none; opacity: 0.85; }
.shark__stripes { stroke-width: 0.9; opacity: 0.4; }
.shark__eye { fill: currentColor; stroke: none; }
/* Side-on lateral tail sweep reads as the crescent narrowing, so scale rather than rotate. Pivot is the caudal peduncle. */
.shark__tail { transform-box: view-box; transform-origin: 152px 111px; animation: tail 4.5s ease-in-out infinite; }
@keyframes cruise { from { transform: translate3d(-45vw, 0, 0); } to { transform: translate3d(115vw, -4vh, 0); } }
@keyframes tail { 0%, 100% { transform: scaleX(1) skewY(-2deg); } 50% { transform: scaleX(0.78) skewY(2deg); } }

/* The rail spans 5 to 40 m over 60vh from 20vh down (60vh / 35 per metre). --m is set per frame by scene.js. */
.diver-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; --m: 5; }
.critter--diver { top: 20vh; right: 4vw; width: clamp(110px, 12vw, 190px); opacity: 0.8; transform: translate3d(0, calc((var(--m, 5) - 5) * 60vh / 35 - 50%), 0); will-change: transform; }
.critter--diver svg { animation: bob 7s ease-in-out infinite alternate; }
@media (min-width: 1180px) { .critter--diver { right: 47px; } }
.diver__leg { transform-box: view-box; animation: kick 2.4s ease-in-out infinite; }
.diver__leg--a { transform-origin: 110px 45px; }
.diver__leg--b { transform-origin: 109px 54px; animation-delay: -1.2s; }
.diver__bubbles circle { fill: none; stroke: currentColor; transform-box: fill-box; transform-origin: center; animation: dbub 3.2s ease-in infinite; opacity: 0; }
.diver__bubbles circle:nth-child(2) { animation-delay: 1s; }
.diver__bubbles circle:nth-child(3) { animation-delay: 2s; }
@keyframes bob { from { transform: translate3d(0, -3px, 0) rotate(-1.5deg); } to { transform: translate3d(-14px, 3px, 0) rotate(1.5deg); } }
@keyframes kick { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes dbub { 0% { transform: translate(0, 18px) scale(0.5); opacity: 0; } 20% { opacity: 0.9; } 100% { transform: translate(-4px, -26px) scale(1.1); opacity: 0; } }
@keyframes bob-sm { from { transform: translate3d(0, -2px, 0) rotate(-1.5deg); } to { transform: translate3d(-3px, 2px, 0) rotate(1.5deg); } }
@media (max-width: 1179px) {
  /* No depth rail here: a smaller diver rides the right edge above the content. */
  .diver-layer { z-index: 3; }
  .critter--diver { top: 14vh; right: -4px; width: 66px; opacity: 0.9; transform: translate3d(0, calc((var(--m, 5) - 5) * 70vh / 35 - 50%), 0); }
  .critter--diver svg { animation-name: bob-sm; }
  /* Scrolling alone (no registration) also darkens the water here, where pages are long. --s is scroll progress 0 to 1. */
  .ocean__mid { opacity: clamp(0, max(var(--d) * 2.2, var(--s) * 1.3), 1); }
  .ocean__deep { opacity: clamp(0, max((var(--d) - 0.35) * 1.6, var(--s) * 0.7), 1); }
}
@supports (height: 1svh) {
  @media (max-width: 1179px) {
    .critter--diver { top: 14svh; transform: translate3d(0, calc((var(--m, 5) - 5) * 70svh / 35 - 50%), 0); }
  }
}
@media (max-width: 760px) {
  .ray:nth-child(n+4), .ocean__snow--far { display: none; }
  .critter--manta { top: 11vh; width: 100px; opacity: clamp(0.08, 0.45 - (var(--m) - 5) / 30, 0.45); }
  .critter--shark { width: 76vw; bottom: 19vh; }
}

.reef { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(170px, 34vh, 340px); transform: translate3d(0, calc((1 - var(--d)) * 16vh), 0); }
.reef__back { fill: #05192b; opacity: 0.9; }
.reef__front { fill: #020b15; }
.reef__lines { fill: none; stroke: var(--lagoon); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.grass { transform-box: fill-box; transform-origin: 50% 100%; animation: grass 6s ease-in-out infinite alternate; }
.grass--b { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes grass { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
.reef .school { fill: var(--glass); opacity: 0.55; animation: school 22s ease-in-out infinite alternate; }
@keyframes school { from { transform: translate(-60px, 10px); } to { transform: translate(120px, -14px); } }

/* Each shoal fades in over its own depth band (--m in metres) and rises past the diver on the way down. */
.fish-defs { position: absolute; width: 0; height: 0; }
.shoal { position: absolute; }
.shoal svg { display: block; width: 100%; height: auto; overflow: visible; will-change: transform; }
.shoal--fus { top: 30vh; left: 0; width: clamp(140px, 17vw, 260px); fill: #a6e8f2; opacity: clamp(0, 0.75 - (var(--m) - 5) / 12, 0.75); transform: translate3d(0, calc((var(--m) - 5) * -1.6vh), 0); }
.shoal--fus svg { animation: shoal-cross 46s linear infinite; animation-delay: -12s; }
.shoal--bfly { bottom: 19vh; left: 22vw; width: clamp(64px, 7vw, 110px); fill: #ffd27a; opacity: clamp(0, 0.85 - (var(--m) - 5) / 10, 0.85); transform: translate3d(0, calc((1 - var(--d)) * 16vh), 0); }
.shoal--bfly svg { animation: bfly 9s ease-in-out infinite alternate; }
.shoal--cuda { top: 42vh; left: 0; width: clamp(190px, 24vw, 340px); fill: #c3d9e0; opacity: clamp(0, min((var(--m) - 12) / 5, (33 - var(--m)) / 5), 0.7); transform: translate3d(0, calc((21 - var(--m)) * 1.4vh), 0); }
.shoal--cuda svg { animation: shoal-cross 80s linear infinite; animation-delay: -35s; }
.shoal--jacks { top: 48vh; left: 2vw; width: clamp(140px, 16vw, 240px); fill: #d5e6ea; opacity: clamp(0, (var(--m) - 23) / 6, 0.75); transform: translate3d(0, calc((33 - var(--m)) * 1.6vh), 0); }
.shoal--jacks svg { animation: spin 36s linear infinite; }
@keyframes shoal-cross { from { transform: translate3d(-35vw, 0, 0); } to { transform: translate3d(115vw, -3vh, 0); } }
@keyframes bfly { from { transform: translate(0, 0); } to { transform: translate(44px, -12px); } }

.bubbles i { position: absolute; bottom: -24px; width: 8px; height: 8px; border: 1px solid rgba(190, 250, 242, 0.55); border-radius: 50%; animation: rise 16s linear infinite; opacity: 0; }
.bubbles i:nth-child(1) { left: 8%; animation-duration: 14s; animation-delay: -2s; }
.bubbles i:nth-child(2) { left: 15%; width: 5px; height: 5px; animation-duration: 18s; animation-delay: -9s; }
.bubbles i:nth-child(3) { left: 27%; width: 11px; height: 11px; animation-duration: 21s; animation-delay: -5s; }
.bubbles i:nth-child(4) { left: 39%; width: 6px; height: 6px; animation-duration: 15s; animation-delay: -12s; }
.bubbles i:nth-child(5) { left: 52%; animation-duration: 19s; animation-delay: -1s; }
.bubbles i:nth-child(6) { left: 63%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: -7s; }
.bubbles i:nth-child(7) { left: 71%; width: 10px; height: 10px; animation-duration: 22s; animation-delay: -15s; }
.bubbles i:nth-child(8) { left: 82%; width: 6px; height: 6px; animation-duration: 16s; animation-delay: -4s; }
.bubbles i:nth-child(9) { left: 90%; animation-duration: 20s; animation-delay: -10s; }
.bubbles i:nth-child(10) { left: 96%; width: 5px; height: 5px; animation-duration: 17s; animation-delay: -13s; }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translate3d(14px, -55vh, 0); }
  90% { opacity: 0.5; }
  100% { transform: translate3d(-8px, -112vh, 0); opacity: 0; }
}

.rail { display: none; }
@media (min-width: 1180px) {
  .rail { display: block; position: fixed; right: 22px; top: 20vh; height: 60vh; width: 36px; z-index: 1; pointer-events: none; --h: 60vh; }
  /* Minor ticks every 5 m from 5 m; major ticks at 10, 20, 30, 40 m. */
  .rail::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px calc(60vh * 10 / 35)) right calc(60vh * 5 / 35) / 10px 100% no-repeat, repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px calc(60vh * 5 / 35)) right top / 5px 100% no-repeat; border-right: 1px solid var(--line); }
  .rail__scale { position: absolute; inset: 0 14px 0 auto; width: 2rem; font: 600 0.62rem/1 var(--body); letter-spacing: 0.08em; color: var(--muted); text-align: right; }
  .rail__scale span { position: absolute; right: 0; transform: translateY(-50%); }
  .rail__scale span:nth-child(1) { top: calc(100% * 5 / 35); }
  .rail__scale span:nth-child(2) { top: calc(100% * 15 / 35); }
  .rail__scale span:nth-child(3) { top: calc(100% * 25 / 35); }
  .rail__scale span:nth-child(4) { top: 100%; }
  .rail__marker { position: absolute; right: 12px; top: 0; width: 0; height: 0; border: 6px solid transparent; border-right-color: var(--coral); transform: translate3d(0, calc((var(--m, 5) - 5) * 60vh / 35 - 6px), 0); }
}

html.is-paused .ocean *, html.is-paused .ocean *::after, html.is-paused .diver-layer * { animation-play-state: paused !important; }

/* ---------- Header and hero ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand img { height: 52px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 65px; } }
.lang { position: relative; display: flex; align-items: center; }
.lang__icon { position: absolute; left: 0.7rem; width: 16px; height: 16px; fill: none; stroke: var(--glass); stroke-width: 1.5; pointer-events: none; }
.lang select { appearance: none; -webkit-appearance: none; padding: 0.5rem 2rem 0.5rem 2.1rem; background: rgba(4, 20, 33, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fe8da' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.6rem center / 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.lang select:hover { border-color: var(--glass); }
.lang option { background: var(--midnight); color: var(--foam); }

.hero { padding-block: clamp(3rem, 11vh, 7.5rem) clamp(3rem, 8vh, 5rem); }
.hero > * { animation: rise-in 1s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: 0.08s; }
.hero > :nth-child(3) { animation-delay: 0.16s; }
.hero > :nth-child(4) { animation-delay: 0.24s; }
.hero > :nth-child(5) { animation-delay: 0.32s; }
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
.hero > .hero__title { animation-name: rise-in-lcp; }
@keyframes rise-in-lcp { from { transform: translate3d(0, 22px, 0); } }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.kicker__tag { font: 600 1.08rem/1.1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.kicker__place { display: inline-flex; align-items: center; gap: 0.35rem; font: 500 0.88rem/1.2 var(--body); color: var(--glass); }
.kicker__place svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.hero__title { margin-top: 1.4rem; font: 700 clamp(2.35rem, 8vw, 6.6rem)/0.98 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.hero__title .line { display: block; }
.line--accent { font-style: italic; padding-right: 0.08em; background: linear-gradient(95deg, var(--glass) 0%, var(--lagoon) 55%, #5fd0c9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #cfe6e8; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.hero__meta { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.hero__meta li { display: flex; align-items: center; gap: 0.5rem; }
.hero__meta li::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--glass); border-radius: 50%; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: clamp(2.5rem, 7vh, 4.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.affil { display: flex; align-items: center; gap: 0.85rem; }
.affil img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(234, 247, 245, 0.85); }
.affil p { display: flex; flex-direction: column; line-height: 1.3; font-size: 0.9rem; color: var(--muted); }
.affil strong { color: var(--foam); font-weight: 600; }
.hero__privacy { font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 50px; padding: 0.8rem 1.4rem; border: 1px solid transparent; border-radius: var(--r-sm); font: 600 1rem/1 var(--body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; overflow: hidden; transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s; -webkit-tap-highlight-color: transparent; }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn--primary { background: var(--coral); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(255, 138, 91, 0.7); }
.btn--primary:hover { background: var(--coral-hi); color: var(--ink); transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(255, 138, 91, 0.85); }
.btn--primary:hover .btn__icon { transform: translateX(3px); }
.hero .btn--primary:hover .btn__icon { transform: translateY(3px); }
.btn--ghost { background: transparent; color: var(--foam); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--glass); background: var(--field); color: var(--foam); }
.btn--ghost:hover .btn__icon { transform: translateX(-3px); }
.btn--sm { min-height: 38px; padding: 0.5rem 0.9rem; gap: 0.45rem; font-size: 0.85rem; }
.btn--sm .btn__icon { width: 15px; height: 15px; }
.step__switch { margin-bottom: 1.25rem; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { cursor: progress; }
.ripple { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); pointer-events: none; animation: ripple 0.65s ease-out forwards; }
@keyframes ripple { to { transform: scale(26); opacity: 0; } }
.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(4, 18, 31, 0.3); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading .btn__icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Registration card ---------- */
.register { padding-bottom: clamp(3rem, 8vh, 6rem); scroll-margin-top: 1rem; }
.card { position: relative; max-width: 800px; margin-inline: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(143, 232, 218, 0.08); }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; border-radius: var(--r) var(--r) 0 0; background: linear-gradient(90deg, transparent, var(--lagoon), transparent); opacity: 0.7; }
@media (min-width: 900px) and (prefers-reduced-transparency: no-preference) {
  .card { background: rgba(4, 20, 33, 0.78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
}

.gauge { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem 1.5rem; align-items: center; padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.gauge__readout { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; min-width: 96px; padding: 0.55rem 0.85rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: rgba(2, 10, 18, 0.6); }
.gauge__label { font: 600 0.62rem/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.gauge__value { font: 700 1.9rem/1.05 var(--display); letter-spacing: -0.02em; color: var(--glass); font-variant-numeric: tabular-nums; }
.gauge__value small { margin-left: 2px; font: 600 0.8rem/1 var(--body); color: var(--muted); }
.gauge__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.gauge__dot { display: flex; align-items: center; gap: 0.45rem; width: 100%; padding: 0.35rem 0.1rem; background: none; border: 0; border-radius: var(--r-sm); color: var(--muted); font: 600 0.74rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; text-align: left; cursor: pointer; transition: color 0.2s; }
.gauge__dot:disabled { cursor: default; opacity: 0.55; }
.gauge__dot:not(:disabled):hover { color: var(--foam); }
.gauge__n { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 0.7rem; font-variant-numeric: tabular-nums; transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.gauge__dot.is-done .gauge__n { background: var(--lagoon); border-color: var(--lagoon); color: var(--ink); }
.gauge__dot[aria-current="step"] { color: var(--foam); }
.gauge__dot[aria-current="step"] .gauge__n { border-color: var(--coral); color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 138, 91, 0.18); }
.gauge__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gauge__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.gauge__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--lagoon), var(--coral)); transform-origin: 0 50%; transform: scaleX(calc(0.1 + var(--p) * 0.9)); transition: transform 0.9s var(--ease); }
@media (max-width: 560px) {
  .gauge__t { display: none; }
  .gauge__dot { justify-content: center; }
}

form { padding: clamp(1.5rem, 4vw, 2.5rem); }
[data-enter="fwd"] { animation: in-fwd 0.55s var(--ease) both; }
[data-enter="back"] { animation: in-back 0.55s var(--ease) both; }
.step.is-leaving { animation: out 0.18s ease-in forwards; }
@keyframes in-fwd { from { opacity: 0; transform: translate3d(32px, 0, 0); } }
@keyframes in-back { from { opacity: 0; transform: translate3d(-32px, 0, 0); } }
@keyframes out { to { opacity: 0; transform: translate3d(-10px, 0, 0); } }
.step__head { margin-bottom: 1.75rem; }
.step__count { margin-bottom: 0.5rem; font: 600 0.72rem/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.step__head h2 { font: 700 clamp(1.65rem, 3.4vw, 2.2rem)/1.05 var(--display); letter-spacing: 0.01em; text-transform: uppercase; outline: none; }
.step__head p { margin-top: 0.5rem; color: var(--muted); max-width: 40rem; }
.subhead { margin: 2rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font: 600 1.1rem/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1rem; }
.grid--gap { margin-top: 1.15rem; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } .pb-group { order: 1; } .pb-notes { order: 2; } }

/* ---------- Fields ---------- */
.field { position: relative; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field > label:not(.check), .label { font: 600 0.8rem/1.35 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #d6ecee; }
.opt { margin-left: 0.4rem; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); opacity: 0.8; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 1rem; line-height: 1.3; color: var(--foam);
  box-shadow: inset 0 -2px 0 transparent;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.25s var(--ease);
}
input::placeholder, textarea::placeholder { color: rgba(169, 201, 205, 0.7); }
input:hover, select:hover, textarea:hover { background: var(--field-hi); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lagoon); background: var(--field-hi); box-shadow: inset 0 -2px 0 var(--lagoon), 0 0 0 3px rgba(31, 181, 176, 0.16); }
input[type="date"] { color-scheme: dark; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.85) sepia(0.4) hue-rotate(120deg); cursor: pointer; }
/* iOS 26 gives date inputs an intrinsic width that ignores width: 100% */
@supports (-webkit-touch-callout: none) {
  input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; text-align: left; }
  input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
}
.date { position: relative; }
.date input { padding-right: 3rem; }
.date input::-webkit-calendar-picker-indicator { display: none; }
.date__btn { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; border-radius: var(--r-sm); color: var(--glass); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.date__btn:hover, .date__btn[aria-expanded="true"] { background: rgba(31, 181, 176, 0.16); color: var(--foam); }
.date__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.dp { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 316px; max-width: calc(100vw - 2rem); padding: 0.85rem; background: #061a2d; border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.dp:not([hidden]) { animation: dp-in 0.22s var(--ease) both; }
@keyframes dp-in { from { opacity: 0; transform: translate3d(0, -6px, 0) scale(0.98); } }
.dp__head { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 34px; gap: 0.35rem; align-items: center; margin-bottom: 0.6rem; }
.dp .dp__head select { min-height: 34px; padding: 0.3rem 1.6rem 0.3rem 0.55rem; font: 600 0.88rem/1.2 var(--body); background-position: right 0.45rem center; background-size: 13px; }
.dp__nav { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--glass); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.dp__nav:hover:not(:disabled) { border-color: var(--glass); background: var(--field); }
.dp__nav:disabled { opacity: 0.3; cursor: default; }
.dp__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dp__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dp__grid th { padding: 0.3rem 0 0.45rem; font: 600 0.66rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.dp__grid td { padding: 2px; text-align: center; }
.dp__day { width: 100%; aspect-ratio: 1; padding: 0; background: none; border: 0; border-radius: var(--r-sm); color: var(--foam); font: 500 0.9rem/1 var(--body); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.dp__day:hover:not(:disabled) { background: rgba(31, 181, 176, 0.2); }
.dp__day[aria-current="date"] { color: var(--glass); box-shadow: inset 0 0 0 1px var(--lagoon); }
.dp__day[aria-pressed="true"] { background: var(--coral); color: var(--ink); font-weight: 700; box-shadow: none; }
.dp__day:disabled { opacity: 0.22; cursor: not-allowed; }
.dp__day:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.dp__foot { display: flex; justify-content: flex-end; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.dp__today { padding: 0.45rem 0.6rem; background: none; border: 0; border-radius: var(--r-sm); color: var(--glass); font: 600 0.76rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.dp__today:hover { background: var(--field); color: var(--foam); }
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fe8da' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 16px; cursor: pointer; }
select option, select optgroup { background: var(--midnight); color: var(--foam); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: inset 0 -2px 0 var(--danger) !important; }
.choice__grid.is-invalid .choice__body { border-color: var(--danger); }
.turnstile.is-invalid { outline: 1px solid var(--danger); outline-offset: 4px; border-radius: var(--r-sm); }
.shake { animation: shake 0.4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.hint { font-size: 0.82rem; color: var(--muted); }
.err { display: none; align-items: flex-start; gap: 0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--danger); }
.err:not(:empty) { display: flex; }
.err::before { content: "!"; display: grid; place-items: center; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--danger); color: var(--ink); font-size: 0.7rem; font-weight: 700; }
.phone { display: grid; grid-template-columns: 8.75rem minmax(0, 1fr); gap: 0.5rem; }
.dial { position: relative; }
.dial__show { display: flex; align-items: center; min-height: 48px; padding: 0.7rem 2.2rem 0.7rem 0.85rem; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fe8da' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.25s var(--ease); }
/* The real select sits invisibly on top, so text never overlaps whatever the browser or autofill renders. */
.dial select { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.dial:hover .dial__show { background-color: var(--field-hi); }
.dial:focus-within .dial__show { border-color: var(--lagoon); background-color: var(--field-hi); box-shadow: inset 0 -2px 0 var(--lagoon), 0 0 0 3px rgba(31, 181, 176, 0.16); }
.reveal:not([hidden]) { animation: reveal 0.45s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translate3d(0, -6px, 0); } }

/* Combobox */
.combo__wrap { position: relative; }
.combo__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; margin: 0; padding: 0.3rem; overflow-y: auto; list-style: none; background: #071e33; border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.8); overscroll-behavior: contain; }
.combo__list li { padding: 0.55rem 0.65rem; border-radius: 3px; cursor: pointer; font-size: 0.95rem; }
.combo__list li[aria-selected="true"], .combo__list li:hover { background: rgba(31, 181, 176, 0.18); }
.combo__list li.is-empty { color: var(--muted); cursor: default; background: none; }

/* Checkbox */
.check--compact { padding: 0.75rem 0.9rem; }
.field--gap { margin-top: 1.5rem; }
.check { position: relative; display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem; background: var(--field); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: 0.95rem; transition: border-color 0.2s, background-color 0.2s; }
.check:hover { border-color: var(--line-strong); }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check__box { position: relative; flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--glass); border-radius: 3px; transition: background-color 0.2s, border-color 0.2s; }
.check__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.25s var(--ease); }
.check input:checked + .check__box { background: var(--lagoon); border-color: var(--lagoon); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--coral); outline-offset: 3px; }
.check:has(input:checked) { border-color: rgba(31, 181, 176, 0.5); background: rgba(31, 181, 176, 0.07); }
.check:has([aria-invalid="true"]) { border-color: var(--danger); }

/* Choice cards */
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice__legend { margin-bottom: 0.9rem; padding: 0; font: 600 0.92rem/1.3 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.choice__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 620px) { .choice__grid { grid-template-columns: minmax(0, 1fr); } }
.choice__card { position: relative; display: block; cursor: pointer; }
.choice__card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__body { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.85rem; height: 100%; padding: 1.1rem 1.1rem 1.1rem 1rem; background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.choice__icon { grid-row: span 2; width: 26px; height: 26px; margin-top: 2px; fill: none; stroke: var(--glass); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.choice__title { font-weight: 600; line-height: 1.3; }
.choice__hint { font-size: 0.85rem; color: var(--muted); }
.choice__card:hover .choice__body { border-color: var(--glass); transform: translateY(-1px); }
.choice__card input:checked + .choice__body { border-color: var(--coral); background: rgba(255, 138, 91, 0.08); box-shadow: inset 3px 0 0 var(--coral); }
.choice__card input:checked + .choice__body .choice__icon { stroke: var(--coral); }
.choice__card input:focus-visible + .choice__body { outline: 2px solid var(--coral); outline-offset: 3px; }
.choice .err { margin-top: 0.6rem; }

/* Notes and alerts */
.note { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1.5rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--r-sm); background: rgba(143, 232, 218, 0.05); font-size: 0.9rem; color: #cfe6e8; }
.note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--glass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.note--info { border-left-color: var(--lagoon); }
.note--privacy { border-left-color: var(--line-strong); color: var(--muted); }
.note--ok { border-left-color: var(--lagoon); background: rgba(31, 181, 176, 0.08); }
.note--warn { border-left-color: var(--warn); background: rgba(255, 210, 122, 0.06); color: #fbe6bd; font-weight: 500; }
.alert { margin-top: 1.5rem; padding: 1rem 1.1rem; border: 1px solid rgba(255, 160, 143, 0.5); border-left: 3px solid var(--danger); border-radius: var(--r-sm); background: rgba(255, 160, 143, 0.08); font-size: 0.92rem; }
.alert p + p { margin-top: 0.4rem; }
.alert__title { font-weight: 700; color: var(--danger); }

/* ---------- Medical ---------- */
.medical { margin-top: 0.5rem; }
.details { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(2, 10, 18, 0.35); }
.details summary { padding: 0.8rem 1rem; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--glass); list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.details summary::-webkit-details-marker { display: none; }
.details summary::before { content: "+"; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--glass); border-radius: 50%; font-size: 0.8rem; line-height: 1; transition: transform 0.3s var(--ease); }
.details[open] summary::before { transform: rotate(45deg); }
.details p { padding: 0 1rem 0.9rem; font-size: 0.9rem; color: #cfe6e8; }
.medical > .note--warn { margin: 0 0 1.25rem; }
.mq-list { display: grid; gap: 0.6rem; counter-reset: mq; }
.mq { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(234, 247, 245, 0.025); transition: border-color 0.25s, background-color 0.25s; }
.mq.is-yes { border-color: rgba(255, 138, 91, 0.45); background: rgba(255, 138, 91, 0.04); }
.mq__head { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem 1.25rem; align-items: start; }
@media (max-width: 560px) { .mq__head { grid-template-columns: 1fr; } }
.mq__text { display: flex; gap: 0.75rem; font-size: 0.95rem; line-height: 1.5; }
.mq__num { flex: none; font: 700 0.95rem/1.5 var(--display); color: var(--glass); font-variant-numeric: tabular-nums; }
.mq__hint { margin-top: 0.5rem; font-size: 0.8rem; color: var(--glass); }
.yn { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: rgba(2, 10, 18, 0.5); justify-self: start; }
.yn label { position: relative; cursor: pointer; }
.yn input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.yn span { display: block; min-width: 64px; padding: 0.5rem 0.9rem; border-radius: 3px; text-align: center; font-size: 0.88rem; font-weight: 600; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.yn label:hover span { color: var(--foam); }
.yn input:checked + span { background: var(--glass); color: var(--ink); }
.yn input[value="yes"]:checked + span { background: var(--coral); }
.yn input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.yn.is-invalid { border-color: var(--danger); }
.mbox { margin-top: 1rem; padding: 1rem; border-left: 2px solid var(--coral); background: rgba(2, 10, 18, 0.45); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.mbox:not([hidden]) { animation: reveal 0.45s var(--ease) both; }
.mbox__title { margin-bottom: 0.75rem; font: 600 0.86rem/1.35 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral); }
.mbox__item { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.mbox__title + .mbox__item { border-top: 0; padding-top: 0; }
.mbox__item .mq__text { font-size: 0.9rem; line-height: 1.45; color: #d6ecee; }
.mq .err { margin-top: 0.5rem; }
.statement { margin-top: 1.5rem; padding: 1rem 1.1rem; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); }
.statement h4 { font: 600 0.86rem/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--glass); }
.statement p { margin-top: 0.35rem; font-size: 0.9rem; color: #cfe6e8; }
.medical .field { margin-top: 1.25rem; }
#physician-note { margin-top: 1.25rem; }

/* ---------- Waiver ---------- */
.waiver { border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: rgba(2, 10, 18, 0.45); margin-bottom: 1.25rem; }
.waiver__title { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); font: 600 0.95rem/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.waiver__scroll { max-height: 320px; overflow-y: auto; padding: 1rem 1.1rem; font-size: 0.9rem; color: #cfe6e8; transition: max-height 0.5s var(--ease); overscroll-behavior: contain; }
.waiver__scroll.is-open { max-height: 60vh; }
.waiver__scroll p + p { margin-top: 0.75rem; }
.waiver__placeholder { padding: 0.75rem; border: 2px dashed var(--warn); border-radius: var(--r-sm); color: var(--warn); font-weight: 700; letter-spacing: 0.02em; }
.waiver__toggle { display: flex; align-items: center; gap: 0.4rem; width: 100%; padding: 0.7rem 1.1rem; background: none; border: 0; border-top: 1px solid var(--line); color: var(--glass); font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.waiver__toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.3s var(--ease); }
.waiver__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.field--signature { margin-top: 1.25rem; }
.field--signature input { font: 700 1.3rem/1.2 var(--display); letter-spacing: -0.01em; }
.turnstile { min-height: 65px; }
.step > .field + .field, .step > .waiver + .field { margin-top: 1.25rem; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
#btn-back { margin-right: auto; }
@media (max-width: 420px) {
  .nav .btn { flex: 1; padding-inline: 1rem; }
}

/* ---------- Result ---------- */
.result { position: relative; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem); text-align: center; outline: none; overflow: hidden; }
.result__icon { width: 76px; height: 76px; margin: 0 auto 1.5rem; fill: none; stroke: var(--lagoon); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.result__title { font: 700 clamp(1.8rem, 4.4vw, 2.6rem)/1.05 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.result p { max-width: 34rem; margin: 1rem auto 0; color: #cfe6e8; }
.result__next { font-size: 0.92rem; color: var(--muted) !important; }
.result__upsell { max-width: 34rem; margin: 2rem auto 0; padding: 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: rgba(2, 10, 18, 0.45); }
.result .result__upsell > p:first-child { margin-top: 0; }
.result__upsell .btn { margin-top: 1.1rem; }
.result .result__later { margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- Booking choice ---------- */
.choose { padding: clamp(1.5rem, 4vw, 2.5rem); }
.choose__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 680px) { .choose__grid { grid-template-columns: minmax(0, 1fr); } }
.option { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem 1.35rem 1.3rem; text-align: left; background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--foam); cursor: pointer; overflow: hidden; transition: border-color 0.25s, transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s; }
.option::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--lagoon); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.option--full::before { background: var(--coral); }
.option:hover { border-color: var(--glass); transform: translateY(-2px); background: var(--field-hi); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8); }
.option:hover::before, .option:focus-visible::before { transform: scaleX(1); }
.option:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.option__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.option__icon { width: 30px; height: 30px; fill: none; stroke: var(--glass); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.option--full .option__icon { stroke: var(--coral); }
.option__meta { padding: 0.35rem 0.55rem; border: 1px solid var(--line); border-radius: 3px; font: 600 0.68rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.option__title { margin-top: 0.35rem; font: 700 1.45rem/1.1 var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
.option__body { flex: 1; font-size: 0.93rem; color: #cfe6e8; }
.option__cta { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font: 600 0.82rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); }
.option--pre .option__cta { color: var(--glass); }
.option__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.option:hover .option__cta svg { transform: translateX(4px); }
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst i { position: absolute; bottom: -20px; left: var(--x); width: var(--s); height: var(--s); border: 1.5px solid rgba(143, 232, 218, 0.8); border-radius: 50%; animation: burst var(--t) cubic-bezier(0.3, 0.6, 0.4, 1) var(--dl) forwards; opacity: 0; }
@keyframes burst { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate3d(var(--dx), -520px, 0); opacity: 0; } }

/* ---------- Sections below ---------- */
.section-title { font: 700 clamp(1.8rem, 3.8vw, 2.6rem)/1.05 var(--display); letter-spacing: -0.01em; }
.next { padding-block: clamp(2rem, 6vh, 4rem); }
.next__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
@media (max-width: 760px) { .next__list { grid-template-columns: minmax(0, 1fr); } }
.next__list li { padding: 1.4rem; border-top: 2px solid var(--lagoon); background: rgba(4, 20, 33, 0.6); }
.next__icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: rgba(31, 181, 176, 0.1); transition: transform 0.3s var(--ease), border-color 0.3s, background-color 0.3s; }
.next__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--coral); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.next__list li:hover .next__icon { transform: translateY(-3px); border-color: var(--lagoon); background: rgba(31, 181, 176, 0.18); }
.next__list h3 { margin-top: 1rem; font: 600 1.02rem/1.25 var(--display); letter-spacing: 0.07em; text-transform: uppercase; }
.next__list p { margin-top: 0.4rem; font-size: 0.92rem; color: var(--muted); }
.privacy { padding-block: clamp(2rem, 6vh, 4rem) clamp(3rem, 8vh, 5rem); scroll-margin-top: 1rem; }
.privacy__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem 2rem; margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--r); background: rgba(4, 20, 33, 0.75); }
.privacy h3 { font: 600 0.9rem/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--glass); }
.privacy p { margin-top: 0.4rem; font-size: 0.9rem; color: #cfe6e8; }
[data-reveal] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-pending { opacity: 0; transform: translate3d(0, 28px, 0); }

.footer { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2.5rem; align-items: end; padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.footer__brand img { height: 46px; width: auto; }
.footer__contact { font-style: normal; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.footer__legal { text-align: right; }
.credit { margin-top: 0.3rem; }
.credit a { color: var(--foam); font-weight: 600; }
.credit a:hover { color: var(--coral); }
@media (max-width: 820px) {
  .footer { grid-template-columns: 1fr; align-items: start; }
  .footer__legal { text-align: left; }
}
