/* ============================================================
   Mitwa — Careers pages (/careers, /careers/role)
   Built from Figma "mitwa.ai_website" frames 502:1288 (list),
   502:1422 (row hover), 502:1555 (role), 502:1616 (open),
   502:2195 (mobile list). Desktop frame width = 1512px.
   ============================================================ */

.careers {
  --c-text: #fff;
  --c-muted: rgba(194, 194, 194, 0.6);
  --c-label: #636363;
  --c-hero-text: #fdf3cf;
  --c-button: #0d0d0d;
  --f-display: 'Syncopate', sans-serif;
  --f-body: 'Plus Jakarta Sans', sans-serif;
  color: var(--c-text);
  background: #000;
  font-family: var(--f-body);
}

/* ------------------------------------------------------- hero -- */

.careers-hero {
  position: relative;
  height: max(560px, 62.1vw); /* 939 / 1512 */
  max-height: 100vh;
  overflow: hidden;
  background: #cfcfcf;
}

.careers-hero-img {
  position: absolute;
  top: -0.7%;
  left: calc(50% + 7.64%);
  width: 119.5%;
  height: 101.5%;
  max-width: none; /* Webflow sets img max-width:100% */
  transform: translateX(-50%);
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.careers-hero-mobile { display: none; }

.careers-hero-title {
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 400;
  white-space: nowrap;
}

.careers-hero-kicker {
  display: block;
  font-size: max(20px, 2.381vw);   /* 36 / 1512 */
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
}

.careers-hero-word {
  position: relative;
  display: block;
  margin-top: -0.06em;
  font-size: max(72px, 9.629vw);   /* 145.6 / 1512 */
  line-height: 1.14;
  color: var(--c-hero-text);
}

/* Soft glow: a blurred copy of the word behind the sharp one */
.careers-hero-word::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  filter: blur(0.048em);
  color: var(--c-hero-text);
}
.careers-hero-word span { position: relative; }

/* Hands cut-out sits in front of the word */
.careers-hero-front { z-index: 2; }

/* ----------------------------------------------------- reveal -- */
/* Same as the site's Webflow "Fade" interaction (a-6): starts blurred 20px and
   pushed down by its own height, then settles over 1.2s, once, when scrolled
   into view. Classes are added by careers.js; .w-mod-js is set by Webflow. */
.w-mod-js .careers-reveal {
  filter: blur(20px);
  transform: translate3d(0, 100%, 0);
  transition: filter 1.2s cubic-bezier(.19, 1, .22, 1), transform 1.2s cubic-bezier(.19, 1, .22, 1);
}
.w-mod-js .careers-reveal.is-in {
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

/* ------------------------------------------------------- list -- */

.careers-section {
  max-width: 1512px;
  margin: 0 auto;
  padding: 108px 40px 100px 99px;
  display: grid;
  grid-template-columns: 299px minmax(0, 726px);
  column-gap: 35px;
  align-items: start;
}

.careers-filters {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.careers-filter {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 12px;
  line-height: 17.64px;
  text-transform: uppercase;
  text-align: left;
  color: var(--c-muted);
  transition: color .2s ease;
}
.careers-filter:hover,
.careers-filter.is-active { color: var(--c-text); }
.careers-filter:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }

.careers-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 713px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 50px;
  /* Figma: fill gradient inside; 1px inside stroke = linear gradient (white 30% -> 100% at 59% -> 10%)
     at 24% layer opacity, i.e. alpha .072 -> .24 -> .024. Drawn as a border-box background so the
     rounded ends keep the gradient. The black layer stops the stroke showing through the fill. */
  background:
    linear-gradient(90deg, rgba(65, 65, 65, .15), rgba(167, 167, 167, .15) 50%, rgba(65, 65, 65, .15)) padding-box,
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, rgba(255, 255, 255, .072), rgba(255, 255, 255, .24) 59%, rgba(255, 255, 255, .024)) border-box;
  box-sizing: border-box;
}
.careers-search img { width: 16px; height: 16px; flex: none; }
.careers-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 14px;
}
.careers-search input::placeholder { color: #b3b3b3; opacity: 1; }
.careers-search:focus-within {   /* same gradient, brighter while typing */
  background:
    linear-gradient(90deg, rgba(65, 65, 65, .15), rgba(167, 167, 167, .15) 50%, rgba(65, 65, 65, .15)) padding-box,
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .7) 59%, rgba(255, 255, 255, .12)) border-box;
}

