/**
 * jobApplicationModern.php — supplemental styles only (loads after styles.css)
 * Pass A static mockup of:
 *   - Application form (Figma node 31:1318)
 *   - Screening Questionnaire (Figma node 93:1982)
 *
 * Reuses base components from styles.css / homeModern.css:
 *   .notification-banner, .hero-banner.hero-banner--compact, .modernApplicant-customer-logo,
 *   .tag, .cookies-banner, .btn-okay, .site-footer, container-fluid overrides.
 */

:root {
  --color-neutral-100: #e6e6e4;
  --color-neutral-300: #ccccca;
  --color-neutral-500: #999997;
  --color-neutral-700: #666665;
  --application-display-size: 52px;
  --application-sidebar-width: 356px;
  --application-content-main: 736px;
}

/* Override page padding so two stacked screens look like an app, not a single doc */
.application-page .page + .page {
  margin-top: 32px;
}

/* Bootstrap: keep grid inside content-width.
   .job-details-page is included so jobDetailsModern.php (which shares the
   same .application-toprow-wrap markup for the Back-to-jobs / Share-this-job
   row) gets the same content-width constraint. */
.application-page .hero-spacer .container-fluid,
.application-page .application-toprow-wrap .container-fluid,
.application-page .application-intro-wrap .container-fluid,
.application-page .application-stepper-wrap .container-fluid,
.application-page .application-body .container-fluid,
.job-details-page .application-toprow-wrap .container-fluid {
  padding-left: 0;
  padding-right: 0;
  max-width: var(--content-width);
}

/* ----- Top row: Back to jobs / Share this job ----- */
.application-toprow-wrap {
  margin-top: 24px;
}

.application-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.application-toprow__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.032px;
  color: var(--color-black);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.application-toprow__link:hover {
  text-decoration: none;
}

.application-toprow__link:hover span {
  text-decoration: underline;
}

.application-toprow__link .ph {
  font-size: 18px;
  text-decoration: none;
}

/* ----- Intro: Title + tags (no subtitle) ----- */
.application-intro-wrap {
  margin-top: 16px;
}

.application-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.application-intro__title {
  margin: 0;
  font-family: var(--font-dm);
  font-size: var(--application-display-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.application-intro__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.application-intro__tags .tag {
  border-radius: 12px;
}

/* ----- Stepper (segmented bar + label + time per column; matches sticky header) ----- */
.application-stepper-wrap {
  margin-top: 46px;
}

.application-stepper {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.application-stepper__step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.application-stepper__bar-track {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 4px;
}

.application-stepper__bar-top {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--color-neutral-200);
}

.application-stepper__step--upcoming .application-stepper__bar-top {
  height: 2px;
}

.application-stepper__step--active .application-stepper__bar-top,
.application-stepper__step--complete .application-stepper__bar-top {
  background: var(--color-black);
}

.application-stepper__label {
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.032px;
  color: var(--color-neutral-500);
}

.application-stepper__time {
  display: block;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-neutral-500);
}

.application-stepper__step--active .application-stepper__label,
.application-stepper__step--active .application-stepper__time {
  color: var(--color-black);
  font-weight: 700;
}

.application-stepper__step--complete .application-stepper__label,
.application-stepper__step--complete .application-stepper__time {
  color: var(--color-neutral-700);
  font-weight: 400;
}

.application-stepper__step--upcoming .application-stepper__label,
.application-stepper__step--upcoming .application-stepper__time {
  color: var(--color-neutral-400);
  font-weight: 400;
}

.application-stepper__time--empty {
  min-height: 1.2em;
  visibility: hidden;
}

/* Viewports below lg where the mobile job-details card is shown: hide the inline
   stepper (progress lives in .application-sticky-header on scroll). Card sits in
   the same DOM slot as jobDetailsModern (after intro, before body) so spacing
   uses margin-top on the card, not on .application-body. */
@media (max-width: 991.98px) {
  body.application-page:not(.checklist-feedback-page):has(.jam-mobile-job-details-card) .application-stepper-wrap {
    display: none !important;
  }

  .application-page .application-toprow-wrap ~ .jam-mobile-job-details-card {
    margin-top: 16px;
  }

  .application-page .jam-mobile-job-details-card ~ .application-body {
    margin-top: 24px;
  }
}

/* Narrow viewports: progress lives in .application-sticky-header only; inline
   stepper stays in DOM for modernApplicantStickyHeaderSetStep + scroll trigger.
   (checklist-feedback-page has no sticky bar -- keep its inline stepper visible.) */
@media (max-width: 767.98px) {
  body.application-page:not(.checklist-feedback-page) .application-stepper-wrap {
    display: none !important;
  }

  body.application-page:not(.checklist-feedback-page):not(:has(.jam-mobile-job-details-card)) .application-body {
    margin-top: 16px;
  }

  body.application-page .application-main {
    gap: 28px;
  }

  body.application-page .application-autofill {
    padding: 16px;
    gap: 16px;
  }

  body.application-page .application-intro-wrap {
    margin-top: 12px;
  }

  body.application-page .application-intro {
    gap: 12px;
  }
}

/* ----- Body two-column ----- */
.application-body {
  margin-top: 48px;
}

.application-main {
  max-width: var(--application-content-main);
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* ----- Pre-fill / resume-parse notices -----
 * Re-skin of the legacy #prefillResumeNotice / #prefillSeekNotice /
 * #prefillResumeError <h4>s. The legacy markup carries .ourGreenPanel /
 * .ourOrangePanel classes (microsite.css) and a FontAwesome icon, neither
 * of which is loaded on modern pages. We add .application-prefill-notice
 * + a --success / --warning modifier and a Phosphor icon, and hide the
 * stray <i class="fa"> the same way #clarifyMsg / #noPostcodeMsg do. */
.application-prefill-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.032px;
  color: var(--color-black);
}

.application-prefill-notice i.fa {
  display: none !important;
}

.application-prefill-notice__icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 24px;
}

.application-prefill-notice__text {
  flex: 1 1 auto;
  min-width: 0;
}

.application-prefill-notice--success {
  background: rgba(10, 125, 66, 0.08);
  border-color: rgba(10, 125, 66, 0.22);
}

.application-prefill-notice--success .application-prefill-notice__icon {
  color: var(--color-hero-green);
}

.application-prefill-notice--warning {
  background: #fff8e6;
  border-color: #f5d99a;
}

.application-prefill-notice--warning .application-prefill-notice__icon {
  color: #b56a00;
}

/* Work / education: To-before-From inline message (js/jobApplication.js) */
.application-page .application-record-date-range-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
.application-page .application-record-date-range-error .ph {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 22px;
  color: #b56a00;
}
.application-page .application-record-date-range-error__text {
  flex: 1 1 auto;
  min-width: 0;
}

/* ----- Autofill banner ----- */
.application-autofill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
  background: var(--color-neutral-50);
  flex-wrap: wrap;
}

.application-autofill__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.application-autofill__btn .ph {
  font-size: 22px;
}

.application-autofill__alt {
  margin: 0;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.032px;
  color: var(--color-black);
}

.application-autofill__alt a {
  color: inherit;
  text-decoration: underline;
}

/* ----- Form sections ----- */
.application-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Address cluster (country + street/postcode): tighter than the default
 * section stack so consecutive lines do not read as sparse (Figma 1192:3233
 * uses 16px inside grouped address blocks). */
#addressInputPanel.application-section {
  gap: 16px;
}

.application-section__heading-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.application-section__heading {
  margin: 0;
  font-family: var(--font-dm);
  font-size: 24px;
  font-weight: 700;
  line-height: 29px;
  color: var(--color-black);
}

.application-section__info {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: help;
  color: var(--color-neutral-700);
}

.application-section__info .ph {
  font-size: 20px;
}

.application-section__intro {
  margin: 0;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.032px;
  color: var(--color-black);
}

#deferRubric.application-section__intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 6px;
  background: var(--color-neutral-25);
  font-size: 15px;
  line-height: 24px;
  color: var(--color-neutral-900);
}

#deferRubric .fa,
#deferRubric .ph {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
  color: var(--color-black);
}

/* ----- "We received your video" confirmation -----
 * Rendered when the iframe modal calls window.jamVideoRecorded() after a
 * successful upload. Styled as a soft green notice to celebrate the win. */
#recordthanks.application-section__intro {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 6px;
  background: #e8f5ee;
  border: 1px solid #b7dec5;
  color: #14532d;
  font-size: 15px;
  line-height: 22px;
}

#recordthanks .ph,
#recordthanks .ph-fill {
  flex-shrink: 0;
  font-size: 20px;
  color: #14532d;
  line-height: 1;
}

/* ----- Previous-video notice -----
 * Rendered into #aCompleteVideo by ajax/panelLoad.ajax.php when the
 * applicant has already answered the same video questions in an earlier
 * application (VideoApplicants::findRelatedAnswerGroup). Replaces the
 * legacy <p class="success"> block with a soft green callout, an inline
 * "Use my previous video" checkbox, and an outlined "Review earlier
 * video" button styled like .btn-application-add. */
.application-prev-video {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 12px;
  padding: 16px 18px;
  background: #e8f5ee;
  border: 1px solid #b7dec5;
  border-radius: 10px;
}

.application-prev-video__text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-family: var(--font-dm);
  font-size: 16px;
  line-height: 1.4;
  color: #14532d;
}

.application-prev-video__text .ph,
.application-prev-video__text .ph-fill {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  color: #14532d;
}

.application-prev-video__controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.application-prev-video__controls .application-checkbox-row {
  height: auto;
}

.application-prev-video__btn {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  background: var(--color-white, #ffffff);
}

.application-prev-video__btn .ph {
  font-size: 20px;
}

/* ----- Inputs ----- */
.application-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.application-input__label {
  margin-top: 0;
  margin-bottom: 0;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.032px;
  color: var(--color-black);
}

.application-input__field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  /* Vertical centering via line-height (works for both native <select>
     and <input>). Earlier `padding: 14px 16px` + `line-height: 26px`
     summed to 54px inside a 46px box, biasing DM Sans's line-box low.
     `line-height: 44px` (= height - 2px border) fills the available
     space so the text glyph sits visually centred. */
  padding: 0 16px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 6px;
  background: var(--color-white);
  width: 100%;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 44px;
  letter-spacing: 0.032px;
  color: var(--color-black);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.application-input__field::placeholder {
  color: var(--color-neutral-400);
}

.application-input__field:focus {
  border-color: var(--color-neutral-400);
}

/* Browser autofill (Chrome / Edge / Safari): neutralise the yellow/blue
   wash so the field keeps its normal white background and black text.
   The huge inset box-shadow trick is the only way to override
   -webkit-autofill's UA-applied background-color. The 5000s transition
   delays the auto-applied colour change so it never visibly fires. */
.application-input__field:-webkit-autofill,
.application-input__field:-webkit-autofill:hover,
.application-input__field:-webkit-autofill:focus,
.application-input__field:-webkit-autofill:active,
.application-input__phone-num:-webkit-autofill,
.application-input__phone-num:-webkit-autofill:hover,
.application-input__phone-num:-webkit-autofill:focus,
.application-input__phone-num:-webkit-autofill:active {
  -webkit-text-fill-color: var(--color-black);
  -webkit-box-shadow: 0 0 0 1000px var(--color-white) inset;
  box-shadow: 0 0 0 1000px var(--color-white) inset;
  caret-color: var(--color-black);
  transition: background-color 5000s ease-in-out 0s;
}

textarea.application-input__field {
  height: 114px;
  padding: 16px;
  align-items: flex-start;
  line-height: 26px;
  resize: vertical;
}

.application-input__select,
.modern-native-select-shell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.application-input__select select,
.modern-native-select-shell select {
  /* drawSelect() emits raw <select class="application"> with no field styling.
     Mirror .application-input__field so wrapped selects render with the same
     border, height, padding and typography as text inputs. */
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  height: auto;
  padding: 10px 44px 10px 16px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 6px;
  background: var(--color-white);
  background-image: none;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0.032px;
  color: var(--color-black);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}
.application-input__select select:focus,
.modern-native-select-shell select:focus {
  border-color: var(--color-neutral-400);
}

.application-input__select::after,
.modern-native-select-shell::after {
  /* Phosphor 2.1.1 caret-down codepoint. Earlier Pass-A revisions used
     "\f0d7" which is FontAwesome's caret-down — wrong codepoint for the
     loaded font, which rendered as a broken-glyph "tofu" character on
     every <select> on the page. */
  content: "\e136";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translate3d(0, -50%, 0) rotate(0deg);
  transform-origin: 50% 50%;
  transition: var(--modern-caret-rotate-transition);
  backface-visibility: hidden;
  font-family: "Phosphor";
  font-size: 24px;
  color: var(--color-black);
  pointer-events: none;
}

.application-input__select:has(select.modern-native-select--open)::after,
.modern-native-select-shell:has(select.modern-native-select--open)::after {
  transform: translate3d(0, -50%, 0) rotate(180deg);
}

.application-input__help {
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 400;
  line-height: 21px;
  color: var(--color-neutral-400);
}

/* Mailcheck leaves #suggestion empty until it fires; as a flex item between
 * the input and .application-input__help it still receives gap on both sides,
 * which reads as double spacing vs Figma Input (gap 10px label-field-help). */
.application-input #suggestion:empty {
  display: none;
}

