body.sgz-career-modal-open {
    overflow: hidden;
}

.sgz-career-modal[hidden] {
    display: none !important;
}

.sgz-career-modal {
    --sgz-career-navy: #082452;
    --sgz-career-blue: #155ed1;
    --sgz-career-orange: #f47b20;
    --sgz-career-text: #172338;
    --sgz-career-muted: #617087;
    --sgz-career-border: #dbe3ee;
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 180ms ease;
}

.sgz-career-modal.is-open {
    opacity: 1;
}

.sgz-career-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 18, 43, 0.72);
    backdrop-filter: blur(4px);
}

.sgz-career-modal__dialog {
    position: relative;
    width: min(900px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 21, 56, 0.32);
    padding: 32px;
    transform: translateY(14px) scale(0.985);
    transition: transform 180ms ease;
}

.sgz-career-modal.is-open .sgz-career-modal__dialog {
    transform: translateY(0) scale(1);
}

.sgz-career-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid var(--sgz-career-border);
    border-radius: 50%;
    background: #ffffff;
    color: var(--sgz-career-navy);
    font: 400 30px/1 Arial, sans-serif;
    cursor: pointer;
}

.sgz-career-modal__close:hover,
.sgz-career-modal__close:focus-visible {
    border-color: var(--sgz-career-orange);
    color: var(--sgz-career-orange);
    outline: none;
}

.sgz-career-modal__heading {
    max-width: 720px;
    padding-right: 46px;
    margin-bottom: 24px;
}

.sgz-career-modal__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--sgz-career-orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sgz-career-modal__heading h2 {
    margin: 0 0 10px;
    color: var(--sgz-career-navy);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.sgz-career-modal__heading p {
    margin: 0;
    color: var(--sgz-career-muted);
    font-size: 16px;
    line-height: 1.65;
}

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

.sgz-career-field {
    display: grid;
    gap: 7px;
    margin: 0;
    color: var(--sgz-career-text);
    font-size: 14px;
    font-weight: 700;
}

.sgz-career-field b {
    color: var(--sgz-career-orange);
}

.sgz-career-field--wide {
    grid-column: 1 / -1;
}

.sgz-career-field input,
.sgz-career-field select,
.sgz-career-field textarea {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    border: 1px solid var(--sgz-career-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--sgz-career-text);
    padding: 11px 13px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.sgz-career-field textarea {
    min-height: 110px;
    resize: vertical;
}

.sgz-career-field input:focus,
.sgz-career-field select:focus,
.sgz-career-field textarea:focus {
    border-color: var(--sgz-career-blue);
    box-shadow: 0 0 0 3px rgba(21, 94, 209, 0.13);
    outline: none;
}

.sgz-career-field--file {
    padding: 16px;
    border: 1px dashed #aebed3;
    border-radius: 12px;
    background: #f7faff;
}

.sgz-career-field--file input {
    min-height: 0;
    padding: 8px;
    background: #ffffff;
}

.sgz-career-field small {
    color: var(--sgz-career-muted);
    font-size: 12px;
    font-weight: 500;
}

.sgz-career-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    color: var(--sgz-career-muted);
    font-size: 13px;
    line-height: 1.5;
}

.sgz-career-consent input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--sgz-career-blue);
}

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

.sgz-career-form__status {
    min-height: 0;
    margin-bottom: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.sgz-career-form__status.is-error,
.sgz-career-form__status.is-success {
    padding: 12px 14px;
}

.sgz-career-form__status.is-error {
    border: 1px solid #f1b5b5;
    background: #fff0f0;
    color: #9c1f1f;
}

.sgz-career-form__status.is-success {
    border: 1px solid #a9dbb8;
    background: #eefbf2;
    color: #176a34;
}

.sgz-career-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    background: var(--sgz-career-navy);
    color: #ffffff;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(8, 36, 82, 0.2);
    transition: transform 140ms ease, background 140ms ease;
}

.sgz-career-form__submit:hover,
.sgz-career-form__submit:focus-visible {
    background: var(--sgz-career-orange);
    transform: translateY(-1px);
    outline: none;
}

.sgz-career-form__submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

@media (max-width: 680px) {
    .sgz-career-modal {
        align-items: end;
        padding: 0;
    }

    .sgz-career-modal__dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        padding: 26px 18px 24px;
    }

    .sgz-career-form__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sgz-career-field--wide {
        grid-column: auto;
    }

    .sgz-career-form__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgz-career-modal,
    .sgz-career-modal__dialog,
    .sgz-career-form__submit {
        transition: none !important;
    }
}
