/* enroll.css */
/* Enrollment Page Specific Styles */

/* Enrollment Hero Section */
.enroll-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 120px 0 50px;
    position: relative;
    overflow: hidden;
}

.enroll-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    z-index: -1;
}

.enroll-hero-content {
    flex: 1;
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
    text-align: center;
}

.enroll-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.enroll-hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.enroll-animation {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 300px;
}

/* Enrollment Form Section */
.enroll-form-section {
    padding: 80px 0;
    background-color: var(--secondary);
}

.enroll-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.enroll-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

/* Course Selection Styles */
.course-selection {
    margin-bottom: 25px;
}

.course-selection label {
    position: static;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: block;
    transform: none;
    pointer-events: auto;
}

.course-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.course-option {
    position: relative;
}

.course-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.course-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: rgba(37, 99, 235, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.course-option label i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-blue);
    transition: color 0.3s ease;
}

.course-option label span {
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.course-option input[type="radio"]:checked + label {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.course-option input[type="radio"]:checked + label i,
.course-option input[type="radio"]:checked + label span {
    color: var(--accent-blue);
}

.course-option label:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-3px);
}

/* Other Course Input */
.other-course-group {
    margin-top: 15px;
    transition: all 0.3s ease;
}

/* Form Group Adjustments */
.enroll-form .form-group {
    margin-bottom: 30px;
}

.enroll-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid var(--secondary);
    border-radius: 4px;
    background: transparent;
    outline: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
    resize: vertical;
    font-family: inherit;
}

.enroll-form textarea:focus {
    border-color: var(--accent-blue);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .enroll-form {
        padding: 30px 20px;
    }
    
    .course-options {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .course-option label {
        padding: 15px 10px;
    }
    
    .course-option label i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .course-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .enroll-form {
        padding: 20px 15px;
    }
    
    .enroll-hero {
        min-height: 70vh;
        padding: 100px 0 30px;
    }
    
    .enroll-animation {
        height: 200px;
    }
}