/* ============================================================
   Customer Dashboard Styles
   Used by: customer-login.html, customer-signup.html,
            customer-forgot-password.html, customer-booking.html, ...
   Loaded after css/custom.css so it can rely on the site's
   CSS variables (--primary-color, --background-color-2, etc.)
   ============================================================ */


/* ===== Auth pages (login / signup / forgot password) ===== */

.customer-auth-wrap {
    background: var(--background-color-4);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.customer-auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
    border: 1px solid #eef0f3;
    overflow: hidden;
}

.customer-auth-card-body { padding: 2.5rem 2.25rem; }

.customer-auth-logo {
    height: 45px;
    width: auto;
}

/* Brand mark sitting above the card (used on success/confirmation screens) */
.customer-auth-card-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.customer-auth-heading {
    font-size: 1.65rem;
    font-weight: 600;
    color: #111827;
    margin: 1rem 0 .35rem;
}

/* Flush brand-blue action bar at the bottom of the card.
   Touches the card on left, right, and bottom — overflow:hidden on the
   card clips the button's bottom corners to the card's border-radius. */
.customer-auth-card-action {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: 0;
    border-radius: 0;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: filter .15s ease;
}
.customer-auth-card-action:hover {
    color: #fff;
    filter: brightness(1.08);
}
.customer-auth-card-action i { margin-right: .45rem; }

.customer-auth-subheading {
    color: #6b7280;
    font-size: .95rem;
    margin: 0;
}

.customer-auth-form .form-label {
    font-weight: 600;
    color: #111827;
    font-size: .88rem;
    margin-bottom: .4rem;
}

.customer-auth-form .form-control {
    border: 1px solid #e2e6ec;
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.customer-auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 113, 182, .12);
}

.customer-auth-form .form-control::placeholder { color: #9ca3af; }

.customer-auth-form .form-check-input {
    border-color: #cbd1d8;
    cursor: pointer;
}
.customer-auth-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.customer-auth-form .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(78, 113, 182, .12);
}
.customer-auth-form .form-check-label {
    font-size: .88rem;
    color: #4b5563;
    cursor: pointer;
}

.customer-auth-form .forgot-password {
    font-size: .85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.customer-auth-form .forgot-password:hover { text-decoration: underline; }

.customer-auth-form .btn-submit {
    padding: .75rem 1rem;
    font-size: .95rem;
    font-weight: 600;
    border-radius: 10px;
}

/* Password input with show/hide eye toggle */
.customer-auth-input-wrap { position: relative; }
.customer-auth-input-wrap .form-control { padding-right: 2.85rem; }
.customer-auth-eye-toggle {
    position: absolute;
    right: .35rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #6b7280;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}
.customer-auth-eye-toggle:hover {
    color: var(--primary-color);
    background: #f3f4f6;
}
.customer-auth-eye-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

/* Checkbox row with inline Terms / Privacy links */
.customer-auth-form .form-check a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.customer-auth-form .form-check a:hover { text-decoration: underline; }

/* Email-verification success state (post-signup) */
.customer-auth-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: var(--background-color-4);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin: 0 auto 1rem;
}

/* "or" divider between primary form and Google option */
.customer-auth-divider {
    display: flex;
    align-items: center;
    color: #9ca3af;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 1.5rem 0;
}
.customer-auth-divider::before,
.customer-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.customer-auth-divider span { padding: 0 .85rem; }

/* Google sign-in button (secondary, below the divider) */
.customer-auth-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    background: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
    padding: .7rem 1rem;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    width: 100%;
    text-decoration: none;
    transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}
.customer-auth-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    color: #3c4043;
}

.customer-auth-google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.customer-auth-footer {
    text-align: center;
    color: #6b7280;
    font-size: .9rem;
    margin: 1.75rem 0 0;
}
.customer-auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.customer-auth-footer a:hover { text-decoration: underline; }

