:root {
    --apply-green: #198754;
    --apply-green-dark: #146c43;
    --apply-green-soft: #edf8f2;
    --apply-text: #173127;
    --apply-muted: #6c757d;
    --apply-border: #dfe8e3;
    --apply-bg: #f6f8f7;
    --apply-white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--apply-bg);
    color: var(--apply-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.apply-page {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 16px 60px;
}

.apply-card {
    background: var(--apply-white);
    border: 1px solid var(--apply-border);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(20, 50, 38, 0.08);
    overflow: hidden;
}

.apply-card-header {
    padding: 24px 28px;
    background: var(--apply-green-soft);
    border-bottom: 1px solid var(--apply-border);
}

.apply-card-body {
    padding: 28px;
}

@media (max-width: 767px) {
    .apply-page {
        padding: 16px 12px 40px;
    }

    .apply-card-header,
    .apply-card-body {
        padding: 20px;
    }
}

.apply-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--apply-green-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.apply-step-title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.08;
    font-weight: 850;
    color: var(--apply-text);
}

.apply-step-lead {
    max-width: 760px;
    margin: 0;
    color: var(--apply-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.apply-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.apply-benefit {
    padding: 22px;
    border: 1px solid var(--apply-border);
    border-radius: 18px;
    background: #fbfdfc;
}

.apply-benefit-icon {
    display: block;
    margin-bottom: 12px;
    font-size: 2rem;
}

.apply-benefit h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 800;
}

.apply-benefit p {
    margin: 0;
    color: var(--apply-muted);
    line-height: 1.6;
}

.apply-welcome-note {
    margin-top: 24px;
    padding: 16px 18px;
    border-left: 4px solid var(--apply-green);
    border-radius: 12px;
    background: var(--apply-green-soft);
    line-height: 1.6;
}

.apply-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.apply-actions-end {
    justify-content: flex-end;
}

.apply-btn {
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.apply-btn-primary {
    background: var(--apply-green);
    color: #fff;
}

.apply-btn-primary:hover {
    background: var(--apply-green-dark);
}

@media (max-width: 767px) {
    .apply-benefits {
        grid-template-columns: 1fr;
    }

    .apply-actions,
    .apply-actions-end {
        justify-content: stretch;
    }

    .apply-btn {
        width: 100%;
    }
}

.apply-progress {
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid var(--apply-border);
    border-radius: 18px;
    background: var(--apply-green-soft);
}

.apply-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.apply-progress-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--apply-green-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.apply-progress-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 850;
    color: var(--apply-text);
}

.apply-progress-percent {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--apply-green);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.apply-progress-track {
    height: 8px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #d9e8df;
}

.apply-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--apply-green);
    transition: width 0.3s ease;
}

.apply-progress-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.apply-progress-step {
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--apply-muted);
    font-size: 0.8rem;
    font-weight: 750;
    border: 1px solid var(--apply-border);
}

.apply-progress-step.is-active {
    background: var(--apply-green);
    color: #fff;
    border-color: var(--apply-green);
}

.apply-progress-step.is-complete {
    background: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

@media (max-width: 767px) {
    .apply-progress-top {
        flex-direction: column;
    }

    .apply-progress-percent {
        align-self: flex-start;
    }

    .apply-progress-step {
        width: 100%;
        border-radius: 10px;
    }
}

.apply-step-heading {
    margin-bottom: 26px;
}

.apply-section-title {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
    font-weight: 850;
    color: var(--apply-text);
}

.apply-section-lead {
    margin: 0;
    color: var(--apply-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.apply-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.apply-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.apply-field-full {
    grid-column: 1 / -1;
}

.apply-field label {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--apply-text);
}

.apply-field label > span[aria-hidden="true"] {
    color: #dc3545;
}

.apply-optional {
    color: var(--apply-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.apply-field input,
.apply-field select,
.apply-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--apply-border);
    border-radius: 12px;
    background: #fff;
    color: var(--apply-text);
    font: inherit;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.apply-field textarea {
    min-height: 150px;
    resize: vertical;
}

.apply-field input:focus,
.apply-field select:focus,
.apply-field textarea:focus {
    border-color: var(--apply-green);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.12);
}

.apply-help-box {
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid #b6dfc8;
    border-radius: 14px;
    background: #f2fbf6;
    color: #174f35;
    line-height: 1.6;
}

.apply-btn-secondary {
    background: #eef2f0;
    color: var(--apply-text);
    border: 1px solid var(--apply-border);
}

.apply-btn-secondary:hover {
    background: #e3e9e6;
}

.apply-actions {
    justify-content: space-between;
}

@media (max-width: 767px) {
    .apply-form-grid {
        grid-template-columns: 1fr;
    }

    .apply-field-full {
        grid-column: auto;
    }

    .apply-actions {
        flex-direction: column-reverse;
    }
}
