/* Admission Form Specific Styles */

/* Form Header */
.admission-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admission-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.admission-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--golden-yellow);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.school-name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.admission-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.admission-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admission-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Form Section */
.admission-form-section {
    padding: 4rem 0;
    background: var(--light-gray);
    min-height: 100vh;
}

.admission-form {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.admission-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-gold);
}

/* Form Header */
.form-header {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 2px solid var(--golden-yellow);
}

.form-header .form-label {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

/* Photo Upload */
.photo-upload-container {
    text-align: center;
}

.photo-upload-label {
    display: block;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.photo-upload-box {
    position: relative;
    width: 150px;
    height: 180px;
    border: 2px dashed var(--golden-yellow);
    border-radius: 10px;
    margin: 0 auto;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.photo-upload-box:hover {
    border-color: var(--primary-navy);
    background: rgba(255, 215, 0, 0.1);
}

.photo-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    transition: var(--transition);
}

.photo-preview i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--golden-yellow);
}

.photo-preview span {
    font-size: 0.9rem;
    text-align: center;
    padding: 0 1rem;
}

.photo-upload-box.has-image .photo-preview {
    display: none;
}

.photo-upload-box.has-image {
    border: 2px solid var(--primary-navy);
    background: var(--white);
}

.photo-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Form Sections */
.form-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    border-left: 5px solid var(--golden-yellow);
}

.form-section .section-title {
    color: var(--primary-navy);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--golden-yellow);
    display: inline-block;
}

/* Form Groups */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--golden-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
    font-style: italic;
}

/* Signature Pad */
.signature-container {
    background: var(--white);
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.signature-pad {
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: crosshair;
    background: var(--white);
    display: block;
    margin: 0 auto;
}

.signature-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.signature-controls .btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
}

/* Form Submission */
.form-submission {
    background: var(--primary-navy);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
    text-align: center;
}

.form-submission .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    min-width: 200px;
}

.form-submission .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Form Validation */
.form-control.is-invalid {
    border-color: var(--bright-red);
    box-shadow: 0 0 0 0.2rem rgba(194, 30, 30, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
    color: var(--bright-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Progress Indicator */
.form-progress {
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
}

.progress-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success/Error Messages */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Form Steps */
.form-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--gradient-gold);
    color: var(--primary-navy);
}

.step.completed .step-number {
    background: #28a745;
    color: var(--white);
}

.step-text {
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.step.active .step-text {
    color: var(--primary-navy);
}

.step.completed .step-text {
    color: #28a745;
}

.step-connector {
    width: 50px;
    height: 2px;
    background: var(--light-gray);
    margin: 0 1rem;
    transition: var(--transition);
}

.step.completed + .step-connector {
    background: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admission-title {
        font-size: 2rem;
    }
    
    .school-name {
        font-size: 1.5rem;
    }
    
    .admission-form {
        padding: 2rem 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .form-header {
        padding: 1.5rem;
    }
    
    .photo-upload-box {
        width: 120px;
        height: 150px;
    }
    
    .signature-pad {
        width: 100%;
        height: 120px;
    }
    
    .form-submission .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .form-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-connector {
        display: none;
    }
}

@media (max-width: 576px) {
    .admission-header {
        padding: 6rem 0 3rem;
    }
    
    .admission-title {
        font-size: 1.8rem;
    }
    
    .admission-info {
        padding: 1.5rem;
    }
    
    .admission-form {
        padding: 1.5rem 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-header {
        padding: 1rem;
    }
    
    .photo-upload-box {
        width: 100px;
        height: 130px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .form-submission {
        display: none;
    }
    
    .admission-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .form-section {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .signature-pad {
        border: 1px solid #000;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .form-label {
        font-weight: bold;
    }
}

/* Accessibility */
.form-control:focus {
    outline: 2px solid var(--golden-yellow);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--golden-yellow);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 3px;
    }
    
    .form-control:focus {
        border-color: var(--primary-navy);
        box-shadow: 0 0 0 3px var(--golden-yellow);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .form-control,
    .btn,
    .photo-upload-box {
        transition: none;
    }
    
    .btn:hover {
        transform: none;
    }
}
