/* =====================================================================
   PRENOTA — modulo di prenotazione (pages/prenota.html)

   Due colonne: a sinistra il pannello con la linea di avanzamento e il
   riepilogo che si compila man mano, a destra il modulo. Su mobile la
   linea diventa orizzontale e il riepilogo un cassetto in fondo.

   Le classi storiche (wizard-*, service-card, toggle-pill, checkbox-pill,
   radio-line, quote-estimate-*, slot) restano gli agganci di booking.js e
   dei test: qui ricevono l'aspetto, non vanno rinominate.

   Movimento: solo transform e opacity (più l'altezza del riquadro, misurata
   da booking.js), un solo easing, tutto spento con prefers-reduced-motion.
   Le animazioni d'entrata usano fill "backwards", mai "both": una
   trasformazione che resta applicata crea un contesto di sovrapposizione e
   la tendina degli indirizzi finirebbe sotto il blocco successivo.
   ===================================================================== */

body.bk-page {
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(132, 104, 236, 0.1), transparent 62%),
    #ffffff;
}

.bk {
  --bk-ease: cubic-bezier(.22, .9, .24, 1);
  --bk-spring: cubic-bezier(.34, 1.4, .64, 1);
  --bk-line: rgba(28, 26, 46, 0.1);
  --bk-line-strong: rgba(28, 26, 46, 0.18);
  --bk-soft: #f8f6ff;
  --bk-progress: 0;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) 1.5rem clamp(64px, 7vw, 110px);
  color: var(--c-ink);
}

/* Il form storico ha regole globali (label maiuscole, input bordati): qui si azzera */
.bk label {
  display: block; margin: 0; font-size: inherit; font-weight: inherit;
  letter-spacing: normal; text-transform: none; color: inherit;
}
.bk h2, .bk h4, .bk h5 { text-transform: none; }
.bk [hidden] { display: none !important; }

@keyframes bk-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bk-pop { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes bk-ping { from { transform: scale(1); opacity: .55; } to { transform: scale(1.75); opacity: 0; } }
@keyframes bk-tick { from { opacity: .15; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bk-spin { to { transform: rotate(360deg); } }
@keyframes bk-draw { to { stroke-dashoffset: 0; } }
@keyframes bk-bar { from { transform: scaleY(.25); } to { transform: none; } }
@keyframes bk-shake {
  0% { opacity: 0; transform: translateX(0); }
  25% { opacity: 1; transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
  100% { transform: none; }
}
@keyframes bk-flash {
  from { box-shadow: 0 0 0 4px rgba(107, 77, 230, 0.32); background-color: rgba(107, 77, 230, 0.07); }
  to { box-shadow: 0 0 0 0 rgba(107, 77, 230, 0); background-color: transparent; }
}

/* ── Intestazione ──────────────────────────────────────────────────── */
.bk-intro { max-width: 780px; margin-bottom: clamp(26px, 3.4vw, 46px); }
.bk-intro > * { animation: bk-rise 700ms var(--bk-ease) backwards; }
.bk-intro > :nth-child(2) { animation-delay: 70ms; }
.bk-intro > :nth-child(3) { animation-delay: 140ms; }
.bk-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-accent-700);
}
.bk-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--c-accent); }
.bk-title {
  margin: 14px 0 0; font-family: var(--font-display);
  font-size: clamp(32px, 4.3vw, 54px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
  color: var(--c-ink); text-transform: none;
}
.bk-accent {
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.bk-sub { margin: 16px 0 0; max-width: 58ch; font-size: 16.5px; line-height: 1.6; color: var(--c-slate-600); }

/* ── Impianto a due colonne ────────────────────────────────────────── */
/* Solo dissolvenza, niente transform: un antenato trasformato ancora a sé i
   figli position:fixed, e per tutta l'animazione il cassetto del riepilogo
   (mobile) resterebbe in fondo al modulo, sopra il pulsante "Continua". */
@keyframes bk-fade { from { opacity: 0; } to { opacity: 1; } }
.bk-shell {
  display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 36px); align-items: start;
  animation: bk-fade 700ms var(--bk-ease) 160ms backwards;
}
.bk-panel { animation: bk-rise 760ms var(--bk-ease) 200ms backwards; }

/* ── Pannello laterale ─────────────────────────────────────────────── */
.bk-rail { position: sticky; top: 96px; }
.bk-rail-card {
  padding: 20px 18px; border: 1px solid var(--bk-line); border-radius: 24px;
  background: #fff; box-shadow: var(--shadow-md);
}
.bk-rail-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 2px 6px 16px; margin-bottom: 14px; border-bottom: 1px solid var(--bk-line);
}
.bk-rail-count { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--c-accent-700); font-variant-numeric: tabular-nums; }
.bk-rail-total { color: var(--c-slate-400); }
.bk-rail-current { font-size: 15px; font-weight: 800; color: var(--c-ink); }

/* Linea di avanzamento: la traccia va dal centro del primo pallino al centro
   dell'ultimo, e le righe hanno altezza fissa perché il riempimento
   (scaleY = passo-1 / 4) arrivi esattamente sul pallino attivo. */
.bk-progress { position: relative; display: flex; flex-direction: column; }
.bk-progress-track {
  position: absolute; left: 22px; top: 22px; bottom: 30px; width: 2px; margin-left: -1px;
  border-radius: 2px; background: var(--bk-line); overflow: hidden;
}
.bk-progress-fill {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #8468ec, var(--c-accent) 50%, var(--c-accent-700));
  transform-origin: 50% 0; transform: scaleY(var(--bk-progress));
  transition: transform 640ms var(--bk-ease);
}
.wizard-progress-step {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start;
  height: 52px; border-radius: 14px; color: var(--c-slate-400); cursor: default; outline: none;
  -webkit-tap-highlight-color: transparent;
}
.wizard-progress-num { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; }
.wizard-progress-num::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 2px solid var(--bk-line-strong); background: #fff;
  transition: background 320ms var(--bk-ease), border-color 320ms var(--bk-ease), transform 320ms var(--bk-spring), box-shadow 320ms var(--bk-ease);
}
.bk-dot-no {
  position: relative; font-size: 11px; font-weight: 800; color: var(--c-slate-400);
  font-variant-numeric: tabular-nums; transition: opacity 200ms ease, transform 320ms var(--bk-ease);
}
.bk-dot-check {
  position: absolute; width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3.2;
  stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24;
  transition: stroke-dashoffset 380ms var(--bk-ease) 120ms;
}
.bk-step-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 12px 6px 0 8px; }
.wizard-progress-label { font-size: 14px; font-weight: 700; color: var(--c-slate-600); transition: color 250ms ease; }
.bk-step-status {
  min-height: 1.25em; font-size: 12px; line-height: 1.25; color: var(--c-slate-400);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wizard-progress-step.active .wizard-progress-num::before {
  border-color: var(--c-accent); box-shadow: 0 0 0 5px rgba(107, 77, 230, 0.13);
}
.wizard-progress-step.active .wizard-progress-num::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid var(--c-accent);
  opacity: 0; animation: bk-ping 950ms var(--bk-ease) 1;
}
.wizard-progress-step.active .bk-dot-no { color: var(--c-accent-700); }
.wizard-progress-step.active .wizard-progress-label { color: var(--c-ink); }
.wizard-progress-step.done { cursor: pointer; }
.wizard-progress-step.done .wizard-progress-num::before { border-color: var(--c-accent); background: var(--c-accent); }
.wizard-progress-step.done .bk-dot-no { opacity: 0; transform: scale(.5); }
.wizard-progress-step.done .bk-dot-check { stroke-dashoffset: 0; }
.wizard-progress-step.done:hover .wizard-progress-num::before { transform: scale(1.1); }
.wizard-progress-step.done:hover .wizard-progress-label { color: var(--c-accent-700); }
.wizard-progress-step:focus-visible { box-shadow: 0 0 0 2px var(--c-accent); }

