/* =========================================================================
   Booking page — month calendar, time slots, details form
   ========================================================================= */
.book-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.book-panel { padding: 28px; border-radius: var(--radius); background: linear-gradient(165deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.book-panel h3 { font-size: 1.15rem; margin: 0 0 4px; }
.book-panel .hint { color: var(--muted-2); font-size: .88rem; margin: 0 0 18px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head b { font-family: var(--font-head); font-size: 1.2rem; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.cal-nav button:disabled { opacity: .3; cursor: default; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-family: var(--font-head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); padding-bottom: 6px; }
.cal-day {
  position: relative; aspect-ratio: 1; border-radius: 12px; border: 1px solid transparent;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  background: none; color: var(--muted-2); cursor: default; padding: 0;
}
.cal-day.blank { visibility: hidden; }
.cal-day.x { color: rgba(159,177,201,.38); }
.cal-day.x::after { /* the "crossed out" slash */
  content: ""; position: absolute; left: 22%; right: 22%; top: 50%; height: 2px; border-radius: 2px;
  background: rgba(232,65,47,.55); transform: rotate(-38deg);
}
.cal-day.open { color: var(--ink); background: rgba(41,171,226,.12); border-color: rgba(41,171,226,.4); cursor: pointer; transition: background .2s, transform .2s; }
.cal-day.open:hover { background: rgba(41,171,226,.22); transform: translateY(-2px); }
.cal-day.open::before { content: ""; position: absolute; bottom: 14%; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-bright); box-shadow: 0 0 6px var(--cyan-bright); }
.cal-day.sel { background: var(--grad-brand); color: #04121f; border-color: transparent; }
.cal-day.sel::before { background: #04121f; box-shadow: none; }
.cal-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; color: var(--muted-2); font-size: .84rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; position: relative; }
.cal-legend .lo { background: rgba(41,171,226,.2); border: 1px solid rgba(41,171,226,.5); }
.cal-legend .lx { background: rgba(255,255,255,.05); }
.cal-legend .lx::after { content: ""; position: absolute; left: 1px; right: 1px; top: 6px; height: 2px; background: rgba(232,65,47,.7); transform: rotate(-38deg); }

.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.slot { padding: 14px 10px; border-radius: 12px; border: 1px solid rgba(41,171,226,.4); background: rgba(41,171,226,.08); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 1rem; cursor: pointer; transition: .2s; }
.slot small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .74rem; color: var(--muted-2); margin-top: 2px; }
.slot:hover { background: rgba(41,171,226,.2); }
.slot.sel { background: var(--grad-brand); color: #04121f; border-color: transparent; }
.slot.sel small { color: #0b2a44; }
.slot:disabled { cursor: default; border-color: var(--line); background: rgba(255,255,255,.03); color: rgba(159,177,201,.4); text-decoration: line-through; }
.slot:disabled small { text-decoration: none; }

.book-empty { color: var(--muted-2); text-align: center; padding: 40px 10px; border: 1px dashed var(--line-2); border-radius: 12px; }
.book-summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(41,171,226,.1); border: 1px solid rgba(41,171,226,.3); margin: 16px 0 18px; }
.book-summary svg { width: 22px; height: 22px; color: var(--cyan-bright); flex: none; }
.book-summary b { font-family: var(--font-head); }
.book-summary span { display: block; color: var(--muted); font-size: .84rem; }
.book-step[hidden] { display: none; }

.book-done { text-align: center; padding: 18px 6px; }
.book-done .form-success__icon { margin-bottom: 16px; }
.book-done .meet-link { display: inline-block; margin: 14px 0 6px; word-break: break-all; }
.book-done p { color: var(--muted); }

.book-side { display: grid; gap: 14px; margin-top: 22px; }
.book-side div { display: flex; gap: 12px; color: var(--muted); font-size: .95rem; }
.book-side .ck { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(41,171,226,.14); color: var(--cyan-bright); }

@media (max-width: 980px) { .book-wrap { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .book-panel { padding: 18px; }
  .cal-grid { gap: 4px; }
  .cal-day { border-radius: 9px; font-size: .92rem; }
}
