/* ==================== BOOKING PAGES - CENTRALIZED CSS ==================== */
/* Database Theme Colors */

/* CSS Variables for Booking Pages */
:root {
    --db-primary: #203967;
    --db-secondary: #6c757d;
    --db-accent: #203967;
    --db-primary-dark: #001240;
    --db-primary-light: #465f8d;
    --db-secondary-dark: #454e56;
}


/* ==================== PAGE LAYOUT ==================== */
.booking-page-content,
.payment-page-content,
.slots-page-content,
.confirmation-page-content {
    padding: 40px 0 80px;
    background: #f8f9fa;
    position: relative;
    z-index: 10;
}

/* ==================== COMPACT PAGE HEADER ==================== */
.booking-page-header {
    background: var(--db-primary);
    padding: 40px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.booking-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.booking-page-header .page-header-content {
    position: relative;
    z-index: 1;
}

.booking-page-header .page-header-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    backdrop-filter: blur(5px);
}

.booking-page-header .page-header-badge i {
    margin-right: 6px;
}

.booking-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.booking-page-header p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .booking-page-header {
        padding: 25px 0;
    }
    
    .booking-page-header .page-header-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .booking-page-header h1 {
        font-size: 1.4rem;
    }
    
    .booking-page-header p {
        font-size: 0.85rem;
    }
}

/* ==================== BOOKING INSTRUCTIONS ==================== */
.booking-instructions {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(var(--db-primary-rgb, 35, 69, 139), 0.06);
    border: 1px solid rgba(var(--db-primary-rgb, 35, 69, 139), 0.15);
    border-left: 4px solid var(--db-primary);
    border-radius: 12px;
    padding: 16px 20px;
}

