/* Public online appointment booking — patient-friendly layout */
.book-page {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.book-hero {
    padding: 1.75rem 1.25rem 1.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 132, 90, 223), 0.08) 0%, rgba(var(--primary-rgb, 132, 90, 223), 0.02) 100%);
    border: 1px solid rgba(var(--primary-rgb, 132, 90, 223), 0.12);
}

.book-hero-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--primary-rgb, 132, 90, 223), 0.12);
    color: rgb(var(--primary-rgb, 132, 90, 223));
    font-size: 1.5rem;
}

.book-tabs-card {
    border: 1px solid rgba(var(--primary-rgb, 132, 90, 223), 0.1);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.04);
}

.book-tabs-card .nav-tabs {
    border-bottom-color: rgba(var(--primary-rgb, 132, 90, 223), 0.15);
    gap: 0.25rem;
    padding: 0 0.75rem;
}

.book-tabs-card .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted, #6c757d);
    font-weight: 500;
    padding: 0.85rem 1rem;
    border-radius: 0;
}

.book-tabs-card .nav-link.active {
    color: rgb(var(--primary-rgb, 132, 90, 223));
    border-bottom-color: rgb(var(--primary-rgb, 132, 90, 223));
    background: transparent;
}

.book-form-section {
    padding: 1.25rem 1.25rem 0.25rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(var(--primary-rgb, 132, 90, 223), 0.03);
    border: 1px solid rgba(var(--primary-rgb, 132, 90, 223), 0.08);
}

.book-form-section:last-of-type {
    margin-bottom: 0;
}

.book-form-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(var(--primary-rgb, 132, 90, 223));
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-form-section-title i {
    font-size: 1rem;
    opacity: 0.85;
}

.clinic-info-panel {
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    background: rgba(var(--primary-rgb, 132, 90, 223), 0.06);
    border: 1px solid rgba(var(--primary-rgb, 132, 90, 223), 0.14);
}

.clinic-info-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(var(--primary-rgb, 132, 90, 223));
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.clinic-info-row {
    font-size: 0.875rem;
    line-height: 1.45;
    margin-bottom: 0.25rem;
    color: var(--default-text-color, #333);
}

.clinic-info-row:last-child {
    margin-bottom: 0;
}

.clinic-info-row strong {
    font-weight: 600;
    margin-right: 0.35rem;
}

.book-form-actions {
    padding: 1.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(var(--primary-rgb, 132, 90, 223), 0.1);
}

.book-form-actions .btn {
    min-width: 11rem;
    padding: 0.65rem 1.5rem;
}

#frmBookAppointment .form-label {
    font-weight: 500;
    margin-bottom: 0.35rem;
}

#frmBookAppointment .form-control,
#frmBookAppointment .form-select,
#frmBookAppointment .select2-container .select2-selection,
#frmBookAppointment .flatpickr-input {
    min-height: 2.5rem;
}

#frmBookAppointment .select2-container--default .select2-selection--single {
    border-color: var(--input-border, #dee2e6);
    border-radius: 0.375rem;
}

#frmBookAppointment .select2-container--default.select2-container--focus .select2-selection--single,
#frmBookAppointment .select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgb(var(--primary-rgb, 132, 90, 223));
}

/* Gender radios — single row, aligned with input height */
.book-gender-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    min-height: 2.5rem;
    padding-top: 0.125rem;
}

.book-gender-group .form-check {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
    min-height: 1.5rem;
}

.book-gender-group .form-check-input {
    float: none;
    margin-left: 0;
    margin-right: 0.4rem;
    margin-top: 0;
}

.book-gender-group .form-check-label {
    white-space: nowrap;
    line-height: 1.25;
}

@media (max-width: 575.98px) {
    .book-gender-group {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        min-height: 0;
    }
}

.book-history-gate {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    background: rgba(var(--primary-rgb, 132, 90, 223), 0.03);
    border: 1px solid rgba(var(--primary-rgb, 132, 90, 223), 0.08);
}

@media (max-width: 575.98px) {
    .book-hero {
        padding: 1.25rem 1rem 1rem;
    }

    .book-form-section {
        padding: 1rem 0.85rem 0.15rem;
    }
}