/* Richiesta inviata: linea piena, tutti i passi spuntati */
.bk.is-done .bk-progress-fill { transform: scaleY(1); }
.bk.is-done .wizard-progress-num::before { border-color: var(--c-accent); background: var(--c-accent); box-shadow: none; }
.bk.is-done .bk-dot-no { opacity: 0; }
.bk.is-done .bk-dot-check { stroke-dashoffset: 0; }

/* Riepilogo live */
.bk-live { margin-top: 16px; padding: 16px 6px 2px; border-top: 1px solid var(--bk-line); }
.bk-drawer-toggle { display: none; }
.bk-live-head {
  margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-slate-400);
}
.bk-live-empty { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--c-slate-400); }
.bk-live-list { display: grid; margin: 0; }
.bk-live-row {
  padding: 8px 0; border-top: 1px solid transparent;
  opacity: 0; transform: translateY(6px);
  transition: opacity 320ms var(--bk-ease), transform 420ms var(--bk-ease);
}
.bk-live-row + .bk-live-row { border-top-color: var(--bk-line); }
.bk-live-row.is-in { opacity: 1; transform: none; }
.bk-live-row dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-slate-400); }
.bk-live-row dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--c-ink); overflow-wrap: anywhere; }
.bk-live-price {
  display: flex; flex-direction: column; gap: 2px; margin: 12px 0 6px; padding: 14px 16px;
  border: 1px solid rgba(107, 77, 230, 0.18); border-radius: 16px; background: var(--bk-soft);
  animation: bk-rise 420ms var(--bk-ease) backwards;
}
.bk-live-price-label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-700); }
.bk-live-price-amount {
  font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.bk-live-price-amount.is-tick { animation: bk-tick 440ms var(--bk-ease); }

/* ── Pannello del modulo ───────────────────────────────────────────── */
/* max-width e margin: la vecchia .booking-wrapper (style.css, condivisa col
   form contatti) la limitava a 780px centrata: con i margini automatici
   l'elemento non si stira più nella colonna e cambiava larghezza a ogni passo. */
.bk-panel {
  min-width: 0; max-width: none; margin: 0; padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--bk-line); border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg);
}

/* Il riquadro ha overflow:hidden (serve allo scorrimento fra i passi): un
   piccolo margine interno compensato tiene visibili anelli di focus e ombre. */
.wizard-viewport {
  position: relative; overflow: hidden; box-sizing: content-box;
  margin: -8px -14px; padding: 8px 14px;
  transition: height 440ms var(--bk-ease);
}
.wizard-track { position: relative; }
.wizard-step {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(22px);
  transition: opacity 260ms var(--bk-ease), transform 460ms var(--bk-ease), visibility 0s linear 460ms;
}
.wizard-track[data-dir="back"] .wizard-step { transform: translateX(-22px); }
.wizard-track .wizard-step.is-active {
  position: relative; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity 360ms var(--bk-ease) 90ms, transform 540ms var(--bk-ease) 60ms, visibility 0s;
}
.wizard-track .wizard-step.is-leaving { transform: translateX(-22px); }
.wizard-track[data-dir="back"] .wizard-step.is-leaving { transform: translateX(22px); }

/* Il contenuto del passo entra a scalare */
.wizard-step.is-active > * { animation: bk-rise 520ms var(--bk-ease) backwards; }
.wizard-step.is-active > :nth-child(2) { animation-delay: 70ms; }
.wizard-step.is-active > :nth-child(3) { animation-delay: 120ms; }
.wizard-step.is-active > :nth-child(4) { animation-delay: 170ms; }
.wizard-step.is-active > :nth-child(n+5) { animation-delay: 220ms; }
.wizard-step > * + * { margin-top: 18px; }
.wizard-step > .bk-step-head + * { margin-top: 26px; }

.bk-step-head { margin: 0; }
.bk-step-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-700);
}
.bk-step-no {
  display: inline-grid; place-items: center; min-width: 32px; height: 22px; padding: 0 8px;
  border-radius: 999px; background: var(--c-tint); letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.bk-step-head h2 {
  margin: 12px 0 6px; font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: var(--c-ink);
}
.bk-step-head p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c-slate-600); }

/* ── Campi ─────────────────────────────────────────────────────────── */
.bk-grid { display: grid; gap: 16px 18px; }
.bk-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-span-2 { grid-column: 1 / -1; }
.bk-field { position: relative; min-width: 0; }

.bk-field > label, .bk-label {
  display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .01em;
  color: var(--c-slate-600); transition: color 200ms ease;
}
.bk-field:focus-within > label { color: var(--c-accent-700); }
.bk .form-section-label {
  display: block; margin: 0 0 12px; font-size: 14.5px; font-weight: 700; letter-spacing: 0;
  text-transform: none; color: var(--c-ink);
}

.bk-ico {
  width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.bk-control {
  position: relative; display: flex; align-items: center; min-height: 54px;
  border: 1px solid var(--bk-line-strong); border-radius: 14px; background: #fff;
  transition: border-color 200ms var(--bk-ease), box-shadow 260ms var(--bk-ease), background-color 200ms ease;
}
.bk-control:hover { border-color: rgba(107, 77, 230, 0.45); }
.bk-control:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(107, 77, 230, 0.12); }
.bk-control > .bk-ico {
  margin-left: 16px; color: var(--c-slate-400);
  transition: color 200ms ease, transform 320ms var(--bk-spring);
}
.bk-control:focus-within > .bk-ico { color: var(--c-accent); transform: scale(1.08); }
.bk .bk-control input,
.bk .bk-control select,
.bk .bk-control textarea {
  flex: 1 1 auto; width: 100%; min-width: 0; margin: 0; padding: 15px 16px 15px 12px;
  border: 0; border-radius: 14px; outline: 0; box-shadow: none; background: transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--c-ink);
}
.bk .bk-control input:focus,
.bk .bk-control select:focus,
.bk .bk-control textarea:focus { border: 0; outline: 0; box-shadow: none; }
.bk .bk-control input::placeholder,
.bk .bk-control textarea::placeholder { color: #a3a8b8; font-weight: 400; opacity: 1; }
.bk-control-area { align-items: flex-start; }
.bk-control-area > .bk-ico { margin-top: 17px; }
.bk .bk-control textarea { min-height: 112px; line-height: 1.5; resize: vertical; }
.bk .bk-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.bk-caret {
  width: 18px; height: 18px; flex: none; fill: none; stroke: var(--c-slate-400); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms var(--bk-ease), stroke 200ms ease;
}
.bk-select .bk-caret { position: absolute; right: 15px; pointer-events: none; }
.bk-select:focus-within .bk-caret { stroke: var(--c-accent); transform: translateY(1px); }

/* Riga di conferma sotto gli indirizzi: dice cosa ha capito il sistema */
.bk .addr-confirm { margin: 7px 2px 0; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.bk .addr-confirm:empty { display: none; }
.bk .addr-confirm.is-ok::before { content: "✓ "; font-weight: 800; }

/* Tendina dei suggerimenti */
.bk .addr-ac-list {
  margin-top: 6px; padding: 6px; border: 1px solid var(--bk-line); border-radius: 16px;
  background: #fff; box-shadow: var(--shadow-lg); animation: bk-pop 220ms var(--bk-ease) backwards;
}
.bk .addr-ac-item { padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--c-ink); }
.bk .addr-ac-item small { color: var(--c-slate-400); }
.bk .addr-ac-item.is-active,
.bk .addr-ac-item:hover { background: var(--c-tint); color: var(--c-accent-700); }
.bk .addr-ac-item.is-active small,
.bk .addr-ac-item:hover small { color: var(--c-accent-700); opacity: .75; }

/* ── Scelte a tile (servizi, taglie) ───────────────────────────────── */
/* Tre servizi (il quarto, «su misura», è stato tolto): una riga sola. */
.bk-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bk-choice {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 18px;
  border: 1px solid var(--bk-line-strong); border-radius: 18px; background: #fff;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: border-color 220ms var(--bk-ease), box-shadow 300ms var(--bk-ease), transform 300ms var(--bk-ease), background-color 220ms ease;
}
/* .bk label (display:block, per azzerare il form storico) è più specifica di
   .bk-choice: senza questo le tile non sono flex e le caselline S/L/XL non
   centrano la lettera. */
.bk .bk-choice { display: flex; }
.bk-choice input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bk-choice:hover { border-color: rgba(107, 77, 230, 0.5); transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(76, 29, 149, 0.4); }
.bk-choice:active { transform: scale(.985); }
.bk-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(107, 77, 230, 0.35); }
.bk-choice.selected {
  border-color: var(--c-accent); background: linear-gradient(180deg, #faf8ff, #ffffff);
  box-shadow: 0 0 0 1px var(--c-accent), 0 18px 36px -24px rgba(76, 29, 149, 0.5);
}
.bk-choice-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--c-tint); color: var(--c-accent-700);
  transition: background-color 260ms var(--bk-ease), color 260ms ease, transform 380ms var(--bk-spring);
}
.bk-choice-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bk-choice:hover .bk-choice-ico { transform: rotate(-5deg) scale(1.05); }
.bk-choice.selected .bk-choice-ico { background: var(--c-accent); color: #fff; }
.bk-choice-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bk-choice-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--c-ink); }
.bk-choice-desc { font-size: 13.5px; line-height: 1.45; color: var(--c-slate-600); }
.bk-choice-price { margin-top: 4px; font-size: 13px; color: var(--c-slate-600); }
.bk-choice-price:empty { display: none; }
.bk-choice-price strong { font-size: 15px; color: var(--c-accent-700); }
.bk-choice-price small { font-size: 13px; color: var(--c-slate-400); }
.bk-choice-price strong + small { margin-left: 6px; }
.bk-choice-check {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center;
  width: 24px; height: 24px; border: 1.5px solid var(--bk-line-strong); border-radius: 50%; background: #fff;
  transition: background-color 220ms ease, border-color 220ms ease, transform 400ms var(--bk-spring);
}
.bk-choice-check svg {
  width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 340ms var(--bk-ease) 80ms;
}
.bk-choice.selected .bk-choice-check { background: var(--c-accent); border-color: var(--c-accent); transform: scale(1.08); }
.bk-choice.selected .bk-choice-check svg { stroke-dashoffset: 0; }

