/* Career page, built to the client's PDF (2026-11-12). Loaded after site.css and store.css, so .field,
   .btn, .titleband and the colour tokens (--brand, --ink, --ink-soft, --line, --green, --danger) come from there.
   Layout: intro, then a two-column form; SEND on the left and the three upload buttons on the right.
   On a phone everything is one column and every control is at least 48px tall. */

.career-page { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px); }

/* Intro: the client's four paragraphs, in brand blue as in the design. */
.career-intro { display: grid; gap: 1.1em; max-width: 104ch; margin-block-end: clamp(28px, 4vw, 44px); }
.career-intro p { margin: 0; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.7; color: var(--brand); }

.career-form-wrap { scroll-margin-top: 90px; }
.career-form { display: grid; gap: 28px; }

/* Fields: two columns, a Note box across both. */
.career-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(20px, 3vw, 36px); }
.career-fields .full { grid-column: 1 / -1; }
.career-form .field { gap: 8px; min-width: 0; }
.career-form .field label { font-size: 0.95rem; font-weight: 800; color: var(--brand); }
.career-form .field label b { color: var(--danger); font-weight: 800; }

.career-form .field input:not([type="file"]),
.career-form .field select,
.career-form .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background-color: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color 160ms ease, box-shadow 160ms ease; }
.career-form .field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.career-form .field input:not([type="file"]):hover,
.career-form .field select:hover,
.career-form .field textarea:hover { border-color: color-mix(in oklch, var(--brand) 45%, var(--line)); }
.career-form .field input:not([type="file"]):focus-visible,
.career-form .field select:focus-visible,
.career-form .field textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklch, var(--brand) 16%, transparent); }
.career-form .field input:not([type="file"]):user-invalid,
.career-form .field textarea:user-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.86rem; font-weight: 700; }

/* Gender: two radio pills. The real radio stays in the page (hidden visually) so keyboard, screen readers and the
   required check all work; the pill shows the state. */
.career-gender { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.career-gender legend { padding: 0; margin: 0; font-size: 0.95rem; font-weight: 800; color: var(--brand); }
.career-gender legend b { color: var(--danger); font-weight: 800; }
.career-radios { display: flex; flex-wrap: wrap; gap: 12px; }
.career-radio { position: relative; display: inline-flex; align-items: center; gap: 12px; flex: 1 1 140px; min-height: 52px; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 1rem; font-weight: 700; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 150ms var(--ease); }
.career-radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.career-radio::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid color-mix(in oklch, var(--brand) 55%, var(--line)); background: #fff; box-shadow: inset 0 0 0 4px #fff; transition: background-color 160ms ease, border-color 160ms ease; }
.career-radio:hover { border-color: color-mix(in oklch, var(--brand) 45%, var(--line)); }
.career-radio:active { transform: scale(0.98); }
.career-radio:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.career-radio:has(input:checked)::before { border-color: var(--brand); background: var(--brand); }
.career-radio:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Select without JS: the site's navy chevron on the native control. */
.career-form .field select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23194f90' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 16px; background-position: right 16px center; }
[dir="rtl"] .career-form .field select { background-position: left 16px center; }

/* Custom dropdown (built from the <select> by the script on the page). The native list cannot be rounded, so the
   real <select> stays in the form, hidden, and this button + list take its place. */
.career-select { position: relative; }
.career-form .field select.is-native { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; pointer-events: none; }
.career-select-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; text-align: start; cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease; }
.career-select-btn:hover { border-color: color-mix(in oklch, var(--brand) 45%, var(--line)); }
.career-select-btn:focus-visible, .career-select.is-open .career-select-btn { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklch, var(--brand) 16%, transparent); }
.career-select-btn.is-placeholder .career-select-value { color: var(--ink-soft); }
.career-select-chev { flex: none; width: 16px; height: 16px; color: var(--brand); transition: transform 200ms var(--ease); }
.career-select.is-open .career-select-chev { transform: rotate(180deg); }

.career-select-list { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow-y: auto; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 24px 40px -22px rgba(25,79,144,0.5); transform-origin: top center; opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.98); transition: opacity 140ms ease, transform 160ms var(--ease), visibility 0s linear 160ms; }
.career-select.is-up .career-select-list { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; transform: translateY(4px) scale(0.98); }
.career-select.is-open .career-select-list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.career-select-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 9px; font-size: 0.98rem; color: var(--ink-soft); cursor: pointer; }
.career-select-opt.is-active { background: var(--brand-tint); color: var(--brand); }
.career-select-opt[aria-selected="true"] { color: var(--brand); font-weight: 800; }
.career-select-opt svg { flex: none; width: 16px; height: 16px; opacity: 0; color: var(--green); }
.career-select-opt[aria-selected="true"] svg { opacity: 1; }

/* Action row: SEND left, uploads right (the design). */
.career-actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; }
.career-send { min-width: 200px; min-height: 52px; padding: 12px 36px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: transform 150ms var(--ease), filter 160ms ease, box-shadow 160ms ease; }
.career-send:hover:not(:disabled) { filter: brightness(0.94); box-shadow: 0 14px 24px -16px color-mix(in oklch, var(--green) 80%, black); }
.career-send:active:not(:disabled) { transform: scale(0.97); }
.career-send:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.career-send:disabled { opacity: 0.7; cursor: progress; }

.career-uploads { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.career-up { display: grid; gap: 6px; width: clamp(150px, 20vw, 210px); align-content: start; }
.career-upload { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 12px 20px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer; transition: transform 150ms var(--ease), filter 160ms ease, box-shadow 160ms ease; }
.career-upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; min-height: 0; }
.career-upload svg { flex: none; }
.career-upload:hover { filter: brightness(1.12); box-shadow: 0 14px 24px -16px rgba(25,79,144,0.8); }
.career-upload:active { transform: scale(0.97); }
.career-upload:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }
.career-upload.has-file { box-shadow: inset 0 0 0 2px var(--green); }
.career-up-file { font-size: 0.84rem; color: var(--ink-soft); overflow-wrap: anywhere; line-height: 1.4; }
.career-up-file:empty { display: none; }
.career-hint { margin: -10px 0 0; font-size: 0.86rem; color: var(--ink-soft); }

@media (max-width: 860px) {
    .career-up { width: calc((100% - 28px) / 3); min-width: 130px; }
}
@media (max-width: 640px) {
    .career-fields { grid-template-columns: 1fr; gap: 18px; }
    .career-actions { flex-direction: column-reverse; align-items: stretch; }
    .career-uploads { flex-direction: column; justify-content: stretch; }
    .career-up { width: 100%; }
    .career-send { width: 100%; }
    .career-hint { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .career-form .field input, .career-form .field select, .career-form .field textarea, .career-select-btn, .career-select-chev, .career-select-list, .career-send, .career-upload, .career-radio, .career-radio::before { transition: none; }
    .career-send:active:not(:disabled), .career-upload:active, .career-radio:active { transform: none; }
}

.career-hp { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

.career-success { display: grid; gap: 4px; padding: 20px 22px; border-radius: 14px; border: 1.5px solid var(--green); background: color-mix(in oklch, var(--green) 8%, white); color: var(--ink); max-width: 640px; }
