.application-page {
  --job-blue: #014672;
  --job-blue-bright: #036ea5;
  --job-blue-soft: #eaf4fc;
  --job-orange: #f39100;
  --job-orange-dark: #d97706;
  --job-ink: #263746;
  --job-muted: #5e7080;
  --job-line: #dbe5ec;
  --job-surface: #ffffff;
  background: #f5f8fa;
  color: var(--job-ink);
  font-family: "Poppins", sans-serif;
}

.application-page .job-eyebrow,
.application-page .section-kicker {
  color: var(--job-orange-dark);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.application-page .application-hero .job-eyebrow {
  color: #ffbd61;
}

.application-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14), transparent 22rem),
    linear-gradient(135deg, #013b61, #036ea5);
  color: #fff;
  margin-top: 100px;
  padding: 4.5rem 1rem 6rem;
  text-align: center;
}

.application-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
}

.application-hero p {
  color: #d9edf7;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 760px;
}

.application-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.6fr);
  margin: -2.5rem auto 5rem;
  max-width: 1160px;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.application-aside,
.application-card,
.application-success {
  background: #fff;
  border: 1px solid rgba(1, 70, 114, 0.1);
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(20, 51, 72, 0.12);
}

.application-aside {
  padding: 1.8rem;
  position: sticky;
  top: 120px;
}

