/* Mobile entry point. The outer item keeps the layout editor's existing book key. */
.hero-booking { position: relative; display: inline-flex; }
.hero-booking__filter { position: absolute; pointer-events: none; }
.hero-booking__liquid, .hero-booking__choices, .hero-booking__reset { display: none; }
@media (max-width: 700px) {
  .hero__cta > .hero-booking { grid-column: 1 / -1; display: block; width: 100%; height: 52px; }
  .hero-booking .hero-booking__trigger { position: absolute; inset: 0; width: 100%; min-height: 52px; border: 0; border-radius: 16px; background: var(--orange); box-shadow: none; padding: 14px 16px; font-size: 16px; transition: opacity 180ms, transform 500ms cubic-bezier(.22,1,.28,1); }
  .hero-booking__liquid { display: block; position: absolute; inset: 0 0 auto; height: 100%; pointer-events: none; filter: url(#booking-liquid); opacity: 0; transition: opacity 120ms; }
  .hero-booking__liquid i { position: absolute; inset: 0 auto 0 0; width: 53%; border-radius: 16px; background: var(--orange); transition: width 650ms cubic-bezier(.22,1,.28,1), border-radius 650ms; }
  .hero-booking__liquid i + i { left: auto; right: 0; }
  .hero-booking__choices { position: absolute; top: 0; width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; opacity: 0; visibility: hidden; transform: translateY(5px) scale(.98); transition: opacity 180ms, transform 450ms cubic-bezier(.22,1,.28,1), visibility 180ms; }
  .hero-booking__choices button { min-width: 0; min-height: 0; height: 100%; box-sizing: border-box; border: 0; background: none; color: var(--on-accent); text-align: left; padding: 8px 12px; cursor: pointer; border-radius: 16px; }
  .hero-booking__choices strong { display: flex; justify-content: space-between; gap: 4px; font-size: 16px; line-height: 22px; }
  .hero-booking__choices small { display: block; font-size: 10px; font-weight: 600; line-height: 14px; opacity: .75; white-space: nowrap; }
  .hero-booking.is-open .hero-booking__trigger { opacity: 0; transform: scale(.96); pointer-events: none; }
  .hero-booking.is-open .hero-booking__liquid { opacity: 1; }
  .hero-booking.is-open .hero-booking__liquid i { width: calc(50% - 8px); border-radius: 19px; }
  .hero-booking.is-open .hero-booking__choices { opacity: 1; visibility: visible; transform: none; transition-delay: 160ms; }
  .hero-booking__reset:not([hidden]) { display: block; position: absolute; right: 0; top: calc(100% + 4px); border: 0; padding: 6px 2px 6px 16px; min-height: 36px; color: var(--ink-dim); font-size: 11px; background: none; cursor: pointer; animation: trial-enter 450ms both; }
  .hero-booking__reset span { margin-left: 10px; }
  .hero-booking .hero-booking__trigger { z-index: 1; background: transparent; }
  .hero-booking__liquid { opacity: 1; }
  .hero-booking__choices, .hero-booking__reset { z-index: 1; }
}

/* The sheet is deliberately separate from the payment modal; confirmation still
   belongs to the existing booking flow. Native dialog supplies focus containment. */
.trial-sheet { position: fixed; inset: 0; margin: auto; width: min(560px, calc(100% - 32px)); max-width: none; max-height: min(880px, calc(100dvh - 40px)); padding: 0; border: 1px solid var(--glass-border); border-radius: 26px; background: var(--bg-2); color: var(--ink); box-shadow: 0 24px 100px #0008; overflow: hidden; }
.trial-sheet[open] { display: flex; flex-direction: column; animation: trial-sheet-in 550ms cubic-bezier(.16,1,.3,1) both; }
.trial-sheet::backdrop { background: #05050899; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: trial-fade 350ms both; }
.trial-sheet.is-closing { animation: trial-sheet-out 240ms cubic-bezier(.4,0,1,1) both; pointer-events: none; }
.trial-sheet.is-closing::backdrop { animation: trial-fade 240ms reverse both; }
.trial-sheet__header { padding: 24px 24px 0; flex: none; }
.trial-sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trial-sheet__eyebrow { color: var(--accent-text); font: 700 10px/1.5 "Space Grotesk",sans-serif; letter-spacing: .2em; }
.trial-sheet__close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--glass-border); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.trial-sheet__close svg { width: 16px; height: 16px; }
.trial-sheet h2 { margin: 10px 0 8px; font-size: clamp(26px,7vw,32px); line-height: 1.25; font-weight: 900; letter-spacing: -.04em; }
.trial-sheet__intro { margin: 0; color: var(--ink-dim); font-size: 13px; line-height: 1.75; }
.trial-sheet__progress { display: flex; list-style: none; padding: 0; margin: 24px 0 0; gap: 16px; }
.trial-sheet__progress li { flex: 1; border-top: 2px solid var(--glass-border); padding: 10px 0 14px; font-size: 11px; color: var(--ink-faint); transition: color 300ms,border-color 450ms; }
.trial-sheet__progress li.is-current { color: var(--accent-text); border-color: var(--orange); }
.trial-sheet__progress li.is-done { color: var(--ink-dim); border-color: var(--orange); }
.trial-sheet__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 20px; scrollbar-width: thin; }
.trial-step { animation: trial-enter 400ms cubic-bezier(.22,1,.28,1) both; }
.trial-sheet__label { display: block; margin: 12px 0; font-size: 12px; font-weight: 700; color: var(--ink-dim); }
.trial-picker { border-bottom: 1px solid var(--glass-border); }
.trial-picker__toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; border: 0; padding: 16px 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.trial-picker__toggle strong { font-size: 17px; line-height: 1.5; }
.trial-picker__toggle small { display: block; margin-top: 4px; color: var(--ink-dim); font-size: 12px; line-height: 1.5; }
.trial-chevron { flex: none; width: 18px; height: 18px; transition: transform 480ms cubic-bezier(.22,1,.28,1); }
[aria-expanded="true"] > .trial-chevron { transform: rotate(180deg); }
.trial-expand { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 480ms cubic-bezier(.22,1,.28,1), opacity 300ms; }
.trial-expand.is-open { grid-template-rows: 1fr; opacity: 1; }
.trial-expand > div { min-height: 0; overflow: hidden; }
.trial-course-list { display: grid; gap: 8px; padding: 4px 0 18px; }
.trial-course { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; border: 1px solid var(--glass-border); padding: 14px; border-radius: 14px; background: var(--glass); color: var(--ink); text-align: left; cursor: pointer; transition: border-color 250ms,background 250ms,transform 350ms cubic-bezier(.22,1,.28,1); }
.trial-course strong { font-size: 14px; }
.trial-course small { grid-column: 1; color: var(--ink-dim); font-size: 11px; line-height: 1.6; }
.trial-course b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--accent-text); font-size: 16px; }
.trial-course[aria-pressed="true"], .trial-course:hover { border-color: var(--orange); background: var(--orange-soft); }
.trial-dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.trial-date { flex: none; width: 64px; min-height: 76px; padding: 9px 4px; border-radius: 14px; border: 1px solid var(--glass-border); color: var(--ink-dim); background: var(--glass); cursor: pointer; scroll-snap-align: start; transition: background 320ms,border-color 320ms,transform 320ms; }
.trial-date b, .trial-date small { display: block; }
.trial-date b { font: 700 22px/1.4 "Space Grotesk",sans-serif; color: var(--ink); }
.trial-date small { font-size: 10px; }
.trial-date[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); color: var(--accent-text); transform: translateY(-2px); }
.trial-date[aria-pressed="true"] b { color: var(--accent-text); }
.trial-slots { display: grid; gap: 8px; margin-top: 4px; animation: trial-enter 350ms both; }
.trial-slot { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 1px solid var(--glass-border); border-radius: 14px; padding: 14px; text-align: left; color: var(--ink); background: none; cursor: pointer; transition: background 250ms,border-color 250ms; }
.trial-slot strong { font: 700 16px/1.5 "Space Grotesk",sans-serif; }
.trial-slot small { display: block; color: var(--ink-dim); font-size: 11px; line-height: 1.7; }
.trial-slot > span:last-child { flex: none; color: var(--accent-text); font-size: 11px; }
.trial-slot[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); }
.trial-slot:disabled { opacity: .4; cursor: not-allowed; }
.trial-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 16px; }
.trial-field { display: block; min-width: 0; font-size: 12px; font-weight: 600; }
.trial-field--wide { grid-column: 1 / -1; }
.trial-field input, .trial-field textarea { display: block; width: 100%; max-width: 100%; margin-top: 8px; padding: 13px 12px; border: 1px solid var(--glass-border); border-radius: 12px; color: var(--ink); background: var(--glass); font: inherit; font-size: 16px; transition: border-color 200ms,background 200ms; }
.trial-field textarea { resize: vertical; min-height: 96px; }
.trial-field :is(input,textarea):focus { outline: 0; border-color: var(--orange); background: var(--orange-soft); }
.trial-field [aria-invalid="true"] { border-color: var(--danger); }
.trial-field__error { display: block; color: var(--danger); font-size: 11px; line-height: 1.5; margin-top: 5px; }
.trial-note { color: var(--ink-dim); font-size: 12px; line-height: 1.8; margin: 16px 0 0; }
.trial-health { margin-top: 20px; padding-top: 4px; border-top: 1px solid var(--glass-border); }
.trial-health .trial-picker__toggle strong { font-size: 13px; }
.trial-review { margin: 12px 0 0; }
.trial-review > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--glass-border); font-size: 13px; line-height: 1.7; }
.trial-review dt { color: var(--ink-dim); flex: none; }
.trial-review dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.trial-price { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 24px; }
.trial-price span { color: var(--ink-dim); font-size: 12px; }
.trial-price strong { font: 700 32px/1.4 "Space Grotesk",sans-serif; color: var(--accent-text); }
.trial-sheet__footer { flex: none; padding: 16px 24px max(20px,env(safe-area-inset-bottom)); background: var(--bg-2); border-top: 1px solid var(--glass-border); }
.trial-sheet__actions { display: flex; gap: 12px; }
.trial-sheet__next { flex: 1; min-height: 52px; padding: 14px 12px; border: 0; border-radius: 14px; background: var(--orange); color: var(--on-accent); font-size: 14px; font-weight: 800; cursor: pointer; transition: opacity 200ms,transform 300ms; }
.trial-sheet__next:active { transform: scale(.98); }
.trial-sheet__next:disabled { opacity: .45; cursor: wait; }
.trial-sheet__back { border: 1px solid var(--glass-border); border-radius: 14px; min-width: 64px; background: none; color: var(--ink-dim); font-size: 13px; cursor: pointer; }
.trial-sheet__login { display: block; padding: 12px 0 0; margin: auto; background: none; border: 0; color: var(--ink-dim); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.trial-sheet__error { color: var(--danger); font-size: 12px; line-height: 1.7; margin: 0 0 12px; }
.trial-sheet__error:empty { display: none; }
.trial-sheet button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.trial-sheet [hidden] { display: none !important; }
@keyframes trial-sheet-in { from { opacity: 0; transform: translateY(60px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes trial-sheet-out { to { opacity: 0; transform: translateY(36px) scale(.98); } }
@keyframes trial-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes trial-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 700px) {
  .trial-sheet { inset: auto 0 0; margin: 0; width: 100%; max-height: calc(100dvh - 16px); border-bottom: 0; border-radius: 24px 24px 0 0; }
  .trial-sheet__header { padding: 18px 20px 0; }
  .trial-sheet__body { padding-inline: 20px; }
  .trial-sheet__footer { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-booking, .hero-booking *, .trial-sheet, .trial-sheet *, .trial-sheet::backdrop { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-booking__liquid { filter: none; }
}