.customer-firebaseui-wrap {
    margin: .25rem 0 1rem;
    min-height: 8.5rem;
}
.customer-firebaseui-wrap .firebaseui-container {
    box-shadow: none;
    margin: 0 auto;
    max-width: 100%;
}
.customer-firebaseui-wrap .firebaseui-card-content {
    padding: 0;
}
.customer-firebaseui-wrap .firebaseui-title,
.customer-firebaseui-wrap .firebaseui-subtitle,
.customer-firebaseui-wrap .firebaseui-tos,
.customer-firebaseui-wrap .firebaseui-tospp-full-message {
    display: none;
}
.customer-firebaseui-wrap .firebaseui-idp-list {
    margin: 0;
    padding: 0;
}
/* Provider picker: email, "or" divider, Google — survives Firebase UI re-renders */
.customer-firebaseui-wrap .firebaseui-idp-list:has(> li:nth-child(2)) {
    display: flex;
    flex-direction: column;
}
.customer-firebaseui-wrap .firebaseui-idp-list:has(> li:nth-child(2)) > li:nth-child(1) {
    order: 0;
}
.customer-firebaseui-wrap .firebaseui-idp-list:has(> li:nth-child(2)) > li:nth-child(2) {
    order: 2;
}
.customer-firebaseui-wrap .firebaseui-idp-list:has(> li:nth-child(2))::before {
    order: 1;
    content: "or";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 1.5rem 0;
    color: #9ca3af;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1;
    flex-shrink: 0;
    background:
        linear-gradient(#e5e7eb, #e5e7eb) left center / calc(50% - 1.25rem) 1px no-repeat,
        linear-gradient(#e5e7eb, #e5e7eb) right center / calc(50% - 1.25rem) 1px no-repeat;
}
.customer-firebaseui-wrap .firebaseui-idp-list > li {
    list-style: none;
    margin: 0;
}
.customer-firebaseui-wrap .firebaseui-idp-button {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    padding: .75rem 1rem;
    border-radius: 10px !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    transition: background .15s ease, box-shadow .15s ease, filter .15s ease;
}
.customer-firebaseui-wrap .firebaseui-idp-button .firebaseui-idp-text {
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    padding-left: 0;
}
.customer-firebaseui-wrap .firebaseui-idp-button .firebaseui-idp-icon-wrapper,
.customer-firebaseui-wrap .firebaseui-idp-button .firebaseui-idp-icon {
    display: none;
}
/* Email — primary blue (matches .btn-submit) */
.customer-firebaseui-wrap .firebaseui-idp-password {
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: #fff !important;
}
.customer-firebaseui-wrap .firebaseui-idp-password .firebaseui-idp-text-short {
    display: none !important;
}
.customer-firebaseui-wrap .firebaseui-idp-password .firebaseui-idp-text-long {
    color: #fff !important;
    font-size: 0 !important;
    line-height: 1.2;
}
.customer-firebaseui-wrap .firebaseui-idp-password .firebaseui-idp-text-long::after {
    content: "Sign In with Email";
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
}
.customer-firebaseui-wrap .firebaseui-idp-password:hover {
    filter: brightness(1.06);
    box-shadow: none !important;
}
/* Google — white bordered (matches .customer-auth-google) */
.customer-firebaseui-wrap .firebaseui-idp-google {
    background: #fff !important;
    border: 1px solid #dadce0 !important;
    color: #3c4043 !important;
}
.customer-firebaseui-wrap .firebaseui-idp-google .firebaseui-idp-text {
    color: #3c4043 !important;
}
.customer-firebaseui-wrap .firebaseui-idp-google .firebaseui-idp-icon-wrapper,
.customer-firebaseui-wrap .firebaseui-idp-google .firebaseui-idp-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin-right: .15rem;
}
.customer-firebaseui-wrap .firebaseui-idp-google:hover {
    background: #f8f9fa !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06) !important;
}
/* Email sign-in step (after tapping Sign In with Email) */
.customer-firebaseui-wrap .firebaseui-subtitle,
.customer-firebaseui-wrap form.firebaseui-form {
    margin-top: .5rem;
}
.customer-firebaseui-wrap .firebaseui-form-actions {
    margin-top: 1.25rem;
}

.customer-auth-terms {
    text-align: center;
    font-size: .82rem;
    margin: 1.25rem 0 0;
}
.customer-auth-terms a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}
.customer-auth-terms a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.customer-auth-terms-sep {
    color: #cbd1d8;
    margin: 0 .5rem;
}