/* Vertical rhythm: address lines stack in #addressForm (Figma grouped
 * address uses 16px vertical gap). Phone columns 1192:3118: 6px label to
 * control, 6px control to help (matches .application-input column gap). */
#addressForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* getAddressForm.ajax.php groups street lines in #streets; without this the
 * two streets sit in one flex slot and lose the 16px rhythm between rows. */
#addressForm #streets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.application-input:has(.application-input__phone) {
  gap: 0;
}

.application-input:has(.application-input__phone) > .application-input__label {
  line-height: normal;
  margin: 0 0 6px;
}

.application-input:has(.application-input__phone) > .application-input__phone {
  margin: 0;
}

.application-input:has(.application-input__phone) > .application-input__help {
  margin: 6px 0 0;
}

.application-input:has(.application-input__phone) > .phoneAdvisory {
  margin: 6px 0 0;
}

/* Side-by-side input row (e.g. First / Last name; Mobile + Alt mobile) */
.application-input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.application-input-row--three {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

/* From-To with month/year (4 selects: Mo / Yr / Mo / Yr) */
.application-input-row--dates {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

/* Phone field: +61 prefix dropdown joined to number input */
.application-input__phone {
  display: flex;
  align-items: stretch;
}

.application-input__phone-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 14px 16px;
  border: 1px solid var(--color-neutral-200);
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: var(--color-neutral-50);
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  color: var(--color-neutral-400);
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  cursor: pointer;
}

.application-input__phone-prefix .ph {
  font-size: 18px;
  color: var(--color-black);
}

/* Dial-code <select> (countryMobile / country): caret on the wrapper; the
 * select stretches full width so clicks on the caret hit the control
 * (::after uses pointer-events: none). */
.application-input__phone-prefix:has(> select) {
  position: relative;
  padding: 0 0 0 12px;
  max-width: 9rem;
}

.application-input__phone-prefix:has(> select)::after {
  content: "\e136";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Phosphor", system-ui, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  color: var(--color-black);
  pointer-events: none;
}

.application-input__phone-prefix:has(> select) select {
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0 26px 0 0;
}

.application-input__phone-num {
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  padding: 14px 16px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 0 6px 6px 0;
  background: var(--color-white);
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.032px;
  color: var(--color-black);
  outline: none;
}

/* ----- Inline checkbox row (DM Sans 16/26, 16px tile) ----- */
.application-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 28px;
}

.application-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--color-neutral-300);
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-white);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.application-checkbox-row input[type="checkbox"]:checked {
  /* Figma node 1071:5066 / 1073:8054 design feedback: active selection
     colour is pure black across all modern pages — not the dark-grey
     --color-neutral-700 we used in the original cut. */
  background: var(--color-black);
  border-color: var(--color-black);
}

.application-checkbox-row input[type="checkbox"]:checked::after {
  /* Phosphor 2.1.1 check codepoint. */
  content: "\e182";
  font-family: "Phosphor";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-white);
  line-height: 1;
}

.application-checkbox-row label {
  margin: 0;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.032px;
  color: var(--color-black);
  cursor: pointer;
}

/* ----- Resume / Cover Letter source-mode tabs (Figma 1075:8299) -----
 * Wraps drawRadioButtons('resumeSelect' / 'coverLetterSelect', ..., 'fancyButton')
 * and re-skins the legacy radiobuttonWrapper + label.fancyButton output as the
 * pill-style toggle buttons in the Application-Process Figma. The radio inputs
 * remain the source of truth for the selected mode (switchResumePanels /
 * switchCLPanels JS still drive the panel show/hide). */
.application-resume__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.application-resume__tabs .radiobuttonWrapper {
  display: inline-flex;
  margin: 0;
  padding: 0;
  background: transparent;
}

.application-resume__tabs input[type="radio"].fancyButton {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.application-resume__tabs label.fancyButton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin: 0;
  background: var(--color-neutral-25);
  color: var(--color-black);
  border: none;
  border-radius: 8px;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.application-resume__tabs .application-resume__tab-icon {
  font-size: 24px;
  line-height: 1;
}

.application-resume__tabs label.fancyButton:hover {
  background: var(--color-neutral-200);
}

.application-resume__tabs input[type="radio"].fancyButton:checked + label.fancyButton {
  background: var(--color-black);
  color: var(--color-white);
}

.application-resume__tabs input[type="radio"].fancyButton:checked + label.fancyButton:hover {
  background: var(--color-neutral-900);
}

.application-resume__tabs input[type="radio"].fancyButton:focus-visible + label.fancyButton {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .application-resume__tabs label.fancyButton {
    padding: 8px 12px;
    font-size: 15px;
  }
}

/* ----- Resume drop zone ----- */
.application-resume {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.application-resume__drop {
  width: 100%;
}

/* The jquery.uploadfile plugin replaces the contents of #uploaderResume /
 * #uploaderCL with its own form + dragdrop container.  Styled to match the
 * dashed-black drop zone in Figma node 1075:8299 (Application-Process). */
.application-resume__dragdrop {
  border: 2px dashed var(--color-black);
  border-radius: 12px;
  background: var(--color-white);
  padding: 32px 24px;
  width: 100% !important;
  min-height: 192px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  text-align: center;
  color: var(--color-black);
}

.application-resume__dragdrop br {
  display: none;
}

.application-resume__dragdrop-icon {
  font-size: 32px;
  color: var(--color-black);
  line-height: 1;
}

.application-resume__drop .ajax-file-upload {
  background: transparent !important;
  color: var(--color-black) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
  cursor: pointer;
  height: auto !important;
  min-height: 0 !important;
  text-shadow: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.application-resume__drop .ajax-file-upload .application-resume__dragdrop-icon {
  font-size: 32px;
  line-height: 1;
  color: var(--color-black);
  flex: 0 0 auto;
}

.application-resume__drop .ajax-file-upload .application-resume__drop-text {
  display: inline;
  white-space: normal;
}

.application-resume__drop .ajax-file-upload .application-resume__drop-action {
  font-weight: 700;
  text-decoration: underline;
}

.application-resume__drop .ajax-file-upload .application-resume__drop-extra {
  font-weight: 400;
}

.application-resume__drop .ajax-file-upload:hover {
  background: transparent !important;
  border: none !important;
  color: var(--color-black) !important;
}

.application-resume__drop #dd_advisory {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-black);
  margin-left: 4px;
}

.application-resume__help {
  margin: 0;
  font-family: var(--font-dm);
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.028px;
  color: var(--color-neutral-400);
}

.application-resume__help small {
  font-size: 12px;
}

@media (max-width: 575px) {
  .application-resume__dragdrop {
    padding: 24px 16px;
    min-height: 140px;
  }
}

/* Resume / cover letter validation — section scroll target + mode-specific
 * panels (upload drop zone, link field, TinyMCE copy/paste). Mirrors the
 * red border + glow used on .application-input__field.error. */
.application-page .application-section.application-section--resume-error .application-section__heading,
.application-page .application-section.application-section--resume-error #jam-resume-heading {
  color: #dc3545;
}

.application-page .application-section.application-section--resume-error > .application-section__intro,
.application-page .application-section.application-section--resume-error #attachresumepanel > .application-section__intro {
  color: #dc3545;
}

.application-page .application-resume-panel--error .application-input__field,
.application-page .application-resume-panel--error .tox-tinymce {
  border: 1px solid #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

.application-page .application-resume__drop--error .application-resume__dragdrop,
.application-page .application-resume__drop--error .ajax-file-upload {
  border: 1px solid #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

.application-page .application-resume__drop--error .application-resume__help {
  color: #dc3545;
}

/* =============================================================
 * Selected-file pill — Figma node 1139:1739 (Application-Process).
 *
 * After the user picks a Resume / Cover Letter file (autoSubmit is
 * off, so onSelect stages the file but doesn't actually upload it),
 * jquery.uploadfile injects a <div class="ajax-file-upload-container">
 * sibling AFTER #uploaderResume / #uploaderCL containing a status
 * bar with the filename, a hidden progress bar, and a "Remove" /
 * "Cancel" action div with the legacy yellow .ajax-file-upload-red
 * styling baked in by css/uploadfile.css.
 *
 * On modern pages we don't load css/uploadfile.css — so the legacy
 * yellow pill leaks through inline styles + plugin defaults, and
 * sits BELOW the dashed dragdrop area instead of replacing it.
 *
 * Re-skin to match Figma: a single #F7F7F5 16px-padded 12px-radius
 * pill containing "<filename> (size)" on the left and "Remove ×"
 * on the right, with the dashed dragdrop area collapsed (via
 * :has()) for as long as a file is staged. Removing the file
 * (Remove click → plugin removes the statusbar) restores the
 * dropzone automatically — no JS changes required.
 *
 * Scoped tightly to #resumeUploadInput / #clUploadInput so the
 * Affinda parse-modal uploader (#uploaderResumeParse) is unaffected.
 * ============================================================= */
#resumeUploadInput #uploaderResume:has(+ .ajax-file-upload-container .ajax-file-upload-statusbar),
#clUploadInput #uploaderCL:has(+ .ajax-file-upload-container .ajax-file-upload-statusbar) {
  display: none;
}

#resumeUploadInput .ajax-file-upload-container,
#clUploadInput .ajax-file-upload-container {
  margin: 0 0 8px;
}

#resumeUploadInput .ajax-file-upload-container .ajax-file-upload-statusbar,
#clUploadInput .ajax-file-upload-container .ajax-file-upload-statusbar {
  background: var(--color-neutral-25);
  border-radius: 12px;
  padding: 16px;
  margin: 0;
  width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-dm);
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.032px;
  color: var(--color-black);
}

#resumeUploadInput .ajax-file-upload-container .ajax-file-upload-filename,
#clUploadInput .ajax-file-upload-container .ajax-file-upload-filename {
  float: none;
  height: auto;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.032px;
  color: var(--color-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action buttons (cancel / delete / abort all share .ajax-file-upload-red
 * via the plugin defaults; done shares .ajax-file-upload-green).
 * Re-skin them as a plain "Remove ×" text affordance — no yellow pill,
 * no text-shadow, no rounded corners. The unicode "×" is added via
 * ::after so we don't depend on FontAwesome / Phosphor inside markup we
 * don't control. */
#resumeUploadInput .ajax-file-upload-container .ajax-file-upload-red,
#resumeUploadInput .ajax-file-upload-container .ajax-file-upload-green,
#clUploadInput .ajax-file-upload-container .ajax-file-upload-red,
#clUploadInput .ajax-file-upload-container .ajax-file-upload-green {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: var(--font-dm) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  letter-spacing: 0.032px !important;
  color: var(--color-black) !important;
  text-shadow: none !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 0 0 auto;
}