.bk-sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bk-size { gap: 10px; padding: 18px 16px 16px; }
.bk-size .bk-choice-title { font-size: 15px; }
.bk-size .bk-choice-desc { font-size: 13px; }
/* Ore di servizio comprese nella taglia: il dato che il cliente deve vedere
   prima di scegliere, quindi in grassetto e col colore d'accento. */
.bk-size-hours { font-size: 12.5px; font-weight: 700; color: var(--c-accent); }
.bk-size-hours:empty { display: none; }
.bk .bk-size-note { margin-top: 10px; }
.bk-size-meter { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.bk-size-meter i {
  width: 8px; border-radius: 3px; background: var(--bk-line-strong); transform-origin: 50% 100%;
  transition: background-color 280ms var(--bk-ease);
}
.bk-size-meter i:nth-child(1) { height: 10px; }
.bk-size-meter i:nth-child(2) { height: 16px; }
.bk-size-meter i:nth-child(3) { height: 23px; }
.bk-size-meter i:nth-child(4) { height: 30px; }
.bk-size-meter[data-n="1"] i:nth-child(-n+1),
.bk-size-meter[data-n="2"] i:nth-child(-n+2),
.bk-size-meter[data-n="3"] i:nth-child(-n+3),
.bk-size-meter[data-n="4"] i:nth-child(-n+4) { background: #cfc3fa; }
.bk-size.selected .bk-size-meter[data-n="1"] i:nth-child(-n+1),
.bk-size.selected .bk-size-meter[data-n="2"] i:nth-child(-n+2),
.bk-size.selected .bk-size-meter[data-n="3"] i:nth-child(-n+3),
.bk-size.selected .bk-size-meter[data-n="4"] i:nth-child(-n+4) { background: var(--c-accent); }
.bk-size.selected .bk-size-meter i { animation: bk-bar 560ms var(--bk-spring) backwards; }
.bk-size.selected .bk-size-meter i:nth-child(2) { animation-delay: 50ms; }
.bk-size.selected .bk-size-meter i:nth-child(3) { animation-delay: 100ms; }
.bk-size.selected .bk-size-meter i:nth-child(4) { animation-delay: 150ms; }

/* ── Sì / No: controllo segmentato ─────────────────────────────────── */
.bk-segment {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-height: 54px; padding: 4px;
  border: 1px solid var(--bk-line-strong); border-radius: 14px; background: #f6f5fa;
}
.bk .toggle-pill {
  position: relative; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--c-slate-600);
  cursor: pointer; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color 240ms var(--bk-ease), color 200ms ease, box-shadow 260ms var(--bk-ease), transform 160ms ease;
}
.bk .toggle-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bk .toggle-pill:hover { color: var(--c-ink); }
.bk .toggle-pill:active { transform: scale(.97); }
.bk .toggle-pill.selected {
  background: #fff; color: var(--c-accent-700);
  box-shadow: 0 1px 2px rgba(28, 26, 46, 0.08), 0 8px 16px -10px rgba(76, 29, 149, 0.45);
}
.bk .toggle-pill:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--c-accent); }

/* ── Percorso: ritiro e consegna ───────────────────────────────────── */
.bk-route { display: grid; gap: 14px; }
.bk-stop {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 14px; padding: 18px 18px 18px 14px;
  border: 1px solid var(--bk-line); border-radius: 20px; background: #fcfbff;
}
.bk-stop-dot {
  justify-self: center; width: 14px; height: 14px; margin-top: 39px; border-radius: 50%;
  border: 3px solid var(--c-accent); background: #fff; box-shadow: 0 0 0 5px rgba(107, 77, 230, 0.12);
}
.bk-stop-to .bk-stop-dot { background: var(--c-accent); }
.bk-stop-body { min-width: 0; }
.bk-access-row { margin-top: 14px; }

/* ── Sezioni apribili (accesso, montaggio, servizi extra) ──────────── */
.bk .access-details {
  border: 1px solid var(--bk-line); border-radius: 18px; background: #fff;
  transition: border-color 240ms ease, box-shadow 300ms var(--bk-ease);
}
.bk .access-details[open] { border-color: rgba(107, 77, 230, 0.35); box-shadow: 0 18px 36px -28px rgba(76, 29, 149, 0.45); }
.bk .access-details > summary {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px;
  border-radius: 18px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--c-ink);
  transition: background-color 200ms ease;
}
.bk .access-details > summary::-webkit-details-marker { display: none; }
.bk .access-details > summary:hover { background: #faf9ff; }
.bk .access-details > summary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(107, 77, 230, 0.3); }
.bk .access-details > summary .bk-caret { margin-left: auto; }
.bk .access-details[open] > summary .bk-caret { transform: rotate(180deg); stroke: var(--c-accent); }
.bk-disclosure-ico {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--c-tint); color: var(--c-accent-700);
}
.bk-disclosure-ico .bk-ico { width: 18px; height: 18px; }
.bk .access-body { padding: 4px 18px 18px; }
.bk .access-details[open] > .access-body { animation: bk-rise 380ms var(--bk-ease) backwards; }
.bk .access-body > .bk-field + .bk-field { margin-top: 16px; }

.bk .access-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 4px; }
.bk .access-side + .access-side { padding-left: 28px; border-left: 1px solid var(--bk-line); }
.bk .access-side-title {
  margin: 0 0 6px; font-family: var(--font-body); font-size: 11.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-700);
}
.bk .parking-options { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; }

