/* ==================================================================================================================
   careers.workaid.io: apply.css (v3, 7 Oct 2026)

   The apply flow's own layout: /apply, /applied and /apply-problem, loaded straight after careers.css. It builds on
   careers.css's form parts (.form-card, .field, .tiles, .tile, .check, .note, .dropzone, .file-chip, .form-actions,
   .error-summary) and never restyles them for other pages: every rule here starts from an .apply-* class. Colours come
   from careers.css's tokens only.

    1  Page head        .apply-head .apply-for
    2  Layout           .apply-section .apply-layout (.is-done) .apply-card
    3  Progress         .apply-progress .apply-progress__item (.is-current .is-done) __num __label
    4  Steps            .apply-step .apply-step__legend .apply-step__title .apply-step__count .apply-required
                        (without JavaScript the three steps stack as one long form)
    5  Questions        .apply-q .apply-row .apply-jobs .apply-job .apply-other .apply-hours .apply-note
    6  The CV           .apply-drop .apply-drop__zone .apply-drop__input (.is-parked) .apply-chip
    6a The video        .apply-video .apply-video__checking .apply-video__preview .apply-video__player .apply-video__info
                        (JavaScript only; the same drop zone as the CV)
    7  Sending          .apply-actions .apply-send (.is-sending) .apply-alert .apply-reattach .apply-hp
                        .apply-upload .apply-upload__track .apply-upload__fill (the video's upload)
    8  Aside            .apply-aside .apply-aside__card .apply-aside__title .apply-aside__trust
    9  Success, ends    .apply-done .apply-done__next .apply-done__video .apply-ref .apply-copy .apply-vfail .apply-landing
                        .apply-problem
   ================================================================================================================== */

/* 1. Page head -------------------------------------------------------------------------------------------------- */
.apply-head h1 { margin-bottom: 12px; }
/* "Applying for: Bookkeeper · Job ID WA-101   Change", only when the page was opened for a job. */
.apply-for { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--teal-ink); }
.apply-for strong { color: var(--navy); font-weight: 600; }
.apply-for a { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; font-weight: 600; color: var(--blue); }

/* 2. Layout ----------------------------------------------------------------------------------------------------- */
.apply-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1080px) {
  .apply-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .apply-aside { position: sticky; top: calc(var(--header-h) + 24px); }
  /* Sent: the aside goes, and the confirmation sits in a centred column. */
  .apply-layout.is-done { grid-template-columns: minmax(0, 760px); justify-content: center; }
}
.apply-card { position: relative; }
/* Phones: the form runs edge to edge, so the fields get the whole screen. */
@media (max-width: 639px) {
  .apply-section { padding-top: 0; }
  .apply-card { margin: 0 calc(-1 * var(--gutter)); padding: 28px var(--gutter) 32px; border-left: 0; border-right: 0; border-top: 0; border-radius: 0; }
}

/* 3. Progress: three numbered segments, the current one teal. Shown by apply.js. --------------------------------- */
.apply-progress { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 36px; }
.apply-progress__item { position: relative; display: flex; align-items: center; gap: 10px; padding-top: 16px; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--muted); }
.apply-progress__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: var(--page-deep); }
.apply-progress__num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--page-deep);
  color: var(--navy); font: 600 13.5px/1 var(--font-body); }
.apply-progress__item.is-done::before, .apply-progress__item.is-current::before { background: var(--teal); }
.apply-progress__item.is-done { color: var(--charcoal); }
.apply-progress__item.is-done .apply-progress__num { background: var(--teal-soft); color: var(--teal-ink); }
.apply-progress__item.is-current { color: var(--navy); font-weight: 600; }
.apply-progress__item.is-current .apply-progress__num { background: var(--teal); color: var(--white); }
@media (max-width: 559px) {
  .apply-progress { gap: 8px; margin-bottom: 30px; }
  .apply-progress__item { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 12px; font-size: 13.5px; }
  .apply-progress__num { width: 26px; height: 26px; font-size: 13px; }
}

