.hrmg-talent,
.hrmg-talent * {
    box-sizing: border-box;
}

/* The7 adds 50px above and below every normal page. This page owns its
   vertical rhythm, so remove that theme spacer without changing other pages. */
body.hrmg-talent-page #main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hrmg-talent {
    --hrmg-orange: #ff672f;
    --hrmg-orange-dark: #c84516;
    --hrmg-ink: #1e2025;
    --hrmg-navy: #172535;
    --hrmg-muted: #68717d;
    --hrmg-border: #dfe3e7;
    --hrmg-soft: #f5f6f7;
    position: relative;
    width: 100vw;
    width: 100dvw;
    max-width: none;
    margin: 0 50%;
    transform: translateX(-50%);
    color: var(--hrmg-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f2f3f4;
    overflow: hidden;
}

.hrmg-talent__hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
    gap: clamp(26px, 5vw, 80px);
    padding: clamp(45px, 7vw, 92px) clamp(24px, 6vw, 96px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 5%, rgba(255, 103, 47, .25), transparent 31%),
        radial-gradient(circle at 8% 110%, rgba(101, 55, 132, .31), transparent 38%),
        linear-gradient(137deg, #17181c, #242025 58%, #2e1d2d);
}

/* Move the former theme gap inside the hero. Its background now reaches the
   top edge while the copy keeps its intended clearance beneath the header. */
body.hrmg-talent-page .hrmg-talent__hero {
    padding-top: calc(clamp(45px, 7vw, 92px) + 120px);
}

.hrmg-talent__hero::before,
.hrmg-talent__hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hrmg-talent__hero::before {
    width: 430px;
    height: 430px;
    right: -220px;
    top: -250px;
    border: 1px solid rgba(255, 158, 117, .22);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 103, 47, .025), 0 0 0 140px rgba(255, 103, 47, .018);
}

.hrmg-talent__hero::after {
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--hrmg-orange), #ffab72 52%, #7b3b78);
}

.hrmg-talent__hero-grid {
    position: absolute;
    inset: 0;
    opacity: .08;
    background-image:
        linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 48%, #000);
    mask-image: linear-gradient(90deg, transparent, #000 48%, #000);
}

.hrmg-talent__hero-copy,
.hrmg-talent__hero-aside {
    position: relative;
    z-index: 1;
}

.hrmg-talent__eyebrow {
    display: block;
    margin: 0 0 13px;
    color: var(--hrmg-orange);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hrmg-talent__hero .hrmg-talent__eyebrow {
    color: #ffac84;
}

.hrmg-talent__hero h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 6vw, 82px);
    font-weight: 850;
    letter-spacing: -.052em;
    line-height: .98;
}

.hrmg-talent__hero-copy > p {
    max-width: 850px;
    margin: 25px 0 0;
    color: #d8d9dd;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.7;
}

.hrmg-talent__hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 29px;
}

.hrmg-talent__hero-badges span,
.hrmg-talent__opportunity-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 174, 136, .33);
    border-radius: 999px;
    color: #fff3ec;
    background: rgba(255, 103, 47, .1);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .025em;
}

.hrmg-talent__hero-aside {
    align-self: center;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.07);
    box-shadow: 0 20px 60px rgba(0,0,0,.16);
    backdrop-filter: blur(14px);
}

.hrmg-talent__hero-aside strong {
    display: block;
    color: #fff;
    font-size: 21px;
    line-height: 1.25;
}

.hrmg-talent__hero-aside p {
    margin: 13px 0 20px;
    color: #cfd1d6;
    font-size: 14px;
    line-height: 1.65;
}

.hrmg-talent__hero-aside a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffad84;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.hrmg-talent__hero-aside a:hover,
.hrmg-talent__hero-aside a:focus {
    color: #fff;
}

.hrmg-talent__content {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(34px, 6vw, 74px) 0 clamp(48px, 7vw, 90px);
}

.hrmg-talent__opportunities {
    margin-bottom: 42px;
}

.hrmg-talent__section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}

.hrmg-talent__section-heading h2,
.hrmg-talent__application h2,
.hrmg-talent__success h2 {
    margin: 0;
    color: var(--hrmg-ink);
    font-size: clamp(31px, 4vw, 50px);
    letter-spacing: -.04em;
    line-height: 1.05;
}

