:root {
  --navy: #0b1f3a;
  --navy-soft: #17385f;
  --blue: #1769aa;
  --blue-dark: #0d4f85;
  --gold: #c89835;
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #dfe5ec;
  --surface: #ffffff;
  --background: #f4f7fa;
  --success: #117a55;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(11, 31, 58, .13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(23, 105, 170, .09), transparent 28rem),
    linear-gradient(135deg, #f9fbfd 0%, var(--background) 100%);
  font: 400 16px/1.6 "DM Sans", system-ui, sans-serif;
}

button, input, select, textarea { font: inherit; }

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(48px, 7vw, 92px);
  align-items: start;
}

.hero-copy { position: sticky; top: 48px; padding-top: 10px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  font: 800 13px/1 "Manrope", sans-serif;
  letter-spacing: .06em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 72px 0 16px;
  color: var(--blue-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}

.flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: inset 8px 0 #147b4c, inset -8px 0 #cf2e2e;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, .1);
}

h1, h2 { font-family: "Manrope", sans-serif; color: var(--navy); letter-spacing: -.045em; }

h1 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: 1.02; max-width: 11ch; }

.hero-lede { margin: 26px 0 28px; max-width: 580px; color: var(--muted); font-size: 1.12rem; }

.job-facts { display: flex; flex-wrap: wrap; gap: 8px; }

.job-facts span {
  padding: 7px 11px;
  border: 1px solid #cdd8e4;
  border-radius: 999px;
  color: var(--navy-soft);
  background: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 600;
}

.compensation {
  display: grid;
  grid-template-columns: auto 1fr;
  width: fit-content;
  margin: 32px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(255,255,255,.76);
}

.compensation-label { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.compensation strong { color: var(--navy); font: 800 1.7rem/1.2 "Manrope", sans-serif; }
.compensation strong + span { align-self: end; margin-left: 10px; color: var(--muted); }

.requirements { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.requirements li { position: relative; padding-left: 30px; color: var(--navy-soft); }
.requirements li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 13px; height: 7px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }

.form-shell {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(11, 31, 58, .08);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-label { margin: 0 0 6px; color: var(--blue); text-transform: uppercase; letter-spacing: .13em; font-weight: 700; font-size: .75rem; }
.form-heading h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.16; }
.form-heading > p:last-child { margin: 12px 0 32px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-wide { grid-column: 1 / -1; }

label, legend { color: var(--navy); font-weight: 650; font-size: .9rem; }

input, select, textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus, select:focus, textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(23,105,170,.12); }
textarea { resize: vertical; min-height: 112px; }
select { cursor: pointer; }

.field-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 5px; color: var(--muted); font-size: .76rem; }
.error { min-height: 1.15em; margin-top: 4px; color: var(--danger); font-size: .78rem; }
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(180,35,24,.08) !important; }

.availability { margin: 0; padding: 0; border: 0; }
.choice { display: inline-flex; align-items: center; gap: 9px; margin: 10px 22px 0 0; cursor: pointer; font-weight: 500; }
.choice input, .consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }

#resume { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.file-drop {
  min-height: 134px;
  margin-top: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 20px;
  border: 1.5px dashed #aebdcb;
  border-radius: 14px;
  text-align: center;
  color: var(--navy-soft);
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.file-drop:hover, .file-drop.dragging { border-color: var(--blue); background: #f0f7fc; }
.file-drop svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.file-drop small { color: var(--muted); font-weight: 400; }
.file-name { margin: 7px 0 0; color: var(--muted); font-size: .8rem; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 24px; color: var(--muted); font-weight: 400; font-size: .84rem; cursor: pointer; }
.consent input { margin-top: 3px; }

.submit-button {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.submit-button:hover { background: var(--blue-dark); box-shadow: 0 10px 24px rgba(23,105,170,.2); transform: translateY(-1px); }
.submit-button:focus-visible { outline: 3px solid rgba(23,105,170,.3); outline-offset: 3px; }
.submit-button:disabled { cursor: wait; opacity: .75; transform: none; }
.button-loading { display: none; }
.submit-button.loading .button-label { display: none; }
.submit-button.loading .button-loading { display: inline; }

.form-note { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: .78rem; }
.status-message { display: none; margin-top: 18px; padding: 15px 16px; border-radius: 10px; font-weight: 600; }
.status-message.success { display: block; color: #0d5f43; background: #e9f7f1; border: 1px solid #b9e3d2; }
.status-message.failure { display: block; color: #8a1c14; background: #fef0ee; border: 1px solid #f3c1bc; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 32px 0 54px; }
  .hero-copy { position: static; }
  .eyebrow { margin-top: 48px; }
  h1 { max-width: 13ch; }
}

@media (max-width: 600px) {
  .hero { width: min(100% - 24px, 560px); gap: 38px; }
  .form-shell { padding: 26px 20px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .field-wide { grid-column: auto; }
  .compensation { grid-template-columns: 1fr; }
  .compensation strong + span { margin: 2px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.success-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.success-card { width: min(620px, 100%); padding: clamp(34px, 6vw, 64px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.success-card h1 { max-width: none; margin: 10px 0 16px; font-size: clamp(2.1rem, 5vw, 3.5rem); }
.success-card > p:not(.step-label) { color: var(--muted); }
.success-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 24px; border-radius: 50%; background: #e9f7f1; }
.success-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--success); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.return-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; margin-top: 18px; padding: 0 20px; border-radius: 10px; color: #fff; background: var(--blue); text-decoration: none; font-weight: 700; }
.return-link:focus-visible { outline: 3px solid rgba(23,105,170,.3); outline-offset: 3px; }
