/* ============================================================================
   All Checked Up Booking Platform CSS
 */

:root {
    --ink: #182A2D;
    --muted: #5C6F6D;
    --bg: #F4F8F7;
    --surface: #FFFFFF;
    --line: #D9E4E1;
    --brand: #006633;
    --brand-deep: #0A524A;
    --brand-soft: #E1F0EC;
    --save: #9A5B00;
    --save-soft: #FBF0DF;
    --radius: 14px;
}

html, body { height: 100%; }

body {
    background: var(--bg);
    color: var(--ink);
	font-family: 'Poppins', sans-serif;
   
    display: flex;
    flex-direction: column;
}

.booking-main { max-width: 900px; flex: 1 0 auto; }

/* ─── Header & footer ─────────────────────────────────────────────────────── */
 
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
 
.brand {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}
.brand span { color: var(--brand); }
 
.account-link { color: var(--brand); text-decoration: none; font-weight: 500; }
.account-link:hover { text-decoration: underline; }
 
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}
 
/* ─── Stepper — the "care pathway" line ──────────────────────────────────── */
 
.stepper-wrap { background: var(--surface); border-bottom: 1px solid var(--line); }
 
.stepper {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    overflow-x: auto;
}
 
.stepper li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    min-width: 0;
    color: var(--muted);
    font-size: 0.85rem;
    white-space: nowrap;
    position: relative;
}
 
.stepper li:not(:last-child)::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--line);
    margin: 0 0.6rem;
    border-radius: 1px;
}
.stepper li.done:not(:last-child)::after { background: var(--brand); }
 
.stepper .dot {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--bg);
    border: 2px solid var(--line);
    flex-shrink: 0;
}
.stepper li.current .dot { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.stepper li.current .label { color: var(--ink); font-weight: 600; }
.stepper li.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
 
/* ─── Page headings ──────────────────────────────────────────────────────── */
 
.page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 0.25rem;
}
.page-lead { color: var(--muted); margin-bottom: 1.5rem; }
.page-lead a { color: var(--brand); }
 
.panel-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; }
 
/* ─── Option cards (the house style) ─────────────────────────────────────── */
 
.option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    position: relative;
}
 
.option-card:hover { border-color: var(--brand); }
 
.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
 
.option-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.option-card-title { font-weight: 600; font-size: 1.02rem; }
.option-card-sub { color: var(--muted); font-size: 0.88rem; }
.option-card-meta { display: flex; gap: 0.4rem; margin-top: 0.35rem; flex-wrap: wrap; }
 
.option-card-price {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.option-card-price .was { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
 
.option-card .tick {
    width: 26px; height: 26px;
    border: 2px solid var(--line);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.15s;
}
 
.option-card:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 1px var(--brand);
}
.option-card:has(input:checked) .tick {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.option-card:has(input:focus-visible) {
    outline: 3px solid rgba(14, 110, 99, 0.35);
    outline-offset: 2px;
}
 
.badge-soft {
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: 99px;
    font-size: 0.78rem;
    padding: 0.1rem 0.6rem;
}
.badge-save {
    background: var(--save-soft);
    color: var(--save);
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.1rem 0.6rem;
}
 
/* ─── Area → clinic expanding groups ─────────────────────────────────────── */
 
.area-card { justify-content: space-between; }
.area-card .chev {
    font-size: 1.4rem;
    color: var(--muted);
    transition: transform 0.2s;
}
.area-group.open .area-card { border-color: var(--brand); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.area-group.open .area-card .chev { transform: rotate(90deg); color: var(--brand); }
 
.clinic-list {
    border: 2px solid var(--brand);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.clinic-card { border-width: 1.5px; padding: 0.8rem 1rem; }
 
/* ─── Date strip & slot grid ─────────────────────────────────────────────── */
 
.date-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    scrollbar-width: thin;
}
 
.date-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 72px;
    padding: 0.55rem 0.6rem;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.date-pill .dow { font-size: 0.78rem; color: var(--muted); }
.date-pill .dom { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.date-pill:hover { border-color: var(--brand); color: var(--ink); }
.date-pill.active { border-color: var(--brand); background: var(--brand-soft); }
.date-pill.active .dow { color: var(--brand); font-weight: 600; }
 
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 0.6rem;
}
 
.slot-btn {
    border: 2px solid var(--line);
    background: var(--surface);
    border-radius: 10px;
    padding: 0.6rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    transition: all 0.12s;
}
.slot-btn:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.slot-btn:focus-visible { outline: 3px solid rgba(14, 110, 99, 0.35); outline-offset: 2px; }
 
.empty-slots {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: var(--muted);
}
 
.sibling-panel {
    margin-top: 1.5rem;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.sibling-heading { font-weight: 600; margin: 0; flex-basis: 100%; }
 
.btn-outline-brand {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    font-weight: 600;
}
.count-chip {
    background: var(--brand-soft);
    color: var(--brand-deep);
    border-radius: 99px;
    padding: 0.1rem 0.55rem;
    font-size: 0.78rem;
    margin-left: 0.4rem;
}
.btn-outline-brand:hover .count-chip { background: rgba(255, 255, 255, 0.2); color: #fff; }
 
/* ─── Basket / summary card ──────────────────────────────────────────────── */
 
.basket-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}
.basket-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.9rem; }
.basket-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    font-size: 0.95rem;
}
.basket-line.addon { color: var(--muted); }
.basket-line.saving { color: var(--save); font-weight: 600; }
.basket-total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    margin-top: 0.6rem;
    padding-top: 0.7rem;
    font-weight: 700;
    font-size: 1.05rem;
}
.basket-note { color: var(--muted); font-size: 0.85rem; margin: 0.75rem 0 0; }
.basket-when {
    border-top: 1px solid var(--line);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.basket-when a { color: var(--brand); }
 
/* ─── Forms & actions ────────────────────────────────────────────────────── */
 
.form-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.25rem rgba(14, 110, 99, 0.15);
}
.pay-card { margin-bottom: 0.6rem; }
 
.flow-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}
 
