/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding-top: 80px; /* Add padding to ensure modal appears below header */
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 0 auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: scaleIn 0.3s ease-out;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary-color);
    background-color: #e0e0e0;
}

.enrollment-info {
    margin-top: 1.5rem;
}

.contact-details {
    margin: 2rem 0;
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 24px;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.contact-item p {
    color: #666;
    line-height: 1.4;
}

.enrollment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-call, .btn-whatsapp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 4px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.btn-call {
    background-color: var(--primary-color);
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-call:hover, .btn-whatsapp:hover {
    transform: translateY(-2px);
}

/* Mobile-specific modal styles */
@media (max-width: 768px) {
    .modal {
        padding-top: 70px; /* Match header height */
    }
    
    .modal-content {
        margin: 0 auto;
        width: 95%;
        padding: 1.5rem;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    
    .enrollment-info {
        margin-top: 1rem;
    }
    
    .contact-details {
        margin: 1.5rem 0;
        gap: 1.25rem;
    }
    
    /* Improve scroll behavior */
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Make contact details more compact */
    .contact-item {
        gap: 0.75rem;
    }
    
    .contact-item i {
        font-size: 1.25rem;
    }
    
    /* Action buttons styling */
    .enrollment-actions {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .btn-call, .btn-whatsapp {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}
