.apply-body {
    --g-ink: #13251C;
    --g-ink-2: #0A1712;
    --g-forest: #174B33;
    --g-primary: #15724A;
    --g-primary-hover: #0F5737;
    --g-mint: #D8F0E2;
    --g-mint-2: #E9F7EF;
    --g-mist: #F3FAF6;
    --g-line: #DCEAE1;
    --g-line-strong: #C3DACB;
    --g-text: #16261D;
    --g-muted: #5D7165;

    --bg-base: var(--g-mist);
    --bg-surface: #FFFFFF;
    --bg-muted: var(--g-mint-2);
    --text-primary: var(--g-text);
    --text-muted: var(--g-muted);
    --primary: var(--g-primary);
    --primary-hover: var(--g-primary-hover);
    --primary-light: var(--g-mint);
    --border-color: var(--g-line);
    --border-strong: var(--g-line-strong);
    --border-focus: var(--g-primary);
    --success: #0F6B47;
    --success-bg: #E4F6EC;
    --warning: #3F6B52;
    --warning-bg: #EDF8F1;
    --danger: #13251C;
    --danger-bg: #DFF0E7;
    --shadow-sm: 0 1px 2px rgba(19, 50, 35, .05), 0 8px 22px -18px rgba(19, 50, 35, .35);
    --shadow-md: 0 4px 10px rgba(19, 50, 35, .05), 0 18px 40px -24px rgba(19, 50, 35, .45);

    min-height: 100vh;
    padding: 10px;
    background:
        radial-gradient(900px 520px at 88% -12%, #DCF1E3 0%, rgba(220, 241, 227, 0) 62%),
        radial-gradient(700px 420px at -10% 108%, #E6F5EC 0%, rgba(230, 245, 236, 0) 60%),
        var(--g-mist);
    color: var(--g-text);
}

.apply-body .apply-shell {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 20px);
    background: var(--bg-surface);
    border-radius: 30px;
    box-shadow: 0 34px 70px -46px rgba(19, 50, 35, .55);
}

.apply-body .apply-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 18px;
    padding: 9px 12px;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .9);
}

.apply-body .apply-brand img {
    height: 28px;
    width: auto;
    border-radius: 6px;
}

.apply-body .apply-content {
    flex: 1 1 auto;
    min-width: 0;
    min-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
}

.apply-body .apply-topbar {
    position: sticky;
    top: 10px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    margin: 12px 20px 0;
    padding: 8px 10px 8px 18px;
    background: rgba(255, 255, 255, .9);
    border-radius: var(--radius-full);
    box-shadow: 0 16px 40px -30px rgba(19, 50, 35, .55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.apply-body .apply-topbar-brand img {
    height: 26px;
    width: auto;
    border-radius: 6px;
}

.apply-body .apply-crumb {
    font-size: .86rem;
    font-weight: 500;
    color: var(--g-muted);
}

.apply-body .apply-crumb span {
    margin: 0 8px;
    color: var(--g-primary);
}

.apply-body .topbar-status {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--g-mint);
    color: var(--g-primary-hover);
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.apply-body .topbar-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--g-primary);
    box-shadow: 0 0 0 3px rgba(21, 114, 74, .16);
}

.apply-body .apply-main {
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
    padding: 26px 20px 48px;
}

.apply-body .apply-head {
    padding: 2px 4px 0;
}

.apply-body .kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 5px 13px;
    border-radius: var(--radius-full);
    background: var(--g-mint);
    color: var(--g-primary-hover);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.apply-body .kicker .icon {
    width: 13px;
    height: 13px;
    stroke-width: 2.2;
}

.apply-body .apply-head h1 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
    color: var(--g-ink);
}

.apply-body .apply-head p {
    max-width: 640px;
    margin-top: 10px;
    font-size: .94rem;
    line-height: 1.65;
    color: var(--g-muted);
}

.apply-body .perk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 26px;
}

.apply-body .perk {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
    font-size: .79rem;
    font-weight: 600;
    color: var(--g-text);
}

.apply-body .perk:nth-child(2n) {
    background: var(--g-mint-2);
    box-shadow: none;
}

.apply-body .perk .icon {
    width: 15px;
    height: 15px;
    padding: 8px;
    box-sizing: content-box;
    border-radius: 50%;
    background: var(--g-mint);
    color: var(--g-primary);
}

.apply-body .panel {
    margin-bottom: 18px;
    background: #FFFFFF;
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
}

.apply-body .panel-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--g-line);
}

.apply-body .step-chip {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--g-ink);
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 600;
    box-shadow: 0 12px 22px -14px rgba(19, 37, 28, .95);
}

.apply-body .panel-head h2 {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.35;
    color: var(--g-ink);
}

.apply-body .panel-head p {
    margin-top: 3px;
    font-size: .8rem;
    line-height: 1.5;
    color: var(--g-muted);
}

.apply-body .panel-body {
    padding: 22px 24px 8px;
}

.apply-body .field {
    margin-bottom: var(--space-4);
}

.apply-body .field label {
    display: block;
    margin-bottom: 6px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--g-text);
}

.apply-body .field label .optional {
    font-weight: 400;
    color: var(--g-muted);
}

.apply-body .field input,
.apply-body .field select,
.apply-body .field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    font: inherit;
    font-size: .92rem;
    color: var(--g-text);
    background: #FFFFFF;
    border: 1.5px solid var(--g-line-strong);
    border-radius: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.apply-body .field select {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315724A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 15px;
}

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

