/* book.css - prenotazione della versione B (/b/prenota e /b/salone/...).
   Si appoggia a b.css (colori, pulsanti, ricerca, mappa) e a salon.css (pagina salone),
   che qui viene riportata ai colori e al carattere della versione B. */

.bp { padding: 36px 0 90px; }
.bp-head { margin-bottom: 26px; }
.bp-head .lead { margin-top: 10px; }
.bp-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; background: none; border: 0; padding: 6px 0; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--muted); }
.bp-back:hover { color: var(--text); }
.bp-back svg { width: 18px; height: 18px; }
.bp .finder-grid { align-items: start; }
.bp .stage { min-height: 520px; position: sticky; top: 90px; }

/* ---------- area account nell'header ---------- */
.acct { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.acct .who { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.linkbtn { background: none; border: 0; padding: 8px 6px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
@media (max-width: 860px) { .acct .who { display: none; } }

/* ---------- prenotazione a passaggi ---------- */
.bk { max-width: 680px; margin: 0 auto; }
.bk-card { background: var(--white); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 32px); }
.bk-salon { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.bk-salon img, .bk-salon .ph { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--rose-100); flex: 0 0 auto; display: grid; place-items: center; font-weight: 700; }
.bk-salon strong { display: block; font-size: 19px; letter-spacing: -0.02em; }
.bk-salon small { color: var(--muted); font-size: 14px; }
.bk-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; list-style: none; padding: 0; }
.bk-progress li { font-size: 13px; font-weight: 600; color: var(--muted); }
.bk-progress li::before { content: ""; display: block; height: 5px; border-radius: 9px; background: var(--line); margin-bottom: 8px; transition: background .3s; }
.bk-progress li.done { color: var(--text); }
.bk-progress li.done::before { background: var(--plum); }
.bk h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 16px; }
.bk-label { font-size: 14px; font-weight: 600; color: var(--muted); margin: 18px 0 10px; }
.opts { display: grid; gap: 8px; }
.opt { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); cursor: pointer; font-size: 15.5px; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--line-strong); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--plum); background: var(--rose-50); }
.opt .main { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.opt .side { color: var(--muted); font-size: 14px; white-space: nowrap; }
.opt .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-100); font-weight: 700; flex: 0 0 auto; }
.opt .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: 0 0 auto; color: #fff; }
.opt[aria-checked="true"] .box { background: var(--plum); border-color: var(--plum); }
.opt .box svg { width: 14px; height: 14px; }
.note { font-size: 14px; color: var(--muted); min-height: 20px; margin: 10px 0 0; }
.note.err { color: #a12a2a; }
.datefield { position: relative; }
.datefield input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--white); font-size: 16px; cursor: pointer; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slots button { padding: 12px 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 600; font-size: 15px; cursor: pointer; }
.slots button:hover { border-color: var(--line-strong); }
.slots button[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); }
.bk-nav { display: flex; gap: 10px; margin-top: 24px; }
.bk-nav .btn { flex: 1; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.fields { display: grid; gap: 12px; }
.fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.fields input, .fields textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--white); font-size: 16px; font-weight: 400; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--plum); }
.summary { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.summary li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary span { color: var(--muted); }
.summary b { text-align: right; }

/* accesso richiesto prima di confermare */
.gate { text-align: center; padding: 8px 0 0; }
.gate .ic { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; background: var(--rose-50); display: grid; place-items: center; }
.gate .ic svg { width: 26px; height: 26px; }
.gate p { color: var(--muted); max-width: 42ch; margin: 8px auto 20px; }
.gate .stack { display: grid; gap: 10px; max-width: 360px; margin: 0 auto; }
.btn-google { background: var(--white); border-color: var(--line-strong); }
.btn-google:hover { border-color: var(--plum); }
.btn-google img, .btn-google svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; margin: 4px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* conferma */
.done { text-align: center; }
.done .ui-check { animation: none; }
.done .ui-check path { animation: draw .6s .2s var(--ease) forwards; }
.done h2 { margin: 0 0 6px; }
.done p { color: var(--muted); margin: 0 auto 6px; max-width: 46ch; }
.done .summary { text-align: left; }
.done .ctas { justify-content: center; margin-top: 22px; }
.state-pending .ui-check { background: #fdf3d9; color: var(--gold-text); }

/* le mie prenotazioni */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 20px; }
.filters button { border: 1.5px solid var(--line-strong); background: var(--white); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.bookings { display: grid; gap: 12px; }
.booking { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: grid; gap: 6px; }
.booking .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.booking strong { font-size: 17.5px; letter-spacing: -0.02em; }
.booking .meta { color: var(--muted); font-size: 14.5px; }
.st { font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.st-pending { background: #fdf3d9; color: var(--gold-text); }
.st-confirmed { background: var(--green-50); color: var(--green); }
.st-active { background: #e1f0f6; color: #145d78; }
.st-completed { background: #ece8ea; color: #4d4249; }
.st-cancelled { background: #fbe4e4; color: #a12a2a; }
.booking .btn { justify-self: start; margin-top: 6px; }

/* finestra di accesso */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(36, 22, 31, .55); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-card { position: relative; width: min(100%, 420px); background: var(--white); border-radius: 26px; padding: 28px 24px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-card h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.modal-card > p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.modal-x svg { width: 18px; height: 18px; }
.modal .fields { margin-top: 4px; }
.modal .btn { width: 100%; }
.modal .switch-mode { margin: 14px 0 0; text-align: center; font-size: 14.5px; }

/* ---------- pagina salone (salon.css) ai colori della versione B ---------- */
.b-app .sd, .b-app .sd button { font-family: var(--font); }
.b-app .sd-title, .b-app .sd-h2, .b-app .sd-h3, .b-app .sd-card-title, .b-app .sd-rev-score, .b-app .sd-avatar-ph { font-family: var(--font); letter-spacing: -0.03em; }
.b-app .sd-stars i, .b-app .sd-addr-inline i, .b-app .sd-contact i, .b-app .sd-addr i, .b-app .sd-perks i, .b-app .sd-card-line i { color: var(--rose-text); }
.b-app .sd-addr-inline a, .b-app .sd-linkbtn { color: var(--rose-text) !important; }
.b-app .sd-rating:hover strong, .b-app .sd-social:hover { color: var(--rose-text); }
.b-app .sd-avatar-ph { color: var(--plum); background: var(--rose-100); }
.b-app .sd-cta { background: var(--plum); color: #fff; font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; }
.b-app .sd-cta:hover { background: var(--plum-2); color: #fff; }
.b-app .sd-chip:hover, .b-app .sd-social:hover { border-color: var(--plum); }
.b-app .sd-hours-row.is-today span:first-child::after { background: var(--rose); }
.b-app .sd-back:hover { color: var(--text) !important; }
.b-app .gal-photo:focus-visible, .b-app .gal-nav:focus-visible, .b-app .lb-btn:focus-visible { outline-color: var(--rose); }
.b-app .sd { padding-top: 28px; }
.b-app .sd-back { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; color: var(--muted) !important; text-decoration: none; }

/* consenso in registrazione */
.fields label.terms { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.fields label.terms[hidden] { display: none; }
.fields label.terms input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--plum); }
.fields label.terms a { color: var(--rose-text); }
.consent { display: grid; gap: 14px; }
.consent p { margin: 0; color: var(--muted); font-size: 15px; }
