/* ==========================================================================
   Online booking pages (/book-a-session/...). Loaded after site.css.
   ========================================================================== */

.site > main:has(> .booking) { display: flex; flex-direction: column; }
.booking { flex: 1 0 auto; padding-block: var(--space-4) var(--space-6); background: var(--bg, #faf7f2); }
.booking__wrap { max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.booking h1 { margin: 0 0 var(--space-1); }
.booking__lead { color: var(--text-muted); margin: 0 0 var(--space-3); }
.booking .card { margin-bottom: var(--space-3); }
.booking .card h2 { font-size: 1.25rem; margin: 0 0 var(--space-2); }

/* Progress steps */
.steps { display: flex; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 var(--space-3); flex-wrap: wrap; font-size: 0.85rem; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted); }
.steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #e8e2d8; color: #666; font-weight: 700; font-size: 0.8rem; }
.steps li + li::after { order: -1; content: ""; width: 1.2rem; height: 2px; background: #e0d8cb; }
.steps li.done::before { background: var(--accent); color: #fff; content: "\2713"; }
.steps li.now { color: var(--secondary); font-weight: 700; }
.steps li.now::before { background: var(--primary); color: var(--on-primary, #fff); }

/* Choice cards (session type / location) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-2); }
.choice { position: relative; display: block; margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box { display: block; height: 100%; padding: var(--space-2); border: 2px solid var(--border); border-radius: var(--radius); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.choice__box strong { display: block; font-size: 1.05rem; color: var(--secondary); }
.choice__price { display: block; font-weight: 700; color: var(--primary-text); margin-top: 0.2rem; }
.choice__was { color: #767676; font-weight: 400; margin-right: 0.3rem; }
.choice__desc { display: block; font-size: 0.88rem; color: var(--text-muted); margin-top: 0.4rem; }
.choice input:checked + .choice__box { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.choice input:focus-visible + .choice__box { outline: 3px solid #1d3f45; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9); }

/* Summary strip */
.summary { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; padding: var(--space-2); background: #fff; border-radius: var(--radius); border-left: 4px solid var(--primary); margin-bottom: var(--space-3); font-size: 0.95rem; }
.summary span { color: var(--text-muted); }
.summary a { margin-left: auto; font-size: 0.85rem; }

/* Date picker */
.picker { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-3); }
.month__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-1); }
.month__bar strong { font-size: 1.05rem; }
.month__nav { background: none; border: 1px solid var(--border); border-radius: 6px; width: 2.2rem; height: 2.2rem; font-size: 1.1rem; cursor: pointer; color: var(--secondary); }
.month__nav:disabled { opacity: 0.35; cursor: default; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.month__dow { font-size: 0.75rem; color: var(--text-muted); padding: 0.3rem 0; }
.day { aspect-ratio: 1; border: 1px solid transparent; border-radius: 6px; background: none; font-size: 0.95rem; color: #bbb; cursor: default; font-family: inherit; }
.day--open { background: #fff; border-color: var(--border); color: var(--secondary); font-weight: 700; cursor: pointer; }
.day--open:hover { border-color: var(--primary); }
.day--selected { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.times h3 { margin: 0 0 var(--space-1); font-size: 1rem; }
.times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 0.5rem; }
.time { padding: 0.6rem 0.4rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; font-size: 0.95rem; color: var(--secondary); font-family: inherit; }
.time:hover { border-color: var(--primary); }
.time--selected { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.times__empty { color: var(--text-muted); font-size: 0.9rem; }
@media (max-width: 720px) { .picker { grid-template-columns: 1fr; } }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-2); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: var(--space-2); font-size: 0.95rem; }
.check input { width: auto; margin-top: 0.25rem; }
.policy { background: var(--bg, #faf7f2); border-radius: 6px; padding: var(--space-2); font-size: 0.9rem; color: #444; margin-top: var(--space-2); }
.errors { background: #fdecec; color: #8a1c1c; border-radius: 6px; padding: var(--space-2); margin-bottom: var(--space-2); }
.actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.actions .back { font-size: 0.9rem; }
.btn-back { display: inline-block; padding: calc(0.8rem - 1px) 1.6rem; border: 1px solid var(--primary-text); border-radius: 6px; background: #fff; color: var(--primary-text); font-size: 1rem; text-decoration: none; cursor: pointer; }
.btn-back:hover { background: rgba(0, 0, 0, 0.04); }
.btn-sm { padding: 0.45rem 1rem !important; font-size: 0.9rem !important; }
.btn-back { font-family: inherit; line-height: 1.2; box-sizing: border-box; }
.btn[disabled] { opacity: 0.5; cursor: default; filter: none; }

/* Consent */
.consent-text { font-size: 0.95rem; line-height: 1.6; }
.consent-text .ack { font-style: italic; background: var(--bg, #faf7f2); padding: var(--space-2); border-left: 3px solid var(--primary); }
.sig-wrap { margin-top: 0.4rem; border: 1px solid #ccc; border-radius: 6px; background: #fafafa; touch-action: none; }
.sig-wrap canvas { display: block; width: 100%; height: 180px; cursor: crosshair; }
.sig-clear { background: none; border: 1px solid #ccc; padding: 0.35rem 0.8rem; border-radius: 4px; cursor: pointer; font-size: 0.85rem; margin-top: 0.4rem; }

/* Review + confirmed */
.details-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.2rem; margin: 0; }
.details-list dt { color: var(--text-muted); }
.details-list dd { margin: 0; font-weight: 600; color: var(--secondary); }
.login-box summary { cursor: pointer; color: var(--secondary); }
.login-box[open] summary { margin-bottom: var(--space-2); }
details.optional { margin-top: var(--space-2); }
details.optional summary { cursor: pointer; color: var(--secondary); font-size: 0.95rem; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.account-head h1 { margin: 0; }
.account-head .booking__lead { margin: 0.3rem 0 0; }
.account-head__links { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.account-head__links form { margin: 0; }
.linkish { background: none; border: none; padding: 0; color: var(--secondary); text-decoration: underline; cursor: pointer; font: inherit; }
.notice { border-left: 4px solid var(--accent); }
.notice--warn { border-left-color: var(--primary); background: #fffaf1; }
.session { display: grid; grid-template-columns: minmax(170px, 1fr) 2fr auto; gap: 0.4rem 1.2rem; padding: 0.9rem 0; border-top: 1px solid var(--border); align-items: start; }
.session:first-of-type { border-top: none; }
.session__when strong { display: block; color: var(--secondary); }
.session__where { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.2rem; }
.session__flag { font-size: 0.85rem; color: #8a5313; margin-top: 0.2rem; }
.session__actions a { white-space: nowrap; }
.session__actions .btn-back, .session__actions .btn { padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.session--past { color: var(--text-muted); }
@media (max-width: 640px) { .session { grid-template-columns: 1fr; } }
.btn--danger { background: #b91c1c; color: #fff; }
.hold-note { font-size: 0.85rem; color: var(--text-muted); }
.done-badge { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.6rem; margin-bottom: var(--space-1); }