.hrmg-talent__section-heading > p {
    max-width: 440px;
    margin: 0;
    color: var(--hrmg-muted);
    line-height: 1.6;
}

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

.hrmg-talent__opportunity {
    position: relative;
    padding: 28px;
    border: 1px solid var(--hrmg-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(27, 31, 36, .055);
}

.hrmg-talent__opportunity::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--hrmg-orange);
}

.hrmg-talent__opportunity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hrmg-talent__opportunity-badges span {
    border-color: #f2c6b5;
    color: #9d3d18;
    background: #fff4ef;
}

.hrmg-talent__opportunity h3 {
    margin: 20px 0 9px;
    color: var(--hrmg-ink);
    font-size: 24px;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.hrmg-talent__opportunity p {
    margin: 0 0 20px;
    color: var(--hrmg-muted);
    line-height: 1.65;
}

.hrmg-talent__opportunity a {
    color: var(--hrmg-orange-dark);
    font-weight: 800;
    text-decoration: none;
}

.hrmg-talent__opportunity-details {
    margin: -7px 0 20px;
    border-top: 1px solid var(--hrmg-border);
    border-bottom: 1px solid var(--hrmg-border);
}

.hrmg-talent__opportunity-details summary {
    padding: 12px 0;
    color: #555e68;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.hrmg-talent__opportunity-details > div {
    padding: 0 0 13px;
    color: #5c6670;
    font-size: 13px;
    line-height: 1.65;
}

.hrmg-talent__opportunity-details > div p,
.hrmg-talent__opportunity-details > div ul,
.hrmg-talent__opportunity-details > div ol {
    margin: 0 0 11px;
}

.hrmg-talent__opportunity-details > div > *:last-child {
    margin-bottom: 0;
}

.hrmg-talent__opportunity-details .hrmg-talent__opportunity-meta {
    margin-bottom: 12px;
    padding: 9px 11px;
    border-radius: 6px;
    background: #f5f6f7;
}

.hrmg-talent__no-openings {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 34px;
    padding: 22px 26px;
    border: 1px solid #eccabf;
    border-radius: 14px;
    background: #fff8f4;
}

.hrmg-talent__no-openings > span {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--hrmg-orange);
    font-size: 20px;
}

.hrmg-talent__no-openings strong {
    display: block;
    color: var(--hrmg-ink);
    font-size: 18px;
    line-height: 1.35;
}

.hrmg-talent__no-openings p {
    margin: 5px 0 0;
    color: var(--hrmg-muted);
    line-height: 1.55;
}

.hrmg-talent__application {
    display: grid;
    grid-template-columns: minmax(250px, .58fr) minmax(0, 1.42fr);
    overflow: hidden;
    border: 1px solid var(--hrmg-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(24, 27, 31, .1);
}

.hrmg-talent__application-intro {
    padding: clamp(30px, 4.8vw, 58px);
    color: #fff;
    background:
        radial-gradient(circle at 10% 90%, rgba(255, 103, 47, .23), transparent 33%),
        linear-gradient(155deg, #1e2025, #2b252a);
}

.hrmg-talent__application-intro .hrmg-talent__eyebrow {
    color: #ffad84;
}

.hrmg-talent__application-intro h2 {
    color: #fff;
}

.hrmg-talent__application-intro > p {
    margin: 20px 0 0;
    color: #cfd1d6;
    line-height: 1.7;
}

.hrmg-talent__steps {
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}

.hrmg-talent__steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #e9eaec;
    font-size: 13px;
    font-weight: 750;
}

.hrmg-talent__steps span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--hrmg-orange);
    font-size: 11px;
}

.hrmg-talent__form-panel {
    min-width: 0;
    padding: clamp(28px, 5vw, 62px);
}

.hrmg-talent__form fieldset {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0 0 28px;
    border: 0;
}

.hrmg-talent__form fieldset + fieldset {
    padding-top: 28px;
    border-top: 1px solid var(--hrmg-border);
}

.hrmg-talent__form legend {
    display: flex;
    float: left;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: var(--hrmg-ink);
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.025em;
    line-height: 1.2;
}

/* A floated, full-width legend avoids Safari's oversized native fieldset gap. */
.hrmg-talent__form legend + * {
    clear: both;
}