#resumeUploadInput .ajax-file-upload-container .ajax-file-upload-cancel::after,
#resumeUploadInput .ajax-file-upload-container .ajax-file-upload-red::after,
#clUploadInput .ajax-file-upload-container .ajax-file-upload-cancel::after,
#clUploadInput .ajax-file-upload-container .ajax-file-upload-red::after {
  content: "\00d7";
  font-family: var(--font-dm), sans-serif;
  font-size: 22px;
  line-height: 1;
  color: var(--color-black);
  display: inline-block;
}

#resumeUploadInput .ajax-file-upload-container .ajax-file-upload-red:hover,
#clUploadInput .ajax-file-upload-container .ajax-file-upload-red:hover {
  color: var(--color-neutral-900) !important;
  opacity: 0.75;
}

/* Inline progress bar — only shows while uploadObj.startUpload() is
 * actively transferring (Form.safeSubmit then navigates). Restyle so it
 * doesn't break the pill layout: full-width thin bar below the filename
 * row. The plugin keeps it display:none until upload starts and re-hides
 * it on success/cancel, so it doesn't show in the static "selected" view. */
#resumeUploadInput .ajax-file-upload-container .ajax-file-upload-progress,
#clUploadInput .ajax-file-upload-container .ajax-file-upload-progress {
  flex: 1 1 100%;
  width: 100% !important;
  margin: 6px 0 0;
  padding: 0;
  border: 1px solid var(--color-neutral-200);
  border-radius: 999px;
  background: var(--color-white);
  overflow: hidden;
  height: 6px;
  position: relative;
}

#resumeUploadInput .ajax-file-upload-container .ajax-file-upload-bar,
#clUploadInput .ajax-file-upload-container .ajax-file-upload-bar {
  background: var(--color-black);
  height: 100% !important;
  border-radius: 999px;
  color: transparent;
  font-size: 0;
  text-align: left;
}

/* Plugin-emitted error banner ("file type not allowed", upload error,
 * etc.) — the legacy default is bright orange Source Sans Pro 16px.
 * Restyle to a subtle inline error message so it sits naturally
 * underneath the pill without competing with the modal alerts. */
#resumeUploadInput .ajax-file-upload-error,
#clUploadInput .ajax-file-upload-error {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fdecea;
  border: 1px solid rgba(193, 39, 45, 0.28);
  font-family: var(--font-dm);
  font-size: 14px;
  line-height: 22px;
  color: #c1272d;
}

@media (max-width: 575px) {
  #resumeUploadInput .ajax-file-upload-container .ajax-file-upload-statusbar,
  #clUploadInput .ajax-file-upload-container .ajax-file-upload-statusbar {
    padding: 14px;
  }
  #resumeUploadInput .ajax-file-upload-container .ajax-file-upload-filename,
  #clUploadInput .ajax-file-upload-container .ajax-file-upload-filename {
    flex: 1 1 100%;
    white-space: normal;
    word-break: break-word;
  }
}

/* TinyMCE "Copy & paste" panels — give the editor a taller starting height
 * than the legacy 6-row textarea defaults to. autoresize is enabled in
 * js/jobApplication.js → initTiny(), so the editor still grows with content
 * but won't shrink below this min-height. */
#typeresumepanel .tox-tinymce,
#typeCLpanel .tox-tinymce {
  min-height: 360px;
}

#typeresumepanel .tox-edit-area,
#typeresumepanel .tox-edit-area iframe,
#typeCLpanel .tox-edit-area,
#typeCLpanel .tox-edit-area iframe {
  min-height: 240px !important;
}

/* ----- Add another (job/education) outlined button ----- */
.btn-application-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  width: 261px;
  max-width: 100%;
  padding: 12px 24px;
  border: 1px solid var(--color-black);
  border-radius: 6px;
  background: var(--color-white);
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-black);
  cursor: pointer;
  text-decoration: none;
}

.btn-application-add .ph {
  font-size: 24px;
}

.btn-application-add:hover {
  background: var(--color-neutral-25);
}

/* ----- Repeating record cards (work history / education history) -----
 * These cards are populated by ajax/panelLoadModern.ajax.php into
 * #trackrecord_N / #educationrecord_N. They sit OUTSIDE
 * .application-section's flex layout, so the inner inputs would
 * otherwise have no row spacing — give the card and its parent panel
 * their own gap.
 *
 * After Application.nextTrackRecord (corePlus.lib.js) runs, every
 * filled card gets the legacy `frame` class added — we use that as the
 * canonical "this card is filled, give it the panel chrome" hook.
 * .application-record-card is also targeted so the multi-application
 * replay markup emitted by panelLoadModern.ajax.php picks it up
 * before nextTrackRecord runs. */
#trackrecord,
#educationrecord {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.application-record-card,
.trackRecord.frame,
.educationRecord.frame {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border: none;
  border-radius: 16px;
  background: var(--color-neutral-25);
  box-shadow: none;
}

/* Empty next-row placeholder (.trackRecord without .frame, .educationRecord
 * without .frame) — must NOT show a border, otherwise an empty bordered
 * panel sits at the bottom of every list. */
.trackRecord:not(.frame),
.educationRecord:not(.frame) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 575px) {
  .application-record-card,
  .trackRecord.frame,
  .educationRecord.frame {
    padding: 16px;
    border-radius: 10px;
  }
}

/* Work / education record card header (Figma Application-Process 1184:3332) */
.application-record-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.application-record-card__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-dm);
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0.04px;
  color: var(--color-black);
}

.application-record-card__title-meta {
  font-weight: 700;
}

.application-record-card__header-actions {
  flex-shrink: 0;
}

.application-record-card__remove {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.032px;
  color: var(--color-black);
  cursor: pointer;
  text-decoration: none;
}

.application-record-card__remove:hover {
  text-decoration: underline;
}

.application-record-card__remove .ph {
  font-size: 24px;
  line-height: 1;
}

.application-checkbox-row--multiline {
  display: flex;
  width: 100%;
  height: auto;
  align-items: flex-start;
}

.application-checkbox-row--multiline input[type="checkbox"] {
  margin-top: 5px;
}

/* "How did you hear about us?" modern modal styles now live in
 * modern/styles.css (shared with homeModern + jobDetailsModern). */

/* Bridge for legacy hide hook used by js/jobApplication.js
 * (Core.addClass/removeClass(elem, 'noShow') on #submitting,
 * #applyButton, etc.). The legacy css/microsite.css that defines
 * this rule isn't loaded on the modern page, so without this bridge
 * the "Uploading… Please wait" spinner is visible at idle. */
.noShow {
  display: none !important;
}

/* ----- Submit / nav row ----- */
.application-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 16px;
}

/* "Uploading… Please wait" indicator shown by legacy validate() once the
 * Submit button is clicked (Core.removeClass('#submitting','noShow') +
 * Core.addClass('#applySubmit','invisible')). The original markup used
 * a FontAwesome cog spinner, but FA isn't loaded on the modern page —
 * we use Phosphor's circle-notch with our own keyframe. */
.application-submitting {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--color-neutral-25);
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-black);
}

.application-submitting__spinner {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  color: var(--color-black);
  animation: modern-application-spin 0.9s linear infinite;
  transform-origin: 50% 50%;
}

.application-submitting__label {
  white-space: nowrap;
}

@keyframes modern-application-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .application-submitting__spinner {
    animation-duration: 3s;
  }
}

.application-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn-application-next,
.btn-application-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-application-next {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-application-next:hover {
  background: var(--color-neutral-900);
  color: var(--color-white);
}

.btn-application-next:disabled,
.btn-application-next[disabled] {
  background: var(--color-neutral-200);
  color: var(--color-neutral-400);
  cursor: not-allowed;
}

.btn-application-next:disabled:hover,
.btn-application-next[disabled]:hover {
  background: var(--color-neutral-200);
  color: var(--color-neutral-400);
}

.btn-application-back {
  background: var(--color-neutral-100);
  color: var(--color-black);
}

.btn-application-back:hover {
  background: var(--color-neutral-200);
}

.btn-application-next .ph,
.btn-application-back .ph {
  font-size: 22px;
}

/* Mobile: primary bottom actions full width (Questionnaire, Submit application) */
@media (max-width: 991.98px) {
  .application-page .application-submit-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }

  .application-page .application-submit-row .btn-application-next {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    align-self: stretch;
    box-sizing: border-box;
  }

  .application-page .application-nav-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .application-page .application-nav-row .btn-application-back {
    align-self: flex-start;
  }

  .application-page .application-nav-row #applySubmit {
    width: 100%;
    display: block;
  }

  .application-page .application-nav-row #applySubmit .btn-application-next {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* ----- PHP-bridge tweaks (Pass B) -----
 * Keep the legacy drawSelect-rendered country pickers and the drawRadioButtons
 * outputs sitting reasonably inside the modern phone prefix / radio rows.
 */
.application-input__phone-prefix select {
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0 8px 0 0;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  max-width: 64px;
}

.application-input .fancyButton,
.application-section .fancyButton {
  margin-right: 8px;
  margin-bottom: 8px;
}

.application-page input.ingo {
  display: none;
  font-size: 12px;
  color: #fff;
}

/* ----- Sidebar (right column) ----- */
.application-sidebar {
  position: sticky;
  top: 16px;
  width: 100%;
  max-width: var(--application-sidebar-width);
}

.application-sidebar__heading {
  margin: 0 0 24px;
  font-family: var(--font-dm);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-black);
}

/* Apply-now CTA rendered immediately under the sidebar heading by
   inc/modernApplicantJobDetailsSidebar.inc.php. Mirrors the .btn-apply pill
   from modern/jobDetailsModern.css but stretches to the sidebar column width. */
.application-sidebar__apply {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 24px;
  padding: 14px 20px;
  border: none;
  border-radius: 6px;
  background: var(--color-black);
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  color: var(--color-white);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.application-sidebar__apply:hover,
.application-sidebar__apply:focus {
  opacity: 0.92;
  color: var(--color-white);
  text-decoration: none;
}

.application-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.application-sidebar__list > li {
  border-bottom: 1px solid var(--color-neutral-200);
}

.application-sidebar__list > li:last-child {
  border-bottom: none;
}

.application-sidebar__row,
.application-sidebar__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.032px;
  color: var(--color-black);
}

.application-sidebar__item {
  text-decoration: none;
}

.application-sidebar__item:hover {
  text-decoration: underline;
  color: var(--color-black);
}

.application-sidebar__row .ph,
.application-sidebar__item .ph {
  flex-shrink: 0;
  font-size: 28px;
  color: var(--color-black);
}

/* ----- Questionnaire screen ----- */
.questionnaire-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.questionnaire-intro__heading-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.questionnaire-intro__heading {
  margin: 0;
  font-family: var(--font-dm);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-black);
}

.questionnaire-intro__sub {
  margin: 0;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.032px;
  color: var(--color-black);
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.questionnaire-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: var(--application-content-main);
  padding-left: 0;
  list-style: none;
}

.questionnaire-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 24px;
  border-radius: 6px;
  background: var(--color-neutral-25);
  flex-wrap: wrap;
}

.questionnaire-card__body {
  flex: 1 1 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.questionnaire-card__question {
  margin: 0;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--color-black);
}

.questionnaire-card__question--strong {
  font-weight: 800;
}

.questionnaire-card__sub {
  margin: 0;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.032px;
  color: var(--color-black);
}