.bk .radio-line {
  display: flex; align-items: flex-start; gap: 12px; padding: 9px 8px; border-radius: 10px;
  font-size: 14.5px; line-height: 1.4; color: var(--c-ink); cursor: pointer; transition: background-color 180ms ease;
}
.bk .radio-line:hover { background: var(--bk-soft); }
.bk .radio-line > span { flex: 1 1 auto; min-width: 0; }
.bk .radio-line input[type="radio"] {
  appearance: none; -webkit-appearance: none; display: grid; place-content: center; flex: none;
  width: 20px; height: 20px; min-width: 0; margin: 0; padding: 0;
  border: 1.5px solid var(--bk-line-strong); border-radius: 50%; background: #fff; cursor: pointer;
  transition: border-color 200ms ease, box-shadow 220ms ease;
}
.bk .radio-line input[type="radio"]::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent);
  transform: scale(0); transition: transform 280ms var(--bk-spring);
}
.bk .radio-line input[type="radio"]:checked { border-color: var(--c-accent); }
.bk .radio-line input[type="radio"]:checked::before { transform: scale(1); }
.bk .radio-line input[type="radio"]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(107, 77, 230, 0.2); }

/* Spunte: l'input vero, disegnato. Resta toccabile direttamente (i test lo
   fanno sulle spunte del contratto e dei termini) e misura almeno 22px. */
.bk input[type="checkbox"],
.contract-overlay input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; flex: none;
  width: 22px; height: 22px; min-width: 22px; margin: 0; padding: 0;
  border: 1.5px solid rgba(28, 26, 46, 0.24); border-radius: 7px; background: #fff; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 220ms ease;
}
.bk input[type="checkbox"]::before,
.contract-overlay input[type="checkbox"]::before {
  content: ""; width: 12px; height: 12px; background: #fff;
  clip-path: polygon(14% 50%, 0 64%, 38% 100%, 100% 22%, 86% 8%, 38% 72%);
  transform: scale(0) rotate(-12deg); transition: transform 300ms cubic-bezier(.34, 1.4, .64, 1);
}
.bk input[type="checkbox"]:checked,
.contract-overlay input[type="checkbox"]:checked { border-color: var(--c-accent); background: var(--c-accent); }
.bk input[type="checkbox"]:checked::before,
.contract-overlay input[type="checkbox"]:checked::before { transform: none; }
.bk input[type="checkbox"]:focus-visible,
.contract-overlay input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(107, 77, 230, 0.22); }

.bk .checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.bk .checkbox-pill {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--bk-line); border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--c-ink);
  cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease;
}
.bk .checkbox-pill:hover { border-color: rgba(107, 77, 230, 0.45); }
.bk .checkbox-pill.selected { border-color: var(--c-accent); background: var(--bk-soft); }

.bk .legal-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--c-slate-400); }

/* Fermata intermedia */
.bk-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; margin-left: -6px;
  border: 0; border-radius: 10px; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 700; color: var(--c-accent-700);
}
.bk-link .bk-ico { width: 18px; height: 18px; stroke-width: 2.2; transition: transform 320ms var(--bk-spring); }
.bk-link:hover .bk-ico { transform: rotate(90deg); }
.bk-link:focus-visible { outline: 2px solid var(--c-accent); }
.bk-link-muted { margin-top: 6px; color: var(--c-slate-600); }
.bk .stop-block > .stop-group { margin-top: 8px; }
/* Parcheggio della fermata: terza colonna, solo a fermata aperta */
.bk .access-side-stop { display: none; }
.bk .access-duo.has-stop .access-side-stop { display: block; }
.bk .access-duo.has-stop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.bk .access-duo.has-stop .access-side + .access-side { padding-left: 20px; }

/* Pannello "Servizi extra" del MudaTaxi */
.bk .muda-extra-list { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.bk .muda-extra-list li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.45; }
.bk .muda-extra-list li::before {
  content: ""; position: absolute; left: 4px; top: .65em; width: 10px; height: 2px; border-radius: 2px; background: var(--c-slate-400);
}
.bk .muda-extra-cta-line { margin: 0 0 14px; font-size: 14px; font-weight: 700; }

/* Campi appena comparsi passando al Trasloco: un lampo per dire "sono questi" */
.bk .just-revealed { border-radius: 14px; animation: bk-flash 1.9s var(--bk-ease); }

/* Stepper quantità */
.bk .qty-stepper {
  display: inline-flex; align-items: stretch; height: 54px; overflow: hidden;
  border: 1px solid var(--bk-line-strong); border-radius: 14px; background: #fff;
  transition: border-color 200ms ease, box-shadow 260ms var(--bk-ease);
}
.bk .qty-stepper:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(107, 77, 230, 0.12); }
.bk .qty-stepper button {
  width: 50px; border: 0; background: #f6f5fa; color: var(--c-ink); cursor: pointer;
  font-family: var(--font-body); font-size: 20px; font-weight: 700; transition: background-color 180ms ease, color 180ms ease;
}
.bk .qty-stepper button:hover { background: var(--c-tint); color: var(--c-accent-700); }
.bk .qty-stepper input {
  width: 66px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none;
  text-align: center; font-family: var(--font-body); font-size: 17px; font-weight: 800; color: var(--c-ink);
  -moz-appearance: textfield;
}
.bk .qty-stepper input::-webkit-outer-spin-button,
.bk .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bk .qty-stepper input:focus { outline: 0; border: 0; box-shadow: none; }

/* Layout per servizio, pilotato dalle classi che booking.js mette sul form.
   .is-quote = preventivo automatico (MudaTaxi o Trasloco): taglie S-XL.
   .is-moving = solo Trasloco: piano, ascensore, accessi, fermata, montaggio.
   .is-mudataxi = il simmetrico: al loro posto il pannello che spiega perché. */
.booking-form:not(.is-moving) .moving-only { display: none !important; }
.booking-form:not(.is-mudataxi) .mudataxi-only { display: none !important; }
.booking-form.is-quote .details-manual { display: none !important; }
.booking-form:not(.is-quote) .details-quote { display: none !important; }
.details-quote > * + *, .details-manual > * + * { margin-top: 18px; }

/* ── Preventivo live ───────────────────────────────────────────────── */
.bk .quote-estimate {
  padding: 20px 22px; border: 1px solid rgba(107, 77, 230, 0.2); border-radius: 20px;
  background: linear-gradient(180deg, #faf8ff, #f3efff);
  animation: bk-rise 460ms var(--bk-ease) backwards;
}
.bk .quote-estimate-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-700);
}
.bk .quote-estimate-head .bk-ico { width: 17px; height: 17px; }
/* La cifra e il dettaglio voci non si mostrano più al cliente: il prezzo
   arriva per email dall'operatore. Resta il riquadro, che ora conferma il
   percorso riconosciuto e dice quando arriverà il preventivo. */
