/* Svatba360 · mobile booking pages (vr-demo, 360-svatben-film).
   Sits on top of tokens.css + m.css; only adds the page hero, steps, calendar and form. */

.bar .back { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px; border-radius: 10px; background: var(--plum); color: var(--cream); font-size: 12.5px; white-space: nowrap; font-weight: 600; text-decoration: none; }

@media (max-width: 359px) { .bar .deg { display: none; } }

/* hero: vertical video, title on the shade */
.bhero { position: relative; min-height: 78svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--cream); background: var(--night) center / cover no-repeat; overflow: hidden; }
.bhero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.08 - var(--p, 0) * .08)); transform-origin: 50% 35%; }
.bhero .hero-shade { background: linear-gradient(180deg, rgba(28,13,38,.5) 0%, rgba(28,13,38,0) 24%, rgba(28,13,38,.25) 52%, rgba(28,13,38,.95) 100%); }
.bhero .hero-copy { padding-bottom: 28px; }
.bhero .display { font-size: clamp(38px, 11.4vw, 54px); line-height: .96; }
.bhero-lead { padding: 22px 16px 34px; margin: 0; font-size: 17px; line-height: 1.55; }

/* sample page: shorter hero, the form card rises over its bottom edge */
.sample .bhero { min-height: 70svh; padding-bottom: 56px; }
.sample .bhero .hero-copy { padding-bottom: 0; }
.sample .bhero-lead { padding: 14px 0 0; color: rgba(248,243,250,.92); font-size: 16px; }
.lift { position: relative; z-index: 2; margin: -40px 12px 0; }

/* steps */
.step { padding: 44px 16px 48px; }
.step-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.step-head .num { min-width: 38px; height: 26px; font-family: var(--f-mono); font-size: 12px; }
.step-head .h2 { margin: 0; font-size: clamp(27px, 7.6vw, 34px); }
.card { background: var(--cream); border-radius: 20px; padding: 16px; box-shadow: 0 18px 40px -26px rgba(28,13,38,.55); }

/* calendar */
.cal-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 8px; }
.cal-head h3 { margin: 0; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 21px; }
.cal-head h3::first-letter, #slot-text::first-letter { text-transform: uppercase; }
#slot-text { display: inline-block; }
.cal-nav { width: 44px; height: 44px; border: 1.5px solid var(--line); background: transparent; border-radius: 12px; font-size: 18px; color: var(--plum); }
.cal-nav:disabled { opacity: .3; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); padding: 6px 0; }
.calendar-day { height: 44px; border: 0; border-radius: 12px; background: var(--lilac); color: var(--ink); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; transition: background .25s, color .25s, transform .25s var(--spring); }
.calendar-day:disabled { background: transparent; color: rgba(42,18,56,.28); font-weight: 400; }
.calendar-day[aria-pressed="true"] { background: var(--plum); color: var(--cream); transform: scale(1.06); box-shadow: 0 0 0 3px var(--peach); }
.calendar-day:not(:disabled):active { transform: scale(.94); }

/* hours as chips */
.hours-label { display: block; margin: 22px 0 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hours:empty::before { content: attr(data-empty); grid-column: 1 / -1; padding: 14px; border: 1.5px dashed var(--lilac-deep); border-radius: 14px; text-align: center; color: var(--muted); font-size: 15px; }
.hour { min-height: 48px; border: 1.5px solid var(--lilac-deep); border-radius: 14px; background: var(--cream); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(8px); animation: chip .45s var(--ease) forwards; animation-delay: calc(var(--i) * 28ms); }
.hour[aria-pressed="true"] { background: var(--peach); border-color: var(--peach); }
@keyframes chip { to { opacity: 1; transform: none; } }
.note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }

/* chosen slot, shown above the form once picked */
.slot { display: none; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--plum); color: var(--cream); font-weight: 600; }
.slot.on { display: flex; animation: chip .5s var(--ease) forwards; }
.slot i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 4px rgba(255,170,118,.3); }