.questionnaire-card__sub ul {
  margin: 0;
  padding-left: 24px;
}

.questionnaire-card__sub p + p,
.questionnaire-card__sub p + ul,
.questionnaire-card__sub ul + p {
  margin-top: 12px;
}

.questionnaire-card__answers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.questionnaire-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: var(--color-white);
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-black);
  cursor: pointer;
}

.questionnaire-pill[aria-pressed="true"],
.questionnaire-pill.is-selected {
  background: var(--color-black);
  color: var(--color-white);
}

.questionnaire-pill:hover:not([aria-pressed="true"]):not(.is-selected) {
  background: var(--color-neutral-100, #e6e6e4);
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
  :root {
    --application-display-size: 36px;
  }

  .application-sidebar {
    position: static;
    margin-top: 48px;
    max-width: 100%;
  }

  .application-main {
    max-width: 100%;
  }

  .questionnaire-list {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .application-input-row,
  .application-input-row--three,
  .application-input-row--dates {
    grid-template-columns: 1fr;
  }

  /* checklistFeedbackSurveyModern: stack step columns on narrow screens. */
  body.checklist-feedback-page .application-stepper {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  body.checklist-feedback-page .application-stepper__step {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .application-autofill {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .application-autofill__alt {
    text-align: center;
  }

  .questionnaire-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .questionnaire-card__answers {
    display: flex;
    width: 100%;
    align-items: stretch;
    justify-content: stretch;
    gap: 10px;
  }

  /* Equal half-width tap targets; row spans full card width on narrow viewports. */
  .questionnaire-card__answers .questionnaire-pill {
    flex: 1 1 0;
    min-width: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 575px) {
  .application-intro__title {
    font-size: 32px;
  }

  /* Keep Back to jobs + Share this job on one row (same as wider viewports). */
  .application-toprow {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .application-toprow__link {
    flex: 0 1 auto;
    min-width: 0;
  }

  .application-toprow__link span {
    white-space: nowrap;
  }
}

/* =============================================================
 * Autofill / resume-parse modal (Application-Process Figma 1192:3611)
 * Scoped via .application-autofill-modal only.
 * ============================================================= */
.application-autofill-modal .modal-dialog {
  max-width: 736px;
}

.application-autofill-modal__content {
  position: relative;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.16);
  background: var(--color-white);
  font-family: var(--font-dm);
  padding: 0;
  overflow: hidden;
}

.application-autofill-modal__header {
  display: block;
  padding: 0;
  border-bottom: 1px solid #d9d9d7;
}

.application-autofill-modal__header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.application-autofill-modal__title {
  margin: 0;
  font-family: var(--font-dm);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-black);
  flex: 1;
  min-width: 0;
}

.application-autofill-modal__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.application-autofill-modal__close:hover {
  background: var(--color-neutral-50, #f5f5f5);
}

.application-autofill-modal__close .ph {
  font-size: 22px;
  line-height: 1;
}

.application-autofill-modal__body {
  padding: 24px;
}

.application-autofill-modal__view--upload {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.application-autofill-modal__lead {
  margin: 0;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.02em;
  color: var(--color-black);
}

.application-autofill-modal__upload-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.application-autofill-modal__body #uploadresumepanel {
  margin: 0;
}

.application-autofill-modal__body #uploadresumepanel > p.input {
  margin: 0;
  padding: 0;
}

.application-autofill-modal__body .ajax-upload-dragdrop {
  border: 2px dashed #d9d9d7;
  border-radius: 12px;
  background: var(--color-white);
  padding: 24px 16px;
  width: 100% !important;
  min-height: 192px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
  color: var(--color-black);
}

.application-autofill-modal__body .ajax-upload-dragdrop br {
  display: none;
}

.application-autofill-modal__upload-icon {
  font-size: 32px;
  color: var(--color-black);
  line-height: 1;
}

.application-autofill-modal__body .ajax-file-upload {
  background: transparent !important;
  color: var(--color-black) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  line-height: 28px !important;
  cursor: pointer;
  height: auto !important;
  min-height: 0 !important;
  text-shadow: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.application-autofill-modal__body .ajax-file-upload .application-autofill-modal__upload-icon {
  font-size: 32px;
  line-height: 1;
  color: var(--color-black);
  flex: 0 0 auto;
}

.application-autofill-modal__body .ajax-file-upload .application-autofill-modal__upload-text {
  display: inline;
  white-space: normal;
}

.application-autofill-modal__body .ajax-file-upload .application-autofill-modal__upload-action {
  font-weight: 700;
  font-size: 17px;
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

.application-autofill-modal__body .ajax-file-upload .application-autofill-modal__upload-extra {
  font-weight: 400;
  font-size: 16px;
}

.application-autofill-modal__body .ajax-file-upload:hover {
  background: transparent !important;
  border: none !important;
  color: var(--color-black) !important;
}

.application-autofill-modal__body #dd_advisory {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-black);
  margin-left: 4px;
}

.application-autofill-modal__file-types {
  margin: 0;
  color: #999997;
  letter-spacing: 0.02em;
}

.application-autofill-modal__file-meta {
  font-family: var(--font-dm);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.application-autofill-modal__file-formats {
  font-family: var(--font-dm);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.application-autofill-modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #d9d9d7;
  padding: 16px 24px;
  background: var(--color-white);
}

.application-autofill-modal__footer-start {
  display: flex;
  align-items: center;
  gap: 8px;
}

.application-autofill-modal__other-ways,
.application-autofill-modal__back {
  background: #e6e6e4;
  border: none;
  border-radius: 6px;
  padding: 16px 24px;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  color: var(--color-black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.application-autofill-modal__other-ways:hover,
.application-autofill-modal__back:hover {
  background: #dcdcd9;
}

.application-autofill-modal__back i {
  font-size: 18px;
}

.application-autofill-modal__other-ways[hidden],
.application-autofill-modal__back[hidden],
.application-autofill-modal__view[hidden] {
  display: none !important;
}

.application-autofill-modal__view--alt {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.application-autofill-modal__alt-heading {
  font-family: var(--font-dm);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-black);
  margin: 0;
}

.application-autofill-modal__alt-sub {
  font-family: var(--font-dm);
  font-size: 16px;
  color: var(--color-neutral-600, #525252);
  margin: 0 0 12px;
}

.application-autofill-modal__alt-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.application-autofill-modal__type-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: 8px;
  padding: 18px 24px;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.application-autofill-modal__type-in:hover {
  background: var(--color-neutral-800, #262626);
  border-color: var(--color-neutral-800, #262626);
}

.application-autofill-modal__type-in-icon {
  font-size: 18px;
}

.application-autofill-modal__seek-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.application-autofill-modal__seek-label {
  font-family: var(--font-dm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-neutral-600, #525252);
}

.application-autofill-modal__seek-slot #buttonSeek {
  display: inline-block;
  line-height: 0;
}

.application-autofill-modal__seek-slot #buttonSeek img {
  display: block;
  max-height: 44px;
  width: auto;
}

.application-autofill-modal__no-thanks {
  background: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: 6px;
  padding: 16px 24px;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-black);
  line-height: 18px;
  cursor: pointer;
}

.application-autofill-modal__no-thanks:hover {
  background: var(--color-neutral-50, #f5f5f5);
}

.application-autofill-modal #prefillResumeError {
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
}

/* Autofill modal footer: keep both actions on one row; equal width columns. */
@media (max-width: 767.98px) {
  .application-autofill-modal__footer {
    padding: 16px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
  }

  .application-autofill-modal__footer-start {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
  }

  .application-autofill-modal__footer-start .application-autofill-modal__other-ways,
  .application-autofill-modal__footer-start .application-autofill-modal__back {
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .application-autofill-modal__no-thanks {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Touch-first: hide drag-and-drop copy (still tappable to pick a file). */
  .application-autofill-modal__body .ajax-file-upload .application-autofill-modal__upload-extra,
  .application-resume__drop .ajax-file-upload .application-resume__drop-extra {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .application-autofill-modal__header-bar {
    padding: 16px;
  }
  .application-autofill-modal__body {
    padding: 16px;
  }
  .application-autofill-modal__alt-heading {
    font-size: 20px;
  }
  .application-autofill-modal__title {
    font-size: 20px;
  }
  .application-autofill-modal__body .ajax-upload-dragdrop {
    padding: 16px;
    min-height: 160px;
  }
}



/* =====================================================================
 * Modern: Gender section (Figma 1071-5062)
 * - vertical radio rows with custom 16px circle icons + info popover.
 * ===================================================================== */
.modern-gender { display: flex; flex-direction: column; gap: 12px; }
.modern-gender__heading { display: flex; align-items: center; gap: 8px; }
.modern-gender__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-black);
  margin: 0;
}
.modern-gender__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-neutral-500, #999997);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.modern-gender__info:hover,
.modern-gender__info:focus { color: var(--color-black); outline: none; }
.modern-gender__rubric {
  margin: 0;
  color: var(--color-black);
}

/* =====================================================================
 * Modern: vertical radio rows (used by Gender, possibly other sections)
 * ===================================================================== */
.modern-radio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}
.modern-radio-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  cursor: pointer;
  width: max-content;
  max-width: 100%;
}
.modern-radio-row__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.modern-radio-row__circle {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 8px 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-neutral-300, #ccccca);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.modern-radio-row__input:checked + .modern-radio-row__circle {
  /* Figma 1071:5066 / 1073:8054 — active radio fill is pure black. */
  background: var(--color-black);
  border: 0;
}
.modern-radio-row__input:checked + .modern-radio-row__circle::after {
  content: "";
  position: absolute;
  top: 5px; left: 5px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
}
.modern-radio-row__input:focus-visible + .modern-radio-row__circle {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25);
}
.modern-radio-row__text {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-black);
  letter-spacing: 0.032px;
}

/* =====================================================================
 * Modern: Languages picker (Figma 1071-5062)
 * Renders as a search input + scrollable list of selectable rows.
 * Hidden checkboxes preserve the legacy lang_<id>=on submit shape.
 * ===================================================================== */
.modern-language-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}
.modern-language-picker__search {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--color-neutral-300, #ccccca);
  border-radius: 6px;
  background: #fff;
  padding: 0 4px 0 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Combobox-style toggle button on the right of the search bar. Gives an
 * explicit "open/close the dropdown" affordance — clicking outside / Escape
 * still work, but mobile users can now close the list with one tap. */
.modern-language-picker__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-neutral-700, #666665);
  cursor: pointer;
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}
.modern-language-picker__toggle:hover,
.modern-language-picker__toggle:focus {
  background: var(--color-neutral-50, #f0efed);
  outline: 0;
}
.modern-language-picker__toggle .ph {
  display: inline-block;
  transition: transform 0.18s ease;
}
.modern-language-picker.is-open .modern-language-picker__toggle .ph {
  transform: rotate(180deg);
}
.modern-language-picker__search:focus-within {
  border-color: var(--color-neutral-700, #666665);
  box-shadow: 0 0 0 3px rgba(102, 102, 101, 0.15);
}
.modern-language-picker__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--color-neutral-500, #999997);
  pointer-events: none;
}
.modern-language-picker__search-input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--color-black);
}
.modern-language-picker__search-input::placeholder {
  color: var(--color-neutral-500, #999997);
}
/* Collapsed by default — opens only when the picker has the .is-open class
 * (added by modern/jobApplicationModern.js on focus / interaction). Keeps
 * the rows in the DOM so their hidden checkboxes still submit lang_<id>=on. */
.modern-language-picker__list {
  display: none;
  flex-direction: column;
  border: 1px solid var(--color-neutral-100, #e6e6e4);
  border-radius: 6px;
  background: #fff;
  max-height: 320px;
  overflow-y: auto;
}
.modern-language-picker.is-open .modern-language-picker__list {
  display: flex;
}
.modern-language-picker__row {
  position: relative; /* contain the visually-hidden checkbox below */
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-neutral-50, #f0efed);
  margin: 0;
  transition: background 0.12s ease;
}
.modern-language-picker__row:last-of-type { border-bottom: 0; }
.modern-language-picker__row:hover { background: var(--color-neutral-25, #f7f7f7); }
/* Visually-hidden but still focusable / submittable.  IMPORTANT: keep `clip`
 * + `clip-path` so the browser's scroll-into-view (triggered by clicking the
 * <label> which focuses the checkbox) has no spatial target — otherwise the
 * page jumps below the footer when an absolutely-positioned hidden input has
 * no top/left and is positioned relative to the initial containing block. */
.modern-language-picker__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
  border: 0;
  padding: 0;
}
.modern-language-picker__label {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-black);
}
.modern-language-picker__check {
  font-size: 18px;
  /* Figma 1071:5066 — checked-row tick uses the pure-black active colour. */
  color: var(--color-black);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.modern-language-picker__input:checked ~ .modern-language-picker__check { opacity: 1; }
.modern-language-picker__row:has(.modern-language-picker__input:checked) {
  background: var(--color-neutral-25, #f7f7f7);
}
.modern-language-picker__empty {
  padding: 24px;
  margin: 0;
  text-align: center;
  color: var(--color-neutral-500, #999997);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
}
.modern-language-picker__row[hidden] { display: none !important; }

/* Selected-language chips. Shown whenever there is at least one selection,
 * regardless of whether the dropdown list is open. Mirrors the .filter-pill
 * pattern from modern/styles.css used on homeModern. */
.modern-language-picker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modern-language-picker__chips[hidden] { display: none; }
.modern-language-picker__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 8px 16px 8px 24px;
  border-radius: 20px;
  background: var(--color-neutral-50, #f0efed);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.032px;
  color: var(--color-black);
}
.modern-language-picker__chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}
.modern-language-picker__chip-remove:hover,
.modern-language-picker__chip-remove:focus {
  background: var(--color-neutral-100, #e6e6e4);
  outline: 0;
}

/* =====================================================================
 * Modern: Referred-by tooltip (Figma 1071-5062)
 * ===================================================================== */
.modern-referredby__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.modern-referredby__heading .application-input__label { margin-bottom: 0; }
.modern-referredby__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-neutral-500, #999997);
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
}
.modern-referredby__info:hover,
.modern-referredby__info:focus { color: var(--color-black); outline: none; }

/* =====================================================================
 * Modern: Apply-with-partner panel (Figma 1071-5062)
 * Markup lives in inc/modernApplicantPartnerApplications.inc.php
 * ===================================================================== */
.modern-partner-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--color-neutral-100, #e6e6e4);
  border-radius: 12px;
  background: #fff;
}
.modern-partner-panel__heading { display: flex; flex-direction: column; gap: 4px; }
.modern-partner-panel__title {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-black);
}
.modern-partner-panel__rubric { margin: 0; color: var(--color-neutral-700, #666665); }
.modern-partner-panel__detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--color-neutral-50, #f0efed);
}
.modern-partner-panel__detail.noShow { display: none !important; }
.modern-partner-panel__detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-black);
}
.modern-partner-panel__detail-title .ph {
  font-size: 22px;
  color: var(--color-neutral-700, #666665);
}
.modern-partner-panel__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modern-partner-panel__steps li {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-black);
}
.modern-partner-panel__step-num { font-weight: 700; margin-right: 4px; }
.modern-partner-panel__hint {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-neutral-500, #999997);
}
.modern-partner-panel__matched p {
  margin: 0 0 4px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-neutral-700, #666665);
}

/* responsive — keep panels readable on narrow viewports */
@media (max-width: 575.98px) {
  .modern-language-picker { max-width: 100%; }
  .modern-partner-panel { padding: 16px; }
  .modern-partner-panel__title { font-size: 18px; }
}
/* =====================================================================
 * Modern: Work-hours availability widget
 * ===================================================================== */
.modern-availability {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.modern-availability__hint {
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--color-neutral-25, #f7f7f7);
  color: var(--color-neutral-700, #666665);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 22px;
}

/* tabs (Weekly / Fortnightly / Monthly) */
.modern-availability__tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--color-neutral-50, #f0efed);
  border-radius: 40px;
  width: 100%;
}
.modern-availability__tab {
  flex: 1 0 0;
  min-width: 0;
  padding: 12px;
  border: 0;
  background: transparent;
  border-radius: 32px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-black);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.modern-availability__tab:hover { background: rgba(0, 0, 0, 0.04); }
.modern-availability__tab.is-active {
  background: var(--color-black);
  color: #fff;
}
.modern-availability__tab.is-active:hover { background: var(--color-black); }
.modern-availability__tab:focus-visible {
  outline: 2px solid var(--color-neutral-700, #666665);
  outline-offset: 2px;
}

/* week wrapper */
.modern-availability__week {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modern-availability__week-heading {
  margin: 0 0 8px 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-black);
}

/* one row per day */
.modern-availability__day-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-neutral-50, #f0efed);
}
.modern-availability__day-row:last-of-type { border-bottom: 0; }

.modern-availability__day-badge {
  display: none;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-black);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.modern-availability__day-name {
  flex: 0 0 152px;
  padding-top: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-black);
}

.modern-availability__ranges {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modern-availability__range {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.modern-availability__range-times {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.modern-availability__time {
  background: var(--color-neutral-25, #f7f7f7);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  height: 44px;
  line-height: 22px;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--color-black);
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
  cursor: pointer;
  min-width: 110px;
  flex-shrink: 0;
  text-align: center;
  box-sizing: border-box;
}
/* Hide the native dropdown arrow on IE/Edge legacy and Firefox */
.modern-availability__time::-ms-expand { display: none; }
.modern-availability__time:focus-visible {
  outline: 0;
  border-color: var(--color-neutral-700, #666665);
  box-shadow: 0 0 0 3px rgba(102, 102, 101, 0.15);
}

/* modernNativeSelect.js wraps these in .modern-native-select-shell (width:100%,
 * overflow-wrap:anywhere on the inner select). Override so both time fields stay
 * one line and the same height. */
.modern-availability .modern-native-select-shell {
  display: inline-block;
  width: auto;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 110px;
}
.modern-availability .modern-native-select-shell select.modern-availability__time {
  width: 100%;
  height: 44px;
  min-height: 44px;
  line-height: 22px;
  white-space: nowrap;
  overflow-wrap: normal;
  padding: 10px 44px 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--color-neutral-25, #f7f7f7);
  background-image: none;
  text-align: center;
  box-sizing: border-box;
}
.modern-availability .modern-native-select-shell select.modern-availability__time:focus-visible {
  outline: 0;
  border-color: var(--color-neutral-700, #666665);
  box-shadow: 0 0 0 3px rgba(102, 102, 101, 0.15);
}

.modern-availability__dash {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: var(--color-black);
  padding: 0 4px;
}

.modern-availability__unavailable {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--color-neutral-25, #f7f7f7);
  color: var(--color-neutral-500, #999997);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-style: italic;
  margin-left: auto;
}

/* per-range action buttons (X / + / copy)
 * Reserve a fixed-width slot (3 × 44px button + 2 × 4px gap = 140px) so that the
 * times / "I'm unavailable" element to the left of this cluster centres at the
 * same horizontal position whether the row has 3 icons (populated day) or only
 * 1 icon (empty day with the lone "+"). Inner contents stay right-aligned. */
.modern-availability__range-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
  min-width: 140px;
}
.modern-availability__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-neutral-700, #666665);
  font-size: 22px;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.modern-availability__icon-btn:hover {
  background: var(--color-neutral-50, #f0efed);
  color: var(--color-black);
}
.modern-availability__icon-btn:focus-visible {
  outline: 2px solid var(--color-neutral-700, #666665);
  outline-offset: 2px;
}

/* "Copy times to" popover */
.modern-availability__copy-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  width: 220px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--color-neutral-100, #e6e6e4);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modern-availability__copy-heading {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--color-neutral-500, #999997);
  text-transform: uppercase;
}
.modern-availability__copy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.modern-availability__copy-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--color-black);
}
.modern-availability__copy-item input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  /* Figma 1071:5066 / 1073:8054 — accent colour for checkboxes is black. */
  accent-color: var(--color-black);
  cursor: pointer;
}
.modern-availability__copy-item-text { line-height: 1.4; }
.modern-availability__copy-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 0;
  border-radius: 32px;
  background: var(--color-black);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.modern-availability__copy-apply:hover { background: var(--color-neutral-900, #333332); }
.modern-availability__copy-apply:focus-visible { outline: 2px solid var(--color-neutral-700, #666665); outline-offset: 2px; }

/* responsive */
@media (max-width: 767.98px) {
  .modern-availability__day-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
  }
  .modern-availability__day-badge {
    display: inline-flex;
    flex-shrink: 0;
  }
  .modern-availability__day-name {
    display: none;
  }
  .modern-availability__ranges {
    flex: 1 1 auto;
    min-width: 0;
  }
  .modern-availability__range {
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
  }
  .modern-availability__range-times {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .modern-availability .modern-native-select-shell {
    flex: 1 1 0;
    min-width: 0;
  }
  .modern-availability .modern-native-select-shell select.modern-availability__time {
    min-width: 0;
    padding: 0 32px 0 8px;
    height: 40px;
    min-height: 40px;
    line-height: 40px;
    font-size: 14px;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .modern-availability__dash {
    flex-shrink: 0;
    font-size: 16px;
    padding: 0 2px;
  }
  .modern-availability__unavailable {
    flex: 1 1 auto;
    margin-left: 0;
    height: 40px;
    font-size: 14px;
    padding: 0 12px;
    font-style: normal;
  }
  .modern-availability__range-actions {
    flex: 0 0 auto;
    min-width: auto;
    gap: 0;
  }
  .modern-availability__icon-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .modern-availability__copy-popover {
    right: 0;
    left: auto;
  }
}
@media (max-width: 575.98px) {
  .modern-availability__tab { font-size: 16px; padding: 10px; }
}
/* =====================================================================
 * Modern: legacy <select> bridge styles
 * drawSelect() / selectDate() / AJAX endpoints emit raw <select> elements
 * with classes like "application" or "dateSelector" and no modern wrapper.
 * Style them inline to match .application-input__field so they look like
 * the rest of the modern form. Caret matches .application-input__select
 * (Phosphor caret-down weight). Until modern/modernNativeSelect.js wraps
 * these in .modern-native-select-shell, a thin-stroke SVG is used as a
 * fallback background (same geometry as the 24px Phosphor glyph).
 * ===================================================================== */
.application-page select.dateSelector,
.application-page #dobpanel select,
.application-page select[name="clarifyPostcode"],
.application-page select[name="clarifySuburb"],
.application-page select[name="state"] {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  height: auto;
  padding: 10px 44px 10px 16px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 6px;
  background-color: var(--color-white);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 10 12 16 18 10'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 24px 24px;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--color-black);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  cursor: pointer;
}

.application-page .modern-native-select-shell > select {
  background-image: none !important;
}
.application-page select.dateSelector:focus,
.application-page #dobpanel select:focus,
.application-page select[name="clarifyPostcode"]:focus,
.application-page select[name="clarifySuburb"]:focus,
.application-page select[name="state"]:focus {
  border-color: var(--color-neutral-400);
}

/* Sensible widths for the three DOB selects */
.application-page select#dob_day,
.application-page select#dob_month {
  min-width: 84px;
}
.application-page select#dob_year {
  min-width: 100px;
}

/* Modern DOB row — equal-width Day / Month / Year selects so they line up
 * like the From/To date selects in the Work history section. selectDate()
 * wraps the three <select> elements in a single <span class="noWrap">; we
 * promote that span to a 3-column grid so each select takes 1fr. The
 * "I prefer not to say" checkbox sits on its own row underneath. */
.application-page #dobpanel .modern-dob-row > span.noWrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 360px;
}
.application-page #dobpanel .modern-dob-row > span.noWrap > select {
  width: 100%;
  min-width: 0;
}
.application-page #dobpanel .application-checkbox-row {
  margin-top: 12px;
}
.application-page #dobpanel #dobmsg:not(:empty) {
  display: block;
  margin-top: 8px;
}

/* "I prefer not to say" UX affordance: when the dobDeclined checkbox is
 * ticked, modern/jobApplicationModern.js sets the three DOB selects to
 * disabled + .is-dob-declined.  Grey them out so the applicant can see
 * at a glance that no day / month / year is expected.  Functional
 * skip-DOB behaviour already lives in js/jobApplication.js (validate())
 * and inc/processApplication.inc.php — this is a visual-only addition. */
.application-page #dobpanel select.is-dob-declined,
.application-page #dobpanel select:disabled {
  background-color: #f1f3f5;
  color: #868e96;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Clarify select (postcode-or-suburb match) grows to fill its row */
.application-page select[name="clarifyPostcode"],
.application-page select[name="clarifySuburb"] {
  width: 100%;
  max-width: 360px;
}

/* The legacy AJAX response uses class="input medium" on the column wrappers;
 * our JS observer re-adds .application-input which restores flex-column
 * layout. Defensive: also force flex-column directly so the column never
 * collapses to inline even if JS hasn't run yet. */
.application-page #postcodediv,
.application-page #suburbdiv {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* =====================================================================
 * Modern: postcode-clarify message panel re-skin.
 * AJAX response from ajax/getSuburb.ajax.php / getPostcode.ajax.php emits
 * <span id="clarifyMsg" class="ourGreenPanel"> ... </span> with FontAwesome
 * icons (FA isn't loaded on modern pages — they render as nothing) and a
 * stray ";" character. We re-skin via class overrides; JS in
 * modern/jobApplicationModern.js cleans the stray text and swaps the
 * Refresh icon to a Phosphor glyph after the AJAX response is injected.
 * ===================================================================== */
.application-page #clarifyMsg,
.application-page #noPostcodeMsg,
.application-page .modern-clarify-msg,
.application-page .application-record-date-range-error {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin: 8px 0 0;
  background: #fff8e6;
  border: 1px solid #f5d99a;
  border-radius: 8px;
  font-family: var(--font-dm);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-black);
  white-space: normal;
}
.application-page #noPostcodeMsg {
  background: #fff0eb;
  border-color: #f5b7a4;
}
/* Hide any FontAwesome icons (FA isn't loaded on modern pages) */
.application-page #clarifyMsg i.fa,
.application-page #noPostcodeMsg i.fa,
.application-page .modern-clarify-msg i.fa {
  display: none !important;
}
/* The legacy "link" span — render as a clean inline text button */
.application-page #clarifyMsg .link,
.application-page #noPostcodeMsg .link,
.application-page .modern-clarify-msg .link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--color-black);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.application-page #clarifyMsg .link:hover,
.application-page #noPostcodeMsg .link:hover,
.application-page .modern-clarify-msg .link:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--color-neutral-200, #d9d9d7);
}
.application-page #clarifyMsg .link u,
.application-page #noPostcodeMsg .link u,
.application-page .modern-clarify-msg .link u {
  text-decoration: none;
}
.application-page #clarifyMsg .link .ph,
.application-page #noPostcodeMsg .link .ph,
.application-page .modern-clarify-msg .link .ph {
  font-size: 16px;
}

/* The wrapper div around the clarify dropdown — give it sensible spacing */
.application-page #suburbdiv > div,
.application-page #postcodediv > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* =====================================================================
 * Modern: prefill / validation field state bridges
 * ---------------------------------------------------------------------
 * Legacy js/jobApplication.js → prefillParsedResume() adds:
 *   - .greenHighlight  → field successfully prefilled by Affinda
 *   - .error           → field couldn't be prefilled, applicant must fill
 * The same .error / .alert classes are also added by Form.validateField()
 * for inline validation errors.  microsite.css (which styles them on the
 * legacy page) is NOT loaded on modern pages — without these bridges,
 * neither prefill state nor validation errors render any visible cue.
 *
 * Warning state (.error / .alert) matches Figma node 1098:2178 in the
 * Application-Process file: full #dc3545 border + 3px rgba(220,53,69,0.2)
 * glow on a white background, with adjacent .application-input__help
 * recoloured to #dc3545 so it reads as the inline error message.
 *
 * Scoped to .application-page so it never bleeds into other modern pages.
 * !important is required to win against the modern .application-input__field
 * border / background base rules.
 * ===================================================================== */
.application-page input.greenHighlight,
.application-page select.greenHighlight,
.application-page textarea.greenHighlight,
.application-page .greenHighlight > input,
.application-page .greenHighlight > select,
.application-page .greenHighlight > textarea {
  border-left: 4px solid #6aa020 !important;
  background-color: rgba(106, 160, 32, 0.06) !important;
}

.application-page input.error,
.application-page select.error,
.application-page textarea.error,
.application-page input.alert,
.application-page select.alert,
.application-page textarea.alert,
.application-page .error > input,
.application-page .error > select,
.application-page .error > textarea,
.application-page .alert > input,
.application-page .alert > select,
.application-page .alert > textarea {
  border: 1px solid #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
  background-color: var(--color-white) !important;
}

/* Inline help text under a field (.application-input__help) acts as the
 * Figma-spec error message slot when the adjacent field is in warning
 * state. Uses :has() so it works for inputs, textareas, and the wrapped-
 * select / phone-number wrappers regardless of nesting depth. Browsers
 * without :has() support fall through to the default neutral colour —
 * the field still shows the red border + glow, so the warning is never
 * silently lost. */
.application-page .application-input:has(.error) .application-input__help,
.application-page .application-input:has(.alert) .application-input__help {
  color: #dc3545;
}

/* Date-of-birth / clarify selects already have custom bridge rules with
 * their own border. Re-assert the left border so prefill state still shows. */
.application-page #dobpanel select.greenHighlight,
.application-page select#dob_day.greenHighlight,
.application-page select#dob_month.greenHighlight,
.application-page select#dob_year.greenHighlight,
.application-page select[name="clarifyPostcode"].greenHighlight,
.application-page select[name="clarifySuburb"].greenHighlight,
.application-page select[name="state"].greenHighlight {
  border-left: 4px solid #6aa020 !important;
  background-color: rgba(106, 160, 32, 0.06) !important;
}

/* Suppress the greenHighlight "success" style on the country dial-code
 * <select> inside the phone-prefix box. The legacy onchange handler in
 * drawSelect ('$("#countryMobile").addClass("greenHighlight")') still fires
 * unmodified, but the green left bar / wash inside the compact prefix
 * field reads as a misleading validation cue rather than the prefill cue
 * it was designed for elsewhere. Both #countryMobile and #country (alt
 * phone) are covered via the wrapper selector so this stays correct if
 * the alt-phone select ever gains the same handler. */
.application-page .application-input__phone-prefix select.greenHighlight {
  border-left: none !important;
  background-color: transparent !important;
}
.application-page #dobpanel.error select,
.application-page #dobpanel select.error,
.application-page select#dob_day.error,
.application-page select#dob_month.error,
.application-page select#dob_year.error,
.application-page select[name="clarifyPostcode"].error,
.application-page select[name="clarifySuburb"].error,
.application-page select[name="state"].error,
.application-page #dobpanel select.alert,
.application-page select#dob_day.alert,
.application-page select#dob_month.alert,
.application-page select#dob_year.alert,
.application-page select[name="clarifyPostcode"].alert,
.application-page select[name="clarifySuburb"].alert,
.application-page select[name="state"].alert {
  border: 1px solid #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
  background-color: var(--color-white) !important;
}

/* Gender panel: validate() adds .error to #genderpanel when no radio is chosen. */
.application-page #genderpanel.error .modern-gender__title {
  color: #dc3545;
}
.application-page #genderpanel.error .modern-radio-row__circle {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* =============================================================
 * Returning-applicant OTP modal ? modern restyle (Phase 2)
 *
 * Renders the gotchaChoice popup served by ajax/panelLoad.ajax.php
 * (when the modern markup branch is active under
 * !empty($_SESSION['modern_look_feel'])) inside the legacy
 * #popupAjaxOverlay container as a centred modal card. Only the
 * visual presentation is overridden; element IDs (#midPass,
 * #midpassmsg, #midpassmsgEnter, #midpassControls, #midpassSendStep, #midpassEnterStep)
 * stay legacy-compatible so the existing AJAX handlers and the
 * downstream gotchaPrivate / gotchaDialogue flow continue to work.
 *
 * Mirrors the modal pattern used by modern/loginModern.css for
 * the 2FA #popupAjaxOverlay restyle.
 * ============================================================= */

/* Backdrop behind the AJAX popup. The legacy renderer creates
   #ajaxPanelUnderlay alongside #popupAjaxOverlay; on legacy the
   underlay is transparent because the popup itself sits over the
   page. For the modern card we want a true dimmed backdrop. */
body.application-page #ajaxPanelUnderlay {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: rgba(0, 0, 0, 0.45);
}

/* Re-frame the AJAX popup container as a modal-style card overlay.
   Matches the loginModern.css restyle for #popupAjaxOverlay (used by
   the 2FA login flow). Applies to any AJAX popup served on the modern
   application pages (gotchaChoice, gotchaPrivate, deferResume) so they
   share a coherent container; per-panel inner styling overrides the
   default look further. */
body.application-page #popupAjaxOverlay {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  z-index: 2000;
  padding: 24px 28px 20px;
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-neutral-200);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  font-family: var(--font-dm);
  font-size: 15px;
  line-height: 22px;
}

/* Hide the legacy mascot image inside the AJAX overlay on modern pages. */
body.application-page #popupAjaxOverlay .helloHead {
  display: none !important;
}

/* Returning-applicant OTP modal: Figma Application-Process 1192:3234 */
body.application-page #popupAjaxOverlay:has(#gotchaChoice.gotchaChoiceBox--modern) {
  width: min(736px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.16);
  border-color: #d9d9d7;
}

