/* Application Page Styles */

.apply-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1e293b 100%);
    color: var(--white);
    padding: 150px 0 80px;
    text-align: center;
}

.apply-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.apply-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-item svg {
    width: 30px;
    height: 30px;
}

.trust-item span {
    font-weight: 600;
    color: var(--white);
}

/* Form Section */
.apply-form-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s;
}

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

.step.completed .step-number {
    background: var(--primary-blue);
    color: var(--white);
}

.step-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    text-align: center;
}

.step.active .step-label {
    color: var(--primary-gold);
}

.step-line {
    height: 2px;
    background: #e2e8f0;
    flex: 1;
    margin: 0 10px;
    position: relative;
    top: -20px;
}

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

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

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

.form-step h2 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-gold);
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.form-group select {
    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='%23475569' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Checkbox Group */
.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
}

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

.checkbox-label span {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Disclosure Box */
.disclosure-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.disclosure-box p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.disclosure-box p:last-child {
    margin-bottom: 0;
}

.disclosure-box strong {
    color: var(--text-dark);
}

/* Signature Pad */
.signature-pad-container {
    position: relative;
}

.signature-pad {
    width: 100%;
    height: 200px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: crosshair;
    background: var(--white);
}

.btn-clear-signature {
    margin-top: 10px;
    padding: 8px 20px;
    background: #ef4444;
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-clear-signature:hover {
    background: #dc2626;
}

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

.btn-prev,
.btn-next,
.btn-submit {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-prev {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid #e2e8f0;
}

.btn-prev:hover {
    background: #f8fafc;
}

.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
    color: var(--white);
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .apply-header {
        padding: 120px 0 60px;
    }

    .apply-header h1 {
        font-size: 2rem;
    }

    .trust-indicators {
        gap: 25px;
    }

    .form-container {
        padding: 30px 20px;
    }

    .progress-steps {
        flex-wrap: wrap;
    }

    .step {
        flex: 0 0 45%;
        margin-bottom: 30px;
    }

    .step-line {
        display: none;
    }

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

    .form-navigation {
        flex-direction: column;
    }

    .btn-next,
    .btn-submit {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .step {
        flex: 0 0 100%;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .form-step h2 {
        font-size: 1.5rem;
    }
}