/* form */
.fields { display: grid; gap: 4px; }
.fields label { font-weight: 600; font-size: 15px; margin-top: 12px; }
.fields label small { font-weight: 400; color: var(--muted); margin-left: 4px; font-size: 13px; }
.fields input, .fields textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--lilac-deep); border-radius: 14px; padding: 13px 14px; min-height: 52px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.fields input[type="date"] { display: block; min-width: 0; }
.fields textarea { resize: vertical; min-height: 120px; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 4px rgba(74,39,94,.14); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 16px; }
.optin { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.optin input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--plum); cursor: pointer; }
.privacy { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.status { margin: 12px 0 0; font-weight: 600; color: var(--plum); }
.status:empty { display: none; }
.status { padding: 12px 14px; border-radius: 14px; background: var(--lilac); }
.status.is-error { background: #FBE3E0; color: #8A1F14; }
.submit { width: 100%; margin-top: 16px; border: 0; cursor: pointer; }
.submit:disabled { opacity: .6; }

/* footer (short) */
.bfoot { background: var(--plum); color: var(--lilac); padding: 40px 16px calc(32px + env(safe-area-inset-bottom, 0)); display: grid; gap: 14px; font-size: 14px; }
.bfoot .brand { color: var(--cream); font-size: 30px; }
.bfoot .brand b { color: var(--peach); }
.bfoot .brand-ring { border-color: var(--lilac); border-top-color: var(--peach); }
.bfoot a:not(.brand) { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }

/* wide screens: keep the phone column centred */
@media (min-width: 700px) {
  .step > *, .bhero-lead, .lift { max-width: 560px; margin-left: auto; margin-right: auto; }
  .lift { margin-top: -40px; }
  .bhero .hero-copy { max-width: 600px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bhero video { transform: none; }
  .hour, .slot.on { animation: none; opacity: 1; transform: none; }
}

.step .card:active { transform: none; }

/* ---- success pages: a 360° ring draws itself, a tick lands inside, two dots keep orbiting ---- */
.done { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 16px calc(40px + env(safe-area-inset-bottom, 0)); color: var(--lilac); background: radial-gradient(120% 70% at 50% 18%, #3a1d4b 0%, var(--night) 62%); overflow: hidden; position: relative; }
.done-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: blur(2px) saturate(.8); }
.done > *:not(.done-bg) { position: relative; }
.orbit { position: relative; width: 148px; height: 148px; margin: 0 0 30px; }
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit .track-ring { fill: none; stroke: rgba(227,217,239,.16); stroke-width: 6; }
.orbit .ring { fill: none; stroke: var(--peach); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 402; stroke-dashoffset: 402; transform: rotate(-90deg); transform-origin: 74px 74px; animation: draw 1.4s var(--ease) .2s forwards; }
.orbit .tick { fill: none; stroke: var(--cream); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .6s var(--ease) 1.25s forwards; }
.orbit .sat { position: absolute; inset: -14px; animation: spin 9s linear 1.4s infinite; opacity: 0; animation-fill-mode: both; }
.orbit .sat i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--peach); top: 0; left: 50%; margin-left: -6px; box-shadow: 0 0 16px 2px rgba(255,170,118,.7); }
.orbit .sat i + i { top: auto; bottom: 0; width: 8px; height: 8px; margin-left: -4px; background: var(--lilac); box-shadow: 0 0 12px 1px rgba(227,217,239,.6); }
.orbit .deg-pill { position: absolute; right: -54px; top: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--peach); font-variant-numeric: tabular-nums; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { from { transform: rotate(0); opacity: 1; } to { transform: rotate(360deg); opacity: 1; } }
.done .display { color: var(--cream); font-size: clamp(36px, 10.6vw, 50px); line-height: .98; }
.done-lead { margin: 18px 0 0; font-size: 17px; line-height: 1.55; max-width: 34ch; }
.js .done .rise { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s var(--ease); }
.js .done.in .rise { opacity: 1; transform: none; }
.js .done.in .rise:nth-of-type(2) { transition-delay: .15s; }
.done .slot { margin: 22px 0 0; align-self: flex-start; }
.done-ctas { display: grid; gap: 10px; margin-top: 30px; }
.done-ctas .btn { width: 100%; }
.follow { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-light); }
.follow p { margin: 0 0 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); }
.follow div { display: flex; flex-wrap: wrap; gap: 8px; }
.follow a { padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line-light); color: var(--cream); font-size: 14px; text-decoration: none; }
.js .done .orbit, .js .done .done-ctas, .js .done .follow, .js .done .slot { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s var(--ease); }
.js .done.in .orbit { opacity: 1; transform: none; }
.js .done.in .done-ctas { opacity: 1; transform: none; transition-delay: 1.5s; }
.js .done.in .follow { opacity: 1; transform: none; transition-delay: 1.7s; }
.js .done.in .slot.on { opacity: 1; transform: none; transition-delay: 1.3s; animation: none; }
@media (min-width: 700px) { .done > *:not(.done-bg) { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; } }
@media (prefers-reduced-motion: reduce) {
  .orbit .ring, .orbit .tick { animation: none; stroke-dashoffset: 0; }
  .orbit .sat { animation: none; opacity: 1; }
  .js .done .rise, .js .done .orbit, .js .done .done-ctas, .js .done .follow, .js .done .slot { opacity: 1; transform: none; transition: none; }
}
.follow div { display: grid; grid-template-columns: 1fr 1fr; }
.follow a { text-align: center; }
.done .slot.on { animation: none; }