/* The OTP card body ? overlay container above already provides
   white background, padding, shadow, radius, font baseline. */
.gotchaChoiceBox--modern {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: transparent;
  color: var(--color-black);
  font-family: var(--font-dm);
  font-size: 16px;
  line-height: 26px;
}

.gotchaChoiceBox--modern__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #d9d9d7;
  flex: 0 0 auto;
}

.gotchaChoiceBox--modern__title {
  margin: 0;
  font-family: var(--font-dm);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-black);
}

.gotchaChoiceBox--modern__close {
  position: static;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gotchaChoiceBox--modern__close:hover {
  background: var(--color-neutral-50);
}

.gotchaChoiceBox--modern__close .ph {
  font-size: 20px;
  line-height: 1;
}

.gotchaChoiceBox--modern__body {
  padding: 24px;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

#midpassSendStep,
#midpassEnterStep {
  display: flex;
  flex-direction: column;
}

.gotchaChoiceBox--modern__subtitle {
  margin: 0 0 24px;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-black);
}

.gotchaChoiceBox--modern__lead {
  margin: 0 0 12px;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.02px;
  color: var(--color-black);
}

.gotchaChoiceBox--modern__lead--tight {
  margin-bottom: 24px;
}

.gotchaChoiceBox--modern__lead strong {
  font-weight: 700;
}

