/* Apply page: extends the contact form styles (contact.css is loaded first). */
.apply { padding-block: 28px 48px; }
.apply__job { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 22px; color: var(--c-muted); font-size: 0.9375rem; }
.apply__job li { display: inline-flex; align-items: center; gap: 6px; }
.apply__section { margin: 26px 0 14px; font-size: 1.0625rem; font-weight: 700; color: var(--c-ink); padding-bottom: 8px; border-bottom: 1px solid var(--c-line); }
.apply__section:first-of-type { margin-top: 0; }
.contact-form__field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-white); font-size: 1rem; color: var(--c-ink); }
.contact-form__field select:focus-visible { outline: 2px solid #4d8dff; border-color: transparent; }
.contact-form__field input[type="file"] { padding: 10px 12px; min-height: 0; }
.contact-form__field--error input, .contact-form__field--error select, .contact-form__field--error textarea { border-color: var(--c-red); }
.apply__error { display: block; color: var(--c-red); font-size: 0.8125rem; font-weight: 600; }
.apply__hint { display: block; color: var(--c-muted); font-size: 0.8125rem; }
.apply__radios { display: flex; gap: 18px; padding-top: 6px; }
.apply__radios label { display: inline-flex; align-items: center; gap: 6px; color: var(--c-ink); }
.apply__radios input { width: auto; min-height: 0; }
.apply__confirm { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 0.875rem; color: var(--c-muted); }
.apply__confirm input { margin-top: 3px; width: auto; min-height: 0; }
/* Problems after sending: a summary at the top (linked to each field) and a message under each field. */
.apply__summary { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #f3b8c1; border-left: 5px solid var(--c-red); border-radius: var(--radius-sm); background: #fdecee; color: #a02338; scroll-margin-top: 100px; }
.apply__summary:focus { outline: 3px solid #4d8dff; outline-offset: 2px; }
.apply__summary[hidden] { display: none; }
.apply__summary-title, .apply__summary-text { margin: 0; font-weight: 700; }
.apply__summary ul { margin: 8px 0 0; padding-left: 20px; list-style: disc; }
.apply__summary li + li { margin-top: 4px; }
.apply__summary a { color: inherit; font-weight: 600; text-decoration: underline; }
.apply [id^="apply-"] { scroll-margin-top: 110px; }
.apply__confirm--error { color: #a02338; }
.apply__confirm--error input { outline: 2px solid var(--c-red); outline-offset: 2px; }
.contact-form__submit .btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.apply__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply__done { text-align: center; padding: 48px 16px; background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow); }
.apply__done h2 { margin-bottom: 10px; }
.apply__done .btn { margin-top: 22px; }
@media (min-width: 768px) { .contact-form__grid--3 { grid-template-columns: repeat(3, 1fr); } }
/* Live site: /apply is not tied to a job. Step 1 (department, role, sub role) sits centred above the form,
   which opens once a role is chosen. */
.apply__step { max-width: 780px; margin-inline: auto; text-align: center; }
.apply__step .contact-form__title { margin-bottom: 6px; }
.apply__step-lead { margin: 0 0 20px; color: var(--c-muted); font-size: 0.9375rem; }
.apply__picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; text-align: left; }
.apply__picks > .contact-form__field { flex: 1 1 200px; max-width: 340px; }
.apply__picks select:disabled { background: var(--c-bg, #f4f6fa); color: var(--c-muted); cursor: not-allowed; }
.apply .contact-form__field[hidden], .apply__rest[hidden], .apply__step [hidden] { display: none; }
/* Once chosen, the role is the title with an Edit link beside it; Edit brings the selects back (Continue keeps the role). */
.apply__chosen-row { display: flex; justify-content: center; align-items: baseline; gap: 10px; }
.apply__chosen .contact-form__title { margin-bottom: 4px; min-width: 0; overflow-wrap: anywhere; }
.apply__edit { flex: none; }
.apply__chosen .contact-form__title:focus { outline: none; }
.apply__chosen .apply__step-lead { margin-bottom: 0; }
.apply__edit { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--c-primary); font: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.apply__edit:hover { color: var(--c-primary-dark); }
.apply__edit:focus-visible { outline: 2px solid #4d8dff; outline-offset: 2px; border-radius: 4px; }
.apply__continue { margin-top: 18px; }
.apply__rest { margin-top: 30px; }
