:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172c4a;
  background: #f6f0e7;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f6f0e7;
}

body[data-embedded="true"] { background: transparent; }

body[data-embedded="true"] .form-shell {
  padding-top: .5rem;
  padding-bottom: 1rem;
}

.form-shell {
  width: min(58rem, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

.career-page {
  text-align: left;
  transition: opacity .16s ease, transform .16s ease;
}

.career-page.is-confirming {
  opacity: 0;
  transform: scale(.995);
}

.career-hero,
.content-section,
.form-panel,
.confirmation {
  border: 1px solid rgba(44, 69, 105, .12);
  background: #fffaf3;
}

.career-hero {
  padding: clamp(2rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: .5rem;
}

.content-section,
.form-panel,
.confirmation {
  margin-top: 1rem;
  padding: clamp(1.35rem, 5vw, 3rem);
  border-radius: .45rem;
}

.content-section:nth-of-type(even) {
  background: #f6f0e7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: #172c4a;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.65rem, 12vw, 5.4rem);
  font-weight: 760;
}

h2 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 740;
}

h3 {
  margin-bottom: .45rem;
  font-size: 1.05rem;
}

p,
li {
  color: #4f5d70;
  font-size: 1.05rem;
  line-height: 1.65;
}

p:last-child { margin-bottom: 0; }

.eyebrow {
  margin-bottom: .8rem;
  color: #2c4569;
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: .8rem;
  padding: .8rem 1.1rem;
  border-radius: .35rem;
  background: #9a6242;
  color: #fffaf3;
  font-weight: 760;
  text-decoration: none;
}

.supporting-line,
.highlight,
.note {
  color: #172c4a;
  font-weight: 650;
}

.supporting-line {
  margin-top: 1rem;
}

.highlight {
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: .22rem solid #9a6242;
}

.benefit-grid {
  display: grid;
  gap: .75rem;
}

.benefit-item {
  padding: 1rem;
  border: 1px solid rgba(44, 69, 105, .14);
  border-radius: .35rem;
  background: rgba(255, 250, 243, .72);
}

.benefit-item p {
  font-size: .98rem;
}

.requirements-list {
  display: grid;
  gap: .55rem;
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.application-section {
  background: #e8dccd;
}

.form-panel h2 {
  max-width: none;
  font-size: clamp(1.8rem, 7vw, 3rem);
}

.field { margin: 1.15rem 0; }

.candidate-section-title {
  max-width: none;
  margin: 2rem 0 .7rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(44, 69, 105, .16);
  font-size: clamp(1.3rem, 5vw, 1.7rem);
}

form > .candidate-section-title:first-of-type {
  margin-top: .75rem;
  padding-top: 0;
  border-top: 0;
}

.birth-certificate-fields {
  display: grid;
  gap: 0;
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid rgba(44, 69, 105, .22);
  border-radius: .5rem;
  background: rgba(255, 250, 243, .72);
}

.birth-certificate-fields legend {
  padding: 0 .45rem;
  color: #172c4a;
  font-weight: 700;
}

label {
  display: block;
  margin-bottom: .4rem;
  color: #172c4a;
  font-weight: 650;
}

.phone-entry {
  display: grid;
  gap: .55rem;
}

.phone-country-label {
  margin: 0;
  color: #4f5d70;
  font-size: .9rem;
  font-weight: 650;
}

.phone-entry select {
  width: min(100%, 17rem);
}

.phone-number {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
}

.phone-number-international {
  grid-template-columns: minmax(0, 1fr);
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(44, 69, 105, .32);
  border-right: 0;
  border-radius: .35rem 0 0 .35rem;
  background: #e8dccd;
  color: #172c4a;
  font-weight: 760;
}

.phone-number-mx input {
  border-radius: 0 .35rem .35rem 0;
}

.phone-note {
  margin: 0;
  color: #4f5d70;
  font-size: .9rem;
  line-height: 1.45;
}

input,
textarea,
select,
button {
  width: 100%;
  font: inherit;
}

input,
textarea,
select {
  min-height: 3rem;
  padding: .75rem;
  border: 1px solid rgba(44, 69, 105, .32);
  border-radius: .35rem;
  background: #fffaf3;
  color: #172c4a;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(154, 98, 66, .65);
  outline-offset: 2px;
}

button {
  min-height: 3.1rem;
  border: 0;
  border-radius: .35rem;
  padding: .85rem;
  background: #2c4569;
  color: #fffaf3;
  font-weight: 760;
  cursor: pointer;
}

button[disabled] {
  opacity: .65;
  cursor: wait;
}

.error-summary,
.field-error {
  color: #8a1c1c;
}

.error-summary {
  padding: .8rem;
  border-left: .3rem solid currentColor;
  background: #fffaf3;
}

.field-error { margin: .35rem 0 0; }

[aria-invalid="true"] {
  border-color: #8a1c1c;
}

.form-status {
  min-height: 1.6rem;
  margin: .75rem 0;
  color: #172c4a;
  font-weight: 650;
  line-height: 1.45;
}

.form-status[data-state="error"] {
  padding: .8rem;
  border-left: .3rem solid #8a1c1c;
  background: #fffaf3;
  color: #8a1c1c;
}

.file-note,
.file-status {
  margin: .4rem 0 0;
  font-size: .92rem;
  line-height: 1.45;
}

.file-status[data-state="error"] { color: #8a1c1c; }
.file-status[data-state="ready"] { color: #2c4569; }

.required-note,
.privacy-note {
  font-size: .92rem;
  color: #4f5d70;
}

a { color: #2c4569; }

.confirmation {
  padding: clamp(2rem, 8vw, 4rem);
}

.career-page.has-confirmation {
  display: grid;
  min-height: 32rem;
  padding-bottom: 1rem;
}

.success-state {
  position: relative;
  display: grid;
  align-content: center;
  width: 100%;
  min-height: 30rem;
  margin-top: 0;
  padding: clamp(2rem, 8vw, 4.25rem);
  overflow: hidden;
  border-color: rgba(44, 69, 105, .18);
  background: #fffaf3;
  text-align: left;
  scroll-margin-top: .75rem;
  animation: success-content-in .56s cubic-bezier(.22, .8, .28, 1) both;
}

.success-state::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 12%, rgba(232, 220, 205, .72), transparent 42%);
  content: "";
  pointer-events: none;
}

.success-state > * {
  position: relative;
}

.success-state:focus {
  outline: 2px solid rgba(154, 98, 66, .3);
  outline-offset: -2px;
}

.success-state .eyebrow {
  margin-bottom: .7rem;
  color: #9a6242;
}

.success-state h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 8vw, 3.65rem);
}

.success-state p {
  max-width: 38rem;
  text-align: left;
}

.success-confirmation {
  margin-bottom: .8rem;
  color: #172c4a;
  font-size: clamp(1.12rem, 4vw, 1.35rem);
  font-weight: 720;
}

.success-supporting {
  margin-bottom: .9rem;
  color: #2c4569;
  font-size: clamp(1.04rem, 3.5vw, 1.18rem);
  line-height: 1.55;
}

.success-follow-up {
  margin-bottom: 0;
  color: #4f5d70;
  font-size: 1rem;
  line-height: 1.6;
}

.success-mark {
  width: 4.5rem;
  margin-bottom: 1.15rem;
  color: #2c4569;
}

.success-mark svg {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-mark__ring {
  stroke-width: 1.5;
  stroke-dasharray: 183;
  stroke-dashoffset: 183;
  animation: success-stroke-in .52s ease-out .08s forwards;
}

.success-mark__check {
  stroke-width: 3;
  stroke-dasharray: 38;
  stroke-dashoffset: 38;
  animation: success-stroke-in .35s ease-out .42s forwards;
}

.success-mark__accent {
  display: block;
  width: 2.15rem;
  height: 2px;
  margin: .5rem 0 0 .15rem;
  background: #9a6242;
  transform: scaleX(0);
  transform-origin: left center;
  animation: success-accent-in .28s ease-out .5s forwards;
}

@keyframes success-content-in {
  from { opacity: 0; transform: scale(.98) translateY(.4rem); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes success-stroke-in {
  to { stroke-dashoffset: 0; }
}

@keyframes success-accent-in {
  to { transform: scaleX(1); }
}

[hidden] { display: none !important; }

@media (min-width: 48rem) {
  .form-shell {
    padding: 2rem 1.5rem 5rem;
  }

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

@media (min-width: 64rem) {
  .benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }

  .career-page,
  .success-state,
  .success-mark__ring,
  .success-mark__check,
  .success-mark__accent {
    animation: none;
    transition: none;
  }

  .success-mark__ring,
  .success-mark__check {
    stroke-dashoffset: 0;
  }

  .success-mark__accent {
    transform: scaleX(1);
  }
}
