/* Career job detail — Figma Careers Page (4239:24429)
   Hero 6703:5685 · Body 6634:15682 · Apply 6634:15241
   Fluid 1200→1920 via --cj-* tokens in variables.css.
*/

.cj-page {
    width: 100%;
    padding-top: var(--header-height);
    background: var(--color-bg-page);
}

/* ── Hero ── */
.cj-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    aspect-ratio: var(--cj-hero-aspect);
    height: auto;
    padding: var(--cj-hero-pad-y) var(--cj-hero-pad-x);
    box-sizing: border-box;
    background: rgb(0, 3, 28);
}

/* Same banner as the Careers page (Figma 7231:7125) */
.cj-hero-image {
    position: absolute;
    top: 0;
    left: 38.24%;
    width: 62.47%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.cj-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(
        -90deg,
        rgba(46, 49, 146, 0) 32.846%,
        rgb(46, 49, 146) 44.49%,
        rgb(27, 30, 98) 54.109%,
        rgb(0, 3, 28) 66.802%
    );
}

.cj-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--cj-hero-gap);
    color: var(--color-white);
    max-width: var(--cj-hero-title-max);
}

.cj-hero-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--cj-hero-identity-gap);
    max-width: 100%;
}

.cj-hero-badge {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    font-family: var(--font-family-base);
    font-weight: 500;
    font-size: var(--cj-hero-badge);
    line-height: 1.8;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0;
}

.cj-hero-title {
    margin: 0;
    max-width: 100%;
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-semibold);
    font-size: var(--cj-hero-title);
    line-height: 1.2;
    color: var(--color-white);
    white-space: normal;
    overflow-wrap: break-word;
}

.cj-hero-location {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--cj-hero-location-gap);
    padding: 6px 0;
    font-family: var(--font-family-base);
    font-weight: 400;
    font-size: var(--cj-hero-location);
    line-height: 1.2;
    color: var(--color-white);
}

.cj-hero-location-icon {
    width: var(--cj-hero-pin);
    height: var(--cj-hero-pin);
    flex-shrink: 0;
    display: block;
}

/* ── Body / description ── */
.cj-body {
    background: var(--cj-body-bg);
    padding: var(--cj-body-pad-y) var(--cj-body-pad-x);
    box-sizing: border-box;
}

.cj-body-inner {
    width: 100%;
    max-width: var(--cj-content-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--cj-section-gap);
}

.cj-section {
    display: flex;
    flex-direction: column;
    gap: var(--cj-section-inner-gap);
    align-items: flex-start;
}

.cj-section-title {
    margin: 0;
    width: 100%;
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-semibold);
    font-size: var(--cj-section-title);
    line-height: 1.2;
    color: #1e4683;
}

.cj-list {
    margin: 0;
    padding: 0 0 0 1.25em;
    list-style: disc;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--cj-list-gap);
}

.cj-list-item {
    font-family: var(--font-family-base);
    font-weight: 400;
    font-size: var(--cj-body-text);
    line-height: 1.8;
    color: #525252;
}

.cj-description {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--cj-list-gap);
}

.cj-description-text {
    margin: 0;
    font-family: var(--font-family-base);
    font-weight: 400;
    font-size: var(--cj-body-text);
    line-height: 1.8;
    color: #525252;
    overflow-wrap: anywhere;
}

/* ── Apply form ── */
.cj-apply {
    background: var(--color-white);
    padding: var(--cj-apply-pad-y) var(--cj-apply-pad-x);
    box-sizing: border-box;
}

.cj-apply-inner {
    width: 100%;
    max-width: var(--cj-content-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--cj-apply-stack-gap);
    padding: 0 var(--cj-apply-inner-pad-x);
    box-sizing: border-box;
}

.cj-apply-heading {
    margin: 0;
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-semibold);
    font-size: var(--cj-apply-title);
    line-height: 1.2;
    color: transparent;
    background-image: linear-gradient(176.24deg, rgb(30, 70, 131) 3.55%, rgb(26, 42, 56) 95.75%);
    -webkit-background-clip: text;
    background-clip: text;
}

.cj-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--cj-form-gap);
    width: 100%;
}

.cj-form-fields {
    display: flex;
    flex-direction: column;
    gap: var(--cj-form-row-gap);
    width: 100%;
}

.cj-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--cj-form-col-gap);
    width: 100%;
}

.cj-field {
    display: flex;
    flex-direction: column;
    gap: var(--cj-field-gap);
    min-width: 0;
}

.cj-label {
    margin: 0;
    font-family: var(--font-family-base);
    font-weight: 500;
    font-size: var(--cj-label);
    line-height: normal;
    color: transparent;
    background-image: linear-gradient(176.99deg, rgb(30, 70, 131) 3.55%, rgb(26, 42, 56) 95.75%);
    -webkit-background-clip: text;
    background-clip: text;
}