.hrmg-talent__form legend span {
    color: var(--hrmg-orange);
    font-size: 11px;
    letter-spacing: .11em;
}

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

.hrmg-talent__grid--spaced {
    margin-top: 22px;
}

.hrmg-talent__wide {
    grid-column: 1 / -1;
}

.hrmg-talent__field,
.hrmg-talent__field > span,
.hrmg-talent__field > small {
    display: block;
}

.hrmg-talent__field {
    margin: 0 0 20px;
}

.hrmg-talent__grid .hrmg-talent__field {
    margin-bottom: 0;
}

.hrmg-talent__field > span,
.hrmg-talent__field-label {
    margin: 0 0 8px;
    color: #34383e;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.hrmg-talent__field b,
.hrmg-talent__field-label b {
    color: var(--hrmg-orange);
}

.hrmg-talent__field input,
.hrmg-talent__field select,
.hrmg-talent__field textarea {
    width: 100%;
    max-width: none;
    min-height: 50px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cfd5da;
    border-radius: 8px;
    outline: none;
    color: var(--hrmg-ink);
    background: #fff;
    font: inherit;
    font-size: 15px;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.hrmg-talent__field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.55;
}

.hrmg-talent__field input:focus,
.hrmg-talent__field select:focus,
.hrmg-talent__field textarea:focus {
    border-color: var(--hrmg-orange);
    box-shadow: 0 0 0 4px rgba(255, 103, 47, .12);
}

.hrmg-talent__field > small {
    margin-top: 7px;
    color: var(--hrmg-muted);
    font-size: 12px;
    line-height: 1.5;
}

.hrmg-talent__field-help {
    margin: 0 0 14px !important;
    padding: 0;
    color: var(--hrmg-muted);
    font-size: 13px;
    line-height: 1.5;
}

.hrmg-talent__field-label {
    margin-top: 24px;
}

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

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

.hrmg-talent__choices label {
    position: relative;
    display: block;
    cursor: pointer;
}

.hrmg-talent__choices input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hrmg-talent__choices span {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 10px 12px 10px 40px;
    border: 1px solid #d6dbe0;
    border-radius: 8px;
    color: #3b4047;
    background: #fafafa;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.hrmg-talent__choices span::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    border: 2px solid #aeb5bc;
    border-radius: 4px;
    background: #fff;
}

.hrmg-talent__choices span::after {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-54%) scale(0);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    transition: transform .12s ease;
}

.hrmg-talent__choices input:checked + span {
    border-color: #ef8b65;
    color: #8e3515;
    background: #fff4ef;
}

.hrmg-talent__choices input:checked + span::before {
    border-color: var(--hrmg-orange);
    background: var(--hrmg-orange);
}

.hrmg-talent__choices input:checked + span::after {
    transform: translateY(-54%) scale(1);
}

.hrmg-talent__choices input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(255,103,47,.15);
}

.hrmg-talent__conditional:not([hidden]) {
    display: block;
    margin-top: 24px !important;
}

.hrmg-talent__choice-followup:not([hidden]) {
    margin-top: 0 !important;
    padding-top: 42px;
}

.hrmg-talent__conditional:not([hidden]) + .hrmg-talent__field-label {
    margin-top: 28px;
}

.hrmg-talent__selected-role {
    margin: 0 0 30px;
    padding: 17px 19px;
    border-left: 4px solid var(--hrmg-orange);
    border-radius: 8px;
    background: #fff4ef;
}

.hrmg-talent__selected-role span,
.hrmg-talent__selected-role strong,
.hrmg-talent__selected-role small {
    display: block;
}

.hrmg-talent__selected-role span {
    color: #a84620;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hrmg-talent__selected-role strong {
    margin-top: 4px;
    font-size: 18px;
}

.hrmg-talent__selected-role small {
    margin-top: 4px;
    color: var(--hrmg-muted);
}

.hrmg-talent__upload {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 18px;
    border: 1px dashed #b8c0c7;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
}

.hrmg-talent__upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.hrmg-talent__upload-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--hrmg-orange);
    font-size: 21px;
    font-weight: 700;
}

.hrmg-talent__upload strong,
.hrmg-talent__upload small {
    display: block;
}

