/* careers.css – Careers page: the application form. The page hero and the
   section layout reuse pages.css (.page-hero) and contact-us.css
   (.contact-enquiry, .contact-form--light); only the form grid and the
   resume upload field are added here. */

.careers-apply { margin-bottom: calc(160 * var(--u)); }

.career-form.contact-form--light {
  grid-template-areas:
    "first   last"
    "email   phone"
    "resume  resume"
    "cover   cover"
    "actions actions";
}
.career-form .field:has(#cf-first-name) { grid-area: first; }
.career-form .field:has(#cf-last-name) { grid-area: last; }
.career-form .field:has(#cf-email) { grid-area: email; }
.career-form .field:has(#cf-phone) { grid-area: phone; }
.career-form .field--file { grid-area: resume; }
.career-form .field--textarea { grid-area: cover; }
.career-form.contact-form--light .field--textarea .field__box { height: calc(160 * var(--u)); }

/* resume upload – looks like the other fields; the native picker covers the box */
.career-form .field--file .field__box { cursor: pointer; }
.career-form .field--file .field__box input[type="file"] { opacity: 0; cursor: pointer; z-index: 1; padding: 0; }
.career-form .field--file .field__box .field__placeholder { opacity: 1; }
.career-form .field--file.has-file .field__box .field__placeholder { display: none; }
.career-form .field__file-name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #141414;
  font-size: calc(24 * var(--u)); line-height: calc(34 * var(--u));
}
.career-form .field__hint {
  margin-top: calc(6 * var(--u));
  color: #979797;
  font-size: calc(16 * var(--u)); line-height: calc(24 * var(--u));
}
.career-form .contact-form__status.is-success { color: #1a7f37; }
.career-form .contact-form__status.is-error { color: var(--c-required); }

@media (max-width: 1199.98px) {
  .careers-apply { margin-bottom: 72px; }
  .career-form.contact-form--light { grid-template-areas: "first" "last" "email" "phone" "resume" "cover" "actions"; }
  .career-form.contact-form--light .field--textarea .field__box { height: 140px; }
  .career-form .field__file-name { font-size: 17px; line-height: 28px; }
  .career-form .field__hint { margin-top: 4px; font-size: 14px; line-height: 20px; }
}

@media (max-width: 767.98px) {
  /* longer success / error texts sit below the button */
  .career-form.contact-form--light .contact-form__actions { flex-direction: column; align-items: flex-start; }
}
