/* Edit Notice and Statement Styling */
.edit-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    text-align: center;
}

.edit-notice p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
}

.statement-text {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    font-style: italic;
    color: #4b5563;
    line-height: 1.5;
    white-space: pre-wrap;
}/* Application Form Styles */

/* Apply Navigation Link */
.apply-nav-link {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.apply-nav-link:hover {
    background: linear-gradient(135deg, #047857, #065f46) !important;
    transform: translateY(-1px) !important;
}

/* Application Choice Section */
.application-choice {
    padding: 60px 0;
    background: #f8fafc;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.choice-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.choice-card:hover {
    border-color: #059669;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.1);
    transform: translateY(-4px);
}

.choice-card.recommended {
    border-color: #059669;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.15);
}

.choice-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.choice-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.choice-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.recommended-badge {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: -10px;
    right: -10px;
}

.choice-content {
    text-align: left;
}

.choice-benefits {
    margin-bottom: 24px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #4b5563;
}

.benefit-icon {
    font-size: 16px;
    color: #059669;
}

.choice-time {
    background: #f0fdf4;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #047857;
    text-align: center;
}

.choice-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    margin-bottom: 8px;
}

.choice-btn.primary {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.choice-btn.primary:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-1px);
}

.choice-btn.secondary {
    background: white;
    color: #059669;
    border: 2px solid #059669;
}

.choice-btn.secondary:hover {
    background: #059669;
    color: white;
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Upload Section */
.upload-section {
    padding: 60px 0;
    background: #f8fafc;
}

.upload-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.upload-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    text-align: center;
}

.upload-card > p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 32px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #059669;
    background: #f0fdf4;
}

.upload-icon {
    font-size: 48px;
    color: #6b7280;
    margin-bottom: 16px;
}

.upload-area h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.upload-area p {
    color: #6b7280;
    margin-bottom: 16px;
}

.upload-area input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.required-documents h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.document-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.document-checklist label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
}

.parent-contact h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.submit-btn {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-1px);
}

/* Online Application Styles */
.online-application {
    padding: 40px 0 60px;
    background: #f8fafc;
}

.application-header {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.application-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    background: #f8fafc;
    padding: 0 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #059669;
    color: white;
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
}

.progress-step.active .step-label {
    color: #059669;
    font-weight: 600;
}

/* Form Styles */
.application-form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.form-step {
    display: none;
    padding: 40px;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px;
    text-align: center;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 20px;
}

.form-section h5 {
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio and Checkbox Styles */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.checkbox-item input {
    margin: 0;
}

/* Relatives Section */
.relatives-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.relative-entry {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #059669;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.nav-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.nav-btn.prev-btn {
    background: #f3f4f6;
    color: #4b5563;
}

.nav-btn.prev-btn:hover {
    background: #e5e7eb;
}

.nav-btn.next-btn,
.nav-btn.submit-btn {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.nav-btn.next-btn:hover,
.nav-btn.submit-btn:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-1px);
}

.nav-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Review Section */
.review-section {
    text-align: center;
}

.review-section > p {
    color: #6b7280;
    margin-bottom: 32px;
}

.review-summary {
    text-align: left;
    background: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.summary-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
}

.summary-section p {
    margin-bottom: 4px;
    font-size: 14px;
    color: #4b5563;
}

.signature-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.signature-label input {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .choice-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .choice-card {
        padding: 24px;
    }
    
    .progress-bar {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .progress-bar::before {
        display: none;
    }
    
    .step-label {
        display: none;
    }
    
    .form-step {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .upload-card {
        margin: 0 16px;
        padding: 24px;
    }
    
    .upload-area {
        padding: 24px;
    }
    
    .document-checklist {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .application-header h2 {
        font-size: 24px;
    }
    
    .form-step h3 {
        font-size: 22px;
    }
    
    .choice-card h3 {
        font-size: 20px;
    }
    
    .upload-card h3 {
        font-size: 22px;
    }
    
    .relatives-section {
        gap: 16px;
    }
    
    .relative-entry {
        padding: 16px;
    }
    
    .form-section h4 {
        font-size: 18px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #059669;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f0fdf4;
    color: #047857;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.security-badge::before {
    content: '🔒';
}

/* Error States */
.form-group.error input,
.form-group.error textarea {
    border-color: #dc2626;
}

.error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}