/* Booking page (book.html). Colours come from styles.css. */
body.book-page { height: auto; min-height: 100%; }
.book-page .top a.ghost { text-decoration: none; white-space: nowrap; }
.book { max-width: 1100px; width: 100%; margin: 0 auto; padding: 16px; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 820px) { .book-grid { grid-template-columns: 1fr; } }
.book-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.book-card h2 { font-size: 17px; margin: 0 0 4px; color: var(--title); display: flex; align-items: center; gap: 10px; }
.book-card .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; flex-shrink: 0; }
.book-card .muted { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.step.off { opacity: .55; }

.durations { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.opt { font: inherit; text-align: left; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.opt:hover:not(:disabled) { border-color: var(--highlight); }
.opt[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--user); }
.opt strong { display: block; }
.opt small { color: var(--muted); }
.opt:disabled { cursor: not-allowed; opacity: .45; text-decoration: line-through; }
.opt:focus-visible, .cal-day:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head button:disabled { opacity: .35; cursor: default; }
.small { padding: 4px 12px; font-size: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow span { text-align: center; font-size: 12px; color: var(--muted); padding: 2px 0; }
.cal-day { font: inherit; aspect-ratio: 1 / 1; min-height: 36px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); display: grid; place-items: center; position: relative; padding: 0; }
.cal-day.free { color: var(--text); border-color: var(--line); cursor: pointer; font-weight: 600; }
.cal-day.free::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--highlight); }
.cal-day.free:hover { border-color: var(--highlight); }
.cal-day.today { text-decoration: underline; }
.cal-day[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cal-day[aria-selected="true"]::after { background: var(--accent-ink); }
.cal-day:disabled { cursor: default; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slots .opt { text-align: center; padding: 8px 6px; }

.sum { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 8px 0 14px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; }
.summary label[for="notes"] { display: block; font-weight: 600; margin-bottom: 4px; }
.summary textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; resize: vertical; }
.small-print { font-size: 13px !important; margin: 6px 0 12px !important; }
.terms-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 8px 0; }
.terms-agree input { margin-top: 4px; }
.terms-agree.need { color: var(--warn); }
.primary, a.btn.primary { font: inherit; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 600; text-decoration: none; display: inline-block; cursor: pointer; }
.primary:disabled { opacity: .5; cursor: not-allowed; }
.buy { width: 100%; font-size: 17px; padding: 12px 20px; }
.book-error { color: var(--warn); font-size: 14px; margin: 6px 0; }
.book-notice { background: var(--user); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }

.done { max-width: 560px; margin: 24px auto; text-align: center; }
.done h2 { justify-content: center; font-size: 22px; }
.done-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; background: #1e7a3c; color: #fff; font-size: 30px; }
.done-when { font-size: 18px; font-weight: 600; margin: 8px 0; }
.done .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* Choice between a paid session and a free consultation */
.kinds-card { grid-column: 1 / -1; }
.kinds-card h2 { margin-bottom: 12px; }
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.kind { font: inherit; text-align: left; display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.kind:hover { border-color: var(--highlight); }
.kind[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--user); }
.kind:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }
.kind-title { font-weight: 700; font-size: 16px; }
.kind-price { font-weight: 600; color: var(--highlight); }
.kind-price.free { color: #1e7a3c; }
.kind-text { color: var(--muted); font-size: 14px; }
#stepLength[hidden] { display: none; }

.contact { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.contact legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.contact label { display: block; font-size: 14px; margin-bottom: 8px; }
.contact input { display: block; width: 100%; margin-top: 2px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.contact input[aria-invalid="true"] { border-color: var(--warn); }
.contact .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 420px) { .contact .two { grid-template-columns: 1fr; } }
.contact .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