.careers-list {
  display: flex;
  flex-direction: column;
  gap: 114px;
  padding-top: 96px;
}

.careers-group-title {
  margin: 0 0 30px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 12px;
  line-height: normal;
  color: #fff;
}

.careers-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 6px 0;
  margin-bottom: 18px;
  color: #fff;
  text-decoration: none;
}
.careers-row:last-child { margin-bottom: 0; }

/* Hover (Figma 502:1422): grey band from the list edge to the page edge */
.careers-row::before {
  content: '';
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: -6px;
  right: -100vw;
  background: #1a1a1a;
  opacity: 0;           /* appears instantly on hover: no fade, text never changes */
  z-index: -1;
}
.careers-row:hover::before,
.careers-row:focus-visible::before { opacity: 1; }
.careers-row:focus-visible { outline: none; }
.careers-list { position: relative; z-index: 0; }

.careers-row-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.careers-row-location {
  flex: none;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-muted);
}

.careers-empty p { margin: 0 0 16px; color: var(--c-muted); font-size: 16px; }
.careers-empty-link {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------- role -- */

.careers-role {
  max-width: 1512px;
  margin: 0 auto;
  padding: 239px 53px 160px;
  box-sizing: border-box;
  min-height: 100vh;
}

.careers-role-title {
  margin: 0 auto;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21.647px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: normal;
}

.careers-role-rule {
  width: 667px;
  max-width: 100%;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0), #fff 59%, rgba(255, 255, 255, 0));
  opacity: .42;
}

.careers-role-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 668px);
  column-gap: 115px;
  margin-top: 41px;
  align-items: start;
}

.careers-meta { padding: 24px 16px; }
.careers-meta-item {
  position: relative;
  padding: 14px 0 16px;
}
.careers-meta-item::after {   /* Figma: 1px line, light grey on the left fading out to the right */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, 0));
}
.careers-meta-label { font-size: 12px; line-height: 18px; color: var(--c-label); }
.careers-meta-value { padding-top: 4px; font-size: 16px; line-height: 24px; letter-spacing: -0.02em; }

.careers-role-body { font-size: 14px; letter-spacing: -0.02em; line-height: normal; }
.careers-role-body p { margin: 0 0 17px; }
.careers-section-title {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: -0.03em;
}
.careers-section-title ~ .careers-section-title { margin-top: 26px; }
.careers-bullets { margin: 8px 0 0; padding-left: 48px; }
.careers-bullets li { margin-bottom: 10px; padding-left: 4px; }
.careers-bold { font-weight: 700; }