.application-aside h2 {
  color: var(--job-blue);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.application-benefits {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.application-benefits li {
  align-items: flex-start;
  display: flex;
  gap: 0.8rem;
  line-height: 1.45;
}

.application-benefits i {
  align-items: center;
  background: var(--job-blue-soft);
  border-radius: 0.55rem;
  color: var(--job-blue);
  display: flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.application-benefits span {
  color: var(--job-muted);
  font-size: 0.88rem;
}

.application-benefits strong {
  color: var(--job-ink);
  font-size: 0.93rem;
}

.application-contact {
  border-top: 1px solid var(--job-line);
  display: grid;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding-top: 1.3rem;
}

.application-contact strong {
  color: var(--job-blue);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.application-contact a {
  color: var(--job-muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.application-contact a:hover {
  color: var(--job-orange-dark);
}

.application-card {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.application-card-heading h2 {
  color: var(--job-blue);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0;
}

.application-card-heading p {
  color: var(--job-muted);
  font-size: 0.88rem;
  margin: 0.4rem 0 0;
}

.application-alert {
  align-items: flex-start;
  background: #fff5eb;
  border: 1px solid #f7c997;
  border-radius: 0.7rem;
  color: #7a3f00;
  display: flex;
  font-size: 0.9rem;
  gap: 0.65rem;
  line-height: 1.55;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
}

.application-alert i {
  font-size: 1.1rem;
  margin-top: 0.05rem;
}

.application-progress {
  align-items: center;
  display: flex;
  margin: 2rem 0 2.35rem;
}

.progress-step {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--job-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0;
}

.progress-step span {
  align-items: center;
  background: #eef3f6;
  border: 2px solid #d8e2e8;
  border-radius: 50%;
  display: flex;
  font-size: 0.85rem;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.progress-step small {
  font-size: 0.73rem;
  font-weight: 600;
}

.progress-step.is-active,
.progress-step.is-complete {
  color: var(--job-blue);
}

.progress-step.is-active span {
  background: var(--job-blue);
  border-color: var(--job-blue);
  color: #fff;
  opacity: 1;
  visibility: visible;
}

.progress-step.is-complete span {
  background: #e8f6ed;
  border-color: #47a868;
  color: #267340;
}

.progress-line {
  background: #dce5ea;
  height: 2px;
  margin: 0 0.55rem 1.25rem;
  max-width: 150px;
  min-width: 30px;
  width: 100%;
}

.application-step h3 {
  color: var(--job-blue);
  font-size: 1.28rem;
  font-weight: 700;
  margin: 0 0 1.35rem;
}

.js .application-step {
  display: none;
}

.js .application-step.is-active {
  display: block;
}

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

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  color: var(--job-ink);
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.38rem;
}

.optional {
  color: var(--job-muted);
  font-size: 0.74rem;
  font-weight: 400;
  margin-left: 0.2rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: #fff;
  border: 1px solid #cfdbe3;
  border-radius: 0.6rem;
  color: var(--job-ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  padding: 0.75rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--job-blue-bright);
  box-shadow: 0 0 0 4px rgba(3, 110, 165, 0.1);
}

.form-field input:user-invalid,
.form-field select:user-invalid,
.privacy-check input:user-invalid {
  border-color: #b42318;
}

.selected-job {
  align-items: flex-start;
  background: #f4f9fc;
  border: 1px solid #d9e8f1;
  border-radius: 0.8rem;
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
}

.selected-job-icon {
  align-items: center;
  background: var(--job-blue);
  border-radius: 0.65rem;
  color: #fff;
  display: flex;
  flex: 0 0 48px;
  font-size: 1.25rem;
  height: 48px;
  justify-content: center;
}

.selected-job span {
  color: var(--job-orange-dark);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.selected-job strong {
  color: var(--job-blue);
  display: block;
  line-height: 1.4;
}

.selected-job p {
  color: var(--job-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0.45rem 0 0;
}

.step-actions {
  align-items: center;
  border-top: 1px solid var(--job-line);
  display: flex;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
}

.step-actions-end {
  justify-content: flex-end;
}

.application-next,
.application-submit,
.application-back {
  align-items: center;
  border-radius: 0.55rem;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 0.5rem;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.1rem;
}

.application-next,
.application-submit {
  background: var(--job-orange);
  border: 1px solid var(--job-orange);
  box-shadow: 0 5px 14px rgba(217, 119, 6, 0.22);
  color: #fff;
  opacity: 1;
  visibility: visible;
}

.application-next:hover,
.application-submit:hover {
  background: var(--job-orange-dark);
  border-color: var(--job-orange-dark);
}

.application-submit:disabled {
  cursor: wait;
  opacity: 0.75;
}

.application-submit:disabled i {
  animation: applicationSpin 0.9s linear infinite;
}

@keyframes applicationSpin {
  to { transform: rotate(360deg); }
}

.application-back {
  background: #fff;
  border: 1px solid #cbd8e0;
  color: var(--job-blue);
}

.application-back:hover {
  background: #f3f7fa;
}

.application-dropzone {
  align-items: center;
  background: #f5f9fc;
  border: 2px dashed #a9c4d5;
  border-radius: 0.8rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  justify-content: center;
  padding: 1.2rem;
  position: relative;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.application-dropzone:hover,
.application-dropzone:focus-within,
.application-dropzone.is-dragging {
  background: #edf7fd;
  border-color: var(--job-blue-bright);
}

.application-dropzone input {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
}

.application-dropzone i {
  color: var(--job-blue);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.application-dropzone strong {
  color: var(--job-blue);
}

.application-dropzone span {
  color: var(--job-muted);
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.application-files {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.application-file {
  align-items: center;
  background: #fff;
  border: 1px solid var(--job-line);
  border-radius: 0.55rem;
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
}

.application-file i {
  color: #d3473f;
}

.application-file span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-file small {
  color: var(--job-muted);
  margin-left: auto;
  white-space: nowrap;
}

.application-file-remove {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--job-muted);
  cursor: pointer;
  display: flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  padding: 0;
}

.application-file-remove:hover {
  background: #fff0ee;
  color: #b42318;
}

.field-error {
  color: #b42318;
  font-size: 0.82rem;
  margin: 0.45rem 0 0;
  min-height: 1.2em;
}

.character-count {
  color: var(--job-muted);
  display: block;
  font-size: 0.75rem;
  margin-top: 0.3rem;
  text-align: right;
}

.privacy-check {
  align-items: flex-start;
  color: var(--job-muted);
  display: flex;
  font-size: 0.85rem;
  gap: 0.65rem;
  line-height: 1.55;
  margin: 1.2rem 0;
}

.privacy-check input {
  flex: 0 0 auto;
  height: 18px;
  margin-top: 0.15rem;
  width: 18px;
}

.privacy-check a {
  color: var(--job-blue);
  font-weight: 600;
}

.turnstile-wrap {
  min-height: 70px;
  overflow: hidden;
}

.submission-note {
  align-items: flex-start;
  background: #f3f7fa;
  border-radius: 0.55rem;
  color: var(--job-muted);
  display: flex;
  font-size: 0.78rem;
  gap: 0.55rem;
  line-height: 1.55;
  margin-top: 0.8rem;
  padding: 0.75rem;
}

.submission-note i {
  color: var(--job-blue);
}

.hp-field {
  height: 1px !important;
  left: -10000px !important;
  overflow: hidden !important;
  position: absolute !important;
  width: 1px !important;
}

.application-success {
  margin: -2.5rem auto 5rem;
  max-width: 720px;
  padding: clamp(2rem, 6vw, 4rem);
  position: relative;
  text-align: center;
  z-index: 2;
}

.success-icon {
  align-items: center;
  background: #e8f7ed;
  border-radius: 50%;
  color: #227542;
  display: flex;
  font-size: 2rem;
  height: 74px;
  justify-content: center;
  margin: 0 auto 1.25rem;
  width: 74px;
}

.application-success h2 {
  color: var(--job-blue);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 700;
}

.application-success p {
  color: var(--job-muted);
  line-height: 1.7;
}

.application-reference {
  background: #f3f7fa;
  border-radius: 0.55rem;
  display: inline-block;
  padding: 0.7rem 1rem;
}

.success-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.success-actions .btn-apply {
  margin: 0;
}

.secondary-link {
  color: var(--job-blue);
  font-weight: 700;
  text-decoration: none;
}

.application-success .btn-apply {
  align-items: center;
  background: var(--job-orange);
  border-radius: 0.55rem;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  text-decoration: none;
}

.application-success .btn-apply:hover {
  background: var(--job-orange-dark);
  color: #fff;
}

@media (max-width: 900px) {
  .application-hero {
    margin-top: 80px;
  }

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

  .application-aside {
    position: static;
  }

  .application-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .application-hero {
    padding-bottom: 4.5rem;
  }

  .application-card {
    padding: 1.2rem;
  }

  .form-grid,
  .application-benefits {
    grid-template-columns: 1fr;
  }

  .progress-step small {
    display: none;
  }

  .progress-line {
    margin-bottom: 0;
  }

  .selected-job {
    flex-direction: column;
  }

  .step-actions,
  .success-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .application-next,
  .application-submit,
  .application-back,
  .success-actions a {
    width: 100%;
  }
}

html[data-theme="dark"] :is(.application-aside, .application-card, .application-success) {
  background: var(--theme-surface);
  border-color: var(--theme-border);
  color: var(--theme-text);
}

html[data-theme="dark"] :is(.application-card-heading p, .application-benefits span,
  .application-contact a, .selected-job p, .privacy-check, .submission-note,
  .application-success p, .application-file small) {
  color: var(--theme-text-muted);
}

html[data-theme="dark"] :is(.application-benefits strong, .form-field label) {
  color: var(--theme-text);
}

html[data-theme="dark"] :is(.selected-job, .application-dropzone, .submission-note,
  .application-reference) {
  background: var(--theme-surface-soft);
  border-color: var(--theme-border);
  color: var(--theme-text);
}

html[data-theme="dark"] .application-file {
  background: var(--theme-surface-raised);
  border-color: var(--theme-border);
  color: var(--theme-text);
}

html[data-theme="dark"] .application-alert {
  background: #352718;
  border-color: #80531f;
  color: #ffd6ad;
}

html[data-theme="dark"] .progress-step span {
  background: var(--theme-surface-soft);
  border-color: var(--theme-border);
}
