.careers-page {
  background: #f3f7fa;
}

.careers-page .desktop-nav a[aria-current="page"] {
  color: #fff;
}

.careers-page .desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.careers-page .mobile-menu a[aria-current="page"] {
  color: var(--orange);
}

.careers-page.careers-content-in-view .whatsapp-float {
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
}

.careers-hero {
  position: relative;
  min-height: min(850px, 100svh);
  padding-block: calc(var(--header-height) + 3rem) clamp(5rem, 7vw, 7rem);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 24%, rgba(31, 122, 184, 0.3), transparent 31rem),
    radial-gradient(circle at 15% 88%, rgba(255, 138, 52, 0.08), transparent 24rem),
    linear-gradient(145deg, #061b2c 0%, #082842 58%, #0a3555 100%);
}

.careers-hero::before {
  position: absolute;
  top: 20%;
  right: -10rem;
  width: 29rem;
  height: 29rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.014), 0 0 0 10rem rgba(255, 255, 255, 0.009);
  content: "";
  pointer-events: none;
}

.careers-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2.75rem, 5vw, 5.5rem);
}

.careers-hero__copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.careers-hero__copy-inner {
  width: min(100%, 580px);
}

.careers-hero h1 {
  max-width: 9.2ch;
  margin-bottom: 1.65rem;
  color: #fff;
  font-size: clamp(4rem, 6.4vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.careers-hero__copy-inner > p:first-of-type {
  max-width: 48ch;
  margin-bottom: 2rem;
  color: rgba(236, 245, 250, 0.78);
  font-size: 1.14rem;
  line-height: 1.6;
}

.careers-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
}

.careers-hero__text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 750;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.careers-hero__text-link:hover {
  text-decoration-color: var(--orange);
}

.careers-hero__note {
  max-width: 46ch;
  margin: 1.65rem 0 0;
  padding-top: 1rem;
  color: rgba(216, 233, 242, 0.56);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
}

.careers-hero__visual {
  position: relative;
  min-width: 0;
  min-height: clamp(500px, 47vw, 630px);
  margin: 0 0 1rem;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  box-shadow: 0 32px 74px rgba(0, 8, 18, 0.34);
}

.careers-hero__visual picture,
.careers-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.careers-hero__visual img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.86) contrast(1.04);
  transform: scale(1.015);
}

.careers-hero__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 27, 44, 0.3), transparent 32%, rgba(6, 27, 44, 0.08));
  content: "";
  pointer-events: none;
}

.careers-hero__visual figcaption {
  position: absolute;
  z-index: 2;
  right: 1.5rem;
  bottom: 1.5rem;
  max-width: 310px;
  padding: 0.8rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(6, 27, 44, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.roles-section {
  position: relative;
  padding-block: clamp(5rem, 8vw, 8rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 4%, rgba(11, 92, 158, 0.09), transparent 27rem),
    #f3f7fa;
}

.roles-section .shell {
  position: relative;
  z-index: 1;
}

.roles-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.roles-heading h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.5rem, 5.7vw, 5.7rem);
  line-height: 0.91;
  letter-spacing: -0.035em;
}

.roles-heading p {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.role-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(10, 41, 66, 0.18);
  border-bottom: 1px solid rgba(10, 41, 66, 0.18);
}

.role-path {
  position: relative;
  min-width: 0;
  padding: clamp(2.4rem, 4.5vw, 4.5rem) clamp(1rem, 4vw, 4rem) clamp(2.7rem, 4vw, 3.8rem);
}

.role-path:first-child {
  padding-left: 0;
  border-right: 1px solid rgba(10, 41, 66, 0.18);
}

.role-path:last-child {
  padding-right: 0;
}

.role-path__heading {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.role-path__heading svg {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: var(--blue);
  stroke-width: 1.65;
}

.role-path__heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 0.92;
}

.role-path > p {
  max-width: 50ch;
  margin-bottom: 1.8rem;
  color: var(--text-muted);
  font-size: 1.06rem;
}

.role-path ul {
  display: grid;
  gap: 0;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.role-path li {
  position: relative;
  min-height: 48px;
  padding: 0.78rem 0 0.78rem 1.4rem;
  color: var(--navy);
  border-top: 1px solid rgba(10, 41, 66, 0.12);
}

.role-path li:last-child {
  border-bottom: 1px solid rgba(10, 41, 66, 0.12);
}

.role-path li::before {
  position: absolute;
  top: 1.23rem;
  left: 0.1rem;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  content: "";
}

.role-path__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.role-path__link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease);
}

.role-path:hover .role-path__link::after,
.role-path:focus-within .role-path__link::after {
  transform: scaleX(1);
  transform-origin: left;
}

.application-section {
  padding-block: clamp(5rem, 8vw, 8rem);
  background: linear-gradient(145deg, #061b2c 0%, #082f4d 100%);
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, 0.72fr);
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.2);
}

.application-form-panel {
  min-width: 0;
  padding: clamp(2.25rem, 5vw, 5rem);
}

.application-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(290px, 0.7fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 2.8rem;
}