/* 4. Steps ------------------------------------------------------------------------------------------------------ */
.apply-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.apply-step__legend { display: block; width: 100%; margin: 0 0 8px; padding: 0; }
.apply-step__title { margin: 0; font-size: clamp(26px, 2.8vw, 32px); line-height: 1.2; }
.apply-step__title:focus { outline: none; }
.apply-step__count { display: block; margin: 0 0 8px; font: 600 13px/1.3 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-ink); }
.apply-required { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.apply-step > .error-summary { margin-top: 24px; margin-bottom: 0; }
.apply-step .apply-q, .apply-step .apply-row { margin-top: 28px; }
.apply-row .apply-q { margin-top: 0; }
/* Without JavaScript the three steps stack as one long form, a rule between them. The rule is each step's bottom
   border: a fieldset's legend sits in its top border, which would hide one there. */
.apply-step:not(:last-of-type) { margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
.apply-form.is-stepped .apply-step { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

/* 5. Questions -------------------------------------------------------------------------------------------------- */
.apply-q { margin-bottom: 0; }
.fieldset.apply-q > legend { margin-bottom: 10px; }
.fieldset.apply-q > legend + .field__hint { margin-top: -4px; }
.apply-row { display: grid; gap: 28px 16px; }
@media (min-width: 560px) { .apply-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.apply-input--wide { max-width: 520px; }
.apply-input--mid { max-width: 360px; }
/* The three jobs: one card per row, the title and Job ID on the left and the live status on the right. */
.apply-jobs { display: grid; gap: 10px; }
.apply-job { align-items: center; min-height: 72px; padding: 16px 18px; }
.apply-job .tile__body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.apply-job .tile__title { font: 500 19px/1.3 var(--font-display); letter-spacing: -.005em; }
.apply-job__status { display: flex; flex: none; margin-left: auto; }
.apply-job__status:empty, .apply-job__status:has(> .status[hidden]) { display: none; }
@media (max-width: 559px) {
  .apply-job { flex-wrap: wrap; align-items: flex-start; row-gap: 10px; }
  .apply-job .tile__body { flex-direction: column; align-items: flex-start; gap: 6px; }
  .apply-job__status { flex-basis: 100%; margin-left: 34px; }
}
/* Yes / No answers stay short on a wide screen. */
@media (min-width: 560px) { .apply-tiles--short { max-width: 420px; } }
.apply-other { margin-top: 18px; }
.apply-other .field__label { font-size: 15px; }
/* The hours question: the hours read as the lead, the question itself carries the weight. */
.apply-hours > legend { font-weight: 400; color: var(--charcoal); line-height: 1.55; }
.apply-hours__lead { display: block; margin-bottom: 4px; }
.apply-hours__ask { font-weight: 600; color: var(--navy); }
.apply-hours.field--error .apply-hours__ask { color: var(--red); }
/* A calm note after an honest answer: information, never an error. */
.apply-note { display: flex; gap: 10px; align-items: flex-start; }
.apply-note .icon { width: 20px; height: 20px; margin-top: 1px; vertical-align: 0; color: var(--blue); }
.apply-consent { margin-top: 32px; }
.apply-consent a { font-weight: 500; }

/* 6. The CV: the real file input lies over the drop zone (with JavaScript); without it the native input shows. ---- */
.apply-cv .field__hint { max-width: 600px; }
.apply-drop { position: relative; }
.apply-drop__zone { min-height: 150px; justify-content: center; }
.apply-drop__lead { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; color: var(--charcoal); }
.apply-drop__btn { pointer-events: none; }
@media (hover: none), (pointer: coarse) { .apply-drop__drag { display: none; } .apply-drop__zone { min-height: 120px; } }
.apply-form:not(.is-stepped) .apply-drop__zone { display: none; }
.apply-drop__input { display: block; width: 100%; min-height: 56px; padding: 14px; border: 1.5px dashed var(--muted); border-radius: var(--r-card);
  background: var(--page); font: 400 16px/1.5 var(--font-body); color: var(--charcoal); cursor: pointer; }
.apply-form.is-stepped .apply-drop__input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; }
.apply-drop:hover .apply-drop__zone { border-color: var(--teal); }
.apply-drop:hover .apply-drop__btn { border-color: var(--navy); }
.apply-drop:has(.apply-drop__input:focus-visible) .apply-drop__zone { outline: 2px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
.apply-cv.field--error .apply-drop__zone, .apply-cv.field--error .apply-drop__input { border-color: var(--red); }
/* A file is attached: the zone gives way to the chip; the input stays in the page for Replace. */
.apply-drop.is-parked { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.apply-chip { padding: 12px 10px 12px 16px; }
.apply-chip__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; flex: 1; min-width: 0; }
.apply-chip .file-chip__name { flex: 0 1 auto; }

/* 6a. The video: a small muted preview beside its name, length and size, with Remove. ------------------------------ */
.apply-video .field__hint { max-width: 640px; }
.apply-video__checking { margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--page);
  font-size: 15px; color: var(--muted); }
.apply-video__preview { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 12px; border: 1px solid var(--border);
  border-radius: var(--r-card); background: var(--white); }
.apply-video__player { display: block; flex: none; width: auto; max-width: min(220px, 100%); height: 140px; border-radius: var(--r-input);
  background: var(--navy-deep); object-fit: contain; }
.apply-video__info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 1 1 180px; min-width: 0; }
.apply-video__info .apply-video__name { flex: none; max-width: 100%; }
.apply-video__info .apply-video__meta { font-variant-numeric: tabular-nums; }
.apply-video__info .apply-video__remove { margin-top: 8px; }
.apply-video.field--error .apply-drop__zone { border-color: var(--red); }
@media (max-width: 479px) { .apply-video__player { width: 100%; max-width: 100%; height: 180px; } }

/* 7. Sending ---------------------------------------------------------------------------------------------------- */
.apply-actions--first { justify-content: flex-end; }
@media (min-width: 560px) { .apply-actions .btn { min-width: 160px; } }
.apply-next .icon { width: 18px; height: 18px; }
/* While the CV goes up, the send button fills from the left with the upload. */
.apply-send { position: relative; overflow: hidden; isolation: isolate; }
.apply-send::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--apply-progress, 0%); background: var(--teal-ink); opacity: 0; }
.apply-send.is-sending { cursor: progress; opacity: 1; }
.apply-send.is-sending::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .apply-send::before { transition: width .25s linear; } }
.apply-alert { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0 0; }
.apply-alert .icon { width: 20px; height: 20px; margin-top: 2px; vertical-align: 0; color: var(--red); }
.apply-alert p { margin: 0; }
.apply-alert p + p { margin-top: 4px; }
.apply-alert:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.apply-reattach { margin: 24px 0 0; }
/* The video's upload, after the application is saved: a bar with the percentage under it. */
.apply-upload { margin: 28px 0 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--page); }
.apply-upload__label { margin: 0 0 10px; font-weight: 600; color: var(--navy); }
.apply-upload__track { position: relative; height: 10px; overflow: hidden; border-radius: var(--r-pill); background: var(--page-deep); }
.apply-upload__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: var(--r-pill); background: var(--teal); }
@media (prefers-reduced-motion: no-preference) { .apply-upload__fill { transition: width .25s linear; } }
.apply-upload__meta { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.apply-vfail .apply-upload { margin: 24px 0 0; }
/* The honeypot: off screen, out of the tab order, hidden from assistive technology. */
.apply-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* 8. Aside ------------------------------------------------------------------------------------------------------ */
.apply-aside__card { padding: 26px 24px 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-panel); }
.apply-aside__title { margin: 0 0 18px; font-size: 22px; line-height: 1.3; }
.apply-aside .ticks li { font-size: 15.5px; line-height: 1.55; }
.apply-aside__trust { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.apply-aside__trust .icon { width: 20px; height: 20px; margin-top: 1px; vertical-align: 0; color: var(--teal); }
@media (max-width: 639px) { .apply-aside__card { padding: 24px 20px; } }

/* 9. Success (in place on /apply, and /applied) and /apply-problem ------------------------------------------------- */
.apply-done__icon, .apply-problem__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 20px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal); }
.apply-done__icon .icon, .apply-problem__icon .icon { width: 28px; height: 28px; vertical-align: 0; }
.apply-problem__icon { background: var(--page-deep); color: var(--navy); }
.apply-done__title { margin: 0 0 8px; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; overflow-wrap: anywhere; }
.apply-done__title:focus { outline: none; }
.apply-ref { margin: 24px 0 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--page); }
.apply-ref__label { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.apply-ref__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.apply-ref__code { font: 500 clamp(30px, 4.2vw, 40px)/1.15 var(--font-display); letter-spacing: .06em; color: var(--navy); font-variant-numeric: tabular-nums; }
.apply-copy { gap: 8px; background: var(--white); }
.apply-copy .icon { width: 18px; height: 18px; }
.apply-copy__done { display: none; color: var(--teal); }
.apply-copy.is-copied .apply-copy__icon { display: none; }
.apply-copy.is-copied .apply-copy__done { display: inline-block; }
.apply-done__keep { margin: 14px 0 0; font-size: 16.5px; color: var(--charcoal); }
/* "Next, check your email": the one thing to do now, straight under the heading. */
.apply-done__next { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; font-size: 18px; line-height: 1.55; color: var(--charcoal); }
.apply-done__next .icon { flex: none; width: 24px; height: 24px; margin-top: 2px; vertical-align: 0; color: var(--teal); }
.apply-done__video { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; }
.apply-done__video .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; vertical-align: 0; color: var(--blue); }
.apply-done__video#applyVideoOk .icon { color: var(--teal); }
.apply-done__dup { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; }
.apply-done__dup .icon { width: 20px; height: 20px; margin-top: 1px; vertical-align: 0; color: var(--blue); }
.apply-done__h { margin: 36px 0 16px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 22px; line-height: 1.3; }
.apply-done__ticks li { font-size: 16px; }
.apply-done__actions { margin-top: 32px; }
/* The video didn't upload: the application stands; Retry, email it, or finish without it. */
.apply-vfail__why { margin: 14px 0 0; font-size: 17px; color: var(--charcoal); }
.apply-vfail__ref { margin: 14px 0 0; font-size: 16.5px; }
.apply-vfail__code { font-weight: 600; letter-spacing: .04em; color: var(--navy); }
.apply-vfail__actions { margin-top: 24px; }
.apply-vfail__email { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.apply-vfail__skip { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.apply-vfail__finish { min-height: 44px; padding: 0; background: none; border: 0; font: 600 16px/1.3 var(--font-body); color: var(--blue);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.apply-vfail__finish:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
/* The two landings: one centred card on the light-grey ground. */
.apply-landing { padding: clamp(40px, 6vw, 80px) 0 var(--space-tight); }
@media (max-width: 639px) {
  .apply-landing { padding-top: 0; }
  .apply-landing .form-card { margin: 0 calc(-1 * var(--gutter)); padding: 32px var(--gutter); border-left: 0; border-right: 0; border-top: 0; border-radius: 0; }
}
.apply-problem__lede { margin: 0; font-size: 18px; color: var(--charcoal); }
.apply-problem__small { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.apply-problem__stuck { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
