/* ── /book and /book/manage ─────────────────────────────────────────────
   Loaded only on booking paths (App.razor gates it like ai-news.css). Builds on the shared
   .manual-form-glass styles in forms.css so the scheduler matches the contact form. */

.booking-hero { padding-top: 5.5rem; padding-bottom: 3rem; }
@media (min-width: 992px) { .booking-hero { padding-top: 7rem; padding-bottom: 3.5rem; } }

.booking-hero-facts { display: grid; gap: .6rem; }
.booking-hero-facts li { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.78); font-size: .95rem; }
.booking-hero-facts li i { flex: 0 0 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(139,92,246,.18); border: 1px solid rgba(139,92,246,.35); color: #c4b5fd; }

.booking-section { padding-top: 0; margin-top: -1.5rem; position: relative; z-index: 3; }

.booking-card { color: rgba(255,255,255,.9); }
.booking-card .manual-form-header { flex-wrap: wrap; row-gap: .5rem; }
.booking-block + .booking-block { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.07); }
.booking-legend { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .3px; color: rgba(255,255,255,.72); margin-bottom: .6rem; text-transform: uppercase; }
fieldset.booking-block { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Step indicator */
.booking-steps { display: flex; gap: .35rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.booking-steps li { counter-increment: step; font-size: .7rem; letter-spacing: .3px; text-transform: uppercase; color: rgba(255,255,255,.4); display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem .25rem .3rem; border-radius: 2rem; border: 1px solid transparent; }
.booking-steps li::before { content: counter(step); width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.booking-steps li.is-active { color: #fff; border-color: rgba(139,92,246,.4); background: rgba(139,92,246,.12); }
.booking-steps li.is-active::before { background: linear-gradient(135deg,#8B5CF6,#1A6B7A); color: #fff; }
.booking-steps li.is-done::before { content: "\2713"; background: #22c55e; color: #052e16; }
@media (max-width: 575.98px) { .booking-steps { width: 100%; } .booking-steps li { flex: 1; justify-content: center; } }

.booking-tz-toggle { background: none; border: 0; padding: 0 0 0 .35rem; color: #7dd3fc; font-size: inherit; text-decoration: underline dotted; cursor: pointer; }
.booking-tz-toggle:hover, .booking-tz-toggle:focus-visible { color: #bae6fd; }
.booking-tz-select { margin-left: .35rem; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: .4rem; font-size: .72rem; padding: .1rem .35rem; max-width: 220px; }

/* Topics */
.booking-topics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
@media (min-width: 768px) { .booking-topics { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.booking-topic { position: relative; display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border-radius: .8rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); cursor: pointer; font-size: .86rem; color: rgba(255,255,255,.85); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.booking-topic input { position: absolute; opacity: 0; pointer-events: none; }
.booking-topic i { font-size: 1.1rem; color: #c4b5fd; flex: 0 0 auto; }
.booking-topic:hover { border-color: rgba(139,92,246,.45); background: rgba(139,92,246,.08); }
.booking-topic.is-selected { border-color: rgba(139,92,246,.8); background: linear-gradient(135deg, rgba(91,45,142,.35), rgba(26,107,122,.3)); box-shadow: 0 0 0 1px rgba(139,92,246,.35) inset; }
.booking-topic:has(input:focus-visible) { outline: 2px solid #7dd3fc; outline-offset: 2px; }

/* Day strip */
.booking-daynav { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.6); }
.booking-daynav-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease; }
.booking-daynav-btn:hover:not(:disabled) { background: rgba(139,92,246,.25); }
.booking-daynav-btn:disabled { opacity: .35; cursor: not-allowed; }
.booking-days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: .45rem; }
@media (max-width: 575.98px) { .booking-days { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.booking-day { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem .25rem; border-radius: .75rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #fff; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.booking-day-dow { font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.55); }
.booking-day-num { font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.booking-day-count { font-size: .66rem; color: #86efac; }
.booking-day.is-empty { opacity: .45; }
.booking-day.is-empty .booking-day-count { color: rgba(255,255,255,.5); }
.booking-day:hover:not(:disabled) { border-color: rgba(139,92,246,.5); background: rgba(139,92,246,.1); transform: translateY(-1px); }
.booking-day.is-selected { border-color: rgba(139,92,246,.9); background: linear-gradient(135deg, rgba(91,45,142,.45), rgba(26,107,122,.35)); }
.booking-day:disabled { cursor: not-allowed; }
.booking-day:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }

/* Slots */
.booking-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .5rem; min-height: 2.5rem; }
.booking-slot { padding: .6rem .5rem; border-radius: .7rem; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.booking-slot:hover { border-color: rgba(52,211,153,.6); background: rgba(52,211,153,.1); transform: translateY(-1px); }
.booking-slot.is-selected { border-color: #34d399; background: linear-gradient(135deg, rgba(16,185,129,.35), rgba(26,107,122,.4)); box-shadow: 0 0 20px rgba(52,211,153,.2); }
.booking-slot:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
.booking-slot-period { grid-column: 1 / -1; font-size: .7rem; text-transform: uppercase; letter-spacing: .6px; color: rgba(255,255,255,.45); margin-top: .35rem; }
.booking-slot-period:first-child { margin-top: 0; }
.booking-slots.is-loading { opacity: .5; pointer-events: none; }

/* Details form */
.booking-details[hidden] { display: none; }
.booking-details .manual-form-send { width: auto; padding-inline: 2rem; }

/* Success */
.booking-success-when { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 1.25rem; }
.booking-success-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.booking-success-actions .btn { border-radius: .75rem; }

/* Summary aside */
.booking-summary { position: sticky; top: 6rem; border-radius: 1rem; padding: 1.5rem; background: var(--surface-raised); border: 1px solid rgba(148,163,184,.18); box-shadow: 0 8px 30px rgba(2,6,23,.15); }
.booking-summary-list { display: grid; gap: .9rem; margin: 0; }
.booking-summary-list > div { display: grid; grid-template-columns: 96px 1fr; gap: .75rem; align-items: start; }
.booking-summary-list-wide > div { grid-template-columns: 120px 1fr; }
.booking-summary-list dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .4px; color: var(--text-secondary, #94a3b8); font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.booking-summary-list dt i { color: #8B5CF6; }
.booking-summary-list dd { margin: 0; font-size: .92rem; font-weight: 500; }
.booking-summary-list dd.is-set { color: #10b981; font-weight: 700; }
.booking-card .booking-summary-list dt { color: rgba(255,255,255,.55); }
.booking-summary-current { margin-top: 1rem; padding: .75rem .9rem; border-radius: .75rem; background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.3); }
.booking-summary-rule { border-color: rgba(148,163,184,.25); opacity: 1; margin: 1.25rem 0; }
@media (max-width: 991.98px) { .booking-summary { position: static; } }

/* Manage page */
.booking-manage-when { font-size: 1.35rem; font-weight: 700; color: #fff; }
.booking-status { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 2rem; font-size: .75rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.booking-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.booking-status-confirmed { color: #34d399; background: rgba(16,185,129,.15); }
.booking-status-requested { color: #fbbf24; background: rgba(245,158,11,.15); }
.booking-status-cancelled { color: #f87171; background: rgba(239,68,68,.15); }
.booking-status-completed { color: #7dd3fc; background: rgba(14,165,233,.15); }
.booking-status-noshow { color: #cbd5e1; background: rgba(148,163,184,.15); }
.booking-cancel summary { cursor: pointer; color: rgba(255,255,255,.6); font-size: .9rem; }
.booking-cancel summary:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .booking-day, .booking-slot, .booking-topic, .booking-daynav-btn { transition: none; }
}
