/**
 * HCBS Scheduling — front-end overrides.
 *
 * The host theme uses high-specificity selectors like `.content .text h2 { ... }`
 * AND its stylesheet is enqueued after this one, which means at equal specificity
 * the theme wins. Rather than chase the cascade, we use !important here. Every
 * rule is scoped under one of:
 *   .hcbs-form              (forms — registration, login, profile, booking flow)
 *   .hcbs-dsp-dashboard     (DSP dashboard shell)
 *   .hcbs-parent-dashboard  (parent dashboard shell)
 *   .hcbs-book              (booking flow shell)
 * so nothing leaks elsewhere on the site.
 */

/* ---------- Force left-alignment in our containers ---------- */

.hcbs-form,
.hcbs-form *,
.hcbs-dsp-dashboard,
.hcbs-dsp-dashboard *,
.hcbs-parent-dashboard,
.hcbs-parent-dashboard *,
.hcbs-book,
.hcbs-book * {
    text-align: left !important;
}

/* Re-allow centering for the few things that genuinely need it. */
.hcbs-fa-matrix th,
.hcbs-fa-matrix td,
.hcbs-text-center,
.hcbs-text-center * {
    text-align: center !important;
}

/* ---------- Section titles (work standalone) ----------
 * Theme has `.content .text h2 { font-size: 2.25rem }` etc. with specificity (0,2,1)
 * — we need !important to win. */

.hcbs-form-section-title,
h1.hcbs-form-section-title,
h2.hcbs-form-section-title,
h3.hcbs-form-section-title,
h4.hcbs-form-section-title {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #003251 !important;
    margin: 0 0 0.875rem !important;
    padding: 0 !important;
}
@media (min-width: 768px) {
    .hcbs-form-section-title,
    h2.hcbs-form-section-title,
    h3.hcbs-form-section-title {
        font-size: 1.125rem !important;
        line-height: 1.625rem !important;
    }
}