.bk .quote-estimate-note { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--c-slate-600); }
.bk .quote-km-line { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--c-slate-600); }
.bk .quote-flag-note { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: #fff7e6; color: #92400e; font-size: 13px; }

/* ── Data e orari ──────────────────────────────────────────────────── */
.bk-when { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px 26px; align-items: start; }
.bk-calendar { position: relative; }
/* Il campo resta nel flusso (la validazione del passo lo controlla) ma non si
   vede: il calendario è sempre aperto sotto di lui. */
.bk .bk-date-input {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0;
  border: 0; opacity: 0; pointer-events: none; clip-path: inset(50%);
}
.bk .flatpickr-calendar.inline {
  top: 0; width: 100%; max-width: 100%; padding: 10px 10px 8px; box-sizing: border-box;
  border: 1px solid var(--bk-line); border-radius: 20px; background: #fff; box-shadow: none;
  font-family: var(--font-body);
}
.bk .flatpickr-calendar.inline::before,
.bk .flatpickr-calendar.inline::after { display: none; }
.bk .flatpickr-innerContainer,
.bk .flatpickr-rContainer,
.bk .flatpickr-days,
.bk .dayContainer { width: 100%; min-width: 0; max-width: none; }
.bk .flatpickr-months { padding: 2px 0 6px; }
.bk .flatpickr-months .flatpickr-month { height: 42px; color: var(--c-ink); fill: var(--c-ink); }
.bk .flatpickr-current-month { padding-top: 10px; font-size: 15px; font-weight: 800; }
.bk .flatpickr-current-month .flatpickr-monthDropdown-months,
.bk .flatpickr-current-month input.cur-year { font-weight: 800; color: var(--c-ink); }
.bk .flatpickr-months .flatpickr-prev-month,
.bk .flatpickr-months .flatpickr-next-month {
  top: 6px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 12px;
  fill: var(--c-slate-600); transition: background-color 180ms ease;
}
.bk .flatpickr-months .flatpickr-prev-month { left: 4px; }
.bk .flatpickr-months .flatpickr-next-month { right: 4px; }
.bk .flatpickr-months .flatpickr-prev-month:hover,
.bk .flatpickr-months .flatpickr-next-month:hover { background: var(--c-tint); }
.bk .flatpickr-months .flatpickr-prev-month:hover svg,
.bk .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--c-accent); }
.bk span.flatpickr-weekday { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--c-slate-400); }
.bk .flatpickr-day {
  max-width: none; height: 40px; line-height: 40px; margin: 1px 0; border: 0; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--c-ink);
  transition: background-color 160ms ease, color 160ms ease, transform 240ms var(--bk-spring), box-shadow 220ms ease;
}
.bk .flatpickr-day:hover,
.bk .flatpickr-day:focus { border: 0; background: var(--c-tint); color: var(--c-accent-700); }
.bk .flatpickr-day.today { box-shadow: inset 0 0 0 1.5px rgba(107, 77, 230, 0.5); }
.bk .flatpickr-day.selected,
.bk .flatpickr-day.selected:hover,
.bk .flatpickr-day.selected:focus {
  border: 0; background: var(--c-accent); color: #fff; transform: scale(1.05);
  box-shadow: 0 8px 18px -8px rgba(107, 77, 230, 0.75);
}
.bk .flatpickr-day.flatpickr-disabled,
.bk .flatpickr-day.flatpickr-disabled:hover,
.bk .flatpickr-day.prevMonthDay,
.bk .flatpickr-day.nextMonthDay { background: transparent; color: rgba(28, 26, 46, 0.22); }
.bk .flatpickr-day.is-holiday { color: #b45309; font-weight: 700; }
.bk .flatpickr-day.is-holiday::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: #d97706;
}
.bk .flatpickr-day.is-holiday.selected { color: #fff; }
.bk .flatpickr-day.is-holiday.selected::after { background: #fff; }
/* Weekend: tariffa diversa dal festivo, colore diverso */
.bk .flatpickr-day.is-weekend { color: var(--c-accent-700); font-weight: 700; }
.bk .flatpickr-day.is-weekend::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--c-accent);
}
.bk .flatpickr-day.is-weekend.selected { color: #fff; }
.bk .flatpickr-day.is-weekend.selected::after { background: #fff; }
.bk .flatpickr-day.flatpickr-disabled.is-holiday,
.bk .flatpickr-day.flatpickr-disabled.is-weekend { color: rgba(28, 26, 46, 0.22); }
.bk .flatpickr-day.flatpickr-disabled::after { opacity: .35; }
.bk-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 6px 0; font-size: 13px; color: var(--c-slate-600); }
.bk-cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.bk-cal-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.bk-cal-legend .is-holiday::before { background: #d97706; }
.bk-cal-legend .is-weekend::before { background: var(--c-accent); }

.bk-slots { animation: bk-rise 420ms var(--bk-ease) backwards; }
.bk .slots-grid { display: flex; flex-direction: column; gap: 8px; }
.bk .slots-group-title {
  display: flex; align-items: center; gap: 9px; margin: 4px 0 2px;
  font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-slate-600);
}
.bk .slots-group-title::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; }
.bk .slots-group-title.is-morning::before { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25); }
.bk .slots-group-title.is-afternoon::before { background: transparent; box-shadow: inset -4px -2px 0 0 var(--c-accent); }
.bk .slots-grid-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bk .slot {
  display: grid; place-items: center; min-height: 44px; border: 1px solid var(--bk-line-strong); border-radius: 12px;
  background: #fff; cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--c-ink); font-variant-numeric: tabular-nums;
  animation: bk-rise 380ms var(--bk-ease) backwards; animation-delay: calc(var(--i, 0) * 22ms);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 240ms var(--bk-ease), transform 240ms var(--bk-spring);
}
.bk .slot:hover:not(.disabled) { border-color: var(--c-accent); color: var(--c-accent-700); transform: translateY(-1px); }
.bk .slot.selected,
.bk .slot.selected:hover:not(.disabled) { border-color: var(--c-accent); background: var(--c-accent); color: #fff; box-shadow: 0 10px 20px -10px rgba(107, 77, 230, 0.75); }
.bk .slot.disabled { border-color: transparent; background: #f6f5fa; color: rgba(28, 26, 46, 0.25); text-decoration: line-through; cursor: not-allowed; }
.bk .loading-slots { display: grid; place-items: center; min-height: 120px; }
.bk-spinner {
  width: 26px; height: 26px; border: 3px solid var(--c-tint); border-top-color: var(--c-accent); border-radius: 50%;
  animation: bk-spin 800ms linear infinite;
}
.bk-slots-error { margin: 0; font-size: 14px; color: #b91c1c; }

/* ── Riepilogo finale e termini ────────────────────────────────────── */
.bk .wizard-summary { padding: 20px 22px; border: 1px solid var(--bk-line); border-radius: 20px; background: #fff; }
.bk .wizard-summary:empty { display: none; }
.bk .wizard-summary h4 {
  margin: 0 0 10px; font-family: var(--font-body); font-size: 11.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-slate-400);
}
.bk .wizard-summary-dl { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); margin: 0; }
.bk .wizard-summary-dl dt,
.bk .wizard-summary-dl dd { padding: 9px 0; border-top: 1px solid var(--bk-line); font-size: 14px; }
.bk .wizard-summary-dl dt { padding-right: 18px; color: var(--c-slate-600); }
.bk .wizard-summary-dl dd { margin: 0; font-weight: 700; color: var(--c-ink); overflow-wrap: anywhere; }
.bk .wizard-summary-dl dt:first-of-type,
.bk .wizard-summary-dl dt:first-of-type + dd { border-top: 0; }

/* Al posto del totale: quando arriva il preventivo.
   Il prezzo non si mostra più al cliente durante la richiesta — lo manda
   l'operatore per email dopo averlo controllato — quindi questo riquadro
   occupa lo stesso posto d'onore in cima al riepilogo e fa la stessa
   promessa: qualcosa di preciso, con una data. */
.bk-quote-wait {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 0 0 16px; padding: 16px 18px; border-radius: 16px;
  background: var(--grad-accent); color: #fff;
}
.bk-quote-wait-ico {
  flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 12px;
  background: rgba(255,255,255,0.18);
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.bk-quote-wait strong { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.bk-quote-wait span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; opacity: .88; }

.bk .terms-accept { padding-top: 18px; border-top: 1px solid var(--bk-line); }
.bk .terms-accept-label {
  display: flex; align-items: center; gap: 12px; min-height: 44px;
  font-size: 14.5px; line-height: 1.5; color: var(--c-ink); cursor: pointer;
}
.bk .terms-accept-label input[type="checkbox"] { width: 24px; height: 24px; min-width: 24px; }
.bk .terms-accept-label a { font-weight: 700; color: var(--c-accent-700); text-decoration: underline; text-underline-offset: 3px; }
.bk .terms-sign-note { margin: 4px 0 0 36px; font-size: 13px; line-height: 1.5; color: var(--c-slate-600); }

/* ── Errori ed esito ───────────────────────────────────────────────── */
.bk .step-error {
  display: none; margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(220, 38, 38, 0.25); border-radius: 14px;
  background: #fef2f2; color: #b91c1c; font-size: 14px; font-weight: 600;
}
.bk .wizard-step .step-error.show { display: block; animation: bk-shake 440ms var(--bk-ease); }

.bk-feedback:empty { display: none; }
.bk-alert { margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 600; animation: bk-rise 360ms var(--bk-ease) backwards; }
.bk-alert.is-error { border: 1px solid rgba(220, 38, 38, 0.25); background: #fef2f2; color: #b91c1c; }
.bk-alert.is-ok { border: 1px solid rgba(22, 163, 74, 0.25); background: #f0fdf4; color: #166534; }

.bk-form.is-done .wizard-viewport,
.bk-form.is-done .wizard-actions { display: none; }
.bk-success { display: flex; flex-direction: column; align-items: center; padding: clamp(18px, 3vw, 40px) 8px; text-align: center; }
.bk-success > * { animation: bk-rise 560ms var(--bk-ease) backwards; }
.bk-success > .bk-success-mark { animation: bk-pop 560ms var(--bk-spring) backwards; }
.bk-success > :nth-child(2) { animation-delay: 420ms; }
.bk-success > :nth-child(3) { animation-delay: 500ms; }
.bk-success > :nth-child(4) { animation-delay: 580ms; }
.bk-success > :nth-child(5) { animation-delay: 660ms; }
.bk-success > :nth-child(6) { animation-delay: 740ms; }
.bk-success-mark { width: 84px; height: 84px; }
.bk-success-ring {
  fill: var(--c-tint); stroke: var(--c-accent); stroke-width: 3; stroke-dasharray: 183; stroke-dashoffset: 183;
  transform: rotate(-90deg); transform-origin: 50% 50%; animation: bk-draw 760ms var(--bk-ease) 80ms forwards;
}
.bk-success-tick {
  fill: none; stroke: var(--c-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 44; stroke-dashoffset: 44; animation: bk-draw 460ms var(--bk-ease) 640ms forwards;
}
.bk-success-title {
  margin: 22px 0 8px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px);
  font-weight: 800; letter-spacing: -0.03em; color: var(--c-ink);
}
.bk-success-body { max-width: 46ch; margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--c-slate-600); }
.bk-success-recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.bk-success-recap li {
  padding: 8px 14px; border: 1px solid var(--bk-line); border-radius: 999px; background: #f6f5fa;
  font-size: 13.5px; font-weight: 700; color: var(--c-ink);
}
.bk-success-ref {
  display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 10px 16px;
  border: 1px dashed rgba(107, 77, 230, 0.4); border-radius: 12px; font-size: 13px; color: var(--c-slate-600);
}
.bk-success-ref strong { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: var(--c-accent-700); }
.bk-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ── Pulsanti ──────────────────────────────────────────────────────── */
.bk-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--bk-line);
}
.bk-actions #wizardPrev { margin-right: auto; }
.bk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 14px; cursor: pointer; white-space: nowrap; text-decoration: none;
  font-family: var(--font-body); font-size: 15px; font-weight: 800; letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms cubic-bezier(.22, .9, .24, 1), box-shadow 260ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease, filter 200ms ease;
}
.bk-btn svg {
  width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform 280ms cubic-bezier(.22, .9, .24, 1);
}
.bk-btn-primary { background: var(--grad-accent); color: #fff; box-shadow: var(--shadow-cta); }
.bk-btn-primary:hover {
  color: #fff; filter: brightness(1.06); transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(107, 77, 230, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.bk-btn-primary:hover .bk-btn-arrow { transform: translateX(3px); }
.bk-btn-primary:active { transform: scale(.98); }
.bk-btn-primary[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.25); transform: none; box-shadow: none; }
.bk-btn-ghost { border-color: rgba(28, 26, 46, 0.18); background: #fff; color: var(--c-ink); }
.bk-btn-ghost:hover { border-color: var(--c-accent); background: #faf8ff; color: var(--c-accent-700); }
.bk-btn-ghost:hover .bk-btn-arrow { transform: translateX(-3px); }
.bk-btn-soft { border-color: rgba(107, 77, 230, 0.22); background: var(--c-tint); color: var(--c-accent-700); white-space: normal; text-align: left; }
.bk-btn-soft:hover { border-color: var(--c-accent); color: var(--c-accent-700); }
.bk-btn-soft:hover .bk-btn-arrow { transform: translateX(3px); }
.bk-btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* ── Finestra del contratto e avviso MudaTaxi ──────────────────────── */
body.contract-open { overflow: hidden; }
.contract-overlay {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: rgba(28, 26, 46, 0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 280ms cubic-bezier(.22, .9, .24, 1), visibility 0s linear 280ms;
}
.contract-overlay[hidden] { display: none; }
.contract-overlay.is-open { opacity: 1; visibility: visible; transition: opacity 280ms cubic-bezier(.22, .9, .24, 1), visibility 0s; }
.contract-dialog {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 680px;
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: hidden;
  border-radius: 26px; background: #fff; color: var(--c-ink); box-shadow: 0 40px 90px -30px rgba(28, 26, 46, 0.55);
  transform: translateY(18px) scale(.98); transition: transform 460ms cubic-bezier(.22, .9, .24, 1);
}
.contract-overlay.is-open .contract-dialog { transform: none; }
.contract-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex: none;
  padding: 24px 24px 16px; border-bottom: 1px solid rgba(28, 26, 46, 0.08);
}
.contract-head h3 {
  margin: 0 0 4px; font-family: var(--font-display); font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em; text-transform: none; color: var(--c-ink);
}
.contract-head p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--c-slate-600); }
.contract-close {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--c-slate-600); cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 300ms cubic-bezier(.22, .9, .24, 1);
}
.contract-close:hover { background: var(--c-tint); color: var(--c-accent-700); transform: rotate(90deg); }
.contract-body { flex: 1 1 auto; padding: 18px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.contract-meta { margin-bottom: 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-slate-400); }
.contract-recap { margin-bottom: 16px; padding: 14px 16px; border-radius: 16px; background: #f6f5fa; font-size: 14px; }
.contract-recap strong { display: block; margin-bottom: 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-slate-400); }
.contract-recap dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.contract-recap dt { color: var(--c-slate-600); }
.contract-recap dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.contract-vex { margin-bottom: 16px; padding: 16px 18px; border: 1px solid rgba(107, 77, 230, 0.22); border-radius: 16px; background: #faf8ff; }
.contract-vex h4 { margin: 0 0 8px; font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--c-accent-700); }
.contract-vex p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--c-slate-600); }
.contract-vex ul { margin: 0 0 8px; padding-left: 18px; }
.contract-vex li { margin-bottom: 5px; font-size: 13px; line-height: 1.5; }
.contract-fulllink { margin: 4px 0 0; }
.contract-fulllink a { font-weight: 700; color: var(--c-accent-700); }
label.contract-declaration {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 10px; padding: 12px 14px;
  border: 1px solid rgba(28, 26, 46, 0.1); border-radius: 14px; cursor: pointer;
  font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: normal; text-transform: none; color: var(--c-ink);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.contract-overlay input[type="checkbox"] { width: 24px; height: 24px; min-width: 24px; }
label.contract-declaration:has(input:checked) { border-color: var(--c-accent); background: #faf8ff; }
label.contract-decl-vex { font-weight: 700; }
.contract-error { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 14px; }
.contract-error.show { display: block; }
.contract-foot {
  display: flex; justify-content: flex-end; gap: 10px; flex: none;
  padding: 16px 24px 20px; border-top: 1px solid rgba(28, 26, 46, 0.08); background: #fff;
}
.contract-foot .bk-btn { min-height: 50px; }
.service-notice .contract-dialog { max-width: 470px; }
.service-notice .contract-body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--c-slate-600); }
.service-notice .contract-foot { flex-wrap: wrap; }
.service-notice .contract-foot button { min-height: 48px; }