@media (max-width: 575.98px) {
    .customer-auth-card { padding: 1.75rem 1.5rem; }
    .customer-auth-wrap { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .customer-auth-heading { font-size: 1.45rem; }
}


/* ============================================================
   Customer Dashboard - bookings page content
   Used by: customer-booking.html (and future logged-in pages)
   Header, footer and .menu-link.active state use the site's
   standard chrome from css/custom.css
   ============================================================ */

/* ===== Heading row (page title on left, primary action on right) ===== */
.customer-dash-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ===== Heading ===== */
.customer-dash-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.5rem;
}
.customer-dash-heading .highlight-color { font-weight: 700; }

.customer-dash-franchise-filter-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .35rem;
    min-width: 220px;
}
.customer-dash-filter-label {
    font-size: .78rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0;
}
.customer-dash-franchise-filter {
    min-width: 220px;
    border-radius: 10px;
    border-color: #e2e6ec;
    font-size: .9rem;
    font-weight: 500;
    color: #374151;
    box-shadow: none;
}
.customer-dash-franchise-filter:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 .2rem rgba(78, 113, 182, .15);
}
.customer-dash-empty-state {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #6b7280;
}

/* ===== Bookings table ===== */
.customer-dash-table-wrap {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    overflow: hidden;
}
.customer-dash-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

/* Heading: brand blue background, uniform white text */
.customer-dash-table thead { background: var(--primary-color); }
.customer-dash-table thead th {
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    text-align: left;
    padding: .9rem 1.25rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

/* Body: uniform font-size / color / weight across every cell */
.customer-dash-table tbody td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #f1f3f6;
    font-size: .94rem;
    font-weight: 500;
    color: #374151;
    vertical-align: middle;
}
.customer-dash-table tbody tr:last-child td { border-bottom: 0; }
.customer-dash-table tbody tr { transition: background .15s ease; }
.customer-dash-table tbody tr:hover { background: #fafbfc; }

/* Column classes are layout-only (widths + nowrap), no font/color overrides */
.customer-dash-table .bookings-col-num       { width: 56px; }
.customer-dash-table .bookings-col-location { width: 160px; white-space: nowrap; }
.customer-dash-table .bookings-col-total     { width: 120px; }
.customer-dash-table .bookings-col-created { width: 140px; white-space: nowrap; }
.customer-dash-table .bookings-col-action  { width: 130px; }

/* Service-name links: brand-blue so they read as clickable at a glance.
   No underline at any state (applies to .btn-reorder too via shared selector). */
.customer-dash-table tbody td a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.customer-dash-table tbody td a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* "Reorder" outline button shown on every row */
.btn-reorder {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .85rem;
    border-radius: 8px;
    border: 1px solid #e2e6ec;
    background: #fff;
    color: var(--primary-color) !important;
    font-size: .82rem;
    font-weight: 600;
    font-weight: 600 !important;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-reorder:hover {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(78, 113, 182, .25);
}
.btn-reorder i { font-size: .82rem; }

/* ===== Pagination ===== */
.customer-dash-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.customer-dash-pagination-info {
    color: #6b7280;
    font-size: .88rem;
}
.customer-dash-pagination .pagination {
    gap: .25rem;
}
.customer-dash-pagination .page-link {
    color: var(--primary-color);
    border-color: #e5e7eb;
    border-radius: 8px !important;
    padding: .4rem .75rem;
    font-size: .9rem;
    font-weight: 600;
}
.customer-dash-pagination .page-link:hover {
    background: var(--background-color-4);
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.customer-dash-pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.customer-dash-pagination .page-item.disabled .page-link {
    color: #cbd1d8;
    background: #fff;
    border-color: #eef0f3;
    cursor: not-allowed;
}

/* ===== Mobile responsive ===== */
@media (max-width: 575.98px) {
    .customer-dash-heading { font-size: 1.3rem; }
    .customer-dash-heading-row { flex-direction: column; align-items: flex-start; }
    .customer-dash-franchise-filter-wrap,
    .customer-dash-franchise-filter { width: 100%; min-width: 0; }
    .customer-dash-table thead th,
    .customer-dash-table tbody td { padding: .75rem .5rem; font-size: .85rem; }
    .customer-dash-pagination { justify-content: center; }
}


/* ============================================================
   Customer Booking Detail (customer-booking-detail.html)
   ============================================================ */

/* Top row: breadcrumb on left, edit button on right */
.customer-detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.customer-detail-breadcrumb {
    font-size: 1rem;
    font-weight: 500;
}
.customer-detail-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.customer-detail-breadcrumb a:hover { text-decoration: underline; }
.customer-detail-breadcrumb-sep { color: #cbd1d8; margin: 0 .55rem; }
.customer-detail-breadcrumb-current { color: #111827; font-weight: 600; }
.customer-detail-edit-closed {
    display: inline-flex;
    align-items: center;
    padding: .55rem .85rem;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: .82rem;
    font-weight: 600;
}

/* Prominent Name + Date hero block */
.customer-detail-hero {
    background: var(--background-color-4);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}
.customer-detail-hero-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin: 0 0 .35rem;
}
.customer-detail-hero-name {
    font-size: 1.85rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}
.customer-detail-hero-date {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}
.customer-detail-hero-time {
    font-weight: 500;
    color: #6b7280;
    font-size: 1.15rem;
}

/* Card chrome shared by order summary & patient history */
.customer-detail-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}
.customer-detail-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef0f3;
}
.customer-detail-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}
.customer-detail-status {
    background: #d1fae5;
    color: #065f46;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .3rem .75rem;
    border-radius: 999px;
}
.customer-detail-status--cancelled {
    background: #fee2e2;
    color: #991b1b;
}
.customer-detail-status--pending {
    background: #e0e7ff;
    color: #3730a3;
}

/* Label / value pair (reused everywhere) */
.customer-detail-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin: 0 0 .25rem;
}
.customer-detail-value {
    font-size: .95rem;
    color: #111827;
    margin: 0 0 .35rem;
}
.customer-detail-value a {
    color: var(--primary-color);
    text-decoration: none;
}
.customer-detail-value a:hover { text-decoration: underline; }

