/* Admission Form Styles */

.admission-form-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.admission-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.admission-form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.form-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-info {
    background: linear-gradient(135deg, #d1bb2b 0%, #b59411 100%);
    color: #002D62;
    border-left: 4px solid #4c51bf;
}

.alert strong {
    font-weight: 600;
}

#admission-form {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-note {
    font-size: 14px;
    color: #718096;
    font-style: italic;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f7fafc;
    border-left: 3px solid #4299e1;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.col-md-4 {
    flex: 0 0 calc(33.333% - 14px);
}

.col-md-6 {
    flex: 0 0 calc(50% - 10px);
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="file"] {
    padding: 10px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #718096;
}

.download-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.download-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: #f7fafc;
}

input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.consent-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px;
    background: #f7fafc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.consent-label:hover {
    background: #edf2f7;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.consent-label span {
    flex: 1;
}

.form-actions {
    margin-top: 40px;
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 60px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admission-form-container {
        padding: 0 15px;
    }
    
    #admission-form {
        padding: 25px 20px;
    }
    
    .admission-form-header h2 {
        font-size: 26px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 25px;
    }
    
    .col-md-4,
    .col-md-6 {
        flex: 1;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .btn-submit {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .consent-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .admission-form-header h2 {
        font-size: 22px;
    }
    
    .form-description {
        font-size: 14px;
    }
    
    #admission-form {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Loading Animation */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Custom scrollbar for textareas */
textarea.form-control::-webkit-scrollbar {
    width: 8px;
}

textarea.form-control::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

textarea.form-control::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

textarea.form-control::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Focus visible for accessibility */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Invalid field styling */
.form-control:invalid:not(:placeholder-shown) {
    border-color: #fc8181;
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #68d391;
}