.hrmg-talent__upload strong {
    color: var(--hrmg-ink);
    font-size: 14px;
}

.hrmg-talent__upload small {
    margin-top: 3px;
    color: var(--hrmg-muted);
    font-size: 11px;
}

.hrmg-talent__upload em {
    padding: 8px 11px;
    border: 1px solid #d1d6db;
    border-radius: 6px;
    color: #4e555d;
    background: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.hrmg-talent__upload em[data-error] {
    border-color: #dc7676;
    color: #a31f1f;
}

.hrmg-talent__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: #f8f9fa;
    cursor: pointer;
}

.hrmg-talent__consent input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--hrmg-orange);
}

.hrmg-talent__consent span {
    color: #565e67;
    font-size: 12px;
    line-height: 1.55;
}

.hrmg-talent__form .cf-turnstile {
    margin-top: 20px;
}

.hrmg-talent__submit {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 13px 19px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--hrmg-orange);
    font: inherit;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(200, 69, 22, .22);
    transition: background .16s ease, transform .16s ease;
}

.hrmg-talent__submit:hover,
.hrmg-talent__submit:focus {
    color: #fff;
    background: #e8521d;
    transform: translateY(-1px);
}

.hrmg-talent__submit:disabled {
    opacity: .58;
    cursor: not-allowed;
    transform: none;
}

.hrmg-talent__privacy {
    margin: 12px auto 0;
    color: #7a828b;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.hrmg-talent__status[data-type="error"],
.hrmg-talent__config-warning {
    margin: 0 0 20px;
    padding: 13px 15px;
    border-left: 4px solid #c93535;
    border-radius: 6px;
    color: #7b1c1c;
    background: #fff0f0;
    font-size: 13px;
    line-height: 1.5;
}

.hrmg-talent__config-warning {
    margin-top: 20px;
    border-left-color: #d4921d;
    color: #77500e;
    background: #fff8e5;
}

.hrmg-talent__success {
    padding: clamp(15px, 4vw, 48px) 0;
    text-align: center;
}

.hrmg-talent__success-mark {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    margin: 0 auto 23px;
    border-radius: 50%;
    color: #fff;
    background: var(--hrmg-orange);
    font-size: 31px;
    box-shadow: 0 12px 30px rgba(200, 69, 22, .24);
}

.hrmg-talent__success .hrmg-talent__eyebrow {
    text-align: center;
}

.hrmg-talent__success p {
    max-width: 600px;
    margin: 20px auto 12px;
    color: #52606d;
    font-size: 17px;
    line-height: 1.65;
}

.hrmg-talent__success small {
    display: block;
    max-width: 580px;
    margin: 0 auto;
    color: #7a828b;
    line-height: 1.6;
}

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

@media (max-width: 980px) {
    body.hrmg-talent-page .hrmg-talent__hero {
        padding-top: calc(clamp(45px, 7vw, 92px) + 70px);
    }

    .hrmg-talent__hero,
    .hrmg-talent__application {
        grid-template-columns: 1fr;
    }

    .hrmg-talent__hero-aside {
        max-width: 620px;
    }

    .hrmg-talent__steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 25px;
    }

    .hrmg-talent__steps li {
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 8px;
        padding: 9px;
    }
}

@media (max-width: 700px) {
    body.hrmg-talent-page .hrmg-talent__hero {
        padding: 105px 22px 44px;
    }

    .hrmg-talent__content {
        width: min(100% - 26px, 1240px);
    }

    .hrmg-talent__section-heading,
    .hrmg-talent__no-openings {
        align-items: flex-start;
        flex-direction: column;
    }

    .hrmg-talent__opportunity-grid,
    .hrmg-talent__grid,
    .hrmg-talent__choices,
    .hrmg-talent__choices--disciplines,
    .hrmg-talent__steps {
        grid-template-columns: 1fr;
    }

    .hrmg-talent__wide {
        grid-column: auto;
    }

    .hrmg-talent__application-intro,
    .hrmg-talent__form-panel {
        padding: 30px 22px;
    }

    .hrmg-talent__upload {
        grid-template-columns: auto 1fr;
    }

    .hrmg-talent__upload em {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hrmg-talent *,
    .hrmg-talent *::before,
    .hrmg-talent *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
