/* Phase 2a, W5: booking screens. Reuses style.css (.btn, .q, .choice, .note, .welcome, .part, .chips, .card). */

/* "Fully booked for now" and the Block time call to action */
.chip-full { display: inline-block; margin: 8px 0 4px; padding: 5px 14px; border-radius: 99px; background: var(--sunsoft); color: var(--ink); font: 700 .9375rem/1.3 var(--font-body); }
.book-cta { margin: 0 0 24px; }
.book-cta .btn { width: 100%; max-width: 22rem; }
.book-cta .chip-full { font-size: 1.0625rem; }

.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover { background: #a3211a; color: #fff; }
.btn.danger-outline { border-color: var(--red); color: var(--red); }
.btn.danger-outline:hover { background: var(--redsoft); color: var(--red); }
.btn { text-align: center; }
.note.alert { border: 2px solid var(--sun); background: var(--sunsoft); margin: 0 0 20px; }

/* The two doors */
.doors { display: grid; gap: 16px; margin: 20px 0; }
.door { border: 2px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.door h2 { font-size: 1.375rem; }
.door p:last-child { margin-bottom: 0; }
.door .btn { width: 100%; }
@media (min-width: 680px) { .doors { grid-template-columns: 1fr 1fr; } }

/* Picking a time */
.book .q { margin-bottom: 30px; }
.book .q .choices, .book .q .help, .book .q .err { margin-left: 0; }
.day { border: 2px solid var(--line); border-radius: 16px; margin: 0 0 10px; background: #fff; }
.day[open] { border-color: var(--line-strong); }
.day > summary { list-style: none; cursor: pointer; min-height: 3.25rem; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 700 1.125rem/1.3 var(--font-body); }
.day > summary::-webkit-details-marker { display: none; }
.day > summary::after { content: "+"; margin-left: auto; font: 800 1.5rem/1 var(--font-body); color: var(--blue); }
.day[open] > summary::after { content: "\2212"; }
.day .cnt { font-weight: 600; font-size: .9375rem; color: var(--soft); }
.day .tag { background: var(--sun); border-radius: 99px; padding: 2px 10px; font: 800 .8125rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .06em; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 8px; padding: 4px 12px 14px; }
.slot { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 3.5rem; padding: 8px 14px; border: 2px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: #fff; position: relative; }
.slot:hover { border-color: var(--sky); }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot .t { font: 800 1.0625rem/1.25 var(--font-body); }
.slot .g { font-size: .875rem; color: var(--soft); line-height: 1.3; }
.slot:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.slot:has(input:checked) .g { color: #e8efff; }
.slot:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice .sub { display: block; font-size: .9375rem; color: var(--soft); margin-top: 2px; }
.book .submit-row .btn { width: 100%; }

/* A booking */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 14px 0 18px; }
.facts dt { font: 800 .8125rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-top: 12px; }
.facts dd { margin: 0; font-size: 1.1875rem; }
.booking .cta .btn { min-width: 0; }
.booking .small { overflow-wrap: anywhere; }
.mini { font: 800 .875rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin: 22px 0 8px; }
.atts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.att { background: var(--skysoft); border-radius: 14px; padding: 10px 14px; }
.att p { margin: 4px 0 0; }

/* My page */
.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sess { border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; background: #fff; }
.sess.past { background: #fafbfd; }
.sess h3 { font-size: 1.25rem; margin: 0 0 4px; }
.sess h3 a { text-decoration: none; }
.sess p { margin: 0 0 6px; }
.sess .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.sess .actions .btn { min-height: 3rem; padding: 0 18px; font-size: 1rem; }
.sess .atts { margin-top: 8px; }
.others { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.others .btn { width: 100%; }
.center { text-align: center; }
@media (max-width: 560px) {
  .sess .actions .btn { flex: 1 1 100%; }
  .booking .cta .btn { width: 100%; }
}
