/* -----------------------------------------------------------------------
   Careers — page-specific components only.
   -----------------------------------------------------------------------
   Loaded after landing-preview.css and service-detail.css, which between
   them supply the hero, page bands, container gutters, buttons, and entrance
   roles. landing-enquiry-wizard.css supplies the application layout.

   base.css still owns the shared field, consent, and file controls; the
   rules below adapt those controls to the dark wizard surface.

   What is left here is the three offer cards, the two role panels, and the
   handful of utilities that previously had no home outside this file.
   ----------------------------------------------------------------------- */

/* Previously defined only here and in home.css, neither of which is loaded
   by the migrated pages. Kept local rather than pushed into base.css during
   a launch task. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cme-asterisk {
  color: var(--brand-600, #0284c7);
  font-weight: 800;
  margin-left: 0.25rem;
}
.lp-dark-section .cme-asterisk { color: var(--lp-action-blue); }

/* -----------------------------
   What we offer
   ----------------------------- */
.lp-careers-offer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(28px, 4vw, 40px);
}

.lp-careers-offer__item {
  padding-top: 20px;
  /* A rule rather than a bordered box: these are three short statements, and
     boxing them would give them more weight than the role panels below. */
  border-top: 2px solid rgba(11, 21, 33, 0.14);
}

.lp-careers-offer__icon {
  display: inline-grid;
  place-items: center;
  width: clamp(58px, 6vw, 72px);
  height: clamp(58px, 6vw, 72px);
  margin-bottom: 18px;
  color: var(--lp-light-accent-strong);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1;
}

.lp-careers-offer__item h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--lp-light-ink);
}

.lp-careers-offer__item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--lp-light-muted);
}
.lp-careers-offer__next { margin-top: clamp(30px, 4vw, 48px); }
#offer, #roles { padding-top: max(var(--nav-h, 90px), clamp(48px, 7vw, 96px)); }

/* The original used a gradient fill on these words. Flat brand colour instead:
   the emphasis is preserved, and it stays legible at small sizes and in high
   contrast, which a gradient across two light blues does not. */
.lp-careers-accent { color: var(--lp-light-accent); }
.lp-dark-section .lp-careers-accent { color: var(--lp-action-blue); }

/* -----------------------------
   Life at CME
   ----------------------------- */
.lp-careers-roles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(28px, 4vw, 40px);
}

.lp-careers-panel h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.lp-careers-panel > p {
  margin: 0 0 16px;
  color: var(--lp-dark-muted);
  line-height: 1.65;
}

.lp-careers-bullets {
  margin: 0;
  padding-left: 1.15em;
  color: var(--lp-dark-muted);
  line-height: 1.6;
}
.lp-careers-bullets li { margin-bottom: 8px; }
.lp-careers-bullets li:last-child { margin-bottom: 0; }

.lp-careers-contact {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  max-width: 720px;
}
.lp-careers-contact p {
  margin: 0;
  color: var(--lp-dark-muted);
  line-height: 1.65;
}
.lp-careers-contact .lp-careers-contact__intro { color: #edf4fa; font-size: 1.12rem; font-weight: 600; }
.lp-careers-contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 18px; }
.lp-careers-contact__actions .lp-btn { min-width: 160px; }
.lp-careers-contact__actions .lp-btn--ghost { background: transparent; border-color: rgba(255,255,255,.64); }
@media (hover: hover) and (pointer: fine) {
  .lp-careers-contact__actions .lp-btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
}
.lp-careers-contact__actions .lp-btn--ghost:focus-visible { outline: 2px solid var(--lp-action-blue); outline-offset: 3px; }
.lp-careers-contact__email { color: var(--lp-action-blue); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lp-careers-contact__email:focus-visible { outline: 2px solid var(--lp-action-blue); outline-offset: 3px; }
@media (max-width: 480px) {
  .lp-careers-contact__actions { flex-direction: column; }
  .lp-careers-contact__actions .lp-btn { width: 100%; }
}

/* -----------------------------
   Application form
   -----------------------------
   The shared enquiry CSS owns the full-screen layout and motion. Careers
   only adapts the CV upload and phone control to that dark surface. */
.lp-careers-wizard .lp-enquiry__intro-copy { max-width: 35ch; }
.lp-careers-wizard .lp-enquiry__step--review { width: min(100%, 650px); }
.lp-careers-wizard .cme-phone .cme-phone__code { width: 118px; flex: 0 0 118px; }
.lp-careers-wizard .cme-phone .cme-phone__number { width: auto; min-width: 0; flex: 1 1 auto; }
.lp-careers-wizard .cme-file--stacked {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 175px;
  padding: 24px;
  border: 1px dashed #5c87a4;
  border-radius: 6px;
  background: rgba(255, 255, 255, .045);
  text-align: center;
}
.lp-careers-wizard .cme-file--stacked .cme-file__label {
  color: #74cffa;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 10px;
  font-size: 1.05rem;
}
.lp-careers-wizard .cme-file__label .cme-i { width: 23px; height: 23px; }
.lp-careers-wizard .cme-file__label:focus-visible { outline: 2px solid #74cffa; outline-offset: 3px; }
.lp-careers-wizard .cme-file__hint { color: #a7b8cb; }
.lp-careers-wizard .cme-file__selected.tagged {
  color: #edf4fa;
  background: rgba(116, 207, 250, .12);
  border-color: #426078;
  max-width: 100%;
}
.lp-careers-wizard .cme-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-careers-wizard .cme-file--stacked .cme-file__reset {
  color: #081a2d;
  background: #74cffa;
  border-color: #74cffa;
  box-shadow: none;
}
.lp-careers-wizard .switch-group > .pill-checkbox { position: static; opacity: 1; pointer-events: auto; }
.lp-careers-wizard .cme-alert--error { background: #3a202a; border-color: #a34e59; color: #ffbab5; }

.lp-careers-eligibility {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #a7b8cb;
}

/* -----------------------------
   Responsive
   ----------------------------- */
@media (max-width: 991.98px) {
  .lp-careers-offer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .lp-careers-offer__grid,
  .lp-careers-roles__grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .lp-careers-wizard .cme-phone .cme-phone__code { width: 96px; flex-basis: 96px; }
}
