:root {
  --navy: #121a4a;
  --navy-2: #1d2869;
  --blue: #2f438d;
  --blue-soft: #e9eef9;
  --red: #c92d34;
  --red-soft: #fff0f1;
  --ink: #1d2433;
  --muted: #687085;
  --line: #dce2ec;
  --paper: #ffffff;
  --canvas: #f5f7fb;
  --success: #19704d;
  --shadow: 0 22px 60px rgba(23, 32, 90, 0.11);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(87, 108, 177, 0.14), transparent 24rem),
    linear-gradient(180deg, #fbfcff 0, var(--canvas) 32rem);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(47, 67, 141, 0.35);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.ambient-one {
  width: 420px;
  height: 420px;
  right: -220px;
  top: 110px;
  border: 1px solid rgba(47, 67, 141, 0.2);
  box-shadow: 0 0 0 55px rgba(47, 67, 141, 0.035), 0 0 0 110px rgba(47, 67, 141, 0.025);
}

.ambient-two {
  width: 230px;
  height: 230px;
  left: -150px;
  bottom: 8%;
  background: rgba(201, 45, 52, 0.055);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 78px;
  padding: 12px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(220, 226, 236, 0.8);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: 220px;
  height: 48px;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 100%;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.topbar-copy {
  display: grid;
  gap: 2px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.topbar-copy .eyebrow {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-copy strong {
  color: var(--navy);
  font-size: 0.96rem;
}

.save-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.save-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(25, 112, 77, 0.12);
}

.save-state.is-saving .save-dot {
  background: #d68a1c;
  box-shadow: 0 0 0 4px rgba(214, 138, 28, 0.13);
}

.page-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.intro-panel {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: clamp(34px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  color: white;
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 12%, rgba(255,255,255,0.12) 0 74px, transparent 75px),
    radial-gradient(circle at 90% 12%, transparent 0 105px, rgba(255,255,255,0.08) 106px 107px, transparent 108px),
    linear-gradient(135deg, var(--navy) 0%, #24357e 100%);
  box-shadow: var(--shadow);
}

.intro-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  right: 18%;
  top: 32%;
  border-radius: 50%;
  background: var(--red);
}

.kicker {
  display: inline-flex;
  padding: 7px 11px;
  color: #cad4f1;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro-panel h1 {
  max-width: 1120px;
  margin: 22px 0 16px;
  font-size: clamp(2.2rem, 4.2vw, 4.6rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.intro-panel h1 .title-line {
  display: block;
  white-space: nowrap;
}

.intro-panel p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,0.74);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.6;
}

.intro-meta {
  min-width: 185px;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.intro-meta span {
  display: inline-flex;
  padding: 8px 13px;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.privacy-banner {
  margin: 22px 0;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgba(201, 45, 52, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 240, 241, 0.8);
}

.privacy-mark {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--red);
  font-weight: 900;
}

.privacy-banner strong {
  color: #7d1b20;
}

.privacy-banner p {
  margin: 4px 0 0;
  color: #7b4c50;
  font-size: 0.86rem;
  line-height: 1.5;
}

.draft-reminder {
  margin: -8px 0 22px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid #cfd9eb;
  border-radius: var(--radius-md);
  background: rgba(244, 247, 253, 0.92);
}

.draft-reminder-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 10px;
  background: var(--blue);
  font-size: 1rem;
  font-weight: 900;
}

.draft-reminder strong {
  color: var(--navy);
  font-size: 0.88rem;
}

.draft-reminder p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.resume-banner {
  margin: -4px 0 22px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: white;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 92% 10%, rgba(255,255,255,0.13), transparent 11rem),
    linear-gradient(125deg, var(--navy), var(--blue));
  box-shadow: 0 16px 36px rgba(18,26,74,0.15);
}

.resume-banner > div:first-child {
  display: grid;
  gap: 4px;
}

.resume-banner span {
  color: #f4b4b7;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resume-banner strong {
  font-size: 1.02rem;
}

.resume-banner p {
  margin: 0;
  color: rgba(255,255,255,0.76);
  font-size: 0.76rem;
}

.resume-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resume-banner .primary-button {
  color: var(--navy);
  border-color: white;
  background: white;
  box-shadow: none;
}

.resume-banner .text-button {
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}

.resume-banner .text-button:hover {
  color: white;
}

.onboarding-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.step-sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 118px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.progress-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(18, 26, 74, 0.06);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.progress-copy strong {
  color: var(--navy);
  font-size: 1rem;
}

.progress-track {
  height: 8px;
  margin: 13px 0 10px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--blue-soft);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transition: width 0.35s ease;
}