/* Order summary: meta block (3 columns of metadata) */
.customer-detail-summary-meta {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 1.25rem;
}

/* Order summary: services items */
.customer-detail-items { margin-bottom: 1rem; }
.customer-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid #f1f3f6;
}
.customer-detail-item:last-child { border-bottom: 0; }
.customer-detail-item-main {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    flex: 1;
}
.customer-detail-item-index {
    color: #9ca3af;
    font-weight: 600;
    min-width: 18px;
}
.customer-detail-item-name {
    font-size: .98rem;
    font-weight: 600;
    color: #111827;
}
.customer-detail-item-for {
    font-size: .85rem;
    color: #6b7280;
    margin-top: .15rem;
}
.customer-detail-item-for a {
    color: var(--primary-color);
    text-decoration: none;
}
.customer-detail-item-for a:hover { text-decoration: underline; }
.customer-detail-item-price {
    font-size: .98rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}
.customer-detail-item--addon { padding-left: 1.5rem; }
.customer-detail-item--addon .customer-detail-item-name { font-weight: 500; color: #4b5563; }
.customer-detail-item--addon .customer-detail-item-price { font-weight: 500; color: #4b5563; }
.customer-detail-item-addon-label {
    background: #f3f4f6;
    color: #6b7280;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .15rem .5rem;
    border-radius: 999px;
}
.customer-detail-item--discount .customer-detail-item-price { color: #065f46; }

/* Positive savings note below the Total (Amazon-style "You saved $X") */
.customer-detail-savings {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .55rem;
    margin: .75rem 0 0;
    font-size: .92rem;
    color: #065f46;
    font-weight: 600;
}
.customer-detail-savings i {
    color: #10b981;
    font-size: 1rem;
}

/* Total row */
.customer-detail-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #eef0f3;
    margin-top: .25rem;
}
.customer-detail-total-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}
.customer-detail-total-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Patient history form (label/value grid) */
.customer-detail-form-grid { row-gap: 1.25rem; }
.customer-detail-field { padding: 0 .75rem; }
.customer-detail-field .customer-detail-value { font-size: .95rem; font-weight: 500; }

/* When multiple patients are in one booking, each gets its own section
   inside the Patient History card. */
.customer-detail-patient-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eef0f3;
}
.customer-detail-patient-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
.customer-detail-patient-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 1.25rem;
    display: inline-flex;
    align-items: center;
}

/* Signature row at bottom of patient history */
.customer-detail-signature {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef0f3;
}

