:root {
    --black: #101112;
    --black-soft: #191a1d;
    --gold: #f4b400;
    --gold-dark: #c98b00;
    --white: #ffffff;
    --page: #f4f5f7;
    --text: #25262a;
    --muted: #6d7078;
    --line: #e1e3e8;
    --danger: #b42318;
    --success: #087443;
    --shadow: 0 16px 45px rgba(17, 18, 20, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(244, 180, 0, .09), transparent 28rem),
        var(--page);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 22px auto;
}

.hero {
    overflow: hidden;
    border: 1px solid rgba(244, 180, 0, .45);
    border-radius: 22px 22px 10px 10px;
    background: var(--black);
    box-shadow: var(--shadow);
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
}

.job-summary {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0;
    padding: 24px;
    border-radius: 16px;
    background: var(--black);
    color: var(--white);
    box-shadow: var(--shadow);
}

.eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.job-summary h1 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.15;
}

.job-summary p {
    max-width: 760px;
    margin: 0;
    color: #d6d7db;
}

.summary-tags {
    display: grid;
    gap: 8px;
    min-width: 250px;
}

.summary-tags span {
    padding: 10px 14px;
    border: 1px solid rgba(244, 180, 0, .45);
    border-radius: 999px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.alert {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.alert strong {
    display: block;
    margin-bottom: 3px;
}

.alert.success {
    border: 1px solid #85d8b0;
    background: #eafaf2;
    color: var(--success);
}

.alert.error {
    border: 1px solid #f2a59d;
    background: #fff2f0;
    color: var(--danger);
}

.alert ul {
    margin: 8px 0;
    padding-left: 20px;
}

.application-form {
    display: grid;
    gap: 18px;
}

.form-section {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.section-heading {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.section-heading > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--black);
    color: var(--gold);
    font-weight: 900;
}

.section-heading h2 {
    margin: 0;
    font-size: 22px;
}

.section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 14px;
}

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

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

label {
    display: grid;
    gap: 7px;
    color: #37393e;
    font-size: 14px;
    font-weight: 700;
}

label b {
    color: #d92d20;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #ccd0d8;
    border-radius: 10px;
    background: #ffffff;
    color: #22252a;
    outline: none;
    transition: .18s ease;
}

input,
select {
    min-height: 48px;
    padding: 10px 12px;
}

textarea {
    min-height: 110px;
    padding: 12px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 4px rgba(244, 180, 0, .14);
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.check-card {
    display: flex;
    min-height: 52px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: .18s ease;
}

.check-card:hover {
    border-color: var(--gold-dark);
    background: #fffaf0;
}

.check-card input,
.consent input {
    width: 18px;
    height: 18px;
    min-height: auto;
    margin: 0;
    accent-color: var(--gold-dark);
}

.check-card span {
    font-size: 13px;
}

.block-label {
    display: grid;
}

.file-box {
    min-height: 155px;
    place-items: center;
    align-content: center;
    gap: 6px;
    padding: 24px;
    border: 2px dashed #c7a348;
    border-radius: 14px;
    background: #fffaf0;
    text-align: center;
    cursor: pointer;
}

.file-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.file-box .file-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--black);
    color: var(--gold);
    font-size: 24px;
    font-weight: 900;
}

.file-box strong {
    color: var(--black);
    font-size: 16px;
}

.file-box small {
    color: var(--muted);
    font-weight: 500;
}

.file-warning {
    display: none;
    margin: 12px 0 0;
    padding: 11px 13px;
    border: 1px solid #f2a59d;
    border-radius: 9px;
    background: #fff2f0;
    color: var(--danger);
    font-size: 14px;
    font-weight: 700;
}

.file-warning.show {
    display: block;
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 18px;
    font-weight: 500;
}

.submit-button {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold), #ffca28);
    color: #111111;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .3px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(201, 139, 0, .25);
    transition: .18s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 32px rgba(201, 139, 0, .32);
}

.submit-button:disabled {
    cursor: wait;
    opacity: .75;
}

footer {
    display: flex;
    gap: 12px 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 22px;
    border-radius: 14px;
    background: var(--black);
    color: #dfe1e5;
    text-align: center;
}

footer strong {
    color: var(--gold);
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

.hidden-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 850px) {
    .job-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-tags {
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 620px) {
    .page-shell {
        width: 100%;
        margin: 0;
    }

    .hero {
        border-width: 0 0 1px;
        border-radius: 0;
    }

    .hero img {
        min-height: 132px;
        object-fit: cover;
        object-position: center;
    }

    .job-summary {
        margin: 0;
        border-radius: 0;
        padding: 20px 16px;
    }

    .job-summary h1 {
        font-size: 25px;
    }

    .summary-tags {
        grid-template-columns: 1fr;
    }

    .alert {
        margin: 14px;
    }

    .application-form {
        gap: 12px;
        padding: 14px;
    }

    .form-section {
        padding: 19px 15px;
        border-radius: 14px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading > span {
        width: 40px;
        height: 40px;
    }

    .section-heading h2 {
        font-size: 19px;
    }

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

    input,
    select {
        min-height: 52px;
        font-size: 16px;
    }

    textarea {
        font-size: 16px;
    }

    .submit-button {
        position: sticky;
        bottom: 10px;
        z-index: 5;
    }

    footer {
        border-radius: 0;
        margin-top: 0;
        padding-bottom: calc(22px + env(safe-area-inset-bottom));
    }
}


.consent a,
footer a {
    text-underline-offset: 3px;
}

.consent a {
    color: #9b6a00;
    font-weight: 800;
}

.hero img {
    aspect-ratio: 1074 / 366;
}

.legal-page {
    min-height: 100vh;
    padding: 32px 16px;
    background:
        radial-gradient(circle at top left, rgba(244, 180, 0, .12), transparent 32rem),
        var(--page);
}

.legal-page article {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.legal-page h1 {
    margin: 4px 0 20px;
    color: var(--black);
    font-size: clamp(28px, 5vw, 42px);
}

.legal-page h2 {
    margin: 24px 0 8px;
    color: var(--black);
    font-size: 20px;
}

.legal-page p {
    color: #555961;
}

.legal-page a {
    color: #9b6a00;
    font-weight: 700;
}

.back-link {
    display: inline-flex;
    margin-top: 24px;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--black);
    color: var(--gold) !important;
    text-decoration: none;
}

@media (max-width: 620px) {
    .legal-page {
        padding: 14px;
    }

    .legal-page article {
        padding: 22px 17px;
    }
}