.application-heading h2 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3.25rem, 5vw, 5.2rem);
  line-height: 0.91;
  letter-spacing: -0.035em;
}

.application-heading p {
  margin: 0 0 0.25rem;
  color: var(--text-muted);
  line-height: 1.62;
}

.careers-form {
  display: grid;
  gap: 1.5rem;
}

.role-choice {
  min-width: 0;
  margin: 0;
  padding: 0 0 1.5rem;
  border: 0;
  border-bottom: 1px solid rgba(10, 41, 66, 0.14);
}

.role-choice legend,
.form-field > label:first-child {
  display: block;
  margin-bottom: 0.62rem;
  color: var(--navy);
  font-weight: 750;
}

.role-choice__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.role-choice__grid label {
  position: relative;
  cursor: pointer;
}

.role-choice__grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.role-choice__grid span {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.8rem;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid rgba(10, 41, 66, 0.18);
  border-radius: 10px;
  font-weight: 750;
  text-align: center;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 220ms var(--ease);
}

.role-choice__grid input:checked + span {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.role-choice__grid input:focus-visible + span {
  outline: 3px solid var(--focus-inner);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-outer);
}

.role-choice__grid label:hover span {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.form-row--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  min-width: 0;
}

.form-field input:not([type="file"]),
.form-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 0.95rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(10, 41, 66, 0.28);
  border-radius: 8px;
  caret-color: var(--orange-dark);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-field input:not([type="file"]):hover,
.form-field textarea:hover {
  border-color: rgba(10, 41, 66, 0.56);
}

.form-field input:not([type="file"]):focus,
.form-field textarea:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(11, 92, 158, 0.16);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  background: #fff8f7;
  border-color: var(--error);
}

.optional-label {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.field-help,
.selected-file {
  display: block;
  margin-top: 0.42rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.field-error {
  display: none;
  margin-top: 0.42rem;
  color: var(--error);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.field-error:not(:empty) {
  display: block;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-control {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: var(--navy);
  background: var(--paper);
  border: 1px dashed rgba(10, 41, 66, 0.38);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.file-control:hover {
  background: var(--mist);
  border-color: var(--blue);
}

.file-input:focus-visible + .file-control {
  outline: 3px solid var(--focus-inner);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-outer);
}

.file-input[aria-invalid="true"] + .file-control {
  background: #fff8f7;
  border-color: var(--error);
}

.file-control svg {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: var(--blue);
}

.file-control span {
  display: grid;
  gap: 0.15rem;
}

.file-control strong {
  font-size: 1rem;
}

.file-control small {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.selected-file.has-file {
  color: var(--navy);
  font-weight: 700;
}

.consent-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 0.75rem;
}

.consent-field input {
  width: 20px;
  height: 20px;
  margin: 0.18rem 0 0;
  accent-color: var(--blue);
}

.consent-field label {
  max-width: 68ch;
  color: #3e5262;
  font-size: 0.92rem;
  line-height: 1.5;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.prototype-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--navy);
  background: var(--mist);
  border-radius: 10px;
}

.prototype-note svg {
  width: 24px;
  color: var(--blue);
}

.prototype-note p {
  margin: 0;
  font-size: 0.9rem;
}

.form-submit {
  width: fit-content;
  min-width: 220px;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-summary {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  color: #741c14;
  background: #fff3f1;
  border: 1px solid rgba(180, 35, 24, 0.38);
  border-radius: 10px;
}

.form-summary strong {
  display: block;
  margin-bottom: 0.4rem;
}

.form-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.form-summary a {
  color: inherit;
  font-weight: 700;
}

.form-status {
  padding: 1.1rem 1.2rem;
  color: #0b4d2a;
  background: #eaf7ef;
  border: 1px solid rgba(20, 112, 60, 0.35);
  border-radius: 10px;
}

.form-status strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #0b4d2a;
  font-size: 1.05rem;
}

.form-status.is-error {
  color: #741c14;
  background: #fff3f1;
  border-color: rgba(180, 35, 24, 0.38);
}

.form-status.is-error strong {
  color: #741c14;
}

.application-contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
  min-width: 0;
  padding: clamp(2.5rem, 4.5vw, 4.5rem) clamp(2rem, 3.5vw, 3.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 100% 12%, rgba(11, 92, 158, 0.45), transparent 18rem),
    var(--navy-deep);
}

.application-contact h2 {
  max-width: 8ch;
  margin-bottom: 1.2rem;
  color: #fff;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 0.92;
}

.application-contact > div:first-child p {
  margin: 0;
  color: rgba(230, 241, 247, 0.72);
}

.application-contact .whatsapp-action--button {
  width: 100%;
  min-height: 56px;
  justify-content: center;
  padding: 0.8rem 1rem;
  color: #fff;
  background: #0e7b40;
  border: 1px solid #0e7b40;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.application-contact .whatsapp-action--button:hover {
  color: #fff;
  background: #0a6836;
  border-color: #0a6836;
}

.application-contact__phone {
  display: grid;
  gap: 0.2rem;
  min-height: 64px;
  align-content: center;
  padding-block: 0.8rem;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  text-decoration: none;
}

.application-contact__phone span {
  color: rgba(225, 239, 247, 0.6);
  font-size: 0.82rem;
}

.application-contact__phone strong {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.application-contact__availability strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--orange);
}

.application-contact__availability p {
  margin: 0;
  color: rgba(230, 241, 247, 0.72);
  font-size: 0.94rem;
  line-height: 1.55;
}

.application-contact address {
  margin-top: auto;
  padding-top: 1.2rem;
  color: rgba(230, 241, 247, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  font-size: 0.92rem;
  font-style: normal;
}

.application-contact address span {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-weight: 750;
}

@media (prefers-reduced-motion: no-preference) {
  .careers-hero__visual img {
    animation: careers-image-in 720ms var(--ease) both;
  }

  .careers-hero__copy-inner > * {
    animation: careers-copy-in 560ms var(--ease) both;
  }

  .careers-hero__copy-inner > p:first-of-type { animation-delay: 70ms; }
  .careers-hero__actions { animation-delay: 130ms; }
  .careers-hero__note { animation-delay: 190ms; }
}

@keyframes careers-image-in {
  from { opacity: 0.72; transform: scale(1.055); filter: saturate(0.65) contrast(1.04) blur(4px); }
  to { opacity: 1; transform: scale(1.015); filter: saturate(0.86) contrast(1.04) blur(0); }
}

@keyframes careers-copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .careers-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  }

  .careers-hero h1 {
    font-size: clamp(3.7rem, 7.4vw, 5.1rem);
  }

  .application-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(275px, 0.72fr);
  }

  .application-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .application-heading p {
    max-width: 58ch;
  }
}