.cj-input {
    width: 100%;
    height: var(--cj-input-h);
    padding: 0 18px;
    border: 1px solid #b9e5fb;
    border-radius: 10px;
    background: #fbfdff;
    box-sizing: border-box;
    font-family: var(--font-family-base);
    font-size: var(--cj-label);
    color: #141414;
    outline: none;
    transition: border-color var(--transition-btn);
}

.cj-input:focus-visible {
    border-color: #1e4683;
}

.cj-select-wrap {
    position: relative;
    display: block;
}

.cj-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    cursor: pointer;
}

.cj-select-caret {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 14px;
    height: 8px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* intl-tel-input — match career form inputs (PCU-style phone UX) */
.cj-phone-field .iti {
    width: 100%;
    display: block;
}

.cj-phone-field .iti__tel-input,
.cj-phone-field input.iti__tel-input {
    width: 100%;
    height: var(--cj-input-h);
    padding: 0 18px;
    border: 1px solid #b9e5fb;
    border-radius: 10px;
    background: #fbfdff;
    box-sizing: border-box;
    font-family: var(--font-family-base);
    font-size: var(--cj-label);
    color: #141414;
    outline: none;
}

.cj-phone-field .iti__tel-input:focus,
.cj-phone-field input.iti__tel-input:focus {
    border-color: #1e4683;
}

.cj-phone-field .iti__selected-country {
    border-radius: 10px 0 0 10px;
}

.cj-phone-field .iti__selected-dial-code {
    color: #1a2a38;
    font-family: var(--font-family-base);
    font-size: var(--cj-label);
}

.cj-phone-field .iti__dropdown-content {
    border-radius: 10px;
    border: 1px solid #b9e5fb;
    box-shadow: 0 8px 24px rgba(26, 42, 56, 0.12);
    z-index: 20;
}

.cj-field.is-invalid .iti__tel-input,
.cj-field.is-invalid input.iti__tel-input {
    border-color: #c0392b;
}

.cj-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: var(--cj-input-h);
    padding: 0 18px;
    border: 1px solid #b9e5fb;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    background-image: linear-gradient(172.12deg, rgb(30, 70, 131) 3.55%, rgb(26, 42, 56) 95.75%);
    color: var(--color-white);
    transition: opacity var(--transition-btn);
}

.cj-upload:hover,
.cj-upload:focus-within {
    opacity: 0.92;
}

.cj-upload img {
    width: var(--cj-upload-icon);
    height: var(--cj-upload-icon);
    flex-shrink: 0;
    display: block;
}

.cj-upload-text {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-semibold);
    font-size: var(--cj-upload-font);
    line-height: 1.2;
    text-transform: capitalize;
    color: var(--color-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cj-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cj-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cj-file-list[hidden] {
    display: none;
}

.cj-file-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #d7e6f5;
    border-radius: 8px;
    background: #f7fbff;
}

.cj-file-chip-name {
    font-family: var(--font-family-base);
    font-size: 13px;
    line-height: 1.3;
    color: #1a2a38;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.cj-file-chip-remove {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #e8eef5;
    color: #c0392b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 14px;
}

.cj-file-chip-remove:hover,
.cj-file-chip-remove:focus-visible {
    background: #fde8e6;
}

.cj-consent {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.cj-consent-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.cj-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.cj-checkbox-ui {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #b9e5fb;
    border-radius: 2px;
    background: #fbfdff;
    box-sizing: border-box;
}

.cj-checkbox:checked + .cj-checkbox-ui {
    background: #1e4683;
    border-color: #1e4683;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 10px;
}

.cj-checkbox:focus-visible + .cj-checkbox-ui {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.cj-consent-text {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-family-base);
    font-weight: 400;
    font-size: var(--cj-label);
    line-height: 1.5;
    color: #515151;
}

.cj-form-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.cj-submit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--cj-submit-h);
    min-height: var(--cj-submit-h);
    padding: 0 var(--cj-submit-pad-x);
    border: 0;
    background: var(--color-accent);
    color: var(--color-white);
    cursor: pointer;
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-semibold);
    font-size: var(--cj-submit-font);
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(227, 30, 36, 0);
    transition:
        color var(--transition-btn),
        box-shadow var(--transition-btn);
}

.cj-submit > * {
    position: relative;
    z-index: 1;
    color: inherit;
}

.cj-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition-btn);
    pointer-events: none;
}

.cj-submit img {
    width: var(--cj-submit-icon-w);
    height: var(--cj-submit-icon-h);
    display: block;
    flex-shrink: 0;
}

.cj-submit:hover,
.cj-submit:focus-visible {
    color: var(--color-white);
    /* box-shadow: 0 6px 18px rgba(30, 70, 131, 0.28); */
}

.cj-submit:hover::before,
.cj-submit:focus-visible::before {
    transform: scaleX(1);
}

.cj-submit:active {
    box-shadow: 0 3px 10px rgba(30, 70, 131, 0.2);
}

.cj-submit:active::before {
    background: var(--color-primary-dark);
    transform: scaleX(1);
}