.gotchaChoiceBox--modern__alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 24px;
  box-sizing: border-box;
  background: #fff3cd;
  border: 1px solid #ffda6a;
  border-radius: 6px;
  min-height: 0;
}

.gotchaChoiceBox--modern__alert-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gotchaChoiceBox--modern__alert-ico {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  color: #664d03;
}

.gotchaChoiceBox--modern__alert-text {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.028px;
  color: #664d03;
}

.gotchaChoiceBox--modern__alert-dismiss {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #664d03;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gotchaChoiceBox--modern__alert-dismiss:hover {
  background: rgba(0, 0, 0, 0.06);
}

.gotchaChoiceBox--modern__alert-dismiss .ph {
  font-size: 14px;
  line-height: 1;
}

.gotchaChoiceBox--modern__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-right: -24px;
  margin-top: 0;
  padding: 16px 24px;
  box-sizing: border-box;
  border-top: 1px solid #d9d9d7;
  background: var(--color-white);
}

.gotchaChoiceBox--modern__footer--solo {
  justify-content: flex-start;
}

.gotchaChoiceBox--modern__footer--enter {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.gotchaChoiceBox--modern__footer--enter .gotchaChoiceBox--modern__footer-spacer {
  flex: 1 1 auto;
  min-width: 8px;
  height: 0;
}

.gotchaChoiceBox--modern__footer-resend {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.gotchaChoiceBox--modern__btn--compact {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 18px;
  min-width: 0;
}

.gotchaChoiceBox--modern__otp {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 12px;
  box-sizing: border-box;
}

.gotchaChoiceBox--modern__otp-cell {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 0 2px;
  border: 1px solid #d9d9d7;
  border-radius: 8px;
  background: var(--color-white);
  font-family: var(--font-dm);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--color-black);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gotchaChoiceBox--modern__otp-cell:focus {
  outline: none;
  border-color: var(--color-black);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

#midpassEnterStep .gotchaChoiceBox--modern__field-label {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  text-align: center;
}

.gotchaChoiceBox--modern__field-label {
  display: block;
  margin: 4px 0 6px;
  font-family: var(--font-dm);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-neutral-900);
}

.gotchaChoiceBox--modern__field {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 6px;
  background: var(--color-white);
  font-family: var(--font-dm);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.32em;
  text-align: center;
  color: var(--color-black);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gotchaChoiceBox--modern__field:focus {
  border-color: var(--color-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.gotchaChoiceBox--modern__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 6px;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}

.gotchaChoiceBox--modern__footer .gotchaChoiceBox--modern__btn {
  min-width: 100px;
}

.gotchaChoiceBox--modern__btn .ph {
  font-size: 18px;
  line-height: 1;
}

.gotchaChoiceBox--modern__btn--primary {
  background: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-black);
}

.gotchaChoiceBox--modern__btn--primary:hover {
  background: #1a1a1a;
}

.gotchaChoiceBox--modern__btn--primary:disabled {
  background: var(--color-neutral-400);
  border-color: var(--color-neutral-400);
  cursor: not-allowed;
}

.gotchaChoiceBox--modern__btn--secondary {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid #000000;
}

.gotchaChoiceBox--modern__btn--secondary:hover {
  background: var(--color-neutral-25);
  border-color: #000000;
}

.gotchaChoiceBox--modern__resend {
  margin: 16px 0 0;
  text-align: center;
}

.gotchaChoiceBox--modern__resend-link {
  cursor: pointer;
  font-family: var(--font-dm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-hero-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gotchaChoiceBox--modern__resend-link:hover {
  color: #086234;
}

.gotchaChoiceBox--modern__panel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-dm);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-black);
}

.gotchaChoiceBox--modern__panel .ph {
  font-size: 18px;
  line-height: 22px;
  flex: 0 0 auto;
}

.gotchaChoiceBox--modern__panel--green {
  background: rgba(10, 125, 66, 0.08);
  border-color: rgba(10, 125, 66, 0.20);
}

.gotchaChoiceBox--modern__panel--green .ph {
  color: var(--color-hero-green);
}

.gotchaChoiceBox--modern__panel--orange {
  background: #fff3ec;
  border-color: rgba(255, 108, 61, 0.32);
}

.gotchaChoiceBox--modern__panel--orange .ph {
  color: #d65127;
}

#midpassmsg:empty,
#midpassmsgEnter:empty {
  display: none;
}