.progress-card small {
  color: #8b92a3;
  font-size: 0.68rem;
  line-height: 1.45;
}

.step-nav {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.78);
}

.step-link {
  width: 100%;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  color: var(--muted);
  border: 0;
  border-radius: 10px;
  background: transparent;
  transition: 0.2s ease;
}

.step-link > span:first-child {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
}

.step-link > span:last-child {
  display: grid;
  gap: 1px;
  font-size: 0.82rem;
  font-weight: 800;
}

.step-link small {
  color: #9ba1b0;
  font-size: 0.66rem;
  font-weight: 600;
}

.step-link:hover {
  color: var(--navy);
  background: #f5f7fc;
}

.step-link.is-active {
  color: var(--navy);
  background: var(--blue-soft);
}

.step-link.is-active > span:first-child {
  color: white;
  border-color: var(--navy);
  background: var(--navy);
}

.step-link.is-visited:not(.is-active) > span:first-child {
  color: var(--success);
  border-color: rgba(25,112,77,0.2);
  background: rgba(25,112,77,0.08);
}

.step-link.is-locked {
  color: #a3a8b4;
  cursor: not-allowed;
  opacity: 0.58;
}

.step-link.is-locked:hover {
  color: #a3a8b4;
  background: transparent;
}

.text-button {
  padding: 8px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 700;
}

.danger-text:hover { color: var(--red); }

.form-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.preview-notice {
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e4d8b8;
  background: #fffaf0;
}