.booking-instructions .instruction-icon {
    width: 45px;
    height: 45px;
    background: var(--db-primary, #23458b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.booking-instructions .instruction-icon i {
    color: white;
    font-size: 18px;
}

.booking-instructions .instruction-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.booking-instructions .instruction-text strong {
    color: var(--db-primary, #23458b);
}

/* Step Instruction Cards (for inside booking form) */
.step-instruction-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.step-instruction-card .step-instruction-icon {
    width: 50px;
    height: 50px;
    background: var(--db-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-instruction-card .step-instruction-icon i {
    color: white;
    font-size: 20px;
}

.step-instruction-card .step-instruction-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--db-primary, #23458b);
    margin: 0 0 6px 0;
}

.step-instruction-card .step-instruction-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .booking-instructions {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .booking-instructions .instruction-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .booking-instructions .instruction-icon i {
        font-size: 14px;
    }
    
    .booking-instructions .instruction-text {
        font-size: 12px;
    }
    
    .step-instruction-card {
        padding: 15px;
        gap: 12px;
    }
    
    .step-instruction-card .step-instruction-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .step-instruction-card .step-instruction-icon i {
        font-size: 16px;
    }
    
    .step-instruction-card .step-instruction-content h5 {
        font-size: 0.95rem;
    }
    
    .step-instruction-card .step-instruction-content p {
        font-size: 12px;
    }
}

/* ==================== MODERN BOOKING STEPPER ==================== */
.booking-stepper-wrapper {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.booking-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 2;
}

.stepper-item:last-child {
    flex: 0;
}

.stepper-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e9ecef;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.stepper-circle .step-number {
    font-size: 16px;
}

.stepper-label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    white-space: nowrap;
}

.stepper-line {
    position: absolute;
    top: 24px;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.stepper-line.completed {
    background: var(--db-primary, #23458b);
}

/* Completed Step */
.stepper-item.completed .stepper-circle {
    background: var(--db-primary, #23458b);
    border-color: var(--db-primary, #23458b);
    color: white;
}

.stepper-item.completed .stepper-label {
    color: var(--db-primary, #23458b);
    font-weight: 600;
}

/* Active Step */
.stepper-item.active .stepper-circle {
    background: white;
    border-color: var(--db-secondary, #ca2027);
    color: var(--db-secondary, #ca2027);
    box-shadow: 0 0 0 4px rgba(202, 32, 39, 0.15);
}

.stepper-item.active .stepper-label {
    color: var(--db-secondary, #ca2027);
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .booking-stepper-wrapper {
        padding: 20px 15px;
    }
    
    .stepper-circle {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .stepper-circle .step-number {
        font-size: 13px;
    }
    
    .stepper-label {
        font-size: 10px;
        margin-top: 8px;
    }
    
    .stepper-line {
        top: 18px;
        left: calc(50% + 18px);
        width: calc(100% - 36px);
        height: 2px;
    }
}

/* ==================== CARDS ==================== */
.booking-card,
.payment-card,
.selection-card,
.confirmation-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.booking-card.elevated,
.payment-card.elevated {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* ==================== DOCTOR INFO CARDS ==================== */
/* Note: Base styles are now in doctor-card.css */
/* These are booking-specific overrides only */

/* Summary Box (smaller) */
.summary-box {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.summary-doctor-avatar {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--db-primary);
}

.summary-doctor-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: var(--db-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== PROGRESS INDICATORS ==================== */
.booking-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 13px;
    font-weight: 500;
    color: #adb5bd;
}

.progress-step.active {
    background: var(--db-primary);
    color: white;
}

.progress-step.completed {
    background: #27ae60;
    color: white;
}

.progress-step i {
    font-size: 14px;
}

/* Step Dots */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--db-primary);
    width: 40px;
    border-radius: 10px;
}

/* ==================== SELECTION CARDS ==================== */
.selection-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.selection-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selection-card-body {
    padding: 25px;
}

/* ==================== DATE PICKER ==================== */
.date-scroll-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--db-primary) #f0f0f0;
}

.date-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.date-scroll-container::-webkit-scrollbar-thumb {
    background: var(--db-primary);
    border-radius: 3px;
}

.date-btn {
    flex: 0 0 auto;
    width: 80px;
    border: 2px solid #e9ecef;
    background: white;
    color: #212529;
    transition: all 0.3s ease;
    padding: 15px 10px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
}

.date-btn:hover {
    border-color: var(--db-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 69, 139, 0.15);
}

.date-btn.selected {
    background: var(--db-primary) !important;
    color: white !important;
    border-color: var(--db-primary) !important;
    box-shadow: 0 4px 15px rgba(35, 69, 139, 0.3);
}

.date-btn.selected .day-name,
.date-btn.selected .day-num,
.date-btn.selected .month-name {
    color: white !important;
}

.date-btn .day-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 5px;
}

.date-btn .day-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

.date-btn .month-name {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 5px;
}

/* ==================== TIME SLOTS GRID ==================== */
.slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.slot-btn {
    border: 2px solid #e5e7eb;
    background: white;
    color: #212529;
    transition: all 0.2s ease;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.slot-btn:hover {
    border-color: var(--db-primary);
    background: #f0f4ff;
}

.slot-btn.selected {
    background: var(--db-primary) !important;
    color: white !important;
    border-color: var(--db-primary) !important;
}

.slot-btn.selected .text-muted {
    color: rgba(255,255,255,0.8) !important;
}

.slot-btn.selected i {
    color: white !important;
}

/* ==================== PATIENT CARDS ==================== */
.patient-card {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.patient-card:hover {
    border-color: var(--db-primary);
    box-shadow: 0 5px 20px rgba(35, 69, 139, 0.1);
}

.patient-card.selected {
    border-color: var(--db-primary);
    background: rgba(35, 69, 139, 0.05);
}

.patient-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--db-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Patient Select Card - Single Click to Select & Continue */
.patient-select-card {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.patient-select-card:hover {
    border-color: var(--db-primary);
    background: rgba(35, 69, 139, 0.03);
    box-shadow: 0 5px 20px rgba(35, 69, 139, 0.12);
    transform: translateY(-2px);
}

.patient-select-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(35, 69, 139, 0.1);
}

.patient-select-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.patient-select-header .patient-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.patient-name-section {
    flex: 1;
    min-width: 0;
}

.patient-name-section .patient-name {
    margin: 0 0 4px 0;
    font-weight: 700;
    color: var(--db-primary, #23458b);
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.patient-id-badge {
    display: inline-block;
    background: var(--db-primary, #23458b);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.patient-select-arrow {
    width: 36px;
    height: 36px;
    background: var(--db-secondary, #ca2027);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.patient-select-card:hover .patient-select-arrow {
    transform: translateX(3px);
}

.patient-select-details {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.patient-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
}

.patient-detail-item i {
    color: var(--db-primary, #23458b);
    width: 16px;
    text-align: center;
}

.patient-detail-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* ==================== PAYMENT METHODS ==================== */
.payment-method-card {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.payment-method-card:hover {
    border-color: var(--db-primary);
    box-shadow: 0 5px 20px rgba(35, 69, 139, 0.15);
    transform: translateY(-3px);
}

.payment-method-card.selected {
    border-color: var(--db-primary);
    background: rgba(35, 69, 139, 0.05);
    box-shadow: 0 5px 25px rgba(35, 69, 139, 0.2);
}

.payment-method-card .logo-wrapper {
    width: 120px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    background: white;
    border-radius: 10px;
    padding: 10px;
}

.payment-method-card .logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-method-card .icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}

.payment-method-card .icon-wrapper.has-logo {
    padding: 10px;
    background: #f8f9fa;
}

.payment-method-card .icon-wrapper.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-method-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--db-primary);
}

.payment-method-card p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* ==================== APPOINTMENT SUMMARY ==================== */
.appointment-summary {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .icon {
    width: 40px;
    height: 40px;
    background: var(--db-primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.summary-item .details {
    flex-grow: 1;
}

.summary-item .label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item .value {
    font-weight: 600;
    color: #212529;
}

/* ==================== AMOUNT DISPLAY ==================== */
.payment-header {
    background: #f8f9fa;
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
}

.amount-display {
    background: var(--db-secondary);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.amount-display .amount {
    font-size: 2rem;
    font-weight: 700;
}

.fee-card {
    background: linear-gradient(135deg, var(--db-primary) 0%, var(--db-primary-dark) 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    text-align: center;
}

.fee-card .fee-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.fee-card .fee-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
}

.fee-badge {
    background: var(--db-secondary);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
}

/* ==================== BUTTONS ==================== */
.btn-primary-custom {
    background: var(--db-primary);
    color: white;
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary-custom:hover {
    background: var(--db-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(35, 69, 139, 0.3);
}

.btn-primary-custom:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-success-custom {
    background: var(--db-secondary);
    color: white;
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    transition: all 0.3s;
}

.btn-success-custom:hover {
    background: var(--db-secondary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(202, 32, 39, 0.3);
}

.btn-outline-custom {
    background: transparent;
    color: var(--db-primary);
    border: 2px solid var(--db-primary);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-custom:hover {
    background: var(--db-primary);
    color: white;
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    color: var(--db-primary);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-title i {
    color: var(--db-secondary);
}

.selected-info {
    background: rgba(35, 69, 139, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--db-primary);
    font-weight: 600;
}

/* ==================== NO DATA MESSAGE ==================== */
.no-data-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.no-data-message i {
    color: #adb5bd;
    margin-bottom: 20px;
}

.no-data-message h6 {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ==================== FORM STYLING ==================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--db-primary);
    box-shadow: 0 0 0 0.2rem rgba(35, 69, 139, 0.15);
}

.form-label {
    font-weight: 600;
    color: #2d3436;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* ==================== FORM SECTIONS ==================== */
.form-section {
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.form-section-header {
    background: var(--db-primary);
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-header i {
    font-size: 1rem;
    opacity: 0.9;
}

.form-section-header .badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 8px;
}

.form-section-body {
    padding: 20px;
    background: white;
}

/* Form Input Groups */
.form-section .input-group-text {
    background: var(--db-primary, #23458b);
    color: white;
    border-color: var(--db-primary, #23458b);
}

.form-section .input-group-text i {
    font-size: 0.85rem;
}

/* Custom Info Alert */
.alert-info-custom {
    background: rgba(var(--db-secondary-rgb, 33, 144, 184), 0.08);
    border: 1px solid rgba(var(--db-secondary-rgb, 33, 144, 184), 0.3);
    border-left: 4px solid var(--db-secondary);
    color: #0c5460;
    border-radius: 12px;
    padding: 15px 20px;
}

.alert-info-custom i {
    color: var(--db-secondary, #2190b8);
}

/* Form placeholder styling */
.form-section .form-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Required field asterisk */
.form-label .text-danger {
    font-weight: 700;
}

/* ==================== BADGES ==================== */
.booking-step-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== APPOINTMENT TYPE HEADERS ==================== */
.appointment-type-section {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.appointment-type-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.type-header {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.type-header h6 {
    margin: 0;
    font-weight: 600;
    color: var(--db-primary);
}

.type-header .slot-count {
    background: var(--db-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .booking-page-content,
    .payment-page-content,
    .slots-page-content,
    .confirmation-page-content {
        padding: 15px 0 50px;
    }
    
    .booking-card.elevated,
    .payment-card.elevated {
        margin-top: 0;
    }
    
    /* Note: Doctor card mobile styles are now in doctor-card.css */
    
    /* Fee Card Mobile */
    .fee-card {
        margin-top: 10px !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }
    
    .fee-card .fee-label {
        font-size: 10px;
    }
    
    .fee-card .fee-amount {
        font-size: 1.1rem;
    }
    
    /* ===== SELECTION CARDS ===== */
    .selection-card {
        border-radius: 14px;
        box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    }
    
    .selection-card-header {
        padding: 12px 15px;
    }
    
    .selection-card-header .section-title {
        font-size: 0.9rem;
    }
    
    .selection-card-header .section-title i {
        font-size: 14px;
    }
    
    .selected-info {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .selection-card-body {
        padding: 15px;
    }
    
    /* ===== DATE BUTTONS ===== */
    .date-scroll-container {
        gap: 8px;
        padding: 3px;
    }
    
    .date-btn {
        width: 62px;
        min-width: 62px;
        padding: 10px 6px;
        border-radius: 10px;
    }
    
    .date-btn .day-name {
        font-size: 0.6rem;
        margin-bottom: 3px;
    }
    
    .date-btn .day-num {
        font-size: 1.2rem;
    }
    
    .date-btn .month-name {
        font-size: 0.65rem;
        margin-top: 3px;
    }
    
    /* ===== TIME SLOTS GRID ===== */
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .slot-btn {
        padding: 10px 6px;
        border-radius: 10px;
    }
    
    .slot-btn i {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }
    
    .slot-btn div {
        font-size: 0.9rem !important;
    }
    
    .slot-btn small {
        font-size: 10px;
    }
    
    /* ===== APPOINTMENT TYPE SECTION ===== */
    .appointment-type-section {
        margin-bottom: 15px;
    }
    
    .type-header {
        padding: 10px 12px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .type-header h6 {
        font-size: 12px;
    }
    
    .type-header h6 i {
        font-size: 12px;
    }
    
    .type-header .slot-count {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    /* ===== BUTTONS ===== */
    .btn-primary-custom,
    .btn-success-custom,
    .btn-outline-custom {
        padding: 12px 18px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .btn-primary-custom i,
    .btn-outline-custom i {
        font-size: 12px;
    }
    
    /* ===== BOOKING PROGRESS ===== */
    .booking-progress {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .progress-step {
        flex: 1;
        justify-content: center;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .progress-step i {
        font-size: 12px;
    }
    
    /* ===== SUMMARY BOX ===== */
    .summary-box {
        padding: 15px;
        border-radius: 12px;
    }
    
    .summary-doctor-avatar,
    .summary-doctor-placeholder {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }
    
    /* ===== PATIENT CARDS ===== */
    .patient-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .patient-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    /* ===== PATIENT SELECT CARDS (Mobile) ===== */
    .patient-select-card {
        padding: 14px;
        border-radius: 12px;
    }
    
    .patient-select-header {
        gap: 10px;
    }
    
    .patient-select-header .patient-avatar {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .patient-name-section .patient-name {
        font-size: 14px;
    }
    
    .patient-id-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .patient-select-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .patient-select-details {
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .patient-detail-item {
        font-size: 12px;
    }
    
    .patient-detail-item span {
        max-width: 100%;
    }
    
    /* ===== PAYMENT METHOD CARDS ===== */
    .payment-method-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .payment-method-card .logo-wrapper {
        width: 90px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .payment-method-card .icon-wrapper {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .payment-method-card h5 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .payment-method-card p {
        font-size: 12px;
    }
    
    /* ===== APPOINTMENT SUMMARY ===== */
    .appointment-summary {
        padding: 15px;
        border-radius: 12px;
    }
    
    .summary-item {
        padding: 10px 0;
    }
    
    .summary-item .icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    /* ===== CONFIRMATION CARD ===== */
    .confirmation-card {
        border-radius: 16px;
        margin-top: -30px;
    }
    
    .appointment-number {
        padding: 15px;
    }
    
    .appointment-number h3 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .detail-row {
        padding: 12px 15px;
    }
    
    .detail-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin-right: 12px;
    }
    
    .detail-icon i {
        font-size: 16px;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 14px;
    }
    
    .action-buttons {
        padding: 15px;
        gap: 10px;
    }
    
    .action-buttons .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* ===== CONFIRMATION HERO ===== */
    .confirmation-hero {
        padding: 25px 0 45px;
    }
    
    .confirmation-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .confirmation-icon i {
        font-size: 35px;
    }
    
    /* ===== MOBILE-FRIENDLY FORMS ===== */
    .mobile-friendly-form .form-control,
    .mobile-friendly-form .form-select {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 10px 14px;
        border-radius: 10px;
    }
    
    .mobile-friendly-form .form-control-lg,
    .mobile-friendly-form .form-select-lg {
        min-height: 46px;
    }
    
    .mobile-friendly-form .form-label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .mobile-friendly-form .btn-lg {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    /* Form Section Mobile Styles */
    .form-section {
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    .form-section-header {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .form-section-body {
        padding: 12px;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .form-section .form-control,
    .form-section .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Alert compact on mobile */
    .alert-info-custom {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    /* ===== NO DATA MESSAGE ===== */
    .no-data-message {
        padding: 30px 15px;
    }
    
    .no-data-message i {
        font-size: 2.5rem !important;
    }
    
    .no-data-message h5,
    .no-data-message h6 {
        font-size: 1rem;
    }
    
    .no-data-message p {
        font-size: 12px;
    }
    
    /* ===== SECTION TITLES ===== */
    .section-title {
        font-size: 0.95rem;
    }
    
    .section-title i {
        margin-right: 6px;
    }
    
    /* ===== BOOKING CARD ===== */
    .booking-card {
        padding: 20px !important;
        border-radius: 14px;
    }
    
    .booking-card .summary-box {
        padding: 12px;
    }
    
    .booking-card .summary-box .row {
        flex-direction: column;
        gap: 10px;
    }
    
    .booking-card .summary-box .col-md-2 {
        text-align: left !important;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .booking-card .summary-box .col-md-6 {
        padding-left: 0;
    }
    
    .booking-card .summary-box .col-md-4 {
        padding-left: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }
    
    .booking-card .summary-box .col-md-4 > div {
        font-size: 12px;
    }
    
    .booking-card .summary-box h5 {
        font-size: 1rem;
    }
    
    .booking-card .summary-box p {
        font-size: 12px;
    }
    
    /* Step Indicator */
    .step-indicator {
        margin-bottom: 20px;
    }
    
    .step-dot {
        width: 10px;
        height: 10px;
    }
    
    .step-dot.active {
        width: 30px;
    }
    
    /* Fee Badge */
    .fee-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    /* Input Groups */
    .input-group-lg .input-group-text {
        padding: 10px 14px;
    }
    
    .input-group-lg .form-control {
        padding: 10px 14px;
    }
}

/* =====================================================
   MOBILE-FRIENDLY FORM GLOBAL STYLES
   ===================================================== */
.mobile-friendly-form .form-control,
.mobile-friendly-form .form-select {
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-friendly-form .form-control:focus,
.mobile-friendly-form .form-select:focus {
    border-color: var(--db-primary, #0f477c);
    box-shadow: 0 0 0 3px rgba(15, 71, 124, 0.15);
}

.mobile-friendly-form .form-label {
    color: #333;
    font-weight: 600;
}

.mobile-friendly-form .form-label .text-muted {
    font-weight: 400;
    font-size: 0.85em;
}

/* =====================================================
   CONFIRMATION PAGE STYLES
   ===================================================== */

.confirmation-hero {
    background: var(--db-primary, #23458b);
    padding: 40px 0 60px;
    color: white;
    text-align: center;
}

.confirmation-hero .booking-stepper-wrapper {
    background: rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.confirmation-hero .stepper-circle {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
}

.confirmation-hero .stepper-label {
    color: rgba(255,255,255,0.7);
}

.confirmation-hero .stepper-line {
    background: rgba(255,255,255,0.3);
}

.confirmation-hero .stepper-item.completed .stepper-circle {
    background: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.9);
    color: var(--db-primary, #23458b);
}

.confirmation-hero .stepper-item.completed .stepper-label {
    color: white;
}

.confirmation-hero .stepper-line.completed {
    background: rgba(255,255,255,0.8);
}

.confirmation-hero .stepper-item.active .stepper-circle {
    background: white;
    border-color: white;
    color: var(--db-secondary, #ca2027);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}

.confirmation-hero .stepper-item.active .stepper-label {
    color: white;
    font-weight: 700;
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirmation-icon i {
    font-size: 50px;
    color: white;
}

/* Ensure hero text is visible on dark background */
.confirmation-hero h1,
.confirmation-hero .display-5 {
    color: white !important;
}

.confirmation-hero p,
.confirmation-hero .lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

.confirmation-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.appointment-number {
    background: var(--db-secondary, #ca2027);
    color: white;
    padding: 20px;
    text-align: center;
}

.appointment-number h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.detail-row {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.detail-icon i {
    font-size: 20px;
    color: var(--db-primary, #23458b);
}

.detail-content {
    flex-grow: 1;
}

.detail-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.action-buttons {
    padding: 25px;
    background: #f8f9fa;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons .btn {
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
}

.print-section {
    display: none;
}

@media print {
    .print-section {
        display: block;
    }
    .no-print {
        display: none !important;
    }
}