#midpassmsg:not(:empty) {
  margin-top: 4px;
  margin-bottom: 14px;
}

#midpassmsgEnter:not(:empty) {
  margin: 0;
}

#midpassmsgEnter .gotchaChoiceBox--modern__panel {
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  body.application-page #popupAjaxOverlay:not(:has(#gotchaChoice.gotchaChoiceBox--modern)) {
    padding: 16px;
  }

  body.application-page #popupAjaxOverlay:has(#gotchaChoice.gotchaChoiceBox--modern) {
    width: calc(100% - 16px);
    max-height: calc(100vh - 24px);
  }

  .gotchaChoiceBox--modern__header {
    padding: 16px;
  }

  .gotchaChoiceBox--modern__body {
    padding: 16px;
  }

  .gotchaChoiceBox--modern__footer {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    padding: 16px;
  }

  .gotchaChoiceBox--modern__footer:not(.gotchaChoiceBox--modern__footer--enter) {
    flex-direction: column-reverse;
  }

  .gotchaChoiceBox--modern__footer:not(.gotchaChoiceBox--modern__footer--enter) .gotchaChoiceBox--modern__btn {
    width: 100%;
  }

  .gotchaChoiceBox--modern__footer--enter {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .gotchaChoiceBox--modern__footer--enter .gotchaChoiceBox--modern__btn,
  .gotchaChoiceBox--modern__footer--enter .gotchaChoiceBox--modern__footer-resend {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  .gotchaChoiceBox--modern__footer--enter .gotchaChoiceBox--modern__footer-resend .gotchaChoiceBox--modern__btn {
    width: 100%;
  }

  .gotchaChoiceBox--modern__otp {
    gap: 6px;
    max-width: 100%;
  }

  .gotchaChoiceBox--modern__otp-cell {
    height: 46px;
    font-size: 18px;
  }
}


/* =============================================================
 * Returning-applicant prefill panel (#gotchaDialogue) ? modern
 * restyle (Phase 2)
 *
 * Rendered by ajax/panelLoad.ajax.php's gotchaPrivate selector
 * after a successful OTP. The legacy markup uses .frame, p.huge,
 * h2/h3 with default browser sizes, and a <input class='noShow'>
 * OK button (revealed by Application.matchContinue). We don't
 * touch the legacy markup; everything below is CSS-only overrides
 * scoped under body.application-page #popupAjaxOverlay so legacy
 * customers are unaffected.
 * ============================================================= */

body.application-page #popupAjaxOverlay #gotchaDialogue {
  font-family: var(--font-dm);
  font-size: 15px;
  line-height: 22px;
  color: var(--color-black);
}

/* Hide the legacy mascot image (drawGotchaHead). */
body.application-page #popupAjaxOverlay #gotchaDialogue > .floatRight {
  display: none !important;
}

/* Flatten legacy .frame chrome - the overlay container already
   provides the white card. */
body.application-page #popupAjaxOverlay #gotchaDialogue .frame {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
}

/* Modern title - "Thank you!" */
body.application-page #popupAjaxOverlay #gotchaDialogue h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-dm);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-black);
}

/* Hide the legacy FontAwesome tick (FA isn't loaded on the modern
   application page). The Phosphor check-circle (\e184) is drawn
   via ::before below, sitting top-left of the title text. */
body.application-page #popupAjaxOverlay #gotchaDialogue h2 .fa,
body.application-page #popupAjaxOverlay #gotchaDialogue h2 .ourGreen {
  display: none !important;
}

body.application-page #popupAjaxOverlay #gotchaDialogue h2::before {
  content: "\e184";
  display: inline-block;
  font-family: "Phosphor", system-ui, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  color: var(--color-hero-green);
  flex: 0 0 auto;
}

/* Subtitle - "Your Previous Application:" */
body.application-page #popupAjaxOverlay #gotchaDialogue h3,
body.application-page #popupAjaxOverlay #gotchaDialogue h3#jobTitle {
  margin: 16px 0 6px;
  font-family: var(--font-dm);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-black);
}

/* Beat .huge !important so body copy is normal modern size. */
body.application-page #popupAjaxOverlay #gotchaDialogue p,
body.application-page #popupAjaxOverlay #gotchaDialogue p.huge {
  margin: 0 0 12px;
  font-family: var(--font-dm) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 22px !important;
  color: var(--color-black);
}

body.application-page #popupAjaxOverlay #gotchaDialogue p small {
  font-family: var(--font-dm);
  font-size: 13px;
  color: var(--color-neutral-900);
  white-space: nowrap;
}

/* Modern restyle for the legacy .ourGreenPanel info banners
   (e.g. "You'll be able to attach your NEW document...",
   "You've responded to the video questions here..."). */
body.application-page #popupAjaxOverlay #gotchaDialogue .ourGreenPanel,
body.application-page #popupAjaxOverlay #gotchaDialogue h4.ourGreenPanel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(10, 125, 66, 0.20);
  background: rgba(10, 125, 66, 0.08);
  font-family: var(--font-dm);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--color-black);
}

body.application-page #popupAjaxOverlay #gotchaDialogue .ourGreenPanel img,
body.application-page #popupAjaxOverlay #gotchaDialogue h4.ourGreenPanel img {
  height: 18px;
  width: auto;
  flex: 0 0 auto;
  margin-top: 2px;
}

body.application-page #popupAjaxOverlay #gotchaDialogue .ourGreenPanel .fa,
body.application-page #popupAjaxOverlay #gotchaDialogue h4.ourGreenPanel .fa {
  font-size: 18px;
  line-height: 22px;
  color: var(--color-hero-green);
  flex: 0 0 auto;
}

/* Existing-resumes list (#gotchaResumeDialogue) */
body.application-page #popupAjaxOverlay #gotchaResumeDialogue ul.input {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

body.application-page #popupAjaxOverlay #gotchaResumeDialogue ul.input li {
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 8px;
  background: var(--color-neutral-25);
}

body.application-page #popupAjaxOverlay #gotchaResumeDialogue a.resume-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-black);
  font-family: var(--font-dm);
  font-size: 14px;
  line-height: 20px;
}

body.application-page #popupAjaxOverlay #gotchaResumeDialogue a.resume-preview img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

body.application-page #popupAjaxOverlay #gotchaResumeDialogue a.resume-preview span {
  display: block;
}

body.application-page #popupAjaxOverlay #gotchaResumeDialogue a.resume-preview small {
  font-size: 12px;
  color: var(--color-neutral-900);
}

body.application-page #popupAjaxOverlay #resumecheckboxpanel {
  margin-top: 16px !important;
}

/* Modern primary-action OK button (#okButton). The legacy class
   'noShow' starts it hidden; Application.matchContinue removes
   that class to reveal it. We just style how it looks when shown. */
body.application-page #popupAjaxOverlay #okButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  margin: 4px 0;
  border-radius: 8px;
  border: 1px solid var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-dm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  min-width: 160px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.application-page #popupAjaxOverlay #okButton:hover {
  background: #1a1a1a;
}

/* Spinner shown while matchContinue does its work. */
body.application-page #popupAjaxOverlay #okWaitingIcon {
  margin-left: 10px;
  font-size: 18px;
  color: var(--color-black);
  vertical-align: -2px;
}

/* The okButton sits inside a bare <p>; centre it in the modal. */
body.application-page #popupAjaxOverlay #gotchaDialogue p:has(> #okButton) {
  text-align: right;
  margin-top: 18px;
  margin-bottom: 0;
}

body.application-page #popupAjaxOverlay #gotchaDialogue .clearBoth {
  clear: both;
  height: 0;
}

/* The fancyCheckbox 'I want to Upload a NEW Document' line. */
body.application-page #popupAjaxOverlay #gotchaDialogue .fancyCheckbox {
  font-family: var(--font-dm);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-black);
}


