.career-board {
  position: relative;
  z-index: 1;
  margin-top: -78px;
  padding-bottom: 24px;
}

.career-board__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: 32px;
  padding: 28px 32px 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(6, 59, 88, .07);
}

.career-board__head h2 {
  margin: 0;
  max-width: 13em;
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.08;
  color: #022b43;
}

.career-board__head h2 strong {
  color: #0076b5;
  font-weight: 900;
}

.career-board__lead {
  max-width: 38ch;
  margin: 0 0 6px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  color: #496778;
}

.career-jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.career-job {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  padding: 28px 26px 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(6, 59, 88, .07);
}

.career-job > span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0088ce;
}

.career-job h3 {
  margin: 14px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: #022b43;
}

.career-job > p {
  margin: 12px 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: #496778;
}

.career-job__more {
  margin-top: auto;
  flex: none;
  min-width: max-content;
}

.career-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.career-modal[hidden] {
  display: none;
}

.career-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 24, 40, .62);
  backdrop-filter: blur(6px);
}

.career-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: min(88vh, 780px);
  overflow: auto;
  padding: 32px 28px 28px;
  border-radius: 24px;
  background: #fff;
  color: #123e55;
  box-shadow: 0 28px 64px rgba(0, 30, 52, .28);
  animation: career-modal-enter 280ms cubic-bezier(.22, 1, .36, 1) both;
}

.career-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #033651;
  cursor: pointer;
}

.career-modal__close svg {
  display: block;
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1);
}

.career-modal__close:hover {
  color: #078bc9;
}

.career-modal__close:hover svg {
  transform: rotate(90deg) scale(1.08);
}

.career-modal__close:focus-visible {
  outline: 3px solid #42bdf4;
  outline-offset: 3px;
  border-radius: 8px;
}

.career-modal__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0088ce;
}

.career-modal__title {
  margin: 0 0 12px;
  padding-right: 36px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: #022b43;
}

.career-modal__body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: #496778;
}

.career-modal__body h4 {
  margin: 22px 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0088ce;
}

.career-modal__body ul {
  margin: 0 0 8px;
  padding: 0 0 0 18px;
}

.career-modal__body li {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: #496778;
}

.career-modal__dialog .button {
  margin-top: 18px;
}

@keyframes career-modal-enter {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.is-career-open {
  overflow: hidden;
}

.career-apply {
  padding: 64px 0 24px;
}

.career-form {
  gap: 16px;
}

.career-form__body {
  display: grid;
  gap: 16px;
}

.career-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 16px;
  overflow: visible;
}

.career-form legend {
  padding: 0;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0088ce;
}

.career-form .contact-form__grid {
  gap: 16px;
}

.career-form input,
.career-form select {
  min-height: 48px;
}

.career-form textarea {
  min-height: 128px;
}

.career-form .contact-form__actions {
  margin-top: 0;
  gap: 16px;
}

.career-select {
  position: relative;
}

.career-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.career-select__btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 13px 42px 13px 14px;
  border: 0;
  border-radius: 12px;
  background: #f0f7fb;
  color: #033651;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.career-select__btn.is-placeholder {
  color: #658596;
  font-weight: 400;
}

.career-select__btn::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 12px;
  height: 8px;
  transform: translateY(-50%);
  background: currentColor;
  color: #0076b5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1);
}

.career-select {
  color: #033651;
}

.career-select.is-open .career-select__btn::after {
  transform: translateY(-50%) rotate(180deg);
}

.career-select__btn:focus-visible,
.career-select.is-open .career-select__btn {
  box-shadow: 0 0 0 3px rgba(0, 136, 206, .14);
}

.career-select__list {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 24;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(2, 43, 67, .16);
}

.career-select.is-open .career-select__list {
  display: grid;
  gap: 2px;
}

.career-select__option {
  padding: 11px 12px;
  border-radius: 10px;
  color: #033651;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

.career-select__option:hover,
.career-select__option.is-active {
  background: #f0f7fb;
  color: #022b43;
}

.career-select__option.is-selected {
  background: #e8f4fb;
  color: #0076b5;
  font-weight: 700;
}

.career-form select {
  width: 100%;
  max-width: 100%;
  padding: 13px 42px 13px 14px;
  border: 0;
  border-radius: 12px;
  background: #f0f7fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%230076b5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center no-repeat;
  color: #033651;
  font: inherit;
  font-size: 16px;
  outline: none;
  appearance: none;
}

.career-form select:focus,
.career-form input[type="file"]:focus {
  box-shadow: 0 0 0 3px rgba(0, 136, 206, .14);
}

.career-file {
  position: relative;
  cursor: pointer;
}

.career-file input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.career-file [data-file-label] {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: #f0f7fb;
  color: #033651;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.career-file:focus-within [data-file-label] {
  box-shadow: 0 0 0 3px rgba(0, 136, 206, .14);
}

.career-form__error {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #b42318;
}

.form-status {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.form-status:empty { display: none; }
.form-status.success { color: #14633a; }
.form-status.error { color: #8d2b2b; }

.career-form.is-sent .career-form__body {
  display: none;
}

.career-form.is-sent .contact-form__success {
  display: block;
}

.career-cta__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

.career-cta__actions .button {
  width: auto;
  min-width: 0;
  justify-content: center;
  margin-top: 0;
  flex: none;
}

@media (max-width: 1100px) {
  .career-board__head {
    display: block;
    text-align: center;
  }

  .career-board__head .section-eyebrow {
    justify-content: center;
  }

  .career-board__head h2,
  .career-board__lead {
    margin-inline: auto;
  }

  .career-board__head h2 br {
    display: none;
  }

  .career-board__lead {
    max-width: none;
    margin-top: 18px;
  }

  .career-job {
    text-align: center;
    align-items: center;
  }

  .career-apply .contact-form {
    text-align: center;
  }

  .career-apply .contact-form .section-eyebrow {
    justify-content: center;
  }

  .career-apply .contact-form label,
  .career-form legend {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .career-page .about-hero h1 {
    font-size: 36px;
  }

  .career-board {
    margin-top: -48px;
  }

  .career-board__head {
    padding: 22px 16px 20px;
  }

  .career-jobs {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .career-job {
    min-height: 0;
    padding: 22px 18px 20px;
  }

  .career-job h3 {
    font-size: 26px;
  }

  .career-apply {
    padding: 40px 0 8px;
  }

  .career-form {
    padding: 22px 16px 20px;
  }

  .career-modal__dialog {
    padding: 28px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .career-modal__dialog,
  .career-modal__close svg {
    animation: none;
    transition: none;
  }
}
