/* Careers page */
.careers-hero__visual {
  background: #000000 url("/assets/images/executive-event-security-guards.jpg") center top / cover no-repeat;
}

.careers-hero.contact-hero::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.28) 100%);
}

.careers-hero__cta {
  display: inline-flex;
  width: auto;
  margin-top: 2rem;
  padding-inline: 2.5rem;
}

/* Requirements */
.careers-requirements__header {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.careers-requirements__header p {
  margin: 1.1rem 0 0;
  color: #4b5565;
  font-size: clamp(1.03rem, 1.35vw, 1.17rem);
  line-height: 1.6;
}

.careers-requirements__panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.careers-requirements__panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #f3f7fa;
  border-top: 5px solid #05a7df;
  border-radius: 8px;
}

.careers-requirements__panel:last-child {
  border-top-color: #075c94;
}

.careers-requirements__panel h3 {
  margin: 0;
  color: #071126;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.2;
}

.careers-requirements__list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.careers-requirements__list li {
  position: relative;
  padding: 1.15rem 0 1.15rem 2.25rem;
  border-top: 1px solid rgba(7, 17, 38, 0.12);
}

.careers-requirements__list li:first-child {
  border-top: 0;
}

.careers-requirements__list li:last-child {
  padding-bottom: 0;
}

/* Check mark drawn in CSS */
.careers-requirements__list li::before {
  position: absolute;
  top: 1.35rem;
  left: 0.35rem;
  width: 0.5rem;
  height: 0.95rem;
  border-right: 3px solid #078fbe;
  border-bottom: 3px solid #078fbe;
  content: "";
  transform: rotate(42deg);
}

.careers-requirements__list h4 {
  margin: 0;
  color: #071126;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.3;
}

.careers-requirements__list p {
  margin: 0.35rem 0 0;
  color: #4b5565;
  line-height: 1.55;
}

/* Application status notice */
.careers-no-calls {
  max-width: 860px;
  margin: clamp(3rem, 5vw, 4.5rem) auto 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #ffffff;
  border-left: 5px solid #075c94;
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(7, 17, 38, 0.08);
}

.careers-no-calls h3 {
  margin: 0;
  color: #071126;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}

.careers-no-calls p {
  margin: 0.7rem 0 0;
  color: #243044;
  font-size: 1.08rem;
  line-height: 1.6;
}

.careers-no-calls p.careers-no-calls__note {
  color: #566173;
  font-size: 0.95rem;
}

/* Application */
.careers-apply {
  scroll-margin-top: var(--header-height);
}

.careers-apply__inner {
  width: calc(100% - (2 * var(--page-gutter)));
  max-width: 960px;
  margin-inline: auto;
}

.careers-apply__header {
  margin-bottom: 2.25rem;
  text-align: center;
}

.careers-apply__header p {
  margin: 1rem 0 0;
  color: #4b5565;
  font-size: 1.08rem;
}

.careers-noscript {
  padding: 1.5rem;
  background: #f3f7fa;
  border-left: 4px solid #05a7df;
}

.careers-app {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.careers-app[hidden],
.careers-success[hidden],
.careers-step[hidden],
.careers-repeat[hidden],
.careers-add[hidden],
.careers-nav__back[hidden] {
  display: none;
}

.careers-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.careers-progress li {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  color: #687386;
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: center;
}

.careers-progress__number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #566173;
  background: #ffffff;
  border: 2px solid #bdc5d0;
  border-radius: 50%;
  font-weight: 700;
}

.careers-progress li.is-active {
  color: #071126;
  font-weight: 700;
}

.careers-progress li.is-active .careers-progress__number {
  color: #ffffff;
  background: #075c94;
  border-color: #075c94;
}

.careers-progress li.is-complete .careers-progress__number {
  color: #075c94;
  border-color: #05a7df;
}

.careers-counter {
  display: none;
  margin: 0 0 1rem;
  color: #075c94;
  font-weight: 700;
}

.careers-form {
  display: contents;
}

.careers-step h3 {
  margin: 0.75rem 0 0;
  color: #071126;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  outline: 0;
}

.careers-step h4 {
  margin: 2rem 0 0.75rem;
  padding-top: 1.5rem;
  color: #071126;
  border-top: 1px solid rgba(7, 17, 38, 0.12);
  font-size: 1.25rem;
}

.careers-repeat h5 {
  margin: 0.5rem 0 0.75rem;
  color: #075c94;
  font-size: 1rem;
}

.careers-step__intro {
  margin: 0.6rem 0 0;
  color: #4b5565;
  line-height: 1.6;
}

.careers-step > .contact-form__row:first-of-type,
.careers-step > .careers-choice:first-of-type {
  margin-top: 1.5rem;
}

.careers-step > .form-field:first-of-type {
  margin-top: 1.5rem;
}

.careers-voluntary {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.15rem;
  color: #243044;
  background: #e8f4fa;
  border-left: 4px solid #05a7df;
  line-height: 1.55;
}

.careers-address {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.careers-date {
  width: calc(50% - 0.5rem);
}

.careers-help {
  margin: 0;
  color: #566173;
  font-size: 0.9rem;
}

.contact-form .form-field input[type="file"] {
  height: auto;
  padding: 0.6rem;
}

.contact-form .form-field input[type="file"]::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.55rem 1rem;
  color: #ffffff;
  background: #075c94;
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.careers-choice {
  min-width: 0;
  margin: 0 0 1.35rem;
  padding: 0;
  border: 0;
}

.careers-choice legend {
  padding: 0;
  color: #101827;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.careers-choice__note {
  margin: 0.4rem 0 0;
  color: #566173;
  font-size: 0.92rem;
  line-height: 1.5;
}

.careers-choice__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.careers-choice__option {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 0.95rem;
  color: #101827;
  background: #ffffff;
  border: 1px solid #bdc5d0;
  border-radius: 3px;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.careers-choice__option:hover {
  border-color: #8290a3;
}

.careers-choice__option:has(input:checked) {
  background: #e8f4fa;
  border-color: #078fbe;
}

.careers-choice__option:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(5, 167, 223, 0.3);
}

.careers-choice__option input,
.careers-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #075c94;
}

.careers-add,
.careers-review__edit {
  color: #075c94;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.careers-add {
  min-height: 44px;
  padding: 0;
}

.careers-error {
  margin: 0.45rem 0 0;
  color: #b42318;
  font-size: 0.93rem;
  font-weight: 700;
}

.has-error > input,
.has-error > select,
.has-error > textarea {
  border-color: #b42318 !important;
}

.has-error .careers-choice__option {
  border-color: #b42318;
}

.careers-review__group {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(7, 17, 38, 0.12);
  border-radius: 4px;
}

.careers-review__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.careers-step .careers-review__header h4 {
  margin: 0;
  padding: 0;
  border: 0;
}

.careers-review__group dl {
  margin: 0.75rem 0 0;
}

.careers-review__group dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.5rem;
  border-top: 1px solid rgba(7, 17, 38, 0.08);
}