/* ---- standard-video examples page ---- */
.std { padding: 92px 16px 48px; color: var(--lilac); }
.std .std-meta { color: var(--peach); border-color: var(--peach); margin-bottom: 14px; }
.std .display { color: var(--cream); font-size: clamp(40px, 12vw, 56px); }
.std-lead { margin: 16px 0 26px; font-size: 17px; line-height: 1.55; }
.std-film { margin: 0 0 30px; }
.std-frame { border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 22px 44px -24px rgba(0,0,0,.8); }
.std-film video { display: block; width: 100%; background: #000; }
.std-film.wide video { aspect-ratio: 16 / 9; }
.std-film.tall .std-frame { width: min(100%, 360px); margin: 0 auto; }
.std-film.tall video { aspect-ratio: 9 / 16; max-height: 82svh; }
.std-film figcaption { display: grid; gap: 2px; margin-top: 10px; font-size: 14px; }
.std-film.tall figcaption { text-align: center; }
.std-film figcaption strong { color: var(--cream); font-family: var(--f-display); font-size: 19px; }
.std-ctas { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 700px) { .std > * { max-width: 760px; margin-left: auto; margin-right: auto; } }
.bfoot .cookie-settings-link { justify-self: start; color: var(--lilac); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.done-cookies { margin-top: 18px; color: var(--lilac); opacity: .7; font-size: 13px; align-self: flex-start; }

/* wide screens (production serves this page to every device): copy left, the vertical film right, form centred below */
@media (min-width: 900px) and (max-width: 1023px) {
  .sample .bhero { display: grid; grid-template-columns: minmax(0, 1fr) min(400px, 34vw); align-items: center; gap: 56px; min-height: 0; max-width: 1120px; margin: 0 auto; padding: 120px 40px 96px; background-image: none !important; background: transparent; overflow: visible; }
  .sample main { background: var(--night); }
  .sample .bhero video { position: static; grid-column: 2; grid-row: 1; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 24px; transform: none; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
  .sample .bhero .hero-shade { display: none; }
  .sample .bhero .hero-copy { grid-column: 1; grid-row: 1; padding: 0; max-width: none; margin: 0; opacity: 1; transform: none; }
  .sample .bhero .display { font-size: clamp(56px, 5.6vw, 84px); }
  .sample .bhero-lead { font-size: 19px; max-width: 34ch; }
  .sample .step.c-lilac { padding-bottom: 72px; }
  .sample .lift { margin-top: -48px; }
}

/* film success page: the visitor's own address in the headline */
.done .display.to-email .ln:first-child { white-space: pre-line; }
.done .display.to-email .ln.accent { font-size: .62em; line-height: 1.15; overflow-wrap: break-word; margin-top: .25em; }
