/* Form Header Styling */
.form-header {
    background: var(--gradient-teal);
    color: var(--white);
    padding: 100px 0 60px;
    margin-top: 60px;
    text-align: center;
}

.form-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.form-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.important-notice {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

/* Application Form Styling */
.application-form {
    padding: 60px 0;
    background: var(--bg-light);
}

.school-form {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Form Sections */
.form-section {
    padding: 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.5rem;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.form-section h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

.section-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

/* Form Elements */
label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 161, 156, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkboxes and Radio Buttons */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    margin-right: 0.75rem;
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-teal);
}

.checkbox-label span,
.radio-label span {
    flex: 1;
    line-height: 1.5;
}

/* Other Field Styling */
.other-field {
    margin-top: 0.75rem;
    margin-left: 26px;
}

/* File Input */
.file-input {
    margin-top: 0.75rem;
    padding: 0.5rem;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: var(--bg-light);
    cursor: pointer;
}

.file-input:hover {
    border-color: var(--primary-teal);
}

/* Policy Checklist */
.policy-checklist {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Service Groups */
.service-group {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service-group h3 {
    color: var(--primary-teal);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.service-group .checkbox-label {
    padding: 0.5rem 0;
}

/* Declaration Section */
.declaration-section {
    background: #fef3c7;
    border-left: 4px solid var(--accent-yellow);
}

.declaration-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.declaration-box ol {
    margin-left: 1.5rem;
    color: var(--text-dark);
}

.declaration-box ol li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.declaration-check {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--primary-teal);
}

.declaration-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* Form Actions */
.form-actions {
    padding: 2rem 3rem;
    background: var(--bg-light);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.form-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
}

.btn-secondary:hover {
    background: var(--primary-teal);
    color: var(--white);
}

/* Validation Styles */
.error {
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.success {
    border-color: #10b981 !important;
}

/* Required Field Indicator */
label:has(+ [required])::after {
    color: #ef4444;
    margin-left: 0.25rem;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success Message */
.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-header h1 {
        font-size: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: 1;
    }

    .form-section {
        padding: 2rem 1.5rem;
    }

    .form-actions {
        padding: 1.5rem;
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .checkbox-group,
    .radio-group {
        gap: 1rem;
    }

    .declaration-box {
        padding: 1.5rem;
    }
}