/* Mobile */
@media (max-width: 767.98px) {
    .customer-detail-hero { padding: 1.25rem; }
    .customer-detail-hero-name { font-size: 1.5rem; }
    .customer-detail-hero-date { font-size: 1.15rem; }
    .customer-detail-card { padding: 1.25rem; }
}


/* ============================================================
   Customer Profile (customer-profile.html)
   Card-based sectioned layout — avatar identity card,
   account info, notification toggles, and bio.
   ============================================================ */

/* Shared card chrome for every profile section */
.customer-profile-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.customer-profile-card-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f3f6;
}
.customer-profile-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Identity card (top): avatar + name + email + change-photo */
.customer-profile-identity {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.customer-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--background-color-4);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.customer-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.customer-profile-avatar-initials {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.customer-profile-identity-info { flex: 1; min-width: 0; }
.customer-profile-identity-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 .15rem;
}
.customer-profile-identity-email {
    color: #6b7280;
    font-size: .95rem;
    margin: 0 0 .85rem;
}

/* Form fields — uppercase labels, modern inputs */
.customer-profile-form .form-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin-bottom: .35rem;
}
.customer-profile-form .form-control {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: .55rem .85rem;
    font-size: .95rem;
    color: #111827;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.customer-profile-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 113, 182, .12);
    outline: none;
}
/* Only EXPLICITLY readonly inputs get the grey treatment.
   Avoids the :read-only pseudo also targeting <select> elements. */
.customer-profile-form input[readonly] {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}
.customer-profile-form textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

/* "Email cannot be changed" hint */
.customer-profile-hint {
    font-size: .72rem;
    color: #9ca3af;
    margin: .35rem 0 0;
    font-style: italic;
}

/* Photo-upload control (sits inside the identity card) */
.customer-profile-upload {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
}
.customer-profile-upload-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: .5rem 1rem;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.customer-profile-upload-btn:hover { background: var(--primary-color); color: #fff; }
.customer-profile-upload-name { color: #6b7280; font-size: .88rem; }

/* Notification toggle rows */
.customer-profile-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f6;
}
.customer-profile-toggle-row:first-of-type { padding-top: 0; }
.customer-profile-toggle-row:last-of-type { padding-bottom: 0; border-bottom: 0; }
.customer-profile-toggle-info { flex: 1; min-width: 0; }
.customer-profile-toggle-label {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 .15rem;
}
.customer-profile-toggle-hint {
    font-size: .85rem;
    color: #6b7280;
    margin: 0;
}

/* Bootstrap form-switch — bigger + brand-blue when on */
.customer-profile-form .form-switch .form-check-input {
    width: 2.75rem;
    height: 1.5rem;
    margin: 0;
    cursor: pointer;
}
.customer-profile-form .form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.customer-profile-form .form-switch .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(78, 113, 182, .15);
    border-color: var(--primary-color);
}

.customer-profile-birthday .form-control { width: 100%; }

.customer-profile-alert {
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 500;
}

.customer-profile-save-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: .25rem;
    margin-bottom: 2rem;
}

.customer-profile-save-btn {
    min-width: 180px;
    padding: .7rem 1.5rem;
    font-size: .95rem;
    font-weight: 600;
    border-radius: 10px;
}

.customer-profile-question {
    margin-bottom: 1.35rem;
}
.customer-profile-section-title {
    margin-top: 1.5rem;
    color: var(--primary-color);
}
.customer-profile-consent-scroll {
    max-height: 220px;
    overflow: auto;
    padding: 1rem 1.1rem;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    background: #f8fafc;
    font-size: .9rem;
    color: #374151;
}
.customer-profile-form .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: .55rem .85rem;
    font-size: .95rem;
}
.customer-profile-cards-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.customer-profile-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    background: #f8fafc;
}
.customer-profile-card-default {
    display: inline-block;
    margin-left: .4rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.customer-profile-stripe-element {
    min-height: 48px;
    padding: .75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
}

/* Mobile */
@media (max-width: 575.98px) {
    .customer-profile-card { padding: 1.25rem; }
    .customer-profile-identity { flex-direction: column; text-align: center; }
    .customer-profile-toggle-row { flex-direction: column; align-items: flex-start; }
    .customer-profile-save-wrap { justify-content: stretch; }
    .customer-profile-save-btn { width: 100%; }
}
