/* --- Register Section --- */
.apply-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.apply-form-wrapper {
    background: var(--color-bg-card);
    padding: 3.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 1000px; /* Slightly wider for the full registration grid */
}

@media (max-width: 768px) {
    .apply-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    #courseRegisterForm .form-group {
        width: 100% !important;
    }
}

.apply-form-wrapper .section-header {
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

/* --- Contact Form Styling --- */
.contact-form {
    display: block; /* The inline grid styles manage the flex row */
}

/* Base form group styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #dedede;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem 0; /* Only vertical padding */
    background: transparent; /* No glass background */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none; /* Remove all borders */
    border-bottom: 2px solid rgba(255, 255, 255, 0.4); /* Solid bottom border */
    border-radius: 0; /* Remove rounded corners */
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.contact-form select option {
    background-color: #050505; /* Use the main dark theme background */
    color: #f8f8f8; /* Use the main light text color */
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-accent); /* Keep accent color for bottom border on focus */
    background: transparent;
    box-shadow: none; /* No glow around the box */
}

/* Button */
.btn-primary {
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #f7d181 100%);
    box-shadow: 0 4px 20px rgba(224, 184, 90, 0.4);
    color: #000;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(224, 184, 90, 0.6);
    transform: translateY(-2px);
}

/* Responsive Grid for Registration */
.registration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0;
}

.col-full {
    grid-column: 1 / -1;
}

.col-half {
    grid-column: span 1.5; /* Default for 3-col grid is not ideal, better to use grid-column: span 2/3? */
}

@media (max-width: 992px) {
    .registration-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .registration-grid {
        grid-template-columns: 1fr;
    }
    
    .apply-form-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
