/* ==========================================================================
   Lapland Transfers — booking wizard
   Builds on the tokens and form primitives in site.css.
   ========================================================================== */
.bk { position: relative; isolation: isolate; padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) 0 var(--section); min-height: 100svh; }
.bk__glow { position: absolute; inset: 0 0 auto 0; height: 80vh; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 85% 0%, rgba(24, 199, 180, .13), transparent 70%), radial-gradient(40% 50% at 0% 30%, rgba(158, 196, 224, .08), transparent 70%); }
.bk__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.bk__title { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.bk__lede { color: var(--frost); max-width: 52ch; }

.bk__layout { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1000px) { .bk__layout { grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(3rem, 6vw, 6rem); } .bk__layout.is-complete { grid-template-columns: minmax(0, 52rem); } }

/* Progress ------------------------------------------------------------------ */
.bk__progress { --progress: 0; position: relative; display: flex; justify-content: space-between; gap: .5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); padding-top: 1.1rem; }
.bk__progress::before, .bk__progress::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--line-strong); }
.bk__progress::after { background: var(--aurora); transform: scaleX(var(--progress)); transform-origin: left; transition: transform .9s var(--ease); box-shadow: 0 0 12px rgba(24, 199, 180, .6); }
.bk__prog { flex: 1; min-width: 0; }
.bk__dot { display: grid; gap: .2rem; text-align: left; color: var(--mist); transition: color var(--t-med); width: 100%; }
.bk__dot-n { font-size: .68rem; letter-spacing: .2em; font-weight: 700; }
.bk__dot-l { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk__prog.is-done .bk__dot { color: var(--frost); }
.bk__prog.is-done .bk__dot-n { color: var(--aurora); }
.bk__prog.is-current .bk__dot { color: var(--snow); }
button.bk__dot:hover { color: var(--aurora); }
@media (max-width: 699px) { .bk__dot-l { display: none; } .bk__prog.is-current .bk__dot-l { display: block; position: absolute; left: 0; top: 2.6rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--aurora); } .bk__progress { margin-bottom: 4.25rem; } }

/* Steps ---------------------------------------------------------------------- */
.bk__step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1.5rem; }
.bk__step.is-active { animation: bk-in .8s var(--ease) both; }
@keyframes bk-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.bk__legend { padding: 0; display: grid; gap: .9rem; margin-bottom: 1rem; }
.bk__kicker { font-size: var(--fs-eyebrow); letter-spacing: .22em; text-transform: uppercase; color: var(--aurora); font-weight: 700; }
.bk__q { font-size: clamp(2rem, 4vw, 3.4rem); display: block; }
.bk__q:focus { outline: none; }
.bk__when { margin-top: 1rem; }
.bk__fine { font-size: .9rem; color: var(--fg-mute); max-width: 62ch; }
.bk__fine strong { color: var(--frost); font-weight: 600; }

