:root {
    --apply-bg: #000;
    --apply-panel: #0f0f0f;
    --apply-panel-2: #151515;
    --apply-text: #f5f7f4;
    --apply-muted: #9b9f9a;
    --apply-dim: #686d67;
    --apply-line: rgba(255, 255, 255, 0.09);
    --apply-green: #a9ff00;
    --apply-green-soft: rgba(169, 255, 0, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--apply-text);
    background:
        radial-gradient(circle at 55% 34%, rgba(169, 255, 0, 0.18), transparent 18%),
        linear-gradient(180deg, #020202 0%, #000 100%);
    font-family: 'Dosis', Arial, sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

.apply-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: clamp(32px, 6vw, 88px) clamp(20px, 8vw, 128px) clamp(48px, 7vw, 110px);
}

.apply-logo {
    display: inline-flex;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.apply-logo img {
    width: auto;
    height: 46px;
}

.apply-form {
    width: min(100%, 820px);
}

.apply-hero {
    margin-bottom: clamp(44px, 5vw, 64px);
}

.apply-kicker {
    margin: 0 0 12px;
    color: var(--apply-green);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.apply-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 0.95;
    text-transform: uppercase;
}

.apply-hero p:not(.apply-kicker) {
    max-width: 560px;
    margin: 16px 0 0;
    color: var(--apply-muted);
    font-size: 15px;
    line-height: 1.6;
}

.apply-section {
    padding-top: clamp(36px, 5vw, 58px);
    margin-top: clamp(34px, 5vw, 56px);
    border-top: 1px solid var(--apply-line);
}

.apply-section h2 {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin: 0 0 34px;
    color: #fff;
    font-size: 24px;
    line-height: 1.15;
    text-transform: uppercase;
}

.apply-section h2 span {
    color: var(--apply-green);
    font-size: 27px;
    font-weight: 700;
}

.field-grid {
    display: grid;
    gap: 18px 20px;
}

.field-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.field,
.choice-block {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
}

.field span,
.choice-block legend {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

b {
    color: var(--apply-green);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    color: #fff;
    background: var(--apply-panel);
    border: 1px solid transparent;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"],
input[type="email"] {
    min-height: 46px;
    padding: 0 14px;
}

textarea {
    min-height: 118px;
    padding: 14px;
    resize: vertical;
}

input:focus,
textarea:focus {
    background: var(--apply-panel-2);
    border-color: rgba(169, 255, 0, 0.55);
    box-shadow: 0 0 0 3px rgba(169, 255, 0, 0.08);
}

::placeholder {
    color: var(--apply-dim);
}

.choice-block {
    padding: 0;
    border: 0;
}

.choice-block legend {
    margin-bottom: 14px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.choice-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.choice-grid.yes-no {
    grid-template-columns: repeat(2, minmax(120px, 160px));
}

.choice-grid label {
    display: flex;
    gap: 9px;
    align-items: center;
    min-height: 42px;
    padding: 11px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    background: var(--apply-panel);
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.choice-grid label:has(input:checked) {
    color: var(--apply-green);
    background: var(--apply-green-soft);
    border-color: rgba(169, 255, 0, 0.42);
}

input[type="radio"],
input[type="checkbox"] {
    width: 13px;
    height: 13px;
    accent-color: var(--apply-green);
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-top: 24px;
    margin-top: 14px;
    color: var(--apply-muted);
    border-top: 1px solid var(--apply-line);
    font-size: 14px;
    line-height: 1.55;
}

.form-status {
    display: none;
    min-height: 24px;
    margin-top: 34px;
    padding: 18px 20px;
    color: var(--apply-muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    border: 1px solid var(--apply-line);
    background: var(--apply-panel);
}

.form-status:not(:empty) {
    display: block;
}

.form-status.success {
    color: var(--apply-green);
    border-color: rgba(169, 255, 0, 0.55);
    background:
        linear-gradient(135deg, rgba(169, 255, 0, 0.18), rgba(169, 255, 0, 0.04)),
        var(--apply-panel);
    box-shadow: 0 0 38px rgba(169, 255, 0, 0.12);
}

.form-status.error {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.48);
    background:
        linear-gradient(135deg, rgba(255, 107, 107, 0.14), rgba(255, 107, 107, 0.03)),
        var(--apply-panel);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 34px;
    margin-top: 32px;
    border-top: 1px solid var(--apply-line);
}

.ghost-button,
.submit-button {
    min-height: 46px;
    padding: 0 26px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
}

.ghost-button {
    background: var(--apply-panel);
}

.submit-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #061005;
    background: var(--apply-green);
    box-shadow: 0 0 30px rgba(169, 255, 0, 0.22);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.submit-button.is-loading::before {
    width: 14px;
    height: 14px;
    content: "";
    border: 2px solid rgba(6, 16, 5, 0.28);
    border-top-color: #061005;
    border-radius: 50%;
    animation: submitSpin 0.75s linear infinite;
}

@keyframes submitSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 860px) {
    .apply-form {
        max-width: none;
    }

    .field-grid.two {
        grid-template-columns: 1fr;
    }

    .choice-grid.yes-no {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .apply-shell {
        padding: 26px 16px 48px;
    }

    .apply-logo {
        margin-bottom: 36px;
    }

    .apply-section {
        padding-top: 34px;
        margin-top: 34px;
    }

    .apply-section h2 {
        align-items: flex-start;
        margin-bottom: 28px;
        font-size: 21px;
    }

    .choice-grid,
    .choice-grid.compact,
    .choice-grid.yes-no {
        grid-template-columns: 1fr;
    }

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

    .ghost-button,
    .submit-button {
        width: 100%;
    }
}