/* ── Telefono: prefisso + numero ───────────────────────────────────── */
.bk-phone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.bk-prefix { position: relative; }
.bk-prefix-btn {
  display: flex; align-items: center; gap: 8px; height: 100%; min-height: 54px; padding: 0 12px 0 10px;
  border: 1px solid var(--bk-line-strong); border-radius: 14px; background: #fff; cursor: pointer;
  font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--c-ink);
  transition: border-color 200ms ease, box-shadow 260ms var(--bk-ease);
}
.bk-prefix-btn:hover { border-color: rgba(107, 77, 230, 0.45); }
.bk-prefix-btn[aria-expanded="true"],
.bk-prefix-btn:focus-visible { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(107, 77, 230, 0.12); }
.bk-prefix-btn[aria-expanded="true"] .bk-caret { transform: rotate(180deg); stroke: var(--c-accent); }
.bk-prefix-code {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 7px;
  background: var(--c-tint); color: var(--c-accent-700); font-size: 13px; font-weight: 800; letter-spacing: .06em;
}
.bk-prefix-dial, .bk-prefix-num { font-variant-numeric: tabular-nums; }
.bk-prefix-pop {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: min(340px, calc(100vw - 56px));
  padding: 8px; border: 1px solid var(--bk-line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg);
  transform-origin: 24px 0; animation: bk-pop 220ms var(--bk-ease) backwards;
}
.bk-prefix-search {
  display: flex; align-items: center; gap: 8px; height: 44px; margin-bottom: 6px; padding: 0 12px;
  border-radius: 12px; background: #f6f5fa;
}
.bk-prefix-search .bk-ico { width: 17px; height: 17px; color: var(--c-slate-400); }
.bk .bk-prefix-search input {
  flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent;
  font-family: var(--font-body); font-size: 15px; color: var(--c-ink);
}
.bk .bk-prefix-search input:focus { border: 0; box-shadow: none; }
.bk-prefix-list { max-height: 264px; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.bk-prefix-opt {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-height: 44px; padding: 6px 10px; border-radius: 10px; cursor: pointer; font-size: 14.5px; color: var(--c-ink);
  transition: background-color 140ms ease;
}
.bk-prefix-opt .bk-prefix-code { background: #f1f0f6; color: var(--c-slate-600); }
.bk-prefix-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.bk-prefix-num { font-weight: 600; color: var(--c-slate-600); }
.bk-prefix-opt.is-active { background: var(--c-tint); }
.bk-prefix-opt[aria-selected="true"] { color: var(--c-accent-700); }
.bk-prefix-opt[aria-selected="true"] .bk-prefix-code { background: var(--c-accent); color: #fff; }
.bk-prefix-opt.is-pinned { margin-bottom: 6px; box-shadow: 0 7px 0 -6px var(--bk-line); }
.bk-prefix-empty { padding: 12px; font-size: 14px; color: var(--c-slate-400); }

/* ── Orari: la sera è a tariffa festiva ────────────────────────────── */
.bk .slots-group-title.is-afternoon::before { background: linear-gradient(180deg, #fb923c 50%, transparent 50%); box-shadow: none; }
.bk .slots-group-title.is-evening::before { background: transparent; box-shadow: inset -4px -2px 0 0 var(--c-accent); }
.bk .slots-group-note {
  margin-left: 4px; padding: 3px 8px; border-radius: 999px; background: #eef0ff; color: #3730a3;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: none;
}

/* ── Passo 4: la taglia scelta si allarga e mostra cosa ci sta ─────── */
.bk-size-letter, .bk-size-stage { display: none; }
.details-quote .bk-sizes.has-pick { grid-template-columns: repeat(3, 60px) minmax(0, 1fr); align-items: start; }
.details-quote .bk-sizes.has-pick .bk-size:not(.selected) {
  flex-direction: row; align-items: center; justify-content: center; gap: 0;
  height: 48px; min-height: 0; padding: 0; border-radius: 14px;
}
.details-quote .bk-sizes.has-pick .bk-size:not(.selected) > :not(input):not(.bk-size-letter) { display: none; }
.details-quote .bk-sizes.has-pick .bk-size:not(.selected) .bk-size-letter {
  display: block; font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--c-slate-600);
}
.details-quote .bk-sizes.has-pick .bk-size:not(.selected):hover .bk-size-letter { color: var(--c-accent-700); }
.details-quote .bk-sizes.has-pick .bk-size.selected { grid-column: 1 / -1; grid-row: 2; padding: 20px 22px 18px; cursor: default; }
.details-quote .bk-sizes.has-pick .bk-size.selected:hover { transform: none; }
.details-quote .bk-sizes.has-pick .bk-size.selected .bk-choice-title { font-size: 19px; }
.details-quote .bk-sizes.has-pick .bk-size.selected .bk-size-stage { display: block; margin-top: 6px; }
.bk-size-stage .hv-count { margin-bottom: 6px; }
.bk-size-stage .hv-scene { display: block; width: 100%; height: auto; }
.bk-size-stage.is-playing .hv-it {
  opacity: 1; transform: none;
  transition: opacity 200ms ease var(--d, 0ms), transform 620ms cubic-bezier(.3, 1.42, .6, 1) var(--d, 0ms);
}
.bk-size-stage.is-playing .hv-shadow {
  opacity: .09; transform: none;
  transition: opacity 300ms ease calc(var(--d, 0ms) + 180ms), transform 520ms cubic-bezier(.22, .9, .24, 1) calc(var(--d, 0ms) + 120ms);
}

/* Morph fra le due disposizioni: ogni casella ha il suo nome, la pagina no
   (niente dissolvenza di tutto lo schermo, solo le caselle che si spostano). */
.details-quote .bk-size:nth-child(1) { view-transition-name: bk-size-1; }
.details-quote .bk-size:nth-child(2) { view-transition-name: bk-size-2; }
.details-quote .bk-size:nth-child(3) { view-transition-name: bk-size-3; }
.details-quote .bk-size:nth-child(4) { view-transition-name: bk-size-4; }
#quoteEstimate { view-transition-name: bk-quote; }
#montaggioSection { view-transition-name: bk-montaggio; }
::view-transition-old(root) { display: none; }
::view-transition-new(root) { animation: none; }
::view-transition-group(bk-size-1), ::view-transition-group(bk-size-2),
::view-transition-group(bk-size-3), ::view-transition-group(bk-size-4),
::view-transition-group(bk-quote), ::view-transition-group(bk-montaggio) {
  animation-duration: 460ms; animation-timing-function: cubic-bezier(.22, .9, .24, 1);
}
::view-transition-old(bk-size-1), ::view-transition-old(bk-size-2),
::view-transition-old(bk-size-3), ::view-transition-old(bk-size-4) { animation-duration: 180ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ── Tablet: una colonna, pannello come intestazione ───────────────── */
@media (max-width: 1080px) {
  .bk-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bk-rail { position: static; }
  .bk-rail-card { padding: 14px 14px 10px; border-radius: 20px; }
  .bk-rail-head { padding: 2px 6px 10px; margin-bottom: 6px; }

  /* Linea orizzontale: pallini a tutta larghezza, etichette nascoste */
  .bk-progress { flex-direction: row; justify-content: space-between; }
  .wizard-progress-step { grid-template-columns: 44px; height: 44px; }
  .bk-step-text { display: none; }
  .bk-progress-track { left: 22px; right: 22px; top: 22px; bottom: auto; width: auto; height: 2px; margin: -1px 0 0; }
  .bk-progress-fill {
    background: linear-gradient(90deg, #8468ec, var(--c-accent) 50%, var(--c-accent-700));
    transform-origin: 0 50%; transform: scaleX(var(--bk-progress));
  }
  .bk.is-done .bk-progress-fill { transform: scaleX(1); }

  /* Riepilogo: cassetto fisso in fondo allo schermo */
  .bk-live {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--cookie-clear, 0px)); z-index: 900;
    max-height: min(70vh, 460px); margin: 0; padding: 0 18px 16px; overflow: hidden;
    border: 1px solid var(--bk-line); border-radius: 20px;
    background: rgba(255, 255, 255, 0.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 18px 50px -18px rgba(28, 26, 46, 0.4);
    transform: translateY(calc(100% - 58px)); transition: transform 480ms var(--bk-ease);
  }
  .bk-rail.is-open .bk-live { overflow-y: auto; transform: none; }
  .bk-drawer-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: calc(100% + 36px); min-height: 58px; margin: 0 -18px 4px; padding: 0 20px;
    border: 0; background: transparent; cursor: pointer;
    font-family: var(--font-body); font-size: 15px; font-weight: 800; color: var(--c-ink);
  }
  .bk-drawer-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .bk-drawer-toggle .bk-ico { width: 20px; height: 20px; color: var(--c-accent); transition: transform 380ms var(--bk-ease); }
  .bk-rail.is-open .bk-drawer-toggle .bk-ico { transform: rotate(180deg); }
  .bk-live-head { display: none; }            /* nel cassetto il titolo è il pulsante */
  .bk-live-price { margin-bottom: 0; }
  .bk-live-price-amount { font-size: 26px; }
  .bk.is-done .bk-live { display: none; }

  body.bk-page main.bk { padding-bottom: 110px; }
  body.bk-page .whatsapp-mobile-btn { bottom: calc(86px + var(--cookie-clear, 0px)); }
}

/* ── Telefono ──────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .bk { padding: 22px 16px 110px; }
  .bk-title { font-size: clamp(28px, 8vw, 36px); }
  .bk-sub { font-size: 15px; }
  .bk-panel { padding: 20px 16px; border-radius: 22px; }
  .wizard-viewport { margin: -8px -10px; padding: 8px 10px; transition-duration: 320ms; }
  .bk-step-head h2 { font-size: 24px; }

  .bk-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .bk-services { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bk-services .bk-choice { flex-direction: row; align-items: center; gap: 14px; padding: 14px 48px 14px 14px; }
  .bk-services .bk-choice-check { top: 50%; right: 14px; margin-top: -12px; }
  .bk-services .bk-choice-ico { width: 42px; height: 42px; flex: none; }
  .bk-choice-title { font-size: 16px; }
  .bk-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bk-size { padding: 14px 12px; }

  .bk-stop { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .bk-stop-dot { display: none; }
  .bk .access-duo, .bk .access-duo.has-stop { grid-template-columns: minmax(0, 1fr); }
  .bk .access-side + .access-side,
  .bk .access-duo.has-stop .access-side + .access-side { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--bk-line); }
  .bk .access-body { padding: 4px 12px 14px; }

  .bk-when { grid-template-columns: minmax(0, 1fr); }
  .bk .wizard-summary-dl { grid-template-columns: minmax(0, 1fr); }
  .bk .wizard-summary-dl dt { padding-bottom: 0; }
  .bk .wizard-summary-dl dd { padding-top: 2px; border-top: 0; }
  .bk .terms-sign-note { margin-left: 0; }

  .bk-actions { gap: 10px; }
  .bk-actions .bk-btn { flex: 1 1 auto; padding: 0 16px; }
  .bk-actions #wizardPrev { flex: 0 0 auto; }

  .contract-overlay { align-items: flex-end; padding: 0; }
  .contract-dialog {
    max-width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0;
    transform: translateY(40px);
  }
  .contract-head { padding: 18px 16px 12px; }
  .contract-body { padding: 14px 16px; }
  .contract-recap dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contract-recap dd { margin-bottom: 6px; }
  .contract-foot { flex-direction: column-reverse; padding: 12px 16px 16px; }
  .contract-foot .bk-btn { width: 100%; }
}

/* ── Movimento ridotto ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .bk *, .bk *::before, .bk *::after,
  .contract-overlay, .contract-overlay *, .contract-overlay *::before {
    animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; transition-delay: 0ms !important;
  }
  .bk-intro > *, .bk-shell { animation: none !important; }
  .wizard-track .wizard-step { transform: none !important; }
}

/* ── Miniatura del percorso (ultimo passo) ─────────────────────────────
   Il riquadro nasce hidden e lo mostra il JS solo quando l'immagine ha
   caricato: se la mappa non si genera, il passo resta come prima. */
.bk .bk-map {
    margin: 0;
    border: 1px solid var(--c-line, rgba(226, 232, 240, 0.9));
    border-radius: 16px;
    overflow: hidden;
    background: #f6f5fa;
}
.bk .bk-map-head {
    padding: 0.6rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #5f5b7a;
    background: #fff;
    border-bottom: 1px solid var(--c-line, rgba(226, 232, 240, 0.9));
}
.bk .bk-map-img {
    display: block;
    width: 100%;
    height: auto;
    /* Le proporzioni dichiarate evitano il salto di impaginazione mentre
       l'immagine arriva. */
    aspect-ratio: 64 / 28;
    background: #f6f5fa;
}

/* ── MudaTaxi spiegato + fascia di prezzo + WhatsApp (24/10/2026) ───── */
.bk-choice-tag {
  display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 3px 8px; border-radius: 999px;
  background: rgba(107, 77, 230, 0.12); color: var(--c-accent-700);
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.bk-choice.selected .bk-choice-tag { background: var(--c-accent); color: #fff; }

.bk-mtx-what {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center;
  margin-top: 18px; padding: 16px; border-radius: 18px;
  background: #f6f4fd; border: 1px solid rgba(107, 77, 230, 0.14);
}
.bk-mtx-what img { width: 100%; height: 200px; object-fit: cover; object-position: center 35%; border-radius: 12px; display: block; }
.bk-mtx-what h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--c-ink); }
.bk-mtx-what-lead { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--c-slate-600); }
.bk-mtx-what ol { margin: 0; padding: 0; list-style: none; counter-reset: mtx; display: grid; gap: 8px; }
.bk-mtx-what li {
  counter-increment: mtx; position: relative; padding-left: 32px;
  font-size: 14px; line-height: 1.45; color: var(--c-ink);
}
.bk-mtx-what li::before {
  content: counter(mtx); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-accent); color: #fff; font-size: 12px; font-weight: 800; line-height: 22px; text-align: center;
}
.bk-mtx-what-more { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--c-slate-600); }

.bk-band-inline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.bk-band-inline span { font-weight: 700; }
.bk-band-inline strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--c-accent-700); white-space: nowrap; }