.cj-submit:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.cj-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    box-shadow: none;
}

.cj-submit:disabled:hover::before,
.cj-submit:disabled:focus-visible::before {
    transform: scaleX(0);
}

@media (prefers-reduced-motion: reduce) {
    .cj-submit,
    .cj-submit::before {
        transition: none;
    }
}

.cj-field-error {
    margin: 0;
    font-family: var(--font-family-base);
    font-size: 13px;
    line-height: 1.3;
    color: #e31e24;
}

.cj-form-status {
    margin: 0;
    width: 100%;
    font-family: var(--font-family-base);
    font-size: var(--cj-label);
    line-height: 1.4;
}

.cj-form-status.is-success {
    color: #1e4683;
}

.cj-form-status.is-error {
    color: #e31e24;
}

.cj-field.is-invalid .cj-input,
.cj-field.is-invalid .cj-upload {
    border-color: #e31e24;
}

/* ── Compact / mobile — hero stays fluid via aspect-ratio until tablet, like contact ── */
@media screen and (max-width: 1199px) {
    .cj-hero,
    .cj-body,
    .cj-apply {
        padding-left: var(--container-padding-x-wide);
        padding-right: var(--container-padding-x-wide);
    }

    .cj-body-inner,
    .cj-apply-inner {
        max-width: none;
    }

    .cj-apply-inner {
        padding-left: 0;
        padding-right: 0;
    }
}

@media screen and (max-width: 991px) {
    .cj-body {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .cj-body-inner {
        gap: 30px;
    }

    .cj-apply {
        padding-top: 40px;
        padding-bottom: 48px;
    }
}

@media screen and (max-width: 768px) {
    .cj-form-row {
        grid-template-columns: 1fr;
    }

    .cj-form-actions {
        justify-content: stretch;
    }

    .cj-submit {
        width: 100%;
    }
}

@media screen and (max-width: 1080px) and (min-width: 580px) {
    /* Hold the 1080 banner height (1080 × 400/1920) instead of shrinking with the 1920:400 ratio */
    .cj-hero {
        aspect-ratio: auto;
        height: auto;
        min-height: 225px;
        align-items: center;
    }

    /* Keep the copy inside the solid part of the overlay so it never sits on the photo */
    .cj-hero-overlay {
        background-image: linear-gradient(
            -90deg,
            rgba(46, 49, 146, 0) 12%,
            rgba(46, 49, 146, 0.89) 36%,
            rgba(27, 30, 98, 0.95) 46%,
            rgb(0, 3, 28) 62%
        );
    }

    /* Match the 3:1 source so the photo is never cropped; its left edge sits under the overlay */
    .cj-hero-image {
        inset: auto;
        top: 0;
        right: 0;
        left: auto;
        width: auto;
        height: 100%;
        aspect-ratio: 3 / 1;
        max-width: none;
        object-fit: cover;
        object-position: center;
    }

    .cj-hero-copy {
        max-width: 58%;
    }

    .cj-hero-identity {
        gap: 10px;
    }
}

@media screen and (max-width: 579px) {
    .cj-hero {
        aspect-ratio: auto;
        min-height: 0;
        height: auto;
        align-items: flex-end;
        padding: clamp(220px, 81.628vw, 351px) var(--container-padding-x-wide) 20px;
    }

    .cj-hero-overlay {
        background-image: linear-gradient(
            to bottom,
            rgba(46, 49, 146, 0) 44.455%,
            #2e3192 61.2%,
            #000 92.364%
        );
    }

    .cj-hero-image {
        inset: auto;
        top: 0;
        left: -16.56%;
        width: 129.84%;
        height: auto;
        aspect-ratio: 3 / 2;
        max-width: none;
        object-fit: cover;
        object-position: center center;
    }

    .cj-hero-copy,
    .cj-hero-identity {
        max-width: none;
        gap: clamp(6px, 1.8605vw, 8px);
    }

    .cj-hero-badge {
        padding: 0;
        background: transparent;
        /* font-size: clamp(14px, 4.18605vw, 18px); */
        font-weight: 500;
        line-height: 1.8;
    }

    .cj-hero-title {
        font-size: clamp(24px, 7.4419vw, 32px);
        font-weight: 500;
        line-height: 1.2;
    }

    .cj-hero-location {
        padding: 0;
        gap: 6px;
        font-size: clamp(12px, 3.2558vw, 14px);
        font-weight: 400;
        line-height: 1.5;
    }

    .cj-hero-location-icon {
        width: 16px;
        height: 16px;
    }
}

@media screen and (max-width: 429px) {
    .cj-hero {
        padding-top: 351px;
    }

    .cj-hero-image {
        top: 0;
        left: auto;
        right: -57px;
        width: 558px;
        height: auto;
    }
}

@media screen and (max-width: 767px) {
    .cj-hero-location {
        padding-left: 0;
    }

    .cj-list-item,
    .cj-description-text {
        font-size: 16px;
    }
}