.bk__actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.bk__actions [data-next] { margin-left: auto; }
.bk__mini { display: none; font-family: var(--serif); font-size: 1.35rem; }
@media (max-width: 999px) {
    .bk__actions { position: sticky; bottom: 0; z-index: 20; margin-inline: calc(var(--gutter) * -1); padding: .85rem var(--gutter) max(.85rem, env(safe-area-inset-bottom)); background: rgba(6, 20, 58, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
    .bk__mini { display: block; }
    .bk__back .btn__label { font-size: .8rem; }
}
@media (max-width: 479px) { .bk__mini { font-size: 1.05rem; } .bk__actions .btn--aurora { padding-inline: 1.15rem; } }

/* Choice cards ---------------------------------------------------------------- */
.choices { display: grid; gap: .75rem; }
.choices--row { grid-template-columns: 1fr; }
@media (min-width: 700px) { .choices--lg { grid-template-columns: 1fr 1fr; gap: 1.25rem; } .choices--row { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; transition: border-color var(--t-med), background var(--t-med), opacity var(--t-med); }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice:hover { border-color: color-mix(in srgb, var(--aurora) 60%, transparent); }
.choice:has(input:checked) { border-color: var(--aurora); background: rgba(24, 199, 180, .07); }
.choice:has(input:focus-visible) { outline: 2px solid var(--aurora); outline-offset: 3px; }
.choice.is-disabled { opacity: .4; cursor: not-allowed; }
.choice.is-disabled input { cursor: not-allowed; }
.choice__body { display: grid; gap: .2rem; min-width: 0; }
.choice__title { font-weight: 700; }
.choice__title.display { font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.choice__text { color: var(--fg-mute); font-size: .88rem; line-height: 1.5; }
.choice__kicker { font-size: .7rem; letter-spacing: .2em; color: var(--aurora); font-weight: 700; }
.choice__price { font-size: 1.7rem; white-space: nowrap; }
.choice__check { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background var(--t-med), border-color var(--t-med); flex: none; }
.choice__check::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-950); transform: scale(0); transition: transform var(--t-med) var(--ease); }
.choice:has(input:checked) .choice__check { background: var(--aurora); border-color: var(--aurora); }
.choice:has(input:checked) .choice__check::after { transform: scale(1); }
.choice--media { grid-template-columns: 1fr; padding: 0; overflow: hidden; align-items: stretch; }
.choice--media .choice__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-800); }
.choice--media .choice__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.choice--media:hover .choice__img img, .choice--media:has(input:checked) .choice__img img { transform: scale(1.05); }
.choice--media .choice__body { padding: 1.4rem 1.5rem 1.6rem; gap: .5rem; }
.choice--media .choice__check { position: absolute; top: 1rem; right: 1rem; background: rgba(6, 20, 58, .5); backdrop-filter: blur(6px); }
.choice--pill { grid-template-columns: 1fr; padding: .95rem 1.15rem; font-weight: 600; font-size: .92rem; }
@media (max-width: 699px) { .choice--media { grid-template-columns: 110px 1fr; } .choice--media .choice__img { aspect-ratio: auto; height: 100%; } .choice--media .choice__text { display: none; } }

/* Counters --------------------------------------------------------------------- */
.counters { display: grid; border-top: 1px solid var(--line); }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.counter[hidden] { display: none; }
.counter__text { display: grid; gap: .15rem; }
.counter__label { font-weight: 700; }
.counter__note { color: var(--fg-mute); font-size: .85rem; }
.counter__ctrl { display: flex; align-items: center; gap: .5rem; }
.counter__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 1.35rem; line-height: 1; display: grid; place-items: center; transition: background var(--t-med), color var(--t-med), border-color var(--t-med), opacity var(--t-fast); }
.counter__btn:hover:not(:disabled) { background: var(--aurora); color: var(--ink-950); border-color: var(--aurora); }
.counter__btn:disabled { opacity: .3; cursor: not-allowed; }
.counter__value { min-width: 3.2rem; text-align: center; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }

/* Calendar ---------------------------------------------------------------------- */
.cal { max-width: 30rem; border: 1px solid var(--line-strong); border-radius: calc(var(--r) * 2); padding: clamp(1rem, 3vw, 1.75rem); background: linear-gradient(160deg, rgba(24, 199, 180, .05), transparent 50%), var(--ink-900); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.cal__label { font-size: 1.7rem; }
.cal__nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background var(--t-med), color var(--t-med), border-color var(--t-med), opacity var(--t-fast); }
.cal__nav:hover:not(:disabled) { background: var(--snow); color: var(--ink-950); border-color: var(--snow); }
.cal__nav:disabled { opacity: .25; cursor: not-allowed; }
.cal__dow, .cal__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__dow { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); font-weight: 700; text-align: center; padding-bottom: .6rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.cal__grid { display: grid; gap: 2px; }
.cal__row > span { display: grid; }
.cal__day { aspect-ratio: 1; min-height: 40px; border-radius: 50%; font-size: .98rem; font-weight: 500; font-variant-numeric: tabular-nums; position: relative; transition: background var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease); }
.cal__day:hover:not(:disabled) { background: rgba(13, 33, 84, .1); }
.cal__day:disabled { color: var(--mist); opacity: .32; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(13, 33, 84, .25); }
.cal__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--aurora); }
.cal__day.is-selected, .cal__day.is-selected:hover:not(:disabled) { background: var(--aurora); color: var(--ink-950); font-weight: 700; box-shadow: 0 0 0 5px rgba(24, 199, 180, .16), 0 0 28px rgba(24, 199, 180, .35); }
.cal__day.is-selected::after { background: var(--ink-950); }
.cal__chosen { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--mist); }
.cal__chosen.is-set { color: var(--snow); font-weight: 600; }