.btn-brand {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-deep);
    --bs-btn-hover-border-color: var(--brand-deep);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-weight: 600;
    padding-left: 2rem;
    padding-right: 2rem;
}
 
/* ─── Confirmation ───────────────────────────────────────────────────────── */
 
.confirm-panel { text-align: center; max-width: 560px; margin: 1.5rem auto; }
.confirm-mark {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.confirm-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: left;
    padding: 0.5rem 1.25rem;
    margin-top: 1.25rem;
}
.confirm-row {
    display: flex;
    gap: 1.5rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.confirm-row:last-child { border-bottom: 0; }
.confirm-row > span:first-child { color: var(--muted); min-width: 72px; flex-shrink: 0; }
.confirm-row > span:last-child { font-weight: 600; }
 
/* ─── Accessibility & motion ─────────────────────────────────────────────── */
 
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
 
/* ─── Date navigation (3-month window) ───────────────────────────────────── */
 
.date-nav {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.date-nav .date-strip { flex: 1; margin-bottom: 0; padding-bottom: 0.25rem; }
 
.date-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--brand);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.date-arrow:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.date-arrow.disabled { color: var(--line); pointer-events: none; }
 
.date-jump {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-basis: 100%;
    max-width: 260px;
}
.date-jump .form-control { border: 2px solid var(--line); border-radius: 10px; }
.date-jump .form-control:focus { border-color: var(--brand); }
 
.empty-slots.closed {
    border-style: solid;
    border-left: 4px solid var(--save);
    color: var(--ink);
}
 
/* ─── Info icon + popup ──────────────────────────────────────────────────── */
 
.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 0.35rem;
    border: 1.5px solid var(--brand);
    border-radius: 50%;
    background: var(--surface);
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
    line-height: 1;
    cursor: pointer;
    vertical-align: 2px;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}
.info-btn:hover { background: var(--brand); color: #fff; }
.info-btn:focus-visible { outline: 3px solid rgba(14, 110, 99, 0.35); outline-offset: 2px; }
 
.info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 42, 45, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1050;
}
 
.info-modal {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 20px 50px rgba(24, 42, 45, 0.25);
}
.info-modal-title { font-size: 1.15rem; font-weight: 700; margin: 0 1.5rem 0.6rem 0; }
.info-modal-body { color: var(--muted); margin: 0; white-space: pre-line; }
 
.info-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    border: 0;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0.25rem;
}
.info-modal-close:hover { color: var(--ink); }
.info-modal-close:focus-visible { outline: 3px solid rgba(14, 110, 99, 0.35); border-radius: 6px; }
 
/* ─── AJAX loading state on the slot picker ──────────────────────────────── */
 
#slot-results { transition: opacity 0.15s; }
#slot-results.loading { opacity: 0.45; pointer-events: none; }
 