.apply-body .field input:focus,
.apply-body .field select:focus,
.apply-body .field textarea:focus {
    outline: none;
    border-color: var(--g-primary);
    box-shadow: 0 0 0 4px var(--g-mint);
}

.apply-body .field input[type="file"] {
    padding: 9px 12px;
    font-size: .84rem;
    color: var(--g-muted);
    background: var(--g-mist);
    border-style: dashed;
}

.apply-body .field input[type="file"]::file-selector-button {
    margin-inline-end: 12px;
    padding: 7px 14px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--g-ink);
    color: #FFFFFF;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

.apply-body .field input[type="file"]::file-selector-button:hover {
    background: var(--g-ink-2);
}

.apply-body .field .hint {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
    color: var(--g-muted);
}

.apply-body .field-row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.apply-body .field-row > * {
    flex: 1 1 220px;
}

.apply-body .alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 0;
    border-radius: 18px;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.55;
}

.apply-body .alert-error {
    background: var(--g-ink);
    color: #EAF7EF;
}

.apply-body .alert-success {
    background: var(--g-mint);
    color: #0E5133;
}

.apply-body .alert-info {
    background: var(--g-mint-2);
    color: var(--g-primary-hover);
}

.apply-body .submit-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding: 18px 24px;
    border-radius: 26px;
    background: linear-gradient(120deg, #FFFFFF, var(--g-mint-2));
    box-shadow: var(--shadow-sm);
}

.apply-body .submit-panel .sp-copy strong {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    color: var(--g-ink);
}

.apply-body .submit-panel .sp-copy span {
    display: block;
    margin-top: 3px;
    font-size: .78rem;
    color: var(--g-muted);
}

.apply-body .submit-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-inline-start: auto;
}

.apply-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 20px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.apply-body .btn .icon {
    width: 17px;
    height: 17px;
}

.apply-body .btn-primary {
    background: var(--g-ink);
    border-color: var(--g-ink);
    color: #FFFFFF;
    box-shadow: 0 12px 22px -16px rgba(19, 37, 28, .95);
}

.apply-body .btn-primary:hover {
    background: var(--g-ink-2);
    border-color: var(--g-ink-2);
}

.apply-body .btn-primary:active {
    transform: translateY(1px);
}

.apply-body .btn-secondary {
    background: #FFFFFF;
    border-color: var(--g-line-strong);
    color: var(--g-text);
}

.apply-body .btn-secondary:hover {
    background: var(--g-mint-2);
    border-color: var(--g-primary);
}

.apply-body .submit-actions .btn-primary {
    min-width: 200px;
}

.apply-body .success-panel {
    max-width: 640px;
    margin: 12px auto 0;
    padding: 42px 32px;
    text-align: center;
}

.apply-body .success-mark {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--g-mint);
    color: var(--g-primary);
    box-shadow: inset 0 0 0 1px rgba(21, 114, 74, .16);
}

.apply-body .success-mark .icon {
    width: 34px;
    height: 34px;
    stroke-width: 2.2;
}

.apply-body .success-panel h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--g-ink);
}

.apply-body .success-panel p {
    max-width: 460px;
    margin: 8px auto 0;
    font-size: .9rem;
    line-height: 1.65;
    color: var(--g-muted);
}

.apply-body .success-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.apply-body .apply-foot {
    margin: 26px auto 0;
    padding: 0 16px;
    text-align: center;
    font-size: .74rem;
    color: var(--g-muted);
}

@media (max-width: 1023px) {
    .apply-body {
        padding: 0;
    }

    .apply-body .apply-shell {
        flex-direction: column;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .apply-body .apply-content {
        min-height: 0;
    }

    .apply-body .apply-topbar {
        margin: 12px 12px 0;
    }
}

@media (max-width: 640px) {
    .apply-body .apply-main {
        padding: 20px 12px 40px;
    }

    .apply-body .apply-topbar {
        padding: 8px 8px 8px 14px;
        gap: 8px;
    }

    .apply-body .apply-topbar-brand,
    .apply-body .apply-crumb {
        display: none;
    }

    .apply-body .topbar-status {
        margin-inline: auto;
    }

    .apply-body .apply-head h1 {
        font-size: 1.65rem;
    }

    .apply-body .perk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 18px 0 22px;
    }

    .apply-body .perk {
        padding: 10px 12px;
        font-size: .74rem;
    }

    .apply-body .panel {
        border-radius: 22px;
    }

    .apply-body .panel-head {
        padding: 16px;
        gap: 12px;
    }

    .apply-body .step-chip {
        width: 38px;
        height: 38px;
        font-size: .72rem;
    }

    .apply-body .panel-body {
        padding: 18px 16px 4px;
    }

    .apply-body .field-row {
        flex-direction: column;
        gap: 0;
    }

    .apply-body .submit-panel {
        padding: 16px;
        border-radius: 22px;
    }

    .apply-body .submit-actions {
        width: 100%;
    }

    .apply-body .submit-actions .btn {
        flex: 1 1 auto;
    }

    .apply-body .submit-actions .btn-primary {
        min-width: 0;
    }

    .apply-body .success-panel {
        padding: 32px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .apply-body *,
    .apply-body *::before,
    .apply-body *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