/* Review & summary ---------------------------------------------------------------- */
.review, .summary__list { display: grid; border-top: 1px solid var(--line-strong); }
.review > div { display: grid; grid-template-columns: minmax(7rem, 1fr) 2.2fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.review dt, .summary__list dt { font-size: var(--fs-eyebrow); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); font-weight: 700; }
.review dd { overflow-wrap: anywhere; white-space: pre-line; }
.review__edit { font-size: .82rem; font-weight: 600; color: var(--mist); border-bottom: 1px solid var(--line-strong); transition: color var(--t-fast), border-color var(--t-fast); }
.review__edit:hover { color: var(--aurora); border-color: var(--aurora); }
@media (max-width: 599px) { .review > div { grid-template-columns: 1fr auto; } .review dt { grid-column: 1 / -1; } }
.review__total { padding: 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: rgba(24, 199, 180, .05); }
@media (min-width: 1000px) { .review__total { display: none; } }

.bk__aside { position: sticky; top: calc(var(--nav-h) + 1rem); display: none; }
@media (min-width: 1000px) { .bk__aside { display: block; } }
.summary { border: 1px solid var(--line-strong); border-radius: calc(var(--r) * 2); padding: 1.75rem; display: grid; gap: 1.25rem; background: linear-gradient(200deg, rgba(24, 199, 180, .08), transparent 45%), var(--ink-900); }
.summary__list > div { display: grid; gap: .2rem; padding: .85rem 0; border-bottom: 1px solid var(--line); animation: bk-in .6s var(--ease) both; }
.summary__list dd { font-size: .95rem; overflow-wrap: anywhere; }
.summary__empty { padding: 1rem 0; color: var(--mist); font-size: .95rem; }
.summary__note { font-size: .82rem; color: var(--mist); }
.total__line { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--frost); padding-bottom: .5rem; }
.total__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--mist); }
.total__sum strong { font-size: 2.6rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--snow); line-height: 1; }
.total__note { font-size: .82rem; color: var(--mist); margin-top: .5rem; }

/* Success ---------------------------------------------------------------------------- */
.bk__success { display: grid; gap: 1.5rem; justify-items: start; animation: bk-in 1s var(--ease) both; }
.bk__success:focus { outline: none; }
.bk__success .review { width: 100%; }
@media (min-width: 600px) { .bk__success .review > div { grid-template-columns: minmax(7rem, 1fr) 3fr; } }
@media (max-width: 599px) { .bk__success .review > div { grid-template-columns: 1fr; gap: .3rem; } }
.bk__tick { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-950); background: var(--aurora); box-shadow: 0 0 0 10px rgba(24, 199, 180, .12), 0 0 60px rgba(24, 199, 180, .4); }
.bk__tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .9s var(--ease) .35s forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.bk__ref { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); font-weight: 700; }
.bk__ref strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .04em; color: var(--aurora); margin-top: .35rem; }

/* Distance-based transfer inside the wizard ------------------------------------------ */
.bk__fare { display: grid; gap: 1rem; }
.bk__linkbtn { font: inherit; color: var(--frost); border-bottom: 1px solid var(--line-strong); transition: color var(--t-fast), border-color var(--t-fast); }
.bk__linkbtn:hover { color: var(--aurora); border-color: var(--aurora); }

/* Handoff additions ------------------------------------------------------------------- */
/* Plain HTML form: the baseline when booking.js is blocked, slow or fails (see book.php) */
.bk__fallback { display: grid; gap: 2rem; max-width: 56rem; }
.js .bk__fallback { display: none; }
.js.bk-plain .bk__fallback, .bk__fallback.is-posted { display: grid; }
.bk__plain-set { border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; margin: 0; min-width: 0; }
.bk__plain-set legend { padding: 0 .6rem; }