/* Page-level greeting heading (h1 atop a dashboard or step). Slightly bigger. */
.hcbs-page-title,
h1.hcbs-page-title,
h2.hcbs-page-title {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
    font-weight: 700 !important;
    color: #003251 !important;
    margin: 0 0 1.25rem !important;
    padding: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
@media (min-width: 768px) {
    .hcbs-page-title,
    h1.hcbs-page-title,
    h2.hcbs-page-title {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }
}
/* Inside a flex header row the bottom margin is unnecessary; the wrapping
 * .flex with `mb-6` already handles vertical spacing. */
.flex > .hcbs-page-title {
    margin-bottom: 0 !important;
}

/* When a subtitle/date follows the page title, tighten the gap so the
 * subtitle reads as a continuation of the heading. */
.hcbs-page-title:has(+ p) {
    margin-bottom: 0.25rem !important;
}

/* ---------- Section spacing (only where we apply the class) ---------- */

.hcbs-form-section {
    margin-bottom: 2.5rem !important;
}
.hcbs-form-section + .hcbs-form-section {
    margin-top: 0 !important;
    padding-top: 2.5rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.hcbs-form-section:last-of-type {
    margin-bottom: 0 !important;
}

/* ---------- Paragraphs ----------
 * Scoped to `.hcbs-form-section` so trailing notes (e.g. "Need to change an
 * appointment? Contact the office...") can use Tailwind utilities like `mt-8`
 * without being overridden. */

.hcbs-form-section p {
    margin: 0 0 1rem !important;
    line-height: 1.5 !important;
}
.hcbs-form-section p:last-child {
    margin-bottom: 0 !important;
}

/* ---------- Field grids ----------
 * Only auto-space grids that are inside `.hcbs-form-section`, so we don't
 * trample inner widgets like the booking calendar (`grid-cols-7 gap-1`)
 * or the time picker columns. Cells should NOT also use `.hcbs-field`
 * margin — let `gap` do the work. */

.hcbs-form-section .grid {
    row-gap: 1.5rem !important;
    column-gap: 1.5rem !important;
}

/* For stacked (non-grid) field layouts (e.g. the login form). */
.hcbs-field {
    margin-bottom: 1.5rem !important;
}
.hcbs-field:last-child {
    margin-bottom: 0 !important;
}
/* When a field IS inside a grid, the grid's gap already provides spacing —
 * collapse the field's bottom margin so spacing doesn't double up. */
.hcbs-form-section .grid > .hcbs-field {
    margin-bottom: 0 !important;
}

/* ---------- Field labels (work standalone) ---------- */

.hcbs-field-label {
    display: block !important;
    margin-bottom: 0.625rem !important;
}

/* ---------- Inputs ---------- */

/* Full-width inputs in form contexts. */
.hcbs-form input[type="text"],
.hcbs-form input[type="email"],
.hcbs-form input[type="tel"],
.hcbs-form input[type="password"],
.hcbs-form input[type="number"],
.hcbs-form input[type="date"],
.hcbs-form input[type="time"],
.hcbs-form input[type="datetime-local"],
.hcbs-form textarea,
.hcbs-form select,
.hcbs-book input[type="text"],
.hcbs-book input[type="email"],
.hcbs-book input[type="tel"],
.hcbs-book input[type="password"],
.hcbs-book input[type="number"],
.hcbs-book input[type="date"],
.hcbs-book input[type="time"],
.hcbs-book input[type="datetime-local"],
.hcbs-book textarea,
.hcbs-book select {
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Replace the native select dropdown caret with a custom SVG so we can
 * inset it from the right edge — the browser default sits flush right
 * which looks cramped against the rounded border. */
.hcbs-form select,
.hcbs-book select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23003251' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px 8px !important;
    padding-right: 2.5rem !important;
}
/* Hide IE/legacy Edge native arrow */
.hcbs-form select::-ms-expand,
.hcbs-book select::-ms-expand {
    display: none !important;
}

/* Checkbox/radio inputs themselves stay tiny. */
.hcbs-form input[type="checkbox"],
.hcbs-form input[type="radio"],
.hcbs-dsp-dashboard input[type="checkbox"],
.hcbs-dsp-dashboard input[type="radio"],
.hcbs-parent-dashboard input[type="checkbox"],
.hcbs-parent-dashboard input[type="radio"],
.hcbs-book input[type="checkbox"],
.hcbs-book input[type="radio"] {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* ---------- Checkbox / radio row labels (work standalone) ---------- */

.hcbs-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.8125rem !important;
    line-height: 1.25rem !important;
    color: #003251 !important;
    margin: 0 !important;
    cursor: pointer;
}

/* ---------- Consent / multi-line agreement lines ---------- */

.hcbs-consent {
    font-size: 0.75rem !important;
    line-height: 1.125rem !important;
    align-items: flex-start !important;
}
.hcbs-consent input[type="checkbox"],
.hcbs-consent input[type="radio"] {
    margin-top: 0.125rem !important;
}

/* ---------- Submit button area ----------
 * Top margin gives breathing room above the button (especially after a
 * `.hcbs-checkbox` which has zero margin), and bottom margin keeps the
 * button from hugging the form edge. */

.hcbs-submit-row {
    margin-top: 1rem !important;
    margin-bottom: 1.5rem !important;
}
/* Help/hint copy beneath an input or button. */
.hcbs-submit-help {
    font-size: 0.75rem !important;
    line-height: 1.125rem !important;
    color: rgba(0, 0, 0, 0.6) !important;
    margin: 0.5rem 0 0 !important;
}
.hcbs-submit-row .hcbs-submit-help {
    margin-top: 0.75rem !important;
}

/* ---------- Tables (dashboard appointments, parent dashboard) ---------- */

.hcbs-dsp-dashboard table,
.hcbs-parent-dashboard table {
    width: 100% !important;
}
.hcbs-dsp-dashboard table th,
.hcbs-dsp-dashboard table td,
.hcbs-parent-dashboard table th,
.hcbs-parent-dashboard table td {
    padding: 0.75rem !important;
    vertical-align: top !important;
}

/* ---------- Functional-age matrix ---------- */

.hcbs-fa-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: #003251;
}
.hcbs-fa-matrix th,
.hcbs-fa-matrix td {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    vertical-align: middle;
}
.hcbs-fa-matrix thead th {
    background: rgba(30, 115, 190, 0.08);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hcbs-fa-matrix tbody th {
    background: rgba(30, 115, 190, 0.08);
    text-align: left !important;
    font-weight: 700;
    padding-left: 0.75rem;
}
.hcbs-fa-matrix-caption {
    font-size: 0.75rem;
    color: rgba(0, 50, 81, 0.7);
    margin-bottom: 0.75rem;
}

/* ---------- Schedule editor ---------- */

/* Card-to-card spacing on the schedule tab. The wrapping div uses
 * Tailwind's space-y-* utilities; this rule adds a little extra breathing
 * room with !important so the cards never feel like they're hugging. */
.hcbs-schedule > .hcbs-card + .hcbs-card {
    margin-top: 2.5rem !important;
}
@media (min-width: 768px) {
    .hcbs-schedule > .hcbs-card + .hcbs-card {
        margin-top: 3rem !important;
    }
}

/* Day rows: spacing between days + zebra striping. */
.hcbs-day-rows {
    margin: 0;
}
.hcbs-day-row {
    padding: 0.875rem 0.75rem;
    border-radius: 0.5rem;
}
.hcbs-day-row:nth-child(even) {
    background: rgba(30, 115, 190, 0.04);
}
.hcbs-day-row + .hcbs-day-row {
    margin-top: 0.5rem;
}
.hcbs-day-label {
    padding-top: 0.5rem;
}

/* Block lists: kill browser default left padding and disc bullets. */
.hcbs-block-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 0 0.75rem !important;
}
.hcbs-block-list--flat {
    margin-bottom: 1rem !important;
}
.hcbs-block-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: #003251;
    padding: 0.25rem 0;
}
.hcbs-block-item + .hcbs-block-item {
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}
.hcbs-block-time {
    flex: 1 1 auto;
    min-width: 0;
}
.hcbs-block-remove {
    flex: 0 0 auto;
    margin-left: 1rem;
}
.hcbs-block-empty {
    font-size: 0.75rem;
    color: rgba(0, 50, 81, 0.6);
}

