/* Booking page: calendar and time buttons, built on the intake form styles */
.book-card { background: var(--white); border-radius: 22px; padding: 30px 28px; box-shadow: 0 20px 50px -34px rgba(22, 67, 74, .45); }
.book-card h2 { font-size: 1.9rem; margin-bottom: .2rem; }
.book-card h2:focus { outline: none; }
.tz-note { font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; }
.book-status { color: var(--muted); padding: 10px 0; }
.book-status.bad { color: #b04a33; }
.chosen { background: var(--mist); border-radius: 14px; padding: 12px 16px; color: var(--deep); font-weight: 500; margin: .6rem 0 1.4rem; }

.cal { max-width: 420px; margin: 0 auto; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-head h3 { font: 500 1.1rem "Jost", sans-serif; color: var(--deep); }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #cfe0dc; background: var(--white); color: var(--deep); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-days span { text-align: center; font-size: .82rem; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1; min-width: 0; padding: 0; border-radius: 50%; border: 0; background: none; font: 400 1rem "Jost", sans-serif; color: #a5b3b6; }
.cal-day:not(:disabled) { background: var(--mist); color: var(--deep); font-weight: 500; cursor: pointer; }
.cal-day:not(:disabled):hover { background: var(--glass); }
.cal-day[aria-pressed="true"] { background: var(--deep) !important; color: var(--white); }
.cal-day:focus-visible, .cal-nav:focus-visible, .times button:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

.times-title { font-size: 1.5rem !important; margin-top: 1.8rem; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: .8rem; }
.times button { min-height: 52px; border: 1.5px solid #cfe0dc; background: var(--white); color: var(--deep); border-radius: 14px; font: 500 1.05rem "Jost", sans-serif; cursor: pointer; padding: 8px; }
.times button small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.times button:hover { border-color: var(--aqua); }
.times button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: var(--white); }
.times button[aria-pressed="true"] small { color: var(--glass); }

.book-card .form-nav .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

@media (max-width: 560px) {
  .book-card { padding: 24px 18px; }
  .times { grid-template-columns: 1fr 1fr; }
}

/* Confirm step */
.hold-note { font-size: .95rem; color: var(--rose); margin-bottom: 1rem; }
.summary { margin: .4rem 0 1.4rem; }
.summary div { display: grid; grid-template-columns: 140px 1fr; gap: 4px 16px; padding: 10px 0; border-top: 1px solid #e3eeeb; }
.summary dt { color: var(--muted); font-size: .95rem; }
.summary dd { color: var(--ink); overflow-wrap: anywhere; }
.policy { background: var(--mist); border-radius: 14px; padding: 16px 18px; }
.policy p { font-size: .95rem; color: var(--ink); }
.book-card .form-error { color: #b04a33; margin-top: 1rem; }
#booked .chosen { display: inline-block; }
#booked h1:focus { outline: none; }

@media (max-width: 560px) {
  .summary div { grid-template-columns: 1fr; gap: 0; }
}

/* Card payment (Stripe's card box) */
.pay { margin-top: 1.4rem; }
.pay h3 { font: 500 1.05rem "Jost", sans-serif; color: var(--deep); }
.pay-note { margin: .2rem 0 1rem; }
#payment { min-height: 120px; }

/* Student concession card photo */
.book-card .tick { margin: 0 0 1.2rem; }
.student-card input[type="file"] { display: block; margin-top: .4rem; font: 400 1rem "Jost", sans-serif; max-width: 100%; }
.card-preview { margin-top: .8rem; max-width: 240px; width: 100%; height: auto; border-radius: 10px; border: 1px solid #dbe9e5; }

/* Returning client */
.welcome-back { background: var(--mist); border-radius: 14px; padding: 16px 18px; margin-bottom: 1.4rem; }
.welcome-title { font-family: "Libre Caslon Display", serif; font-size: 1.5rem; color: var(--deep); }
.welcome-back .form-small { margin-top: .2rem; }
.concession-ok { background: var(--mist); border-radius: 12px; padding: 10px 14px; margin-bottom: 1.2rem; }
.saved-card { background: var(--mist); border-radius: 14px; padding: 14px 18px; margin-bottom: .6rem; }
.saved-card p { color: var(--deep); }

/* Pay a deposit page */
.pay-title { font-size: clamp(2rem, 6vw, 2.6rem); margin-bottom: .4rem; }
.pay-box { margin: 1rem 0; min-height: 120px; }

/* Manage my booking (manage.html): free times grouped by day */
.manage-day { font: 500 1.05rem "Jost", sans-serif; color: var(--deep); margin: 1.4rem 0 0; }
#m-intro { margin-bottom: .4rem; }