.careers-review__group dt {
  color: #566173;
}

.careers-review__group dd {
  margin: 0;
  color: #101827;
  overflow-wrap: anywhere;
}

.careers-review__voluntary {
  margin: 1.25rem 0;
  color: #4b5565;
}

.careers-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.5;
  cursor: pointer;
}

.careers-consent input {
  margin-top: 0.2rem;
}

.careers-consent a {
  color: #075c94;
  text-decoration: underline;
}

.careers-status {
  margin: 0.75rem 0 0;
  color: #243044;
}

.careers-status:empty {
  display: none;
}

.careers-status.is-error {
  color: #b42318;
  font-weight: 700;
}

.careers-nav {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.careers-nav .careers-nav__next {
  width: auto;
  min-width: 220px;
  margin: 0 0 0 auto;
}

.careers-nav__next:disabled,
.careers-nav__back:disabled {
  cursor: wait;
  opacity: 0.65;
}

.careers-nav__back {
  min-width: 120px;
  min-height: 50px;
  color: #071126;
  background: #ffffff;
  border: 1px solid #071126;
  border-radius: 3px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.careers-nav__back:hover:not(:disabled) {
  color: #ffffff;
  background: #071126;
}

.careers-success {
  justify-items: center;
  scroll-margin-top: calc(var(--header-height) + 1rem);
  text-align: center;
}

.careers-success h3 {
  margin: 0;
  color: #071126;
  font-size: clamp(2rem, 4vw, 3rem);
  outline: 0;
}

.careers-success p {
  max-width: 560px;
  margin: 1rem 0 1.75rem;
  color: #4b5565;
  line-height: 1.6;
}

.careers-success .button {
  width: auto;
  padding-inline: 2.5rem;
}

/* Notices */
.careers-notices {
  padding-block: clamp(3.5rem, 5vw, 5rem);
  background: #f3f5f7;
}

.careers-notices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}

.careers-notices h2 {
  margin: 0;
  color: #071126;
  font-size: 1.3rem;
}

.careers-notices #applicant-privacy {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.careers-notices p {
  margin: 0.7rem 0 0;
  color: #4b5565;
  font-size: 0.95rem;
  line-height: 1.65;
}

.careers-notices a {
  color: #075c94;
  text-decoration: underline;
}

@media (max-width: 820px) {
  .careers-requirements__panels,
  .careers-notices__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .careers-progress {
    display: none;
  }

  .careers-counter {
    display: block;
  }

  .careers-address {
    grid-template-columns: 1fr 1fr;
  }

  .careers-address .form-field:first-child {
    grid-column: 1 / -1;
  }

  .careers-date {
    width: 100%;
  }

  .careers-choice__option {
    width: 100%;
  }

  .careers-review__group dl > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .careers-nav .careers-nav__next {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .careers-choice__option,
  .careers-nav__back {
    transition: none;
  }
}