/* Inline add-block form: keep inputs narrow and aligned. */
.hcbs-add-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ---------- Dashboard tabs + logout link ----------
 * Theme styles add an underline to <a>; kill it for tabs and the logout link
 * so the tabs read as plain typographic links with the bottom border as the
 * active indicator. */

.hcbs-tabs .hcbs-tab,
.hcbs-tabs .hcbs-tab:hover,
.hcbs-tabs .hcbs-tab:focus,
.hcbs-logout,
.hcbs-logout:hover,
.hcbs-logout:focus {
    text-decoration: none !important;
}

/* Tab spacing: Tailwind's `pr-*` utilities aren't always in the compiled
 * CSS for plugin templates, so we hard-code padding here. The bottom
 * padding gives the active border-indicator room to breathe under the
 * text. */
.hcbs-tabs .hcbs-tab {
    padding-left: 0 !important;
    padding-right: 1.5rem !important;
    padding-bottom: 1rem !important;
}
@media (min-width: 768px) {
    .hcbs-tabs .hcbs-tab {
        padding-right: 2rem !important;
        padding-bottom: 1.25rem !important;
    }
}

/* ---------- Status pills (read-only tables) ---------- */

.hcbs-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    padding: 0.3125rem 0.625rem !important;
    border-radius: 9999px !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
    background: rgba(0, 50, 81, 0.06) !important;
    color: rgba(0, 50, 81, 0.75) !important;
}
.hcbs-status-pill--approved {
    background: rgba(22, 163, 74, 0.14) !important;
    color: #166534 !important;
}
.hcbs-status-pill--pending {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #92400e !important;
}
.hcbs-status-pill--completed {
    background: rgba(30, 115, 190, 0.14) !important;
    color: #1E73BE !important;
}
.hcbs-status-pill--declined,
.hcbs-status-pill--cancelled {
    background: rgba(0, 0, 0, 0.06) !important;
    color: rgba(0, 50, 81, 0.7) !important;
}

/* ---------- Status dots (overview list, calendar legend) ---------- */

