/* Booking Modal Styles - Reusable across all pages */

/* Booking Modal Container */
.booking-modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(4px);
    z-index: 10000; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
    overflow-y: auto; 
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.booking-modal-content { 
    background: white; 
    border-radius: 24px; 
    max-width: 900px; 
    width: 100%; 
    max-height: 90vh; 
    overflow-y: auto; 
    position: relative; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.booking-modal-header { 
    padding: 24px 32px; 
    border-bottom: 1px solid #f0f0f0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10; 
    border-radius: 24px 24px 0 0;
    color: white;
}

.booking-modal-title { 
    font-size: 1.4rem; 
    font-weight: 700; 
    color: white;
    margin: 0;
}

.booking-close-btn { 
    background: rgba(255, 255, 255, 0.2); 
    border: none; 
    font-size: 1.8rem; 
    cursor: pointer; 
    color: white; 
    line-height: 1; 
    padding: 0; 
    width: 36px; 
    height: 36px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%;
    transition: all 0.2s ease;
}

.booking-close-btn:hover { 
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.booking-modal-body { 
    padding: 32px; 
    background: #fafafa;
}

/* Doctor Info Section */
.booking-doctor-info { 
    margin-bottom: 32px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.booking-doctor-name { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #1a1a1a; 
    margin-bottom: 8px;
}

.booking-specialization { 
    color: #667eea; 
    font-size: 1rem; 
    font-weight: 600;
    margin-bottom: 8px;
}

.booking-clinic-name { 
    color: #666; 
    font-size: 0.95rem; 
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.booking-clinic-name::before {
    content: '🏥';
    font-size: 1em;
}

/* Date Selection Section */
.booking-dates-section { 
    margin-bottom: 32px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.booking-section-title { 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: #1a1a1a; 
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-dates-section .booking-section-title::before {
    content: '📅';
    font-size: 1.2em;
}

.booking-times-section .booking-section-title::before {
    content: '⏰';
    font-size: 1.2em;
}

.booking-dates-row { 
    display: flex; 
    gap: 12px; 
    overflow-x: auto; 
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
}

.booking-dates-row::-webkit-scrollbar {
    height: 6px;
}

.booking-dates-row::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.booking-dates-row::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.booking-date-item { 
    min-width: 140px; 
    padding: 18px 16px; 
    border: 2px solid #e0e0e0; 
    border-radius: 14px; 
    cursor: pointer; 
    text-align: center; 
    transition: all 0.3s ease; 
    background: white;
    flex-shrink: 0;
}

.booking-date-item:hover { 
    border-color: #667eea; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.booking-date-item.active { 
    border-color: #667eea; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.booking-date-item.active .booking-date-label,
.booking-date-item.active .booking-date-slots {
    color: white;
}

.booking-date-label { 
    font-weight: 700; 
    color: #1a1a1a; 
    margin-bottom: 8px;
    font-size: 1rem;
}

.booking-date-slots { 
    font-size: 0.8em; 
    color: #25D366; 
    font-weight: 600;
}

/* Time Slots Section */
.booking-times-section { 
    margin-bottom: 32px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.booking-time-category { 
    margin-bottom: 28px;
}

.booking-time-category:last-child {
    margin-bottom: 0;
}

.booking-time-category-header { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-weight: 700; 
    color: #1a1a1a; 
    margin-bottom: 16px; 
    font-size: 1.05rem;
}

.booking-time-icon { 
    font-size: 1.3em; 
}

.booking-time-slots { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
}

.booking-time-btn { 
    padding: 14px 24px; 
    border: 2px solid #e0e0e0; 
    border-radius: 12px; 
    background: white; 
    cursor: pointer; 
    font-weight: 600; 
    color: #1a1a1a; 
    transition: all 0.2s ease; 
    font-size: 0.95em;
}

.booking-time-btn:hover { 
    border-color: #667eea; 
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.booking-time-btn.active { 
    border-color: #667eea; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* Patient Info Form Section */
.booking-form-section { 
    margin-top: 32px; 
    padding-top: 32px; 
    border-top: 1px solid #e9ecef;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.booking-form-group { 
    margin-bottom: 24px; 
}

.booking-form-group:last-child {
    margin-bottom: 0;
}

.booking-form-label { 
    display: block; 
    font-weight: 600; 
    color: #1a1a1a; 
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.booking-form-input { 
    width: 100%; 
    padding: 14px 16px; 
    border: 2px solid #e0e0e0; 
    border-radius: 12px; 
    font-size: 1em; 
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.booking-form-input:focus { 
    outline: none; 
    border-color: #667eea; 
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1); 
}

.booking-form-input::placeholder {
    color: #999;
}

.booking-form-textarea { 
    width: 100%; 
    padding: 14px 16px; 
    border: 2px solid #e0e0e0; 
    border-radius: 12px; 
    font-size: 1em; 
    font-family: inherit; 
    resize: vertical; 
    min-height: 100px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.booking-form-textarea:focus { 
    outline: none; 
    border-color: #667eea; 
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1); 
}

.booking-form-textarea::placeholder {
    color: #999;
}

/* Modal Footer */
.booking-modal-footer { 
    padding: 24px 32px; 
    border-top: 1px solid #f0f0f0; 
    display: flex; 
    gap: 12px; 
    justify-content: flex-end; 
    position: sticky; 
    bottom: 0; 
    background: white; 
    border-radius: 0 0 24px 24px;
}

.booking-cancel-btn { 
    padding: 14px 28px; 
    background: #f8f9fa; 
    color: #1a1a1a; 
    border: 2px solid #e0e0e0; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: 600;
    font-size: 1em;
    transition: all 0.2s ease;
}

.booking-cancel-btn:hover { 
    background: #e9ecef;
    border-color: #d0d0d0;
}

.booking-submit-btn { 
    padding: 14px 28px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; 
    border: none; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: 600;
    font-size: 1em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.booking-submit-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.booking-submit-btn:active {
    transform: translateY(0);
}

.booking-submit-btn:disabled { 
    opacity: 0.6; 
    cursor: not-allowed;
    transform: none;
}

/* Loader Overlay */
#booking-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-modal { 
        padding: 10px; 
    }
    
    .booking-modal-content { 
        max-width: 100%; 
        border-radius: 16px; 
        max-height: 95vh; 
    }
    
    .booking-modal-header {
        padding: 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .booking-modal-title {
        font-size: 1.2rem;
    }
    
    .booking-modal-body { 
        padding: 20px; 
    }
    
    .booking-doctor-info,
    .booking-dates-section,
    .booking-times-section,
    .booking-form-section {
        padding: 20px;
    }
    
    .booking-dates-row { 
        gap: 10px;
    }
    
    .booking-date-item { 
        min-width: 120px;
        padding: 16px 14px;
    }
    
    .booking-time-btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    
    .booking-modal-footer {
        padding: 20px;
        flex-direction: column-reverse;
    }
    
    .booking-cancel-btn,
    .booking-submit-btn {
        width: 100%;
        padding: 16px;
    }
}