.bk__alt { max-width: 30rem; margin-top: .5rem; }
.bk__rules { display: grid; gap: .7rem; padding: 1.35rem 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: rgba(24, 199, 180, .04); font-size: .9rem; color: var(--fg-soft); }
.bk__rules strong { color: var(--snow); font-weight: 600; }
.bk__rules a { border-bottom: 1px solid var(--line-strong); margin-left: .25rem; }
.bk__rules a:hover { border-color: var(--aurora); color: var(--aurora); }
.bk__help { margin-top: 1.25rem; font-size: .88rem; color: var(--mist); }
.bk__help a { color: var(--frost); border-bottom: 1px solid var(--line-strong); transition: color var(--t-fast), border-color var(--t-fast); }
.bk__help a:hover { color: var(--aurora); border-color: var(--aurora); }
.bk__trust { display: grid; gap: .7rem; margin-top: 1.25rem; padding: 0 .25rem; font-size: .84rem; color: var(--mist); }
.bk__trust li { position: relative; padding-left: 1.5rem; }
.bk__trust li::before { content: ""; position: absolute; left: .15rem; top: .3rem; width: 5px; height: 10px; border: solid var(--aurora); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.cf-turnstile { min-height: 65px; }

/* What happens next */
.next { width: 100%; display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: rgba(24, 199, 180, .04); }
.next__h { font-size: var(--fs-eyebrow); letter-spacing: .2em; text-transform: uppercase; color: var(--aurora); font-weight: 700; }
.next__list { display: grid; gap: 0; counter-reset: n; }
.next__list li { counter-increment: n; position: relative; display: grid; gap: .1rem; padding: .85rem 0 .85rem 2.75rem; border-top: 1px solid var(--line); }
.next__list li::before { content: "0" counter(n); position: absolute; left: 0; top: 1rem; font-size: .72rem; letter-spacing: .2em; color: var(--aurora); font-weight: 700; }
.next__list span { color: var(--fg-soft); font-size: .95rem; }
.next__note { font-size: .88rem; color: var(--mist); }
.next__note a { color: var(--frost); border-bottom: 1px solid var(--line-strong); }
.next__note a:hover { color: var(--aurora); border-color: var(--aurora); }

/* ---- Progress: the current step stands out (numbered circles, gradient current, bold label) ---- */
.bk__progress { padding-top: 0; gap: .35rem; }
.bk__progress::before, .bk__progress::after { top: 15px; left: 15px; width: calc(100% - 30px); height: 2px; z-index: 0; }
.bk__progress::after { background: var(--grad); box-shadow: none; }
.bk__prog { position: relative; z-index: 1; }
.bk__dot { gap: .55rem; }
.bk__dot-n {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    font-size: .74rem; letter-spacing: 0; font-weight: 800; color: var(--mist);
    background: var(--bg); border: 2px solid var(--line-strong);
    transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.bk__prog.is-done .bk__dot-n { background: var(--snow); border-color: var(--snow); color: #fff; }
.bk__prog.is-current .bk__dot-n {
    background: var(--grad); border-color: transparent; color: #fff; transform: scale(1.18);
    box-shadow: 0 0 0 6px rgba(47, 107, 255, .16), 0 8px 18px -6px rgba(47, 107, 255, .6);
    animation: step-pulse 2.4s ease-in-out infinite;
}
.bk__prog.is-current .bk__dot-l { color: var(--snow); font-weight: 800; }
.bk__prog.is-done .bk__dot-l { color: var(--frost); }
@keyframes step-pulse { 50% { box-shadow: 0 0 0 10px rgba(47, 107, 255, .08), 0 8px 18px -6px rgba(47, 107, 255, .6); } }
@media (prefers-reduced-motion: reduce) { .bk__prog.is-current .bk__dot-n { animation: none; } }
@media (max-width: 699px) {
    .bk__prog.is-current .bk__dot-l { top: 2.9rem; font-weight: 800; color: var(--aurora); }
    .bk__dot-n { width: 28px; height: 28px; }
    .bk__progress::before, .bk__progress::after { top: 13px; left: 13px; width: calc(100% - 26px); }
}
/* "Step 2 of 6" as a badge above the question */
.bk__kicker { justify-self: start; padding: .4rem .8rem; border-radius: 999px; background: rgba(36, 71, 201, .09); color: var(--aurora); }

/* ---- Return leg (wizard, date & time step) ---- */
.bk__return { margin-top: 1.75rem; padding: 1.25rem; border-radius: 14px; border: 1px dashed rgba(36, 71, 201, .35); background: rgba(36, 71, 201, .04); }
.bk__return-h { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; font-weight: 700; color: var(--snow); }
.bk__return-tag { padding: .25rem .65rem; border-radius: 999px; background: var(--grad); color: #fff; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
/* Phones: the sticky action bar is light, so Back and the running total stay legible. */
@media (max-width: 899px) {
    .bk__actions { background: rgba(255, 255, 255, .97) !important; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(13, 33, 84, .35); }
    .bk__mini { color: var(--snow); font-weight: 700; }
}