/* ─── Payment states on confirmation pages ───────────────────────────────── */
 
.confirm-mark.processing { background: var(--save); }
.confirm-mark.cancelled  { background: #A8452F; }
 
/* ─── Category filter chips + add-on groups ──────────────────────────────── */
 
.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: 2px solid var(--line);
    border-radius: 99px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip.active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-weight: 600;
}
.chip-count {
    background: var(--bg);
    border-radius: 99px;
    padding: 0 0.45rem;
    font-size: 0.78rem;
    color: var(--muted);
}
.chip.active .chip-count { background: rgba(255, 255, 255, 0.7); }
 
.addon-group-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.25rem 0 0.75rem;
    color: var(--ink);
}
 
/* ─── Category filter dropdown + product groups ──────────────────────────── */
 
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.filter-bar label { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.filter-bar select.form-select {
    border: 2px solid var(--line);
    border-radius: 10px;
    max-width: 300px;
    font-weight: 500;
}
.filter-bar select.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.25rem rgba(14, 110, 99, 0.15);
}
 
.product-group-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.25rem 0 0.75rem;
    color: var(--ink);
}
 
/* ─── My Account ─────────────────────────────────────────────────────────── */
 
.auth-panel { max-width: 440px; margin: 1.5rem auto; }
.code-input { letter-spacing: 0.5em; text-align: center; font-size: 1.4rem; }
 
.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
}
 
.account-booking {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.account-booking.is-past { border-left-color: var(--line); opacity: 0.85; }
.account-booking-main { display: flex; flex-direction: column; gap: 0.15rem; }
.account-booking-when { font-weight: 700; }
.account-booking-what { font-size: 0.95rem; }
.account-booking-where { color: var(--muted); font-size: 0.85rem; }
.account-booking-side { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-end; }
 
.badge-status {
    border-radius: 99px;
    padding: 0.15rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--muted);
    white-space: nowrap;
}
.badge-status.confirmed, .badge-status.pay-paid { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }
.badge-status.pending, .badge-status.pay-deposit_paid { background: var(--save-soft); border-color: var(--save); color: var(--save); }
.badge-status.cancelled, .badge-status.no_show { background: #FBE9E5; border-color: #A8452F; color: #A8452F; }
 
/* ─── Packages ───────────────────────────────────────────────────────────── */
 
.badge-covered {
    background: var(--brand-soft);
    color: var(--brand-deep);
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.1rem 0.6rem;
    white-space: nowrap;
}
.option-card.is-disabled { opacity: 0.5; cursor: not-allowed; }
.credit-counter { color: var(--muted); font-weight: 600; margin: 1rem 0 0; }
.btn-sm.btn-outline-brand { font-size: 0.82rem; }
 
/* ─── Membership ─────────────────────────────────────────────────────────── */
 
.member-teaser { color: var(--save); font-size: 0.78rem; font-weight: 600; }
.benefit-list { list-style: none; padding: 0; margin: 1rem 0; }
.benefit-list li { padding: 0.4rem 0 0.4rem 1.8rem; position: relative; }
.benefit-list li::before {
    content: "✓";
    position: absolute; left: 0;
    color: var(--brand); font-weight: 700;
}
 
/* ─── Packages page ──────────────────────────────────────────────────────── */
 
.package-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--brand-soft);
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    padding: 0.8rem 1.1rem;
    margin: 0 0 1.25rem;
    color: var(--brand-deep);
    text-decoration: none;
    flex-wrap: wrap;
}
.package-strip:hover { filter: brightness(0.98); }
.package-strip-cta { font-weight: 700; white-space: nowrap; }
 
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}
.package-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.package-card-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: start; flex-wrap: wrap; }
.package-card-name { font-size: 1.15rem; font-weight: 700; margin: 0; }
.package-card-desc { color: var(--muted); font-size: 0.92rem; margin: 0; }
.package-card-includes { font-weight: 600; font-size: 0.85rem; margin: 0.35rem 0 0; }
.package-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.package-chip {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 0.2rem 0.7rem;
    font-size: 0.82rem;
}
.package-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.package-card-price { font-size: 1.35rem; font-weight: 800; color: var(--brand-deep); }
.package-card-per { color: var(--muted); font-size: 0.85rem; }
 
.clinic-note {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #8A6D1E;
    background: #FFF8E9;
    border: 1px solid #EFDFB8;
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
}
 