.hcbs-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1E73BE;
}
.hcbs-status-dot[data-status="approved"]  { background: #16a34a; }
.hcbs-status-dot[data-status="pending"]   { background: #f59e0b; }
.hcbs-status-dot[data-status="declined"],
.hcbs-status-dot[data-status="cancelled"] { background: #9ca3af; }
.hcbs-status-dot[data-status="completed"] { background: #1E73BE; }

/* Bigger square swatches for the availability / blackout legend rows. */
.hcbs-status-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
}
.hcbs-status-swatch--avail    { background: rgba(22, 163, 74, 0.22); border: 1px solid rgba(22, 163, 74, 0.4); }
.hcbs-status-swatch--blackout { background: rgba(220, 38, 38, 0.18); border: 1px solid rgba(220, 38, 38, 0.4); }

/* ---------- Stat cards (overview) ---------- */

.hcbs-stats {
    /* Use Tailwind utility classes for layout; this rule only ensures
     * the cards inherit consistent text alignment regardless of theme. */
}

/* ---------- FullCalendar tweaks ----------
 * Scoped to .hcbs-fc so they apply to any plugin calendar (DSP dashboard,
 * booking flow date picker, etc.) but don't leak to the wp-admin office
 * calendar. */

.hcbs-fc .fc {
    font-family: inherit;
    font-size: 0.8125rem;
}
.hcbs-fc .fc-toolbar-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #003251 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
@media (min-width: 768px) {
    .hcbs-fc .fc-toolbar-title {
        font-size: 1.125rem !important;
    }
}
.hcbs-fc .fc-button {
    background: #fff !important;
    color: #003251 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.8rem !important;
}
.hcbs-fc .fc-button:hover {
    background: #f3f7fb !important;
    color: #1E73BE !important;
}
.hcbs-fc .fc-button-primary:not(:disabled).fc-button-active,
.hcbs-fc .fc-button-primary:not(:disabled):active {
    background: #1E73BE !important;
    color: #fff !important;
    border-color: #1E73BE !important;
}
.hcbs-fc .fc-event {
    border-radius: 4px !important;
    padding: 1px 4px !important;
    font-weight: 600 !important;
    cursor: pointer;
}
.hcbs-fc .fc-day-today {
    background: rgba(30, 115, 190, 0.06) !important;
}

/* Background overlay events (availability + blackouts).
 *
 * FullCalendar 6 ships `.fc-bg-event { opacity: 0.3 }` which, combined with
 * any rgba alpha we set from PHP, makes the overlays almost invisible.
 * Force opacity to 1 and use a noticeably tinted color. We target both the
 * `.fc-bg-event` element AND our own classNames (lenient selector in case
 * FullCalendar puts our classNames on a different node). */
.hcbs-fc .fc-bg-event,
.hcbs-fc .fc.fc-bg-event,
.hcbs-fc .hcbs-bg-event {
    opacity: 1 !important;
}
.hcbs-fc .hcbs-bg-event--recurring,
.hcbs-fc .hcbs-bg-event--override,
.hcbs-fc .fc-bg-event.hcbs-bg-event--recurring,
.hcbs-fc .fc-bg-event.hcbs-bg-event--override {
    background-color: rgba(22, 163, 74, 0.30) !important;
    border-left: 3px solid rgba(22, 163, 74, 0.65) !important;
}
.hcbs-fc .hcbs-bg-event--blackout,
.hcbs-fc .fc-bg-event.hcbs-bg-event--blackout {
    background-color: rgba(220, 38, 38, 0.28) !important;
    border-left: 3px solid rgba(220, 38, 38, 0.7) !important;
}
/* Time-range label on availability overlay events. Rendered via FC's
 * `eventContent` callback so the text is reliable across views. */
.hcbs-fc .hcbs-bg-event-label,
.hcbs-bg-event-label {
    display: block;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(0, 50, 81, 0.85);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mute overlays + labels on out-of-month days (FullCalendar adds
 * `.fc-day-other` to those cells). They should still be readable but
 * clearly secondary to the active month. */
.hcbs-fc .fc-day-other .fc-bg-event,
.hcbs-fc .fc-day-other .hcbs-bg-event {
    opacity: 0.35 !important;
}
.hcbs-fc .fc-day-other .hcbs-bg-event-label {
    color: rgba(0, 50, 81, 0.45) !important;
}

/* Day-overview modal sections. */
.hcbs-day-block + .hcbs-day-block {
    margin-top: 1.25rem;
}
.hcbs-day-block-heading {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1E73BE !important;
    margin: 0 0 0.5rem !important;
}
.hcbs-day-block-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.hcbs-day-block-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    font-size: 0.875rem;
    color: #003251;
    line-height: 1.4;
}
.hcbs-day-block-list li:last-child {
    border-bottom: none;
}
.hcbs-day-block-list .hcbs-status-dot {
    margin-top: 0.4rem;
    flex: 0 0 auto;
}
.hcbs-day-empty {
    color: rgba(0, 50, 81, 0.65);
    font-size: 0.875rem;
    margin: 0;
}
.hcbs-cal-modal-card .hcbs-form-section-title {
    margin-bottom: 1rem !important;
}

/* Legend & toggle row above the calendar. */
.hcbs-cal-toggles {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    column-gap: 1.25rem !important;
    row-gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}
.hcbs-cal-toggles-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0, 50, 81, 0.6);
}
.hcbs-cal-legend {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    column-gap: 1.5rem !important;
    row-gap: 0.5rem !important;
    margin-top: 1.5rem !important;
    font-size: 0.75rem !important;
    color: rgba(0, 50, 81, 0.8) !important;
}
.hcbs-cal-legend > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    white-space: nowrap;
}

