/* Application Form Styles */

.application-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 80vh;
}

.back-link-container {
    margin-bottom: 20px;
}

.back-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-link:hover {
    color: #FF6B35;
}

.application-container h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.warning-banner {
    background: #fff9e6;
    border: 2px solid #FF6B35;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-icon {
    font-size: 24px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

#currentStepLabel {
    font-weight: 600;
    color: #1a1a1a;
}

#progressPercent {
    font-weight: 600;
    color: #FF6B35;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35 0%, #ff8c5a 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Step Indicators */
.step-indicators {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.step-indicator {
    text-align: center;
    padding: 20px 10px;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s;
}

.step-indicator.active {
    background: #FF6B35;
    color: white;
}

.step-indicator.completed {
    background: #28a745;
    color: white;
}

.step-indicator .step-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.step-indicator.active .step-icon,
.step-indicator.completed .step-icon {
    filter: brightness(0) invert(1);
}

.step-indicator .step-label {
    font-size: 14px;
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.form-step h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.step-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6B35;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    margin-top: 10px;
}

.checkbox-label-inline input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Debt Entries */
.debt-entry {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #FF6B35;
}

.debt-entry h4 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

/* Help Text */
.help-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

/* Eligibility Check */
.eligibility-check {
    background: #f0f8ff;
    border: 2px solid #4a90e2;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.eligibility-check h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 20px;
}

/* Signature Notice */
.signature-notice {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
}

.signature-notice h4 {
    margin-bottom: 10px;
    color: #1a1a1a;
}

.signature-notice p {
    font-size: 14px;
    color: #666;
}

/* Compliance Section */
.compliance-notice {
    background: #fff9e6;
    border-left: 5px solid #FF6B35;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.notice-icon {
    font-size: 20px;
}

.compliance-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.checkbox-label:hover {
    border-color: #FF6B35;
    background: #fff;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 15px;
    line-height: 1.5;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.form-navigation .btn {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-primary {
    background: #FF6B35;
    color: white;
}

.btn-primary:hover {
    background: #d94d1a;
}

.btn-secondary {
    background: white;
    color: #FF6B35;
    border: 2px solid #FF6B35;
}

.btn-secondary:hover {
    background: #FF6B35;
    color: white;
}

#backBtn {
    visibility: hidden;
}

#backBtn.visible {
    visibility: visible;
}

/* Form Status */
.form-status {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-status.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Footer Info */
.footer-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    color: #FF6B35;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .application-container h1 {
        font-size: 32px;
    }

    .step-indicators {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }

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