.careers-apply-wrap { position: relative; margin-top: 56px; }
.careers-apply-wrap::before { /* soft glow behind the button */
  content: '';
  position: absolute;
  inset: 0 -21px -16px -14px;
  border-radius: 48px;
  background: rgba(255, 255, 255, .04);
  filter: blur(11.65px);
  pointer-events: none;
}
.careers-apply {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 59px;
  border-radius: 25px;
  background: var(--c-button);
  box-shadow: 2.944px 2.944px 2.944px 0 #000, -2.944px -2.944px 8.243px 0 rgba(181, 181, 181, .05);
  color: #fff;
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: -0.01em;
  transition: background-color .2s ease;
}
.careers-apply:hover { background: #1a1a1a; }

/* "Open" application: centred single column, no sidebar */
.careers-role.is-open .careers-role-grid,
.careers-role.is-missing .careers-role-grid { display: block; max-width: 668px; margin: 41px auto 0; }
.careers-role.is-open .careers-meta,
.careers-role.is-missing .careers-meta { display: none; }
.careers-role.is-open .careers-role-body,
.careers-role.is-missing .careers-role-body { text-align: center; }
.careers-role.is-open { padding-top: 306px; }

/* ----------------------------------------------------- tablet -- */

@media screen and (max-width: 1199px) {
  .careers-section { padding-left: 48px; grid-template-columns: 240px minmax(0, 1fr); }
  .careers-role { padding-left: 40px; padding-right: 40px; }
  .careers-role-grid { grid-template-columns: 240px minmax(0, 1fr); column-gap: 56px; }
}

/* ----------------------------------------------------- mobile -- */

@media screen and (max-width: 767px) {
  .careers-hero { height: 100svh; max-height: 939px; min-height: 560px; }
  .careers-hero-desktop { display: none; }
  .careers-hero-mobile {
    display: block;
    top: -13.4%;            /* -126 / 939 */
    left: calc(50% + 1.5px);
    width: 144.4%;          /* 621 / 430 */
    height: 117.5%;         /* 1103 / 939 */
  }
  .careers-hero-title { top: 44.2%; }  /* 415 / 939 */
  .careers-hero-kicker { font-size: 19.8px; }
  .careers-hero-word { font-size: 80px; }

  .careers-section {
    display: block;
    padding: 54px 0 80px;
  }
  .careers-filters {
    position: static;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    padding: 0 48px 4px;
    scrollbar-width: none;
  }
  .careers-filters::-webkit-scrollbar { display: none; }
  .careers-filter { flex: none; white-space: nowrap; }
  .careers-filter.is-active { text-decoration: underline; text-underline-offset: 3px; }

  .careers-main { padding: 0 48px; }
  .careers-search { margin-top: 54px; }
  .careers-list { gap: 96px; padding-top: 80px; }
  .careers-row { flex-direction: column; gap: 4px; margin-bottom: 30px; }
  .careers-row::before { left: -48px; right: -48px; }
  .careers-row-title { font-size: 16px; }
  .careers-row-location { font-size: 14px; }

  .careers-role { padding: 160px 24px 120px; }
  .careers-role.is-open { padding-top: 200px; }
  .careers-role-title { font-size: 18px; white-space: normal; }
  .careers-role-grid { display: block; margin-top: 24px; }
  .careers-meta { padding: 0 0 24px; }
  .careers-bullets { padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .w-mod-js .careers-reveal { filter: none; transform: none; transition: none; }
  .careers-filter, .careers-apply { transition: none; }
}

/* ===================================================== apply form ==
   /careers/apply — Figma 502:1642 (Qualifiers), 502:1780 (selected),
   502:1924 (errors), 502:2070 / 502:2138 (Logistics), 502:1254 (done).
   Content column is 892px wide on the 1512px frame.                    */

.apply-wrap {
  max-width: 892px;
  margin: 0 auto;
  padding: 239px 24px 140px;
  box-sizing: content-box;
}

.apply-head { text-align: center; }
.apply-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21.647px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: normal;
}
.apply-intro { margin: 6px 0 0; font-size: 14px; letter-spacing: -0.02em; }
.apply-intro a { color: #fff; }

.apply-progress { margin-top: 54px; }
.apply-progress-label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em; }
.apply-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin-top: 10px; }
.apply-bar span { height: 3px; border-radius: 2px; background: #333; transition: background-color .4s ease; }
.apply-bar span.is-on { background: #fff; }
.apply-status { margin-top: 12px; font-size: 12px; color: #8a8a8a; }

.apply-form { margin-top: 60px; }
.apply-step { display: none; }
.apply-step.is-active { display: block; }

.apply-q { margin: 0 0 64px; padding: 0; border: 0; min-width: 0; }
.apply-label {
  display: block;
  margin: 0 0 22px;
  padding: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
}
.apply-hint-inline { font-weight: 700; }

/* --- option pills (single choice) */
.apply-opts { display: flex; flex-wrap: wrap; gap: 14px; }
.apply-opt { position: relative; cursor: pointer; }
.apply-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.apply-opt > span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 999px;
  background: #0e0e0e;
  box-shadow: 2.9px 2.9px 2.9px 0 #000, -2.9px -2.9px 8.2px 0 rgba(181, 181, 181, .05);
  font-size: 14px;
  color: #e6e6e6;
  letter-spacing: -0.02em;
  user-select: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.apply-opt:hover > span { background: #1a1a1a; }
.apply-opt input:checked + span { background: #2c2c2c; border-color: rgba(255, 255, 255, .35); color: #fff; }
.apply-opt input:focus-visible + span { outline: 1px solid #fff; outline-offset: 3px; }

/* --- option cards (select all that apply) */
.apply-opts-checkbox { display: grid; grid-template-columns: repeat(3, 220px); gap: 14px; }
.apply-opt-checkbox > span {
  align-items: flex-start;
  min-height: 50px;
  padding: 14px 16px;
  border-radius: 20px;
  line-height: 1.3;
}
.apply-opt-checkbox i {
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 2px;
  border: 1px solid #5c5c5c;
  border-radius: 50%;
  box-sizing: border-box;
  position: relative;
}
.apply-opt-checkbox input:checked + span i { border-color: #fff; }
.apply-opt-checkbox input:checked + span i::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #fff;
}

/* --- text fields */
.apply-q input[type=text], .apply-q input[type=email], .apply-q input[type=tel],
.apply-q input[type=url], .apply-q textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  background: #121212;
  color: #fff;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.apply-q textarea { min-height: 72px; border-radius: 20px; resize: vertical; }
.apply-q input::placeholder, .apply-q textarea::placeholder { color: #6b6b6b; opacity: 1; }
.apply-q input:focus, .apply-q textarea:focus { border-color: rgba(255, 255, 255, .35); }

.apply-count, .apply-fmt { display: block; margin-top: 8px; font-size: 12px; color: #8a8a8a; }
.apply-count { text-align: right; }
.apply-count.is-short { color: #ff5c5c; }

/* --- consent */
.apply-consent label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 12px; line-height: 1.55; color: #e6e6e6; }
.apply-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.apply-tick {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border: 1px solid #5c5c5c;
  border-radius: 3px;
  box-sizing: border-box;
  position: relative;
}
.apply-consent input:checked + .apply-tick { background: #fff; border-color: #fff; }
.apply-consent input:checked + .apply-tick::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid #000;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.apply-consent input:focus-visible + .apply-tick { outline: 1px solid #fff; outline-offset: 3px; }
.apply-consent a { color: #fff; }

/* --- errors (Figma 502:1924 / 502:2138) */
.apply-err { display: none; margin-top: 10px; font-size: 11px; color: #ff4d4d; }
.apply-q.is-invalid .apply-err { display: block; }
.apply-q.is-invalid .apply-opt > span { background: #1a0d0d; border-color: rgba(255, 77, 77, .18); }
.apply-q.is-invalid input, .apply-q.is-invalid textarea { background: #1a0d0d; border-color: rgba(255, 77, 77, .25); }
.apply-q.is-invalid input::placeholder, .apply-q.is-invalid textarea::placeholder { color: #ff6b6b; }
.apply-q.is-invalid .apply-fmt { display: none; }
.apply-q.is-invalid .apply-tick { border-color: #ff4d4d; }

/* --- navigation */
.apply-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.apply-back, .apply-next {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 0;
  color: #fff;
  cursor: pointer;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.apply-next span { margin-left: 8px; font-size: 14px; }
.apply-back:hover, .apply-next:hover { opacity: .7; }

.apply-submit-wrap { position: relative; }
.apply-submit-wrap::before {
  content: '';
  position: absolute;
  inset: -10px -14px;
  border-radius: 48px;
  background: rgba(255, 255, 255, .06);
  filter: blur(12px);
  pointer-events: none;
}
.apply-submit {
  position: relative;
  width: 331px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 28px;
  background: linear-gradient(#d0d0d0, #a9a9a9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  color: #3a3a3a;
  font-family: var(--f-display);
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease;
}
.apply-submit:hover { filter: brightness(1.12); }
.apply-submit:disabled { cursor: progress; filter: brightness(.85); }

.apply-msg { margin: 24px 0 0; font-size: 13px; color: #8a8a8a; }
.apply-msg:empty { display: none; }
.apply-msg.is-bad { color: #ff5c5c; }
.apply-saved { margin: 12px 0 0; font-size: 12px; color: #6b6b6b; }
.apply-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- success: "We've got it." (Figma 502:1254 desktop, 502:1216 mobile) */
.apply-done { position: relative; min-height: 100vh; overflow: hidden; text-align: center; }
.apply-done[hidden] { display: none; }
.apply.is-done .apply-wrap { display: none; }

.apply-orbit {   /* the planet + its star share one box, so the star always sits on the rim */
  position: absolute;
  top: 263px;
  left: 50%;
  width: min(1034px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
}
.apply-planet {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, .06), rgba(0, 0, 0, 0) 45%), #000;
  box-shadow: 0 -10px 46px -8px rgba(255, 255, 255, .55), inset 0 7px 10px -6px rgba(255, 255, 255, .9);
  -webkit-mask-image: linear-gradient(#000 0, #000 30%, transparent 42%);
  mask-image: linear-gradient(#000 0, #000 30%, transparent 42%);
}
.apply-star {   /* centred exactly on the rim: 59° from the top of the circle */
  position: absolute;
  left: 92.9%;     /* 50% + 50% * sin 59.3° */
  top: 24.5%;      /* 50% - 50% * cos 59.3° */
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0, rgba(255, 255, 255, .95) 10%, rgba(255, 255, 255, .3) 32%, rgba(255, 255, 255, 0) 68%);
}

.apply-done-inner { position: relative; padding: 500px 24px 160px; }
.apply-done-inner h1 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21.647px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.apply-done-inner p { margin: 14px 0 0; font-size: 14px; letter-spacing: -0.02em; line-height: 1.45; }
.apply-home {
  display: inline-block;
  margin-top: 24px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #2a2a2a;
  color: #e6e6e6;
  font-size: 11px;
  text-decoration: none;
  transition: background-color .2s ease;
}
.apply-home:hover { background: #3a3a3a; }

@media screen and (max-width: 767px) {
  .apply-wrap { padding: 150px 24px 100px; }
  .apply-title { font-size: 18px; }
  .apply-progress { margin-top: 40px; }
  .apply-bar { gap: 8px; }
  .apply-form { margin-top: 44px; }
  .apply-q { margin-bottom: 48px; }
  .apply-label { font-size: 16px; margin-bottom: 18px; }
  .apply-opts { gap: 10px; }
  .apply-opts-checkbox { grid-template-columns: 1fr 1fr; gap: 10px; }
  .apply-nav { flex-wrap: wrap; gap: 16px; }
  .apply-submit-wrap { width: 100%; order: -1; }
  .apply-submit { width: 100%; }
  .apply-orbit { top: 275px; width: 86vw; }
  .apply-star { width: 44px; height: 44px; }
  .apply-done-inner { padding-top: 390px; }
}

@media (prefers-reduced-motion: reduce) {
  .apply-opt > span, .apply-bar span, .apply-submit { transition: none; }
}

/* Webflow's base CSS makes every <label> bold; Figma options and consent are regular. */
.apply-opt, .apply-consent label { font-weight: 400; margin-bottom: 0; }

/* iPhone/iPad Safari zooms into any field with text under 16px when it's tapped.
   On iOS only, fields use 16px so the page doesn't zoom; desktop keeps Figma's 14px. */
@supports (-webkit-touch-callout: none) {
  .careers-search input,
  .apply-q input[type=text], .apply-q input[type=email], .apply-q input[type=tel],
  .apply-q input[type=url], .apply-q textarea { font-size: 16px; }
}

/* ---- form: helper text, file upload, certifications (same look as the fields above) */
.apply-hint { margin: -10px 0 18px; font-size: 13px; line-height: 1.5; color: #8a8a8a; letter-spacing: -0.02em; }

.apply-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: #121212;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease;
}
.apply-drop:hover, .apply-drop.is-over { border-color: rgba(255, 255, 255, .5); }
.apply-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.apply-drop-title { font-family: var(--f-display); font-size: 12px; text-transform: uppercase; color: #fff; }
.apply-drop-sub { font-size: 12px; color: #8a8a8a; }
.apply-file.has-file .apply-drop { padding: 16px 20px; }
.apply-file-chosen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 999px;
  background: #0e0e0e;
  font-size: 13px;
  color: #e6e6e6;
  overflow-wrap: anywhere;
}
.apply-file-chosen[hidden] { display: none; }
.apply-q.is-invalid .apply-drop { background: #1a0d0d; border-color: rgba(255, 77, 77, .35); }

.apply-link-btn {
  flex: none;
  appearance: none;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #8a8a8a;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
}
.apply-link-btn:hover { color: #fff; }

.apply-cert {
  margin-bottom: 14px;
  padding: 18px 20px 22px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 20px;
  background: #0a0a0a;
}
.apply-cert-head { display: flex; justify-content: space-between; align-items: center; }
.apply-cert-head span { font-family: var(--f-display); font-size: 11px; text-transform: uppercase; color: rgba(194, 194, 194, .6); }
.apply-sub { margin: 18px 0 12px; font-size: 14px; font-weight: 700; color: #e6e6e6; letter-spacing: -0.02em; }
.apply-cert-body { margin-top: 10px; font-size: 12px; color: #8a8a8a; }
.apply-cert .apply-opts { gap: 10px; }

.apply-add {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 16px 20px;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.apply-add:hover { border-color: rgba(255, 255, 255, .5); background: #0e0e0e; }
.apply-add-title { font-family: var(--f-body); font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.apply-add-sub { font-size: 12px; color: #8a8a8a; }

@supports (-webkit-touch-callout: none) {
  .apply-cert input[type=text] { font-size: 16px; }
}

/* field-level error inside a certification card (e.g. exam month) */
.apply-err-field { margin-top: 8px; }
.apply-cert input.is-bad { background: #1a0d0d; border-color: rgba(255, 77, 77, .25); }

/* Medium-length hints: inside the box on desktop (Figma), under the question on phones. */
.apply-hint-phone { display: none; }
@media screen and (max-width: 767px) {
  .apply-hint-phone { display: block; }
  .apply-q input.apply-hint-in-box::placeholder { color: transparent; }
}

/* Big text boxes: hint drawn as an overlay (Safari only repaints the first line of a
   multi-line placeholder after the text is deleted). Same position, font and grey. */
.apply-ta { position: relative; }
.apply-ta-ph {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 15px 17px;          /* textarea padding + 1px border */
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #6b6b6b;
  pointer-events: none;
  white-space: pre-wrap;
}
.apply-ta.has-text .apply-ta-ph { display: none; }
.apply-q.is-invalid .apply-ta-ph { color: #ff6b6b; }
@supports (-webkit-touch-callout: none) {
  .apply-ta-ph { font-size: 16px; }
}

/* While the Google Fonts are still loading (html.wf-loading), keep text that is waiting to
   reveal fully hidden, so a fallback font never shows. careers.js starts the reveal once the
   fonts are in (or after 3s). */
/* Also covers text painted before careers.js runs (it loads at the end of the page).
   Images stay visible; only the text waits. */
.wf-loading [data-careers-page] :is(h1, h2, h3, p, li, a, button, label, input, textarea, .careers-reveal) { opacity: 0; }
