/* =============================================================================
   MODAL/POPUP CSS - Extracted from services.css and services.js
   All styles related to the medical specialties modal popup
   ============================================================================= */

/* Modal Overlay */
.medical-specialties-modal {
    display: none;
    position: fixed;
    z-index: 10100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Modal Container */
.medical-specialties-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

/* Modal Slide In Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.medical-specialties-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.medical-specialties-modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c5aa0;
}

/* Modal Close Button */
.medical-specialties-close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.medical-specialties-close-modal:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Modal Body */
.medical-specialties-modal-body {
    padding: 24px;
}

/* Modal Description */
.medical-specialties-modal-description {
    font-size: 1rem;
    color: #193C43;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Services List Container */
/* .medical-specialties-modal-services { */
    /* Container for the services list */
/* } */

/* Services List (dynamically added from JS) */
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Modal Actions (Buttons Container) */
.medical-specialties-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Modal Buttons Base Style */
.medical-specialties-btn {
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Primary Button (Book Appointment) */
.medical-specialties-btn-primary {
    background: linear-gradient(135deg, rgb(44, 90, 160) 0%, rgb(30, 58, 138) 100%);
    color: white;
    font-weight: 600;
}

.medical-specialties-btn-primary:hover {
    background: linear-gradient(135deg, rgb(30, 58, 138) 0%, rgb(20, 40, 100) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 90, 160, 0.3);
}

/* Secondary Button (Contact for More Info) */
.medical-specialties-btn-secondary {
    background: #e6d9cc;
    color: #193C43;
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.medical-specialties-btn-secondary:hover {
    background: #d7cbc2;
    color: #2c5aa0;
}

/* Animation for Modal Elements */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus Styles for Accessibility */
.medical-specialties-btn:focus,
.medical-specialties-close-modal:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* =============================================================================
   RESPONSIVE STYLES FOR MODAL
   ============================================================================= */

/* Tablets and below (max-width: 768px) */
@media (max-width: 768px) {
    .medical-specialties-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .medical-specialties-modal-actions {
        flex-direction: column;
    }
    
    .medical-specialties-btn {
        width: 100%;
        text-align: center;
    }
}

/* Mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .medical-specialties-modal-header,
    .medical-specialties-modal-body {
        padding: 20px;
    }
}

