/* Enrollment Form Modal */
.enrollment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.enrollment-modal.active {
    display: flex;
}

.enrollment-form-container {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.enrollment-header {
    background: linear-gradient(135deg, #0f1f44, #1c2f5d);
    color: white;
    padding: 30px;
    border-radius: 12px 12px 0 0;
    position: relative;
    border-bottom: 4px solid #d4af37;
}

.enrollment-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.enrollment-header p {
    opacity: 0.95;
    font-size: 0.95rem;
}

.close-enrollment {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-enrollment:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.enrollment-body {
    padding: 30px;
}

.course-info-box {
    background: #f4f6fb;
    border-left: 4px solid #d4af37;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid rgba(15, 31, 68, 0.08);
}

.course-info-box h3 {
    color: #0f1f44;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.course-info-item {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.course-info-item strong {
    color: #1e293b;
    min-width: 100px;
}

.form-section {
    margin-bottom: 25px;
}

.form-section h4 {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label .required {
    color: #dc2626;
    margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0f1f44;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.enrollment-footer {
    padding: 20px 30px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-radius: 0 0 12px 12px;
}

.btn-submit-enrollment {
    padding: 14px 32px;
    background: linear-gradient(135deg, #0f1f44, #1c2f5d);
    color: white;
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 18px rgba(15, 31, 68, 0.25);
}

.btn-submit-enrollment:hover {
    background: linear-gradient(135deg, #132a57, #21386d);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 31, 68, 0.35);
}

.btn-submit-enrollment:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel-enrollment {
    padding: 14px 32px;
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel-enrollment:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.success-message {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
}

.error-message {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .enrollment-form-container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .enrollment-header {
        padding: 20px;
    }
    
    .enrollment-header h2 {
        font-size: 1.4rem;
    }
    
    .enrollment-body {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .enrollment-footer {
        flex-direction: column-reverse;
    }
    
    .btn-submit-enrollment,
    .btn-cancel-enrollment {
        width: 100%;
    }
}