@media (max-width: 820px) {
  .careers-hero {
    min-height: 0;
    padding-block: calc(var(--header-height) + 2.5rem) 5rem;
  }

  .careers-hero__layout {
    grid-template-columns: 1fr;
    gap: 3.25rem;
  }

  .careers-hero__copy {
    padding-top: 0.5rem;
  }

  .careers-hero__visual {
    min-height: min(74vw, 540px);
    margin-bottom: 1.25rem;
    border-radius: 28px;
  }

  .roles-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .roles-heading p {
    max-width: 62ch;
  }

  .application-layout {
    grid-template-columns: 1fr;
  }

  .application-contact {
    min-height: 520px;
  }
}

@media (max-width: 680px) {
  .careers-hero {
    padding-block: calc(var(--header-height) + 2.25rem) 4.5rem;
  }

  .careers-hero h1 {
    max-width: 9.8ch;
    font-size: clamp(3.5rem, 14vw, 4.6rem);
  }

  .careers-hero__copy-inner > p:first-of-type {
    font-size: 1.05rem;
  }

  .careers-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .careers-hero__actions .button,
  .careers-hero__text-link {
    width: 100%;
    justify-content: center;
  }

  .careers-hero__visual {
    min-height: min(90vw, 430px);
    border-radius: 24px;
  }

  .careers-hero__visual figcaption {
    right: 0.8rem;
    bottom: 0.8rem;
    left: 0.8rem;
    max-width: none;
  }

  .roles-section {
    padding-block: 4.5rem;
  }

  .roles-heading {
    margin-bottom: 2.5rem;
  }

  .roles-heading h2 {
    font-size: clamp(3.25rem, 14vw, 4.25rem);
  }

  .role-paths {
    grid-template-columns: 1fr;
  }

  .role-path {
    padding: 2.7rem 0;
  }

  .role-path:first-child {
    border-right: 0;
    border-bottom: 1px solid rgba(10, 41, 66, 0.18);
  }

  .role-path__heading h3 {
    font-size: clamp(2.65rem, 12vw, 3.5rem);
  }

  .application-section {
    padding-block: 4rem;
  }

  .application-layout {
    width: calc(100vw - 24px);
    border-radius: 20px;
  }

  .application-form-panel {
    padding: 2.2rem 1.25rem 2.5rem;
  }

  .application-heading {
    margin-bottom: 2.2rem;
  }

  .application-heading h2 {
    font-size: clamp(3.2rem, 14vw, 4.1rem);
  }

  .role-choice__grid,
  .form-row--two {
    grid-template-columns: 1fr;
  }

  .role-choice__grid span {
    justify-content: flex-start;
    min-height: 50px;
    padding-inline: 1rem;
  }

  .form-submit {
    width: 100%;
  }

  .application-contact {
    min-height: 0;
    padding: 3rem 1.4rem;
  }

  .application-contact h2 {
    font-size: clamp(3rem, 13vw, 3.8rem);
  }
}

@media (max-width: 420px) {
  .careers-hero__layout {
    width: calc(100vw - 32px);
  }

  .careers-hero__note {
    font-size: 0.82rem;
  }

  .roles-section .shell {
    width: calc(100vw - 32px);
  }

  .role-path__heading {
    align-items: center;
  }

  .role-path__heading svg {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .application-form-panel {
    padding-inline: 1rem;
  }

  .file-control {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .role-path__link::after,
  .role-choice__grid span,
  .form-field input,
  .form-field textarea,
  .file-control {
    transition: none;
  }
}
