:root {
  --ink: #172033;
  --muted: #667085;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --line: #dbe3ef;
  --line-strong: #c8d3e1;
  --navy: #14213d;
  --blue: #2357d9;
  --blue-dark: #1a46b7;
  --red: #d54848;
  --green: #11805a;
  --gold: #d99318;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(23, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(35, 87, 217, 0.08), rgba(17, 128, 90, 0.07)),
    #f4f6fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(20, 33, 61, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 61, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 78%);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 22px;
  padding: 32px 20px;
}

.application-card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(304px, 0.82fr) minmax(0, 1.35fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(200, 211, 225, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 36px;
  color: #ffffff;
  background:
    linear-gradient(150deg, rgba(213, 72, 72, 0.24), transparent 42%),
    linear-gradient(180deg, #14213d, #183b63 62%, #0f5d55);
}

.brand-panel::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 38%;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 14px);
  content: "";
  opacity: 0.55;
}

.brand-panel > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.22));
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 18px;
  font-weight: 800;
}

.brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.hero-copy {
  margin-top: 22px;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 10ch;
  margin: 0;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.02;
}

.hero-copy p:last-child {
  max-width: 33ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.7;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.stat-strip div {
  min-width: 0;
  padding: 15px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-strip strong,
.stat-strip span {
  display: block;
}

.stat-strip strong {
  color: #ffffff;
  font-size: 20px;
}

.stat-strip span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.assurance-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
}

.assurance-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.assurance-list li::before {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.18);
  content: "";
}

.form-panel {
  padding: 38px 42px 34px;
}

.form-header {
  margin-bottom: 28px;
}

.form-header h2,
.step-title {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
}

.form-header p:last-child,
.muted {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.form-header p:last-child {
  max-width: 54ch;
  margin: 8px 0 0;
}

.muted {
  margin: 9px 0 26px;
}

.progress {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bar {
  height: 8px;
  overflow: hidden;
  background: #e9edf4;
  border-radius: 999px;
}

.bar i {
  display: block;
  width: 33.33%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: inherit;
  transition: width 0.28s ease;
}

.step-pips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.step-pips li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #7a8495;
  font-size: 13px;
  font-weight: 750;
}

.step-pips span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: #637083;
  background: #edf1f6;
  border: 1px solid #d9e1ec;
  border-radius: 50%;
}