.preview-notice span {
  padding: 5px 8px;
  color: #6d4b06;
  border-radius: 999px;
  background: #f4dfad;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-notice p {
  margin: 0;
  color: #7b6845;
  font-size: 0.78rem;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-step {
  min-height: 650px;
  padding: clamp(28px, 5vw, 60px);
  animation: step-in 0.34s ease;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.step-heading {
  margin-bottom: 34px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-number {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
}

.step-heading p,
.step-heading h2,
.step-heading > div > span {
  margin: 0;
}

.step-heading p {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-heading h2 {
  margin-top: 7px;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  letter-spacing: -0.04em;
}

.step-heading > div > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.step-requirement {
  margin: -14px 0 28px 62px;
  padding: 10px 13px;
  color: #7b6845;
  border: 1px solid #eadbb5;
  border-radius: 10px;
  background: #fffaf0;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
  transition: 0.2s ease;
}

.step-requirement.is-complete {
  color: var(--success);
  border-color: rgba(25,112,77,0.2);
  background: rgba(25,112,77,0.06);
}

.step-requirement.is-emphasized {
  color: #8f1f25;
  border-color: rgba(201,45,52,0.42);
  background: #fff0f1;
  box-shadow: 0 0 0 4px rgba(201,45,52,0.07);
}

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

.field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.field > span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.field em,
.choice-group legend em,
.confirm-list legend em {
  color: #9ba1b0;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcff;
  outline: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.field input,
.field select {
  min-height: 48px;
  padding: 0 14px;
}

.field textarea {
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.55;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: #bec8dc;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(47, 67, 141, 0.09);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a7adba;
}

.field > small {
  color: #8b92a3;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.45;
}

.span-2 { grid-column: 1 / -1; }

.subsection,
.repeat-section {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.subsection-title,
.repeat-heading {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.subsection-title h3,
.repeat-heading h3,
.repeat-heading p {
  margin: 0;
}

.subsection-title h3,
.repeat-heading h3 {
  color: var(--navy);
  font-size: 1.05rem;
}

.subsection-title span,
.repeat-heading p {
  color: var(--muted);
  font-size: 0.74rem;
}

.choice-group,
.confirm-list {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.choice-group legend,
.confirm-list legend {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 900;
}

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

.choice-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice > span {
  min-height: 68px;
  padding: 13px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: #535b6d;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
  font-size: 0.77rem;
  font-weight: 800;
  transition: 0.2s ease;
}

.choice small {
  color: #9ba1b0;
  font-size: 0.64rem;
  font-weight: 600;
}

.choice input:checked + span {
  color: var(--navy);
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.choice input:focus-visible + span {
  outline: 3px solid rgba(47, 67, 141, 0.35);
  outline-offset: 2px;
}

.repeat-list {
  display: grid;
  gap: 14px;
}

.repeat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcff;
}

.repeat-card-head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.repeat-card-head strong {
  color: var(--navy);
  font-size: 0.84rem;
}

.remove-repeat {
  padding: 5px 8px;
  color: #9b373d;
  border: 0;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
}

.remove-repeat:hover {
  color: var(--red);
  text-decoration: underline;
}

.drive-card,
.credential-warning {
  margin-bottom: 28px;
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  border-radius: 15px;
}

.drive-card {
  color: #255544;
  border: 1px solid #cfe4db;
  background: #f0f8f4;
}

.drive-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 9px;
  background: #268b62;
  font-weight: 900;
}

.drive-card h3,
.drive-card p,
.credential-warning p {
  margin: 0;
}

.drive-card h3 {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.drive-card p,
.credential-warning p {
  color: inherit;
  font-size: 0.76rem;
  line-height: 1.55;
}

.credential-warning {
  color: #74580c;
  border: 1px solid #eadba7;
  background: #fff9e9;
}

.credential-warning strong {
  white-space: nowrap;
}

.credential-warning.secure {
  color: #334b72;
  border-color: #c9d7ed;
  background: #f3f7fd;
}

.credential-vault {
  margin-top: 32px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid #bac9e3;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(47, 67, 141, 0.11), transparent 34%),
    #f7f9fd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.vault-heading {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.vault-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  font-size: 1.05rem;
}

.vault-heading span {
  color: var(--red);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.vault-heading h3,
.vault-heading p {
  margin: 0;
}

.vault-heading h3 {
  margin-top: 3px;
  color: var(--navy);
  font-size: 1.05rem;
}

.vault-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.73rem;
}

.security-details {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.security-details div {
  padding: 13px;
  border: 1px solid #dce4f2;
  border-radius: 11px;
  background: rgba(255,255,255,0.82);
}

.security-details strong,
.security-details span {
  display: block;
}

.security-details strong {
  color: var(--navy);
  font-size: 0.72rem;
}

.security-details span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.vault-advice {
  margin-bottom: 18px;
  padding: 11px 13px;
  color: #755512;
  border-left: 3px solid #d5a52f;
  background: #fff8e7;
  font-size: 0.7rem;
  line-height: 1.5;
}

.credential-card {
  border-color: #cfd9eb;
  background: #ffffff;
}

.remove-credential {
  padding: 5px 8px;
  color: #9b373d;
  border: 0;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
}

.remove-credential:hover {
  color: var(--red);
  text-decoration: underline;
}

.password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.password-control:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,67,141,0.12);
}

.password-control input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.password-control input:focus {
  box-shadow: none;
}

.toggle-password {
  padding: 0 13px;
  color: var(--blue);
  border: 0;
  border-left: 1px solid var(--line);
  background: #f4f7fd;
  font-size: 0.68rem;
  font-weight: 900;
}

.secure-review {
  border-color: #b9cbea;
}

.upload-zone {
  margin-top: 30px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px dashed #aeb9d0;
  border-radius: 15px;
  background: #f8faff;
}

.upload-zone strong {
  color: var(--navy);
  font-size: 0.88rem;
}

.upload-zone p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.upload-button {
  position: relative;
  overflow: hidden;
  padding: 10px 14px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-list {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.73rem;
}

.confirm-list {
  margin-top: 28px;
  padding: 20px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcff;
}

.confirm-list label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #555d6f;
  font-size: 0.78rem;
  line-height: 1.5;
}

.confirm-list input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.review-hero {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  color: white;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.review-kicker {
  color: #c9d3f1;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.review-hero h3 {
  margin: 8px 0 7px;
  font-size: 1.25rem;
}

.review-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.76rem;
  line-height: 1.55;
}

.review-score {
  min-width: 100px;
  text-align: center;
}

.review-score strong {
  display: block;
  font-size: 2rem;
}

.review-score span {
  color: #c9d3f1;
  font-size: 0.68rem;
}

.review-summary {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.review-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.review-group h3 {
  margin: 0;
  padding: 12px 15px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 0.82rem;
}

.review-row {
  padding: 10px 15px;
  display: grid;
  grid-template-columns: minmax(140px, 0.36fr) 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.5;
}

.review-row strong {
  color: #60687a;
}

.review-row span {
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.review-row .empty-value {
  color: #a0a6b3;
  font-style: italic;
}

.review-actions {
  margin: 18px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.submission-card {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #cfd8eb;
  border-radius: 17px;
  background: #f6f8fd;
}

.submission-card span {
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submission-card h3 {
  margin: 6px 0;
  color: var(--navy);
  font-size: 1rem;
}

.submission-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.form-footer {
  position: sticky;
  z-index: 10;
  bottom: 0;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
}

.primary-button,
.secondary-button,
.save-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-button {
  color: white;
  border: 1px solid var(--navy);
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(18, 26, 74, 0.18);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--navy-2);
  box-shadow: 0 11px 24px rgba(18, 26, 74, 0.22);
}

.primary-button:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

#nextStep.is-locked {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-button {
  color: var(--navy);
  border: 1px solid var(--line);
  background: white;
}

.secondary-button:hover {
  border-color: #b9c4da;
  background: #f7f9fd;
}

.secondary-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.save-button {
  justify-self: center;
  color: var(--muted);
  border: 0;
  background: transparent;
}

.save-button:hover { color: var(--navy); }

.toast {
  position: fixed;
  z-index: 70;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 16px;
  color: white;
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 0 16px 40px rgba(18,26,74,0.25);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.success-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 38px;
  text-align: center;
  color: var(--ink);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(18,26,74,0.25);
}

.success-dialog::backdrop {
  background: rgba(14, 19, 48, 0.62);
  backdrop-filter: blur(5px);
}

.success-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--success);
  font-size: 1.4rem;
  font-weight: 900;
}

.success-dialog > span {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.success-dialog h2 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 1.7rem;
}

.success-dialog p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .onboarding-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid.three-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .topbar-copy { display: none; }
  .page-shell { width: min(100% - 24px, 720px); padding-top: 24px; }
  .intro-panel { grid-template-columns: 1fr; min-height: auto; border-radius: 22px; }
  .intro-meta { display: none; }
  .onboarding-layout { grid-template-columns: 1fr; }
  .step-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .step-nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .step-link {
    min-width: 150px;
    scroll-snap-align: start;
  }
  .step-sidebar .text-button { display: none; }
  .form-step { min-height: 0; padding: 30px 22px; }
}

@media (max-width: 620px) {
  .topbar { min-height: 68px; padding: 10px 16px; }
  .brand { width: 165px; height: 42px; }
  .save-state span:last-child { display: none; }
  .page-shell { width: min(100% - 18px, 540px); }
  .intro-panel { padding: 30px 22px; }
  .intro-panel h1 { font-size: clamp(0.95rem, 4.5vw, 2.35rem); }
  .privacy-banner { padding: 15px; }
  .draft-reminder { padding: 15px; }
  .resume-banner { align-items: flex-start; flex-direction: column; }
  .resume-actions { width: 100%; }
  .resume-actions .primary-button { width: auto; }
  .progress-card { padding: 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .choice-grid,
  .choice-grid.three-columns { grid-template-columns: 1fr 1fr; }
  .vault-heading { grid-template-columns: auto 1fr; }
  .vault-heading .secondary-button { grid-column: 1 / -1; }
  .security-details { grid-template-columns: 1fr; }
  .step-heading { gap: 12px; }
  .step-requirement { margin-left: 0; }
  .step-number {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
  .upload-zone { grid-template-columns: 1fr; }
  .upload-button { justify-self: start; }
  .review-hero { grid-template-columns: 1fr; }
  .review-score { text-align: left; }
  .review-row { grid-template-columns: 1fr; gap: 4px; }
  .submission-card { align-items: flex-start; flex-direction: column; }
  .form-footer { grid-template-columns: 1fr 1fr; }
  .save-button { display: none; }
  .primary-button,
  .secondary-button { width: 100%; }
}

@media print {
  body { background: white; }
  .topbar,
  .intro-panel,
  .privacy-banner,
  .draft-reminder,
  .resume-banner,
  .step-sidebar,
  .preview-notice,
  .form-footer,
  .review-actions,
  .submission-card,
  .ambient { display: none !important; }
  .page-shell { width: 100%; padding: 0; }
  .onboarding-layout { display: block; }
  .form-card { border: 0; box-shadow: none; }
  .form-step { display: none !important; }
  .form-step[data-step="9"] { display: block !important; padding: 0; }
  .review-summary { break-inside: auto; }
  .review-group { break-inside: avoid; }
}

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