/* CallMyPsy palette — "quiet room": cool stone page, white surfaces,
   deep pine text and one pine-green brand colour. */
:root {
    --paper: #F3F5F9;
    --surface-base: #FFFFFF;
    --ink: #16213A;
    --muted: #5E6B82;
    --faint: #8A95A8;
    --line: #D3DBE9;
    --line-soft: #E4E9F2;
    --brand: #1F3B6E;
    --brand-strong: #162C54;
    --brand-soft: #E8EDF6;
    --brand-line: #C9D4E8;
    --font-ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   Booking Calendar & Payment Styles (Shared with doctor-booking.html)
   ═══════════════════════════════════════════════════════════════ */

.fade-in { animation: fadeIn 0.3s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.booking-shell {
    --primary: var(--brand);
    --primary-hover: var(--brand-strong);
    --primary-light: var(--brand-soft);
    --text-primary: var(--ink);
    --text-secondary: var(--muted);
    --text-muted: var(--faint);
    --background: var(--paper);
    --surface: #FFFFFF;
    --border: var(--line);
    --border-light: var(--line-soft);
    --success: #10B981;
    --disabled: #EEF2F7;
    width: 100%;
    margin: 0 auto;
}

.surface-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, var(--line));
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.booking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.booking-grid.has-selection {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

@media (max-width: 900px) {
    .booking-grid, .booking-grid.has-selection { grid-template-columns: minmax(0, 1fr); }
}

/* Doctor header */
.doctor-header-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    padding: 16px 20px;
}
.doctor-header-photo {
    width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex-shrink: 0;
    background: var(--brand-soft);
}
.doctor-header-name { font-weight: 700; font-size: 19px; color: var(--text-primary, var(--ink)); line-height: 1.25; margin-bottom: 0; }
.doctor-header-specialties { font-size: 13px; color: var(--text-secondary, var(--muted)); margin-top: 2px; margin-bottom: 0; }
.doctor-header-location { font-size: 13px; color: var(--text-muted, var(--faint)); margin-top: 3px; margin-bottom: 0; }

/* Tabs (underline style) */
.booking-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line-soft); padding: 0 20px; }
.booking-tab-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 6px; margin-bottom: -1px;
    font-size: 14px; font-weight: 600;
    color: var(--text-secondary, var(--muted));
    background: transparent;
    border: none; border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.booking-tab-btn + .booking-tab-btn { margin-left: 22px; }
.booking-tab-btn:hover { color: var(--brand); }
.booking-tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }

/* Buttons */
.btn-booking-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--brand);
    color: #FFFFFF;
    border-radius: 10px;
    font-weight: 600; font-size: 14px;
    height: 44px;
    border: none;
    transition: background 0.15s ease, transform 0.15s ease;
}
.btn-booking-primary:hover { background: var(--brand-strong); transform: translateY(-1px); color: #FFFFFF; }
.btn-booking-primary:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }
.btn-booking-text {
    display: block; width: 100%; text-align: center;
    padding: 10px; color: var(--text-secondary, var(--muted)); font-weight: 500; font-size: 14px;
    border-radius: 10px; transition: background 0.15s ease, color 0.15s ease;
    border: none; background: transparent; cursor: pointer; margin-top: 6px;
}
.btn-booking-text:hover { background: var(--line-soft); color: var(--text-primary, var(--ink)); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 13px; font-weight: 600; }
.link-btn:hover { color: var(--brand-strong); }

/* Details panel */
.details-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.details-title { font-size: 15px; font-weight: 700; color: var(--text-primary, var(--ink)); margin-bottom: 0; }
.details-close-btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex-shrink: 0;
    border: none; border-radius: 8px; background: var(--paper);
    color: var(--text-secondary, var(--muted)); cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.details-close-btn:hover { background: #fee2e2; color: #dc2626; }
#consultationDetailsPanel, #therapyDetailsPanel {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}
#consultationDetailsPanel.is-visible, #therapyDetailsPanel.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.detail-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.detail-row:last-of-type { border-bottom: none; }
.detail-row .detail-label { font-size: 13px; color: var(--text-secondary, var(--muted)); }
.detail-row .detail-value { font-size: 13px; font-weight: 600; color: var(--text-primary, var(--ink)); }
.detail-row.detail-highlight .detail-value { font-size: 16px; font-weight: 800; color: var(--brand); }
.recap-title { font-size: 11px; font-weight: 700; color: var(--text-muted, var(--faint)); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.recap-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.recap-row .recap-label { color: var(--text-secondary, var(--muted)); }
.recap-row .recap-value { font-weight: 600; color: var(--text-primary, var(--ink)); }
.booking-email-input {
    width: 100%; padding: 11px 14px; font-size: 13px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.booking-email-input:focus { outline: none; border-color: var(--brand); background: #FFFFFF; }
.booking-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--text-secondary, var(--muted)); }
.booking-consent input { margin-top: 2px; flex-shrink: 0; }
.booking-notice { margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--text-muted, var(--faint)); }
.details-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 40px 16px; color: var(--text-muted, var(--faint)); font-size: 13px; }