.bk-band {
  display: flex; flex-direction: column; gap: 4px;
  margin: 0 0 16px; padding: 18px 20px; border-radius: 16px;
  background: var(--grad-accent); color: #fff;
}
.bk-band-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.bk-band-price { font-size: clamp(30px, 5vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.bk-band-note { font-size: 13.5px; line-height: 1.45; opacity: .9; }
.bk-band-done { margin: 20px 0 12px; width: 100%; max-width: 420px; text-align: center; align-items: center; }

.bk-wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 420px; min-height: 54px; padding: 14px 22px; border-radius: 14px;
  background: #25d366; color: #fff; font-size: 17px; font-weight: 800; text-decoration: none;
  box-shadow: 0 14px 28px -14px rgba(37, 211, 102, 0.8);
  transition: transform 160ms ease, background 160ms ease;
}
.bk-wa-btn:hover { background: #1ebe5a; transform: translateY(-1px); }
.bk-wa-btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }

@media (max-width: 720px) {
  .bk-mtx-what { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px; align-items: start; }
  .bk-mtx-what img { height: 124px; }
  .bk-mtx-what h3 { font-size: 16px; }
  .bk-mtx-what li { font-size: 13.5px; padding-left: 28px; }
  .bk-mtx-what li::before { width: 20px; height: 20px; line-height: 20px; font-size: 11px; }
  /* Su telefono il bottone verde resta a portata di pollice */
  .bk-wa-btn { position: sticky; bottom: 12px; z-index: 5; }
}

/* Fermate 2 e 3 (24/10/2026): ognuna con il suo parcheggio */
.bk .stop-extra { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--bk-line); }
.bk .stop-extra-access .parking-options { margin: 6px 0 10px; }
.bk #addMoreStopBtn { margin-top: 14px; }
.bk .stop-block .bk-link[hidden] { display: none; }