/* ---------- Booking detail modal ---------- */

.hcbs-cal-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.hcbs-cal-modal.hidden {
    display: none;
}
.hcbs-cal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 50, 0.55);
}
.hcbs-cal-modal-card {
    position: relative;
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
@media (min-width: 768px) {
    .hcbs-cal-modal-card {
        padding: 2rem;
    }
}
.hcbs-cal-modal-card h3 {
    margin-top: 0 !important;
    padding-right: 2rem !important;
}
.hcbs-cal-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: rgba(0, 50, 81, 0.6);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 0.375rem;
}
.hcbs-cal-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #003251;
}
.hcbs-cal-modal-body p {
    margin: 0 0 0.5rem !important;
}
.hcbs-cal-modal-body p:last-child {
    margin-bottom: 0 !important;
}

/* ---------- Overview lists (Upcoming / Recently completed) ---------- */

.hcbs-overview-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.625rem !important;
}
.hcbs-overview-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.875rem !important;
    padding: 1rem 1.125rem !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 0.625rem !important;
    transition: border-color 150ms ease, box-shadow 150ms ease !important;
}
.hcbs-overview-item:hover {
    border-color: rgba(30, 115, 190, 0.35) !important;
    box-shadow: 0 1px 4px rgba(0, 50, 81, 0.06) !important;
}
.hcbs-overview-item > .hcbs-status-dot {
    flex: 0 0 auto !important;
    margin-top: 0.4375rem !important;
}
.hcbs-overview-item-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.hcbs-overview-item-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
}
.hcbs-overview-item-title {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #003251 !important;
    line-height: 1.4 !important;
}
.hcbs-overview-item-meta {
    margin-top: 0.3125rem !important;
    font-size: 0.8125rem !important;
    color: rgba(0, 50, 81, 0.78) !important;
    line-height: 1.45 !important;
}
.hcbs-overview-item-contact {
    margin-top: 0.375rem !important;
    font-size: 0.75rem !important;
    color: rgba(0, 50, 81, 0.6) !important;
    line-height: 1.4 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.375rem !important;
}
.hcbs-overview-link {
    color: #1E73BE !important;
    text-decoration: none !important;
    border-bottom: 1px dotted rgba(30, 115, 190, 0.45) !important;
    transition: color 150ms ease, border-color 150ms ease !important;
}
.hcbs-overview-link:hover {
    color: #003251 !important;
    border-bottom-color: #003251 !important;
}
.hcbs-overview-sep {
    color: rgba(0, 50, 81, 0.35) !important;
}
.hcbs-overview-empty {
    margin: 0 !important;
    padding: 1rem 1.125rem !important;
    background: rgba(0, 50, 81, 0.03) !important;
    border: 1px dashed rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.625rem !important;
    font-size: 0.875rem !important;
    color: rgba(0, 50, 81, 0.65) !important;
}
.hcbs-overview-footnote {
    margin: 1.5rem 0 0 !important;
    font-size: 0.75rem !important;
    color: rgba(0, 50, 81, 0.65) !important;
    line-height: 1.45 !important;
}

/* =====================================================================
 * Booking flow (parent-facing stepper)
 * ===================================================================== */