/* Therapy cards */
.therapy-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.therapy-card:hover { border-color: var(--brand); box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04); }
.therapy-card.therapy-card-selected { border-color: var(--brand); background: var(--brand-soft); }
.therapy-card-name { font-weight: 700; color: var(--text-primary, var(--ink)); font-size: 15px; margin-bottom: 0; }
.therapy-card-meta { font-size: 13px; color: var(--text-secondary, var(--muted)); margin-top: 2px; margin-bottom: 0; }
.btn-therapy-select {
    flex-shrink: 0;
    padding: 9px 18px; border-radius: 10px;
    font-size: 13px; font-weight: 600;
    background: var(--brand-soft); color: var(--brand);
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-therapy-select:hover { background: var(--brand); color: #FFFFFF; }

/* Date field + small popup calendar */
#consultationBookingGrid, #consultationBookingGrid.has-selection { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
.slot-field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary, var(--ink)); margin-bottom: 6px; }
.slot-field { position: relative; }
.slot-field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--brand); pointer-events: none; }
.slot-field-input {
    width: 100%; padding: 12px 14px 12px 40px; font-size: 14px; cursor: pointer;
    background: var(--surface, #ffffff); color: var(--text-primary, var(--ink));
    border: 1px solid var(--line); border-radius: 12px;
}
.slot-field-input:focus, .slot-field-input[aria-expanded="true"] { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 59, 110, 0.12); }
.slot-popup {
    position: absolute; z-index: 50; top: calc(100% + 6px); left: 0;
    width: 280px; max-width: 100%; padding: 12px;
    background: var(--surface, #ffffff); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}
.slot-popup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.slot-month { font-size: 13px; font-weight: 700; color: var(--text-primary, var(--ink)); }
.slot-nav {
    width: 28px; height: 28px; border: none; border-radius: 8px; background: transparent;
    color: var(--text-secondary, var(--muted)); font-size: 11px; cursor: pointer;
}
.slot-nav:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand); }
.slot-nav:disabled { opacity: 0.3; cursor: default; }
.slot-weekdays, .slot-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.slot-weekdays span { font-size: 11px; font-weight: 600; color: var(--text-muted, var(--faint)); padding: 4px 0; text-transform: uppercase; }
.slot-day {
    height: 32px; border: none; border-radius: 8px; background: transparent;
    font-size: 13px; color: var(--text-muted, var(--faint));
}
.slot-day:disabled { opacity: 0.45; cursor: default; }
.slot-day.has-slots { color: var(--brand); font-weight: 700; background: var(--brand-soft); cursor: pointer; }
.slot-day.has-slots:hover { background: var(--brand-line); }
.slot-day.is-today { box-shadow: inset 0 0 0 1px var(--brand-line); }
.slot-day.is-picked, .slot-day.is-picked:hover { background: var(--brand); color: #FFFFFF; }
.slot-times {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft);
}
.slot-time {
    padding: 7px 0; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
    border: 1px solid var(--brand-line); background: var(--surface, #ffffff); color: var(--brand);
}
.slot-time:hover, .slot-time.is-picked { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.slot-empty { font-size: 14px; color: var(--text-muted, var(--faint)); margin: 0; }

/* Search card: psychologist, type, date, "Rechercher" */
.search-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.search-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; }
.search-label { font-size: 14px; font-weight: 700; color: var(--text-primary, var(--ink)); margin: 0; }
.search-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.search-option {
    display: inline-flex; align-items: center; gap: 8px; margin: 0;
    font-size: 14px; font-weight: 500; color: var(--text-primary, var(--ink)); cursor: pointer;
}
.search-option input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
.search-select {
    flex: 1 1 220px; max-width: 360px;
    padding: 8px 12px; font-size: 14px;
    border: 1px solid var(--line); border-radius: 10px;
    background: #FFFFFF; color: var(--text-primary, var(--ink));
}
.search-select:focus { outline: none; border-color: var(--brand); }
.search-card .slot-field { max-width: 360px; }
.search-submit { align-self: flex-start; margin-left: 122px; padding: 0 28px; }
@media (max-width: 560px) {
    .search-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .search-submit { margin-left: 0; width: 100%; }
}
.results-note { font-size: 13px; color: var(--text-secondary, var(--muted)); margin: 0 0 4px; }
.results-empty { font-size: 14px; color: var(--text-muted, var(--faint)); margin: 0; }
.result-times { display: flex; flex-wrap: wrap; gap: 8px; }
.result-times .slot-time { min-width: 72px; padding: 8px 12px; }
.slot-time.slot-selected { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.slot-time:disabled { opacity: 0.4; cursor: not-allowed; background: transparent; color: var(--text-muted, var(--faint)); border-color: var(--line); }
.details-inline { max-width: 460px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
#therapyBookingGrid .details-inline { border-top: none; padding-top: 0; }
.payment-assigned {
    display: flex; align-items: center; gap: 8px;
    margin: 10px auto 0; padding: 8px 12px; width: fit-content;
    border-radius: 999px; background: var(--brand-soft); color: var(--brand);
    font-size: 13px; font-weight: 600;
}

/* Dark mode */
html.dark .slot-field-input, html.dark .slot-popup { border-color: #334155; }
html.dark .slot-day.has-slots { background: rgba(31, 59, 110, 0.18); color: #F6A994; }
html.dark .slot-times { border-color: #334155; }
html.dark .slot-time { border-color: rgba(31, 59, 110, 0.4); color: #F6A994; }
html.dark .search-select { background: #0f172a; color: #f1f5f9; border-color: #334155; }
html.dark .payment-assigned { background: rgba(31, 59, 110, 0.18); color: #F6A994; }
html.dark .booking-shell {
    --background: #0f172a;
    --surface: #1e293b;
    --border: #334155;
    --border-light: #243146;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --primary-light: rgba(31, 59, 110, 0.16);
    --disabled: #334155;
}
html.dark .doctor-header-card { border-color: #334155; background: #1e293b; }
html.dark .doctor-header-card select { background-color: #0f172a; color: #f1f5f9; border-color: #334155; }
html.dark .therapy-card { border-color: #334155; }
html.dark .therapy-card.therapy-card-selected { background: rgba(31, 59, 110, 0.18); }
html.dark .btn-therapy-select { background: rgba(31, 59, 110, 0.18); color: #F6A994; }
html.dark .btn-therapy-select:hover { background: var(--brand); color: #ffffff; }

/* ══════════════ Modal Paiement par carte ══════════════ */
.payment-container {
    --primary: var(--brand);
    --primary-hover: var(--brand-strong);
    --text: var(--ink);
    --text-secondary: var(--muted);
    --border: var(--line);
    --background: var(--paper);

    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 32px 32px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}
.payment-container * { box-sizing: border-box; }
.payment-header { text-align: center; margin-bottom: 22px; }
.payment-main-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-main-icon i { color: var(--primary); font-size: 28px; line-height: 1; }
.payment-title { margin: 0; color: var(--text); font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -0.4px; }
.payment-subtitle { margin: 8px 0 0; color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; }
.payment-form { width: 100%; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 500; }
.input-wrapper { position: relative; width: 100%; }
.payment-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #ffffff;
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.payment-input::placeholder { color: var(--muted); opacity: 1; }
.payment-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 59, 110, 0.10); }
.input-with-icon { padding-left: 42px; }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.card-number-wrapper { position: relative; }
.card-number-input { padding-left: 42px; padding-right: 140px; }
.card-number-wrapper > .bi-credit-card.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.card-brands { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; }
.brand-visa { color: #123e9b; font-size: 12px; font-weight: 900; font-style: italic; letter-spacing: -0.5px; }
.brand-mastercard { width: 24px; height: 16px; position: relative; display: flex; align-items: center; justify-content: center; }
.brand-mastercard::before, .brand-mastercard::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; top: 1px; }
.brand-mastercard::before { left: 0; background: #eb001b; }
.brand-mastercard::after { right: 0; background: #f79e1b; }
.brand-cb { width: 24px; height: 17px; border-radius: 3px; background: #1f4c78; display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 10px; font-weight: 800; letter-spacing: -0.5px; }
.brand-amex { color: var(--brand); font-size: 10px; font-weight: 900; letter-spacing: -0.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cvv-input { padding-right: 38px; }
.cvv-help {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    border: 2px solid var(--muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    cursor: help;
}
.date-input { padding-right: 36px; }
.date-icon { position: absolute; left: auto; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.security-box {
    margin-top: 2px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    gap: 12px;
}
.security-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; }
.security-icon i { color: var(--primary); font-size: 18px; }
.security-content { min-width: 0; }
.security-title { margin: 0 0 2px; color: var(--text); font-size: 13px; font-weight: 700; }
.security-text { margin: 0; color: var(--muted); font-size: 12px; }
.payment-button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: var(--brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(31, 59, 110, 0.16);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.payment-button:hover { background: var(--brand-strong); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31, 59, 110, 0.23); color: #ffffff; }
.payment-button:active { transform: translateY(0); }
.payment-button i { font-size: 16px; }
.button-separator { width: 1px; height: 18px; background: rgba(255,255,255,0.35); }
.payment-amount { font-weight: 800; white-space: nowrap; }

@media (max-width: 520px) {
    .payment-container { padding: 22px 18px 24px; border-radius: 14px; }
    .payment-title { font-size: 18px; }
    .payment-subtitle { font-size: 12.5px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .card-number-input { padding-right: 14px; }
    .card-brands { display: none; }
    .payment-button { font-size: 14px; gap: 10px; }
}

/* ══════════════ Popup Confirmation de Paiement ══════════════ */
.payment-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.payment-success-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.payment-success-card {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px 30px 28px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.18), 0 8px 30px rgba(15, 23, 42, 0.08);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.30s ease, transform 0.30s ease;
}
.payment-success-overlay.is-visible .payment-success-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.payment-success-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--faint);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    z-index: 2;
}
.payment-success-close:hover { color: var(--muted); background: var(--paper); }
.payment-success-icon-wrapper {
    position: relative;
    width: 108px;
    height: 86px;
    margin: 0 auto 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-success-icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(31, 59, 110, 0.035);
}
.payment-success-icon-core {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-soft);
    border: 2px solid var(--brand-line);
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-success-icon-core i {
    font-size: 26px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}
.success-decoration { position: absolute; pointer-events: none; }
.success-dot-1 { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); left: 14px; top: 39px; }
.success-dot-2 { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-line); right: 13px; top: 26px; }
.success-dot-3 { width: 4px; height: 4px; border-radius: 50%; background: var(--brand-line); left: 23px; top: 13px; }
.success-plus-1 { color: var(--brand-line); font-size: 14px; font-weight: 700; right: 7px; top: 50px; }
.success-plus-2 { color: var(--brand); font-size: 13px; font-weight: 700; right: 17px; bottom: 10px; }
.payment-success-title {
    margin: 0;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.4px;
}
.payment-success-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
    font-weight: 400;
}
.payment-success-divider {
    width: 64px;
    height: 2px;
    margin: 18px auto 16px;
    background: var(--line-soft);
    border-radius: 999px;
}
.payment-receipt-icon {
    position: relative;
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-receipt-icon > i { font-size: 22px; color: var(--brand); }
.payment-receipt-check {
    position: absolute;
    width: 18px;
    height: 18px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    background: var(--brand);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(31, 59, 110, 0.18);
}
.payment-receipt-check i { color: #ffffff; font-size: 9px; font-weight: 700; }
.payment-receipt-message { text-align: center; margin-bottom: 14px; }
.payment-receipt-title { color: var(--ink); font-size: 14px; line-height: 1.4; font-weight: 700; }
.payment-receipt-subtitle { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.payment-email-box {
    width: 100%;
    margin: 0 auto;
    padding: 11px 13px;
    box-sizing: border-box;
    border-radius: 12px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}
.payment-email-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-email-icon i { color: var(--brand); font-size: 15px; }
.payment-email-content { min-width: 0; flex: 1; }
.payment-email-label { color: var(--ink); font-size: 12px; line-height: 1.3; font-weight: 500; margin-bottom: 2px; }
.payment-email-address {
    color: var(--brand-strong);
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.payment-success-button {
    width: 100%;
    min-height: 46px;
    margin: 10px auto 0;
    padding: 0 18px;
    box-sizing: border-box;
    border-radius: 10px;
    background: var(--brand);
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(31, 59, 110, 0.20);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.payment-success-button i { font-size: 15px; }
.payment-success-button:hover {
    color: #ffffff;
    background: var(--brand-strong);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(31, 59, 110, 0.26);
}
.payment-success-button:active { transform: translateY(0); }

/* ══════════════ CallMyPsy theme layer ══════════════
   Flat surfaces (one hairline border, no drop shadows), pine-green brand,
   Instrument Sans for the UI. Kept last so it settles the components
   above without editing each rule. */
.booking-shell,
.payment-container,
.payment-success-card {
    font-family: var(--font-ui);
    color: var(--ink);
}
.booking-shell {
    --primary: var(--brand);
    --primary-hover: var(--brand-strong);
    --primary-light: var(--brand-soft);
    --text-primary: var(--ink);
    --text-secondary: var(--muted);
    --text-muted: var(--faint);
    --background: var(--paper);
    --surface: var(--surface-base);
    --border: var(--line);
    --border-light: var(--line-soft);
}
.booking-shell .surface-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: none;
}
.booking-shell .fade-in { animation: none; }

/* Search card */
.search-card { gap: 18px; padding: 24px; }
.search-row { grid-template-columns: 112px minmax(0, 1fr); }
.search-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.search-options { gap: 8px; }
.search-option {
    padding: 9px 16px 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-base);
    font-size: 15px; font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.search-option:hover { border-color: var(--brand-line); }
.search-option:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-strong);
}
.search-option:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.search-option input { width: 16px; height: 16px; accent-color: var(--brand); }
.search-select,
.slot-field-input {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-base);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
}
.search-select { padding: 0 12px; }
.search-select:focus,
.slot-field-input:focus,
.slot-field-input[aria-expanded="true"] {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(31, 59, 110, 0.14);
}
.slot-field-icon { color: var(--brand); }
.search-submit { margin-left: 124px; }

/* Buttons */
.btn-booking-primary {
    height: 46px;
    padding: 0 24px;
    border-radius: 12px;
    background: var(--brand);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none;
}
.btn-booking-primary:hover { background: var(--brand-strong); transform: none; }
.btn-booking-primary:focus-visible,
.btn-therapy-select:focus-visible,
.slot-time:focus-visible,
.slot-day:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.btn-therapy-select { border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); }
.btn-therapy-select:hover { background: var(--brand); color: #FFFFFF; }

/* Calendar popup + time buttons */
.slot-popup { border-color: var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(22, 33, 58, 0.14); }
.slot-weekdays span { text-transform: none; }
.slot-day.has-slots { background: var(--brand-soft); color: var(--brand-strong); }
.slot-day.has-slots:hover { background: var(--brand-line); }
.slot-day.is-picked, .slot-day.is-picked:hover { background: var(--brand); color: #FFFFFF; }
.slot-time {
    border-color: var(--brand-line);
    border-radius: 10px;
    color: var(--brand-strong);
    font-family: inherit;
    font-size: 15px;
}
.slot-time:hover, .slot-time.slot-selected { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }

/* Results */
#booking-results { padding: 24px; }
#booking-results .details-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
#booking-results .details-title::first-letter { text-transform: uppercase; }
.results-note { font-size: 14px; }
.therapy-card { border-color: var(--line); border-radius: 14px; }
.therapy-card:hover { border-color: var(--brand-line); box-shadow: none; }
.therapy-card.therapy-card-selected { border-color: var(--brand); background: var(--brand-soft); }
.detail-row { border-bottom-color: var(--line-soft); }
.detail-row.detail-highlight .detail-value { color: var(--brand-strong); }
.booking-email-input { height: 44px; border-color: var(--line); background: var(--paper); font-size: 15px; }
.booking-email-input:focus { border-color: var(--brand); background: var(--surface-base); }
.booking-consent a { color: var(--brand-strong); }

/* Payment + confirmation */
.payment-container { border-color: var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(22, 33, 58, 0.18); }
.payment-title, .payment-success-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.payment-input { border-radius: 12px; }
.payment-button, .payment-success-button { border-radius: 12px; box-shadow: none; }
.payment-button:hover, .payment-success-button:hover { background: var(--brand-strong); transform: none; box-shadow: none; }
.security-box, .payment-email-box { background: var(--paper); border-color: var(--line); }
.payment-success-card { border-color: var(--line); border-radius: 20px; }
.success-decoration { display: none; }

@media (max-width: 560px) {
    .search-card, #booking-results { padding: 18px; }
    .search-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .search-submit { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .booking-shell *, .payment-success-card, .payment-success-overlay { transition: none !important; animation: none !important; }
}

html.dark .booking-shell {
    --ink: #E8ECF4;
    --muted: #A9B4C8;
    --faint: #7F8AA0;
    --line: #2C3A55;
    --line-soft: #233049;
    --surface-base: #18233A;
    --paper: #111A2B;
    --brand: #5B7FC4;
    --brand-strong: #F6A994;
    --brand-soft: rgba(242, 140, 116, 0.16);
    --brand-line: rgba(242, 140, 116, 0.45);
}

/* Confirmation: "join" is the action, "close" is secondary. */
#paymentSuccessBackButton { background: transparent; color: var(--brand-strong); border: 1px solid var(--line); }
#paymentSuccessBackButton:hover { background: var(--brand-soft); color: var(--brand-strong); }

/* ══════════════ Home page — booking-app layout ══════════════
   Pine search band with one white search bar, then a result card:
   who you'll see on the left, a week of free times on the right. */
.bk-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.bk-hero { background: var(--brand); color: #FFFFFF; padding: 120px 0 36px; }
.bk-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin: 0 0 10px;
    max-width: 20ch;
}
.bk-lead { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; margin: 0 0 28px; }

.bk-search {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr) auto;
    background: #FFFFFF;
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(10, 18, 36, 0.22);
}
.bk-field {
    display: flex; flex-direction: column; justify-content: center;
    min-width: 0; margin: 0;
    padding: 8px 18px;
    border: 0; border-right: 1px solid var(--line-soft);
}
.bk-field-label {
    float: none; width: auto;
    margin: 0 0 2px; padding: 0;
    font-size: 12px; font-weight: 600; line-height: 1.3;
    color: var(--muted);
}
.bk-select, .bk-date-input {
    width: 100%;
    padding: 4px 0;
    border: none; background: transparent;
    font-family: inherit; font-size: 15px; font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}
.bk-select:focus, .bk-date-input:focus { outline: none; }
.bk-field:focus-within { background: var(--paper); border-radius: 12px; }
.bk-date-input::placeholder { color: var(--ink); opacity: 0.75; }
.bk-field-date .slot-field { max-width: none; }
.bk-field-date .slot-popup { top: calc(100% + 16px); left: -18px; }

.bk-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--paper); }
.bk-toggle label { position: relative; margin: 0; }
.bk-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.bk-toggle span {
    display: block; padding: 6px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.bk-toggle input:checked + span { background: #FFFFFF; color: var(--brand-strong); box-shadow: 0 1px 3px rgba(22, 33, 58, 0.16); }
.bk-toggle input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }

.bk-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-left: 8px; padding: 0 26px;
    border: none; border-radius: 12px;
    background: var(--brand); color: #FFFFFF;
    font-family: inherit; font-size: 15px; font-weight: 600;
    cursor: pointer;
}
.bk-submit:hover { background: var(--brand-strong); }
.bk-submit:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.bk-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 20px 0 0; padding: 0; font-size: 14px; color: rgba(255, 255, 255, 0.86); }
.bk-trust i { color: #F6A994; margin-right: 4px; }

/* Results */
.bk-results { padding: 32px 0 64px; }
.bk-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
    background: var(--surface-base);
    border: 1px solid var(--line);
    border-radius: 20px;
}
.bk-provider { display: flex; flex-direction: column; gap: 12px; }
.bk-avatar {
    width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand-strong);
    font-family: var(--font-display); font-size: 22px; font-weight: 600;
}
.bk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bk-avatar-any { font-size: 24px; }
.bk-provider-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bk-provider-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); margin: 0; }
.bk-provider-meta { margin: 0; font-size: 14px; color: var(--muted); }
.bk-provider-facts { display: grid; gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; color: var(--ink); }
.bk-provider-facts i { width: 18px; color: var(--brand); }
.bk-provider-link { font-size: 14px; font-weight: 600; color: var(--brand-strong); text-decoration: none; }
.bk-provider-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bk-price { margin: auto 0 0; font-size: 14px; color: var(--muted); }
.bk-price strong { font-size: 18px; color: var(--ink); }

.bk-agenda-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bk-agenda-title { font-weight: 600; color: var(--ink); }
.bk-week-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); color: var(--ink); font-size: 12px; text-decoration: none;
}
.bk-week-btn:hover { border-color: var(--brand); color: var(--brand-strong); }
.bk-week-btn.is-disabled { opacity: 0.35; }
.bk-week { display: grid; grid-template-columns: repeat(7, minmax(74px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.bk-day-head { text-align: center; padding: 4px 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.bk-day-head span { display: block; font-size: 13px; color: var(--muted); text-transform: capitalize; }
.bk-day-head strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.bk-day-slots { display: flex; flex-direction: column; gap: 6px; max-height: 264px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line, #D3DBE9) transparent; }
.bk-day-slots .slot-time { width: 100%; padding: 8px 0; border-color: transparent; background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.bk-day-slots .slot-time:hover, .bk-day-slots .slot-time.slot-selected { background: var(--brand); color: #FFFFFF; }
.bk-none { padding: 8px 0; text-align: center; color: var(--faint); }
.bk-empty { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--paper); font-size: 14px; color: var(--muted); }
.bk-empty a { margin-left: 4px; font-weight: 600; color: var(--brand-strong); }
.bk-card-empty { display: block; }
.bk-card-empty .bk-empty { margin: 0; }

/* Therapy programmes */
#consultationBookingGrid, #therapyBookingGrid,
#therapyBookingGrid.has-selection { display: block; max-width: none; }
.bk-therapy-list { display: grid; gap: 14px; }
.bk-card.bk-therapy {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
}
.bk-therapy .bk-avatar { width: 56px; height: 56px; font-size: 18px; }
.bk-therapy-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bk-therapy-side .bk-price { margin: 0; }
.bk-therapy .btn-booking-primary { height: 40px; padding: 0 20px; }

/* Confirmation window */
.bk-modal {
    position: fixed; inset: 0; z-index: 1050;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: rgba(22, 33, 58, 0.45);
}
.bk-modal.hidden { display: none !important; }
#consultationDetailsPanel.bk-modal, #therapyDetailsPanel.bk-modal { transform: none; }
.bk-modal-card {
    width: min(440px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 22px 24px;
    border-radius: 20px;
    background: var(--surface-base);
    box-shadow: 0 24px 60px rgba(22, 33, 58, 0.25);
}
.bk-input-label { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink); }

@media (max-width: 860px) {
    .bk-hero { padding: 104px 0 28px; }
    .bk-search { grid-template-columns: minmax(0, 1fr); padding: 6px; }
    .bk-field { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 10px 14px; }
    .bk-field-date .slot-popup { left: -14px; }
    .bk-submit { margin: 6px 0 0; height: 48px; }
    .bk-card { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px; }
    .bk-provider { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
    .bk-provider-body { flex: 1 1 200px; }
    .bk-price { margin: 0; flex-basis: 100%; }
    .bk-card.bk-therapy { grid-template-columns: 48px minmax(0, 1fr); padding: 18px; }
    .bk-therapy .bk-avatar { width: 48px; height: 48px; }
    .bk-therapy-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

html.dark .bk-search, html.dark .bk-modal-card { background: var(--surface-base); }
html.dark .bk-toggle input:checked + span { background: var(--surface-base); }

/* ══════════════ Motion ══════════════
   One entrance sequence on arrival (search band, then results), and
   feedback on what people touch (hover, pick, open, confirm). Everything
   here is skipped when the device asks for reduced motion. */

/* Séance / Thérapie switch: a sliding pill behind the two options. */
.bk-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; }
.bk-toggle label { z-index: 1; text-align: center; }
.bk-toggle > .bk-toggle-pill {
    position: absolute; z-index: 0;
    top: 3px; bottom: 3px; left: 3px;
    width: calc(50% - 3px);
    padding: 0;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(22, 33, 58, 0.16);
    display: none;
}
@supports selector(:has(*)) {
    .bk-toggle > .bk-toggle-pill { display: block; }
    .bk-toggle input:checked + span { background: transparent; box-shadow: none; }
    .bk-toggle:has(input[value="therapie"]:checked) > .bk-toggle-pill { transform: translateX(100%); }
}
html.dark .bk-toggle > .bk-toggle-pill { background: var(--surface-base); }

@keyframes bk-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
@keyframes bk-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes bk-unfold {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
@keyframes bk-aurora {
    0% { background-position: 0% 0%, 100% 100%; }
    50% { background-position: 60% 30%, 40% 70%; }
    100% { background-position: 0% 0%, 100% 100%; }
}
@keyframes bk-check {
    0% { opacity: 0; transform: scale(0.3) rotate(-12deg); }
    60% { opacity: 1; transform: scale(1.15) rotate(0); }
    100% { transform: scale(1); }
}
@keyframes bk-ring {
    from { box-shadow: 0 0 0 0 rgba(31, 59, 110, 0.35); }
    to { box-shadow: 0 0 0 18px rgba(31, 59, 110, 0); }
}

@media (prefers-reduced-motion: no-preference) {
    /* Search band: soft drifting light behind the title. */
    .bk-hero {
        background-color: var(--brand);
        background-image:
            radial-gradient(40rem 22rem at 15% 10%, rgba(246, 169, 148, 0.22), transparent 60%),
            radial-gradient(36rem 20rem at 85% 90%, rgba(242, 140, 116, 0.35), transparent 60%);
        background-size: 140% 140%, 140% 140%;
        animation: bk-aurora 18s ease-in-out infinite;
    }

    /* Arrival: title, lead, search bar, trust line one after another. */
    .bk-rise { animation: bk-rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both; animation-delay: calc(var(--r, 0) * 90ms); }

    /* Results: card rises, then each day's times cascade in. */
    /* backwards (not both): keeps hover transforms working after the entrance. */
    .bk-results .bk-card { animation: bk-rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s backwards; }
    .bk-therapy { animation-delay: calc(0.3s + var(--i, 0) * 80ms) !important; }
    .bk-day { animation: bk-rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both; animation-delay: calc(0.45s + var(--d, 0) * 60ms); }
    .bk-day-slots .slot-time { animation: bk-rise 0.4s ease-out backwards; animation-delay: calc(0.55s + var(--d, 0) * 60ms + var(--s, 0) * 35ms); }

    /* Feedback on touch. */
    .bk-toggle > .bk-toggle-pill { transition: transform 0.28s cubic-bezier(0.3, 0.9, 0.3, 1); }
    .bk-day-slots .slot-time { transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
    .bk-day-slots .slot-time:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(22, 33, 58, 0.14); }
    .bk-day-slots .slot-time.slot-selected { animation: bk-pop 0.35s ease-out; }
    .bk-submit, .btn-booking-primary, .bk-week-btn { transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
    .bk-submit:hover, .bk-therapy .btn-booking-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(22, 33, 58, 0.22); }
    .bk-submit:active, .btn-booking-primary:active { transform: translateY(0) scale(0.98); }
    .bk-card.bk-therapy { transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
    .bk-card.bk-therapy:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22, 33, 58, 0.1); }
    .bk-week-btn:hover { transform: scale(1.06); }
    .bk-field { transition: background 0.2s ease; }

    /* Date calendar unfolds under the field. */
    .slot-popup:not(.hidden) { animation: bk-unfold 0.2s ease-out; transform-origin: top left; }

    /* Confirmation windows: backdrop fades, card zooms in. */
    .bk-modal.is-visible { transition: opacity 0.25s ease; }
    .bk-modal .bk-modal-card { transform: translateY(12px) scale(0.97); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1); }
    .bk-modal.is-visible .bk-modal-card { transform: none; }

    /* Payment success: bouncing check + pulse ring. */
    .payment-success-overlay.is-visible .payment-success-icon-core { animation: bk-check 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both; }
    .payment-success-overlay.is-visible .payment-success-icon-ring { animation: bk-ring 1.2s ease-out 0.5s 2; }
    .payment-success-overlay.is-visible .payment-receipt-icon,
    .payment-success-overlay.is-visible .payment-email-box { animation: bk-rise 0.5s ease-out 0.35s both; }
}

/* ── Phones: day tabs + the chosen day's times (see the script under #resultTimes). ── */
.bk-week.is-tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; overflow: visible; }
.bk-week.is-tabs .bk-day { display: contents; }
.bk-week.is-tabs .bk-day-head {
    grid-row: 1; margin: 0; padding: 8px 0; border: 1px solid var(--line-soft); border-radius: 12px;
    cursor: pointer; background: var(--surface, #FFFFFF); transition: background .15s ease, border-color .15s ease;
}
.bk-week.is-tabs .bk-day-head span { font-size: 11px; }
.bk-week.is-tabs .bk-day-head strong { display: block; font-size: 13px; line-height: 1.25; }
.bk-week.is-tabs .bk-day.is-empty .bk-day-head { opacity: .45; }
.bk-week.is-tabs .bk-day.is-active .bk-day-head { background: var(--brand); border-color: var(--brand); }
.bk-week.is-tabs .bk-day.is-active .bk-day-head span,
.bk-week.is-tabs .bk-day.is-active .bk-day-head strong { color: #FFFFFF; }
.bk-week.is-tabs .bk-day-head:focus-visible { outline: 2px solid var(--accent, #F28C74); outline-offset: 2px; }
.bk-week.is-tabs .bk-day-slots { display: none; }
.bk-week.is-tabs .bk-day.is-active .bk-day-slots {
    display: grid; grid-row: 2; grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px; max-height: none; overflow: visible; padding-top: 12px;
}
.bk-week.is-tabs .bk-day-slots .slot-time { padding: 12px 0; font-size: 15px; }
.bk-week.is-tabs .bk-none { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 12px 0; }