/* =============================================================
 * Returning-applicant prefilled-questions notice (Phase 2)
 *
 * Rendered above the questionnaire-list when the prefill_questions
 * AJAX response (ajax/panelLoadModern.ajax.php) swaps modern markup
 * into #qTableContainer. Mirrors the legacy .medium .look variant
 * but uses modern typography to match the surrounding panel.
 * ============================================================= */
.modern-prefill-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(10, 125, 66, 0.20);
  background: rgba(10, 125, 66, 0.08);
  font-family: var(--font-dm);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-black);
}

.modern-prefill-notice .ph {
  font-size: 18px;
  line-height: 22px;
  color: var(--color-hero-green);
  flex: 0 0 auto;
}


/* =============================================================
 * Ajax wait overlay (.ajaxWaitPanel) - modern restyle (Phase 2)
 *
 * Created by Ajax.waitPanel() in js/corePlus.lib.js whenever a
 * Popup.panelOpenAjax / Ajax.post awaits a response. Used here
 * for the "Retrieving your details..." state shown between OTP
 * success and the gotchaPrivate panel rendering.
 *
 * The legacy markup injects:
 *   <div id="ajaxWaitPanelapply" class="ajaxWaitPanel">
 *     <i class="fa fa-cog fa-spin fa-2x"></i>
 *     &nbsp; Retrieving your details...
 *   </div>
 *
 * FontAwesome is not loaded on the modern application page
 * (.application-page), so the legacy spinner glyph renders as
 * blank. Without overrides the panel also fills 99% of the page
 * with a dark overlay and tiny floating text. We hide the broken
 * FA icon and re-skin the panel as a centred white pill with a
 * spinning Phosphor circle-notch icon, mirroring loginModern.css.
 * ============================================================= */

/* Position the loader as a centred pill anchored to its target
   element (Ajax.waitPanel inserts it before the target as a
   sibling, so we make the form a positioning context). */
body.application-page #apply,
body.application-page form#apply {
  position: relative;
}

body.application-page .ajaxWaitPanel:not(#ajaxWaitPaneladdressInputPanel) {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
  inset: auto !important;
  width: auto !important;
  max-width: calc(100% - 32px);
  height: auto !important;
  margin: 0 !important;
  padding: 14px 22px 14px 18px !important;
  border: 1px solid var(--color-neutral-200) !important;
  border-radius: 999px;
  z-index: 2100;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  font-family: var(--font-dm), "DM Sans", sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--color-black) !important;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

/* Hide the legacy FontAwesome cog (FA isn't loaded on this page,
   so it'd render as blank text whitespace anyway). */
body.application-page .ajaxWaitPanel .fa,
body.application-page .ajaxWaitPanel .fa-cog,
body.application-page .ajaxWaitPanel .fa-spin {
  display: none !important;
}

/* Phosphor circle-notch (\eb44) drawn as a pseudo-element so we
   don't need to touch the legacy Ajax.waitPanel JS. Spins via
   the existing modern-application-spin keyframe. */
body.application-page .ajaxWaitPanel:not(#ajaxWaitPaneladdressInputPanel)::before {
  content: "\eb44";
  display: inline-block;
  font-family: "Phosphor", system-ui, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--color-black);
  animation: modern-application-spin 0.9s linear infinite;
  transform-origin: 50% 50%;
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  body.application-page .ajaxWaitPanel:not(#ajaxWaitPaneladdressInputPanel)::before {
    animation-duration: 3s;
  }
}

/* When Ajax.waitPanel falls through to the body-level overlay
   branch (theId not found), it creates #dimOverlay instead. The
   legacy CSS for #dimOverlay isn't loaded on modern; give it a
   sensible centered backdrop so the message still reads cleanly. */
body.application-page #dimOverlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1950;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--font-dm), "DM Sans", sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--color-white) !important;
  text-align: center;
  padding: 24px;
  height: auto !important;
  width: auto !important;
}

body.application-page #dimOverlay .fa,
body.application-page #dimOverlay .fa-cog,
body.application-page #dimOverlay .fa-spin {
  display: none !important;
}

body.application-page #dimOverlay::before {
  content: "\eb44";
  display: inline-block;
  font-family: "Phosphor", system-ui, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 14px;
  color: var(--color-white);
  animation: modern-application-spin 0.9s linear infinite;
  transform-origin: 50% 50%;
}

/* Ajax.waitPanel on #addressInputPanel (country change, suburb/postcode lookup):
   frosted layer over the whole address block; centred copy only (no spinner). */
body.application-page #ajaxWaitPaneladdressInputPanel.ajaxWaitPanel {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 !important;
  padding: 20px 24px !important;
  max-width: none !important;
  border-radius: 12px;
  border: none !important;
  font-family: var(--font-dm), "DM Sans", sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: var(--color-black) !important;
  text-align: center !important;
  white-space: normal !important;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none !important;
  /* top/left/width/height/position set inline by initAddressWaitOverlaySync() */
}

body.application-page #ajaxWaitPaneladdressInputPanel.ajaxWaitPanel::before {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* When a resume/Seek prefill or parse-error alert is visible (legacy JS
 * toggles inline display on these <h4>s), pull the form block up toward the
 * stepper and the first section up toward the alert. Scoped with :has so
 * the default 48px / 64px rhythm stays unchanged for the normal flow. */
body.application-page:has(#prefillResumeNotice:not([style*="display:none"]):not([style*="display: none"])) .application-body,
body.application-page:has(#prefillSeekNotice:not([style*="display:none"]):not([style*="display: none"])) .application-body,
body.application-page:has(#prefillResumeError:not([style*="display:none"]):not([style*="display: none"])) .application-body {
  margin-top: 28px;
}

/* Scope to #jobApplicationModern_formView only: questionnaire view also has
   .application-main > .application-section:first-of-type (#questionspanel);
   the -40px pull-up must not apply there or it overlaps the intro copy. */
body.application-page:has(#prefillResumeNotice:not([style*="display:none"]):not([style*="display: none"])) #jobApplicationModern_formView .application-main > .application-section:first-of-type,
body.application-page:has(#prefillSeekNotice:not([style*="display:none"]):not([style*="display: none"])) #jobApplicationModern_formView .application-main > .application-section:first-of-type,
body.application-page:has(#prefillResumeError:not([style*="display:none"]):not([style*="display: none"])) #jobApplicationModern_formView .application-main > .application-section:first-of-type {
  margin-top: -40px;
}

/* Narrow viewports: .application-main gap is 28px (not 64px), so the -40px
 * pull-up collapses the space between the prefill alert and Contact details. */
@media (max-width: 767.98px) {
  body.application-page:has(#prefillResumeNotice:not([style*="display:none"]):not([style*="display: none"])) #jobApplicationModern_formView .application-main > .application-section:first-of-type,
  body.application-page:has(#prefillSeekNotice:not([style*="display:none"]):not([style*="display: none"])) #jobApplicationModern_formView .application-main > .application-section:first-of-type,
  body.application-page:has(#prefillResumeError:not([style*="display:none"]):not([style*="display: none"])) #jobApplicationModern_formView .application-main > .application-section:first-of-type {
    margin-top: 0;
  }
}

/* ----- Mailcheck "Did you mean" (email field) ----- */
.application-email-suggest-host {
  display: block;
  margin-top: 12px;
}

.application-email-suggest {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #f5d99a;
  background: #fff8e6;
  font-family: var(--font-dm);
  text-align: left;
}

.application-email-suggest__icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 24px;
  color: #b56a00;
  margin-top: 2px;
}

.application-email-suggest__main {
  flex: 1 1 auto;
  min-width: 0;
}

.application-email-suggest__question {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--color-black);
}

.application-email-suggest__proposed {
  word-break: break-all;
  color: #5c3d00;
}

.application-email-suggest__hint {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--color-neutral-700, #5c5c5c);
}

.application-email-suggest__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.application-email-suggest__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-dm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.application-email-suggest__btn-icon {
  font-size: 18px;
  line-height: 1;
}

.application-email-suggest__btn--yes {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.application-email-suggest__btn--yes:hover {
  background: #333333;
  border-color: #333333;
}

.application-email-suggest__btn--no {
  background: var(--color-white);
  color: var(--color-black);
  border-color: rgba(0, 0, 0, 0.18);
}

.application-email-suggest__btn--no:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.28);
}

/* Salary: joined control -- non-editable currency prefix + amount (jobApplicationModern.php) */
.application-input__money {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.application-input__money-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0 12px;
  height: 46px;
  border: 1px solid var(--color-neutral-200);
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: var(--color-neutral-50);
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 44px;
  letter-spacing: 0.032px;
  color: var(--color-black);
  flex-shrink: 0;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.application-input__money-input {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 0 6px 6px 0;
  background: var(--color-white);
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 44px;
  letter-spacing: 0.032px;
  color: var(--color-black);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.application-input__money-input:focus {
  border-color: var(--color-neutral-400);
}

.application-input__money-input:-webkit-autofill,
.application-input__money-input:-webkit-autofill:hover,
.application-input__money-input:-webkit-autofill:focus,
.application-input__money-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--color-black);
  -webkit-box-shadow: 0 0 0 1000px var(--color-white) inset;
  box-shadow: 0 0 0 1000px var(--color-white) inset;
  caret-color: var(--color-black);
  transition: background-color 5000s ease-in-out 0s;
}

/* Salary rubric: lead line + part-time guidance (jobApplicationModern.php) */
.application-salary-rubric {
  margin-top: 8px;
}

.application-salary-rubric > .application-section__intro {
  margin-top: 0;
  margin-bottom: 0;
}

.application-salary-rubric > .application-section__intro + .application-section__intro {
  margin-top: 8px;
}

.application-salary-rubric__lead {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.application-salary-rubric__lead .ph {
  flex-shrink: 0;
  margin-top: 3px;
  line-height: 1;
}

/* ----- Mobile job details card (jobApplicationModern; above form on <lg) ----- */
.jam-mobile-job-details-card {
  margin-bottom: 24px;
  padding: 20px 16px 16px;
  border-radius: 12px;
  background: var(--color-neutral-50);
}

.jam-mobile-job-details-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.jam-mobile-job-details-card__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-dm);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.jam-mobile-job-details-card__share {
  flex-shrink: 0;
  padding-top: 2px;
}

.jam-mobile-job-details-card__share .job-card__share-wrap {
  position: relative;
}

.jam-mobile-job-details-card__accordion {
  padding-top: 4px;
}

.jam-mobile-job-details-card__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 12px 0 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-black);
}

.jam-mobile-job-details-card__toggle:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

.jam-mobile-job-details-card__chevron {
  flex-shrink: 0;
  font-size: 22px;
  transition: var(--modern-caret-rotate-transition, transform 0.25s ease);
}

.jam-mobile-job-details-card__toggle[aria-expanded="true"] .jam-mobile-job-details-card__chevron {
  transform: rotate(180deg);
}

.jam-mobile-job-details-card__panel[hidden] {
  display: none !important;
}

.jam-mobile-job-details-card__panel:not([hidden]) {
  display: block;
  padding-bottom: 4px;
}

.jam-mobile-job-details-card__desc {
  margin: 0 0 16px;
  font-family: var(--font-dm);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: var(--color-black);
}

.jam-mobile-job-details-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.jam-mobile-job-details-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--color-black);
  font-family: var(--font-dm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-white);
}

.jam-mobile-job-details-card__list-wrap .application-sidebar__list > li:first-child {
  border-top: 1px solid var(--color-neutral-200);
}

.jam-mobile-job-details-card__list-wrap .application-sidebar__list > li {
  border-bottom-color: var(--color-neutral-300, #ccccca);
}

.jam-mobile-job-details-card__list-wrap .application-sidebar__row,
.jam-mobile-job-details-card__list-wrap .application-sidebar__item {
  padding-top: 14px;
  padding-bottom: 14px;
}