.step-pips b {
  overflow: hidden;
  font-weight: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-pips li.active,
.step-pips li.complete {
  color: var(--ink);
}

.step-pips li.active span,
.step-pips li.complete span {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.step-pips li.complete span {
  background: var(--green);
  border-color: var(--green);
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fade 0.24s ease;
}

@keyframes fade {
  from {
    opacity: 0.25;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

label {
  display: block;
  margin: 20px 0 8px;
  color: #263348;
  font-size: 14px;
  font-weight: 750;
}

.required {
  color: var(--red);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  background: #ffffff;
  color: inherit;
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input,
textarea {
  padding: 13px 14px;
}

select {
  appearance: none;
  padding: 13px 42px 13px 14px;
  background-image:
    linear-gradient(45deg, transparent 50%, #637083 50%),
    linear-gradient(135deg, #637083 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 21px,
    calc(100% - 16px) 21px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

textarea {
  min-height: 132px;
  line-height: 1.55;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(35, 87, 217, 0.12);
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--blue);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 6px;
}

.choice {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  min-height: 76px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.choice:hover {
  border-color: #b9c7d9;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
  transform: translateY(-1px);
}

.choice:has(input:checked) {
  border-color: rgba(35, 87, 217, 0.72);
  background: #f4f7ff;
  box-shadow: 0 0 0 1px rgba(35, 87, 217, 0.16);
}

.choice b,
.choice small {
  display: block;
}

.choice b {
  font-size: 14px;
  line-height: 1.3;
}

.choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
}

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

.three {
  display: grid;
  grid-template-columns: 0.85fr 0.75fr 0.75fr;
  gap: 16px;
}

.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #344054;
  font-weight: 650;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 22px;
  color: #344054;
  font-weight: 600;
  line-height: 1.55;
}

.consent input {
  margin-top: 3px;
}

.consent a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.consent a:hover {
  text-decoration: underline;
}

.field-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.notice {
  margin-top: 18px;
  padding: 13px 14px;
  color: #53627a;
  background: #f4f7fb;
  border: 1px solid #e2e8f2;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.55;
}

.submission-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-bottom: 4px;
}

.submission-summary {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  background: #f4f7fb;
  border: 1px solid #e2e8f2;
  border-radius: var(--radius);
}

.submission-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.submission-summary strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
}

.submission-summary strong:last-child {
  margin-bottom: 0;
}

.submission-notice {
  border-color: rgba(17, 128, 90, 0.24);
  background: rgba(17, 128, 90, 0.07);
}

.conditional-fields {
  margin-top: 18px;
  padding: 18px;
  background: #fbfcff;
  border: 1px solid #e2e8f2;
  border-radius: var(--radius);
}

.conditional-fields label:first-child {
  margin-top: 0;
}

.error {
  display: none;
  margin-top: 20px;
  padding: 12px 14px;
  color: #9f2a2a;
  background: #fff1f1;
  border: 1px solid #f2c5c5;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 650;
}

.error.show {
  display: block;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.actions button,
.success-state button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(35, 87, 217, 0.2);
}

.primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.secondary {
  color: #344054;
  background: #edf1f6;
}

.secondary:hover {
  background: #e3e9f1;
}

.actions button:disabled,
.success-state button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
  box-shadow: none;
}

.actions button:focus-visible,
.success-state button:focus-visible {
  outline: 3px solid rgba(35, 87, 217, 0.22);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.success-state {
  display: grid;
  justify-items: center;
  padding: 44px 16px 20px;
  text-align: center;
}

.success-icon {
  position: relative;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(17, 128, 90, 0.22);
}

.success-icon::after {
  position: absolute;
  left: 22px;
  top: 17px;
  width: 15px;
  height: 26px;
  border: solid #ffffff;
  border-width: 0 4px 4px 0;
  content: "";
  transform: rotate(45deg);
}

.success-state .muted {
  max-width: 44ch;
  margin-bottom: 24px;
}

.site-footer {
  width: min(1120px, 100%);
  color: #53627a;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 8px;
}

.site-footer a {
  color: #344054;
  font-weight: 750;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.site-footer p {
  max-width: 780px;
  margin: 0 auto;
}

.content-page {
  width: min(860px, 100%);
  padding: 36px;
  background: #ffffff;
  border: 1px solid rgba(200, 211, 225, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-page .brand {
  margin-bottom: 28px;
  color: var(--ink);
}

.content-page .brand span {
  color: var(--muted);
}

.content-page h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.15;
}

.content-page h2 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.content-page p,
.content-page li {
  color: #53627a;
  line-height: 1.65;
}

.content-page a {
  color: var(--blue);
  font-weight: 750;
}

@media (max-width: 900px) {
  .shell {
    align-items: start;
    padding: 18px;
  }

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

  .brand-panel {
    gap: 22px;
    padding: 28px;
  }

  .hero-copy {
    margin-top: 8px;
  }

  .hero-copy h1 {
    max-width: 18ch;
    font-size: 34px;
  }

  .hero-copy p:last-child {
    max-width: 58ch;
  }

  .form-panel {
    padding: 30px 28px;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 10px;
  }

  .brand-panel,
  .form-panel {
    padding: 22px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .form-header h2,
  .step-title {
    font-size: 25px;
  }

  .choice-grid,
  .two,
  .three,
  .submission-layout {
    grid-template-columns: 1fr;
  }

  .step-pips {
    gap: 6px;
  }

  .step-pips li {
    justify-content: center;
  }

  .step-pips b {
    display: none;
  }

  .inline {
    display: grid;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .actions.first-step {
    grid-template-columns: 1fr;
  }

  .actions button {
    width: 100%;
    padding: 0 14px;
  }
}