/* ---------- Stepper pills ---------- */

.hcbs-stepper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0 0 2rem !important;
    padding: 0 !important;
    list-style: none !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
.hcbs-stepper .hcbs-step-pill {
    padding: 0.5rem 0.875rem !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 9999px !important;
    background: #fff !important;
    color: rgba(0, 50, 81, 0.55) !important;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease !important;
    line-height: 1 !important;
}
.hcbs-stepper .hcbs-step-pill.is-complete {
    background: rgba(30, 115, 190, 0.08) !important;
    color: #1E73BE !important;
    border-color: rgba(30, 115, 190, 0.35) !important;
}
.hcbs-stepper .hcbs-step-pill.is-active {
    background: #1E73BE !important;
    color: #fff !important;
    border-color: #1E73BE !important;
}

/* ---------- Step actions (button row) ---------- */

.hcbs-book .hcbs-step-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.hcbs-book .hcbs-step-actions > span:empty {
    display: inline-block !important;
}

/* ---------- Page title spacing inside book card ---------- */

.hcbs-book .hcbs-form-section .hcbs-page-title {
    margin-top: 0 !important;
}

/* ---------- DSP & service cards (selectable) ---------- */

.hcbs-dsp-list,
.hcbs-service-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
}
@media (min-width: 768px) {
    .hcbs-dsp-list,
    .hcbs-service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.hcbs-dsp-card,
.hcbs-service-card {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.875rem 1rem !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.5rem !important;
    background: #fff !important;
    color: #003251 !important;
    cursor: pointer !important;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease !important;
}
.hcbs-dsp-card:hover,
.hcbs-service-card:hover {
    border-color: #1E73BE !important;
    box-shadow: 0 1px 3px rgba(0, 50, 81, 0.08) !important;
}
.hcbs-dsp-card.is-selected,
.hcbs-service-card.is-selected {
    border-color: #1E73BE !important;
    background: rgba(30, 115, 190, 0.06) !important;
}
.hcbs-service-card {
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    justify-content: flex-start !important;
}

.hcbs-dsp-card-img {
    flex: 0 0 auto !important;
    width: 3.25rem !important;
    height: 3.25rem !important;
    border-radius: 0.5rem !important;
    object-fit: cover !important;
    background: rgba(0, 0, 0, 0.06) !important;
}
.hcbs-dsp-card-img--blank {
    display: block !important;
}
.hcbs-dsp-card-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.hcbs-dsp-card-name {
    font-weight: 700 !important;
    color: #003251 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.hcbs-dsp-card-meta {
    font-size: 0.75rem !important;
    color: rgba(0, 50, 81, 0.65) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Pre-selected DSP card on step 1 */
.hcbs-dsp-preselected {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.5rem !important;
    background: rgba(30, 115, 190, 0.04) !important;
}
.hcbs-dsp-preselected img {
    width: 4rem !important;
    height: 4rem !important;
    border-radius: 0.5rem !important;
    object-fit: cover !important;
}
.hcbs-dsp-preselected-name {
    font-weight: 700 !important;
    color: #003251 !important;
}
.hcbs-dsp-preselected-meta {
    font-size: 0.75rem !important;
    color: rgba(0, 50, 81, 0.65) !important;
    margin-top: 0.125rem !important;
}

/* ---------- Empty / loading list rows ---------- */

.hcbs-list-empty,
.hcbs-list-error {
    grid-column: 1 / -1 !important;
    padding: 0.75rem 0 !important;
    font-size: 0.875rem !important;
    color: rgba(0, 50, 81, 0.6) !important;
    list-style: none !important;
}
.hcbs-list-error {
    color: #b91c1c !important;
}

/* ---------- Step 1: filter row → DSP list spacing ---------- */

.hcbs-form-section .grid + .hcbs-dsp-list,
.hcbs-form-section .grid + .hcbs-service-list {
    margin-top: 1.75rem !important;
}

/* ---------- Step 3: FullCalendar date picker ---------- */

.hcbs-step-help {
    margin: 0 0 1.25rem !important;
    font-size: 0.875rem !important;
    color: rgba(0, 50, 81, 0.7) !important;
    line-height: 1.5 !important;
}
.hcbs-book-calendar {
    display: block !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
}
/* Selected day indicator on the FullCalendar grid */
.hcbs-fc .fc-daygrid-day.hcbs-fc-day-selected {
    box-shadow: inset 0 0 0 2px #1E73BE !important;
    background: rgba(30, 115, 190, 0.08) !important;
}
.hcbs-fc .fc-daygrid-day.hcbs-fc-day-selected .fc-daygrid-day-number {
    color: #1E73BE !important;
    font-weight: 700 !important;
}
/* Past / disabled days are visually muted but keep grid alignment */
.hcbs-fc .fc-day-disabled {
    background: rgba(0, 0, 0, 0.02) !important;
}
.hcbs-fc .fc-day-disabled .fc-daygrid-day-number {
    color: rgba(0, 50, 81, 0.25) !important;
}
.hcbs-fc .fc-daygrid-day:not(.fc-day-disabled) {
    cursor: pointer !important;
}

.hcbs-windows-heading {
    margin: 0 0 1rem !important;
}

/* Available windows list + time picker */
.hcbs-windows {
    list-style: none !important;
    margin: 0 0 1rem !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}
.hcbs-window-card {
    padding: 0.75rem 1rem !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 0.5rem !important;
    background: #fff !important;
    color: #003251 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: border-color 150ms ease, background-color 150ms ease !important;
}
.hcbs-window-card:hover {
    border-color: #1E73BE !important;
}
.hcbs-window-card.is-selected {
    border-color: #1E73BE !important;
    background: rgba(30, 115, 190, 0.06) !important;
    font-weight: 600 !important;
}
.hcbs-time-picker {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px dashed rgba(0, 0, 0, 0.1) !important;
}
.hcbs-time-hint {
    margin: 0.75rem 0 0 !important;
    font-size: 0.75rem !important;
    color: rgba(0, 50, 81, 0.65) !important;
    line-height: 1.4 !important;
}

/* ---------- Step 4: Recurrence ---------- */

.hcbs-radio-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.625rem !important;
    margin-bottom: 1.25rem !important;
}
.hcbs-radio-meta {
    color: rgba(0, 50, 81, 0.65) !important;
    font-weight: 400 !important;
}
.hcbs-rec-fields {
    margin-top: 1rem !important;
}
.hcbs-rec-preview {
    margin-top: 1.25rem !important;
    padding: 1rem 1.25rem !important;
    background: rgba(30, 115, 190, 0.06) !important;
    border: 1px solid rgba(30, 115, 190, 0.18) !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    color: #003251 !important;
}
.hcbs-rec-preview-title {
    display: block !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
}
.hcbs-rec-preview ul {
    list-style: disc !important;
    margin: 0 !important;
    padding-left: 1.25rem !important;
    line-height: 1.5 !important;
}
.hcbs-rec-preview ul li {
    margin: 0.125rem 0 !important;
}

/* ---------- Step 5: Account create section ---------- */

.hcbs-form-section--bordered {
    margin-top: 0 !important;
}
.hcbs-account-fields {
    margin-top: 1rem !important;
}

/* ---------- Step 6: Review ---------- */

.hcbs-review {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    padding: 1.25rem 1.5rem !important;
    background: rgba(0, 50, 81, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 0.5rem !important;
}
.hcbs-review-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.125rem 1rem !important;
    font-size: 0.875rem !important;
    color: #003251 !important;
    line-height: 1.5 !important;
}
@media (min-width: 640px) {
    .hcbs-review-row {
        grid-template-columns: 9rem 1fr !important;
    }
}
.hcbs-review-label {
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #1E73BE !important;
}
.hcbs-review-value {
    color: #003251 !important;
}
.hcbs-errors {
    margin-top: 1rem !important;
    color: #b91c1c !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
}
.hcbs-errors:empty {
    display: none !important;
}
.hcbs-errors > div {
    margin-bottom: 0.25rem !important;
}

/* ---------- Confirmation ---------- */

.hcbs-done {
    text-align: center !important;
    padding: 2rem 0 !important;
}
.hcbs-done .hcbs-page-title {
    text-align: center !important;
    margin-bottom: 0.75rem !important;
}
.hcbs-done-msg {
    margin: 0 !important;
    font-size: 0.9375rem !important;
    color: #003251 !important;
    line-height: 1.5 !important;
}
