:root {
  --pbsg-blue: #1470af;
  --pbsg-blue-dark: #0b5689;
  --pbsg-blue-soft: #eaf4fb;
  --pbsg-pale: #eaeaee;
  --pbsg-purple: #6b2a77;
  --ink: #17212b;
  --muted: #5f6d78;
  --line: #d9e0e5;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --success: #26724b;
  --danger: #a82525;
  --warning: #8b4d09;
  --shadow: 0 18px 55px rgba(23, 54, 74, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(20, 112, 175, 0.18);
}

:focus-visible {
  outline: 3px solid #f6b94a;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-150%);
  background: #000;
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: var(--pbsg-blue);
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 1.2em 2.004em;
  text-decoration: none;
  transition: opacity 100ms ease, background 150ms ease, transform 150ms ease;
}

.primary-button:hover {
  opacity: 0.8;
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--pbsg-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.start-notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(17, 31, 42, 0.58);
  overflow-y: auto;
}

.start-notice-dialog {
  width: min(100%, 590px);
  max-height: calc(100svh - 40px);
  padding: clamp(26px, 4vw, 42px);
  border-top: 4px solid var(--pbsg-blue);
  background: #fff;
  box-shadow: 0 28px 75px rgba(8, 29, 44, 0.28);
  overflow-y: auto;
}

.start-notice-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.start-notice-copy {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.start-notice-copy p {
  margin: 0;
}

.start-notice-copy p + p {
  margin-top: 12px;
}

.inline-required-label {
  display: inline-flex;
  padding: 1px 7px;
  border: 1px solid #efb6b6;
  border-radius: 999px;
  background: #fff1f0;
  color: var(--danger);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  vertical-align: 1px;
}

.start-notice-help {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--pbsg-blue);
  background: var(--pbsg-blue-soft);
  color: #274356;
}

.start-notice-help strong {
  font-size: 12px;
  font-weight: 600;
}

.start-notice-help p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.start-notice-help a {
  color: var(--pbsg-blue-dark);
  font-weight: 500;
  text-underline-offset: 3px;
}

.start-notice-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.start-notice-actions .primary-button {
  flex: 1;
}

.pathway-section {
  position: relative;
  scroll-margin-top: 108px;
  background: var(--surface-soft);
  padding: clamp(64px, 7vw, 112px) 4vw;
}

.pathway-section.pathway-hero {
  min-height: calc(100svh - 92px);
  padding-top: clamp(64px, 7vw, 112px);
  display: grid;
  align-items: center;
  background: var(--pbsg-pale);
}

.pathway-section.pathway-wizard {
  padding-top: clamp(48px, 5vw, 72px);
}

.pathway-intro {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.intro-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.intro-copy > p:not(.section-kicker) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.trust-list {
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0;
  color: #34434e;
}

.trust-list span {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--pbsg-blue-soft);
  color: var(--pbsg-blue);
  font-size: 13px;
  font-weight: 700;
}

.intro-aside {
  padding: 38px;
  border-left: 3px solid var(--pbsg-blue);
  background: #fff;
  box-shadow: 0 18px 48px rgba(21, 58, 82, 0.09);
}

.intro-aside .section-kicker {
  margin-bottom: 12px;
}

.intro-aside h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.intro-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.intro-aside a,
.progress-help a {
  color: var(--pbsg-blue);
  font-size: 14px;
  font-weight: 500;
  text-underline-offset: 4px;
}

.intro-contact-link {
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.intro-contact-link span {
  display: grid;
  gap: 4px;
}

.intro-contact-link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.intro-contact-link b {
  font-size: 18px;
  font-weight: 400;
  transition: transform 150ms ease;
}

.intro-contact-link:hover b,
.intro-contact-link.is-scroll-active b {
  transform: translateX(4px);
}

.wizard-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 66px);
  align-items: start;
}

.progress-panel {
  position: sticky;
  top: 30px;
  padding-top: 9px;
}

.progress-overline {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.progress-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-panel li {
  position: relative;
  min-height: 65px;
}

.progress-panel li:not(:last-child)::after {
  position: absolute;
  top: 39px;
  left: 16px;
  bottom: -1px;
  width: 1px;
  background: #cbd4da;
  content: "";
}

.progress-panel li.complete:not(:last-child)::after {
  background: var(--pbsg-blue);
}

.progress-panel button {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: transparent;
  color: #83909a;
  cursor: default;
  text-align: left;
}

.progress-panel li.complete button {
  color: #52616c;
  cursor: pointer;
}

.progress-panel li.active button {
  color: var(--ink);
}

.step-marker {
  position: relative;
  z-index: 1;
  width: 33px;
  height: 33px;
  display: grid;
  flex: 0 0 33px;
  place-items: center;
  border: 1px solid #b9c4cb;
  border-radius: 50%;
  background: var(--surface-soft);
  color: #687680;
  font-size: 12px;
  font-weight: 600;
}

.active .step-marker {
  border-color: var(--pbsg-blue);
  background: var(--pbsg-blue);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(20, 112, 175, 0.1);
}

.complete .step-marker {
  border-color: var(--pbsg-blue);
  background: var(--pbsg-blue-soft);
  color: var(--pbsg-blue);
}

.progress-panel button > span:last-child {
  display: grid;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.progress-panel button small {
  margin-bottom: 3px;
  color: #87949d;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-help {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.progress-help strong {
  font-size: 14px;
  font-weight: 500;
}

.progress-help p {
  margin: 7px 0 11px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.wizard-card {
  min-width: 0;
  padding: clamp(28px, 4.5vw, 60px);
  border: 1px solid #e0e6ea;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-progress {
  display: none;
}

.wizard-heading {
  position: relative;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.wizard-heading > p {
  margin: 0 0 6px;
  color: var(--pbsg-blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wizard-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.wizard-heading > span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.step-content {
  display: grid;
  gap: 34px;
  padding-top: 36px;
}

.choice-fieldset,
.multi-choice-fieldset,
.subsection,
.declarations {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.choice-fieldset > legend,
.multi-choice-fieldset > legend {
  width: 100%;
  padding: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.field-status {
  margin-left: 8px;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: 0.14em;
}

.field-status-required {
  border-color: #efc1c1;
  background: #fff0f0;
  color: #a92b2b;
}

.field-status-optional {
  border-color: #d8e0e5;
  background: #f4f6f7;
  color: #65737d;
}

.field-status-one-required {
  border-color: #b7d5e8;
  background: var(--pbsg-blue-soft);
  color: #0e5f95;
}

.field-attention input {
  animation: contact-field-shake 360ms ease-in-out;
}

@keyframes contact-field-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.field-hint {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.55;
}

.address-autocomplete {
  position: relative;
  z-index: 8;
}

.street-address-lead {
  margin-top: 20px;
  padding: 14px 16px 10px;
  border: 1px solid var(--line);
  border-top: 2px solid #9fc3da;
  background: #fbfcfd;
}

.street-address-lead .address-autocomplete > label {
  color: #2d3942;
  font-size: 12px;
  font-weight: 500;
}

.street-address-lead .address-autocomplete > input {
  background: #fff;
}

.address-line-one,
.address-line-two {
  margin-top: 14px;
}

.address-search-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-height: 19px;
  margin-bottom: 0;
}

.address-search-status button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--pbsg-blue-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.address-search-status button:focus-visible {
  outline: 2px solid var(--pbsg-blue-dark);
  outline-offset: 3px;
}

.address-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% - 18px);
  right: 0;
  left: 0;
  max-height: 250px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #bdcbd4;
  background: #fff;
  box-shadow: 0 16px 38px rgba(20, 49, 67, 0.18);
  list-style: none;
}

.address-suggestions li {
  margin: 0;
  padding: 0;
}

.address-suggestions button {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.address-suggestions button:hover,
.address-suggestions button.active {
  background: var(--pbsg-blue-soft);
  color: var(--pbsg-blue-dark);
}

.address-suggestions .address-attribution {
  padding: 7px 12px 4px;
  border-top: 1px solid var(--line);
  color: #7b8790;
  font-size: 9px;
  letter-spacing: 0.03em;
  text-align: right;
}

.communication-notes-field {
  margin-top: 22px;
}

.primary-contact-method {
  margin-top: 22px;
}

.choice-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid:has(.choice-card:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  min-height: 74px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #cbd5db;
  background: #fff;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.choice-card:hover,
.choice-card.is-scroll-active {
  border-color: #7fa8c4;
}

.choice-card:has(input:checked) {
  border-color: var(--pbsg-blue);
  background: var(--pbsg-blue-soft);
  box-shadow: inset 0 0 0 1px var(--pbsg-blue);
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-control {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  flex: 0 0 19px;
  border: 1px solid #9aa8b2;
  border-radius: 50%;
  background: #fff;
}

.choice-card input:checked + .choice-control {
  border: 5px solid var(--pbsg-blue);
}

.choice-card input:focus-visible + .choice-control {
  outline: 3px solid #f6b94a;
  outline-offset: 3px;
}

.choice-card strong {
  display: block;
  color: #26343e;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.choice-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.subsection {
  padding-top: 6px;
}

.subsection + .subsection {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.subsection-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.subsection-heading > span {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--pbsg-blue-soft);
  color: var(--pbsg-blue);
  font-size: 10px;
  font-weight: 600;
}

.subsection-heading h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.subsection-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.two-column,
.three-column {
  display: grid;
  gap: 18px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.address-row {
  margin-top: 18px;
  grid-template-columns: 1.4fr 0.85fr 0.75fr;
}

.participant-record-details {
  margin-top: 18px;
  align-items: start;
}

.participant-name-details {
  display: grid;
  gap: 18px;
  align-self: start;
}

.form-field {
  min-width: 0;
}

.form-field > label {
  display: block;
  margin-bottom: 7px;
  color: #2d3942;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #bfcad1;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  padding: 12px 14px;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}

.form-field textarea {
  min-height: 135px;
  resize: vertical;
}

.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #53616b 50%), linear-gradient(135deg, #53616b 50%, transparent 50%);
  background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 38px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--pbsg-blue);
  box-shadow: 0 0 0 3px rgba(20, 112, 175, 0.12);
  outline: none;
}

.field-invalid input:not([type="checkbox"]),
.field-invalid select,
.field-invalid textarea,
.choice-fieldset.field-invalid .choice-card,
.multi-choice-fieldset.field-invalid .checkbox-card,
.check-line.field-invalid {
  border-color: var(--danger);
}

.field-error {
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.field-meta {
  margin-top: 5px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: #87949d;
  font-size: 10px;
}

.field-meta .field-error {
  margin-top: 0;
}

.check-line {
  position: relative;
  min-height: 50px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #cbd5db;
  background: #fff;
  cursor: pointer;
  color: #33414b;
  font-size: 12px;
  line-height: 1.6;
}

.check-line input,
.checkbox-card input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  flex: 0 0 19px;
  accent-color: var(--pbsg-blue);
}

.compact-check {
  width: fit-content;
  margin: -4px 0 16px;
  padding: 9px 12px;
  background: var(--surface-soft);
}

.birthdate-field-group {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.birthdate-unknown {
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid #dbe5eb;
  background: #f5f8fa;
  color: var(--muted);
  line-height: 1.4;
}

.birthdate-unknown:hover,
.birthdate-unknown.is-scroll-active {
  border-color: #b9cedb;
  background: #eef5f8;
  color: var(--ink);
}

.check-line a {
  color: var(--pbsg-blue);
  font-weight: 500;
  text-underline-offset: 3px;
}

.checkbox-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkbox-card {
  position: relative;
  min-height: 48px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd5db;
  background: #fff;
  color: #34434d;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.45;
}

.checkbox-card:hover,
.checkbox-card.is-scroll-active,
.checkbox-card:has(input:checked) {
  border-color: var(--pbsg-blue);
}

.checkbox-card:has(input:checked) {
  background: var(--pbsg-blue-soft);
}

.checkbox-card input {
  position: absolute;
  opacity: 0;
}

.checkbox-card > span {
  width: 18px;
  height: 18px;
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  border: 1px solid #9eacb6;
  color: transparent;
  font-size: 10px;
}

.checkbox-card input:checked + span {
  border-color: var(--pbsg-blue);
  background: var(--pbsg-blue);
  color: #fff;
}

.checkbox-card input:focus-visible + span {
  outline: 3px solid #f6b94a;
  outline-offset: 3px;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-panel,
.soft-note,
.emergency-panel,
.submission-error,
.error-summary {
  padding: 18px 20px;
  border-left: 4px solid var(--pbsg-blue);
  background: var(--pbsg-blue-soft);
  color: #274356;
}

.info-panel strong,
.emergency-panel strong,
.submission-error strong,
.error-summary strong {
  font-size: 13px;
  font-weight: 500;
}

.info-panel p,
.emergency-panel p,
.submission-error p,
.error-summary p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.soft-note {
  margin: 14px 0 20px;
  border-left-width: 3px;
  font-size: 12px;
}

.emergency-panel,
.submission-error {
  border-left-color: var(--danger);
  background: #fff1f0;
  color: #6f2121;
}

.submission-error a {
  font-weight: 500;
}

.error-summary {
  margin: 25px 0 0;
  border-left-color: var(--danger);
  background: #fff4f3;
  color: #732323;
}

.upload-zone {
  min-height: 190px;
  padding: 30px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px dashed #8baabd;
  background: #f8fbfd;
  cursor: pointer;
  text-align: center;
  transition: border-color 140ms ease, background 140ms ease;
}

.upload-zone:hover,
.upload-zone.is-scroll-active {
  border-color: var(--pbsg-blue);
  background: var(--pbsg-blue-soft);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-zone:has(input:focus-visible) {
  outline: 3px solid #f6b94a;
  outline-offset: 3px;
}

.upload-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pbsg-blue);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}

.upload-zone strong {
  color: var(--pbsg-blue);
  font-size: 14px;
  font-weight: 500;
}

.upload-zone small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.compact-upload-zone {
  min-height: 150px;
  padding: 22px;
}

.funding-guidance {
  margin-top: 18px;
  padding: 15px 18px;
  border-left: 3px solid var(--pbsg-blue);
  background: var(--surface-soft);
  color: #274356;
}

.funding-guidance strong {
  font-size: 12px;
  font-weight: 500;
}

.funding-guidance p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.6;
}

.plan-uploaded-skip-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #eef7f2;
  color: #24583f;
  font-size: 11px;
  line-height: 1.55;
}

.plan-uploaded-skip-message strong {
  font-weight: 600;
}

.plan-details-skip-note {
  margin-bottom: 20px;
  padding: 12px 14px;
  display: flex;
  gap: 7px;
  border-left: 3px solid #9fc3da;
  background: #f8fafb;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.plan-details-skip-note strong {
  flex: 0 0 auto;
  color: #2d3942;
  font-weight: 600;
}

.invoice-email-panel {
  padding: 18px;
  border: 1px solid #c9dbe7;
  background: #f7fbfe;
}

.funding-category-options,
.conditional-funding-fields,
.funding-period-controls {
  margin-top: 18px;
}

.conditional-funding-fields .form-field > label {
  min-height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.conditional-funding-fields .form-field > label .field-status {
  flex: 0 0 auto;
  margin-top: 1px;
  margin-left: 0;
}

.funding-category-options .choice-card {
  min-height: 108px;
}

.funding-category-options .choice-card small {
  font-size: 11px;
  line-height: 1.5;
}

.funding-category-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.funding-category-help a {
  color: var(--pbsg-blue-dark);
  font-weight: 500;
  text-underline-offset: 3px;
}

.funding-amount-field {
  min-width: 0;
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid #c9dbe7;
  background: #f7fbfe;
}

.funding-used-fields {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.funding-used-fields .funding-amount-field {
  margin-top: 0;
}

.no-bsp-funding-fields {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.no-bsp-funding-fields .funding-amount-field,
.no-bsp-funding-fields .funding-guidance {
  margin-top: 0;
}

.funding-amount-field legend {
  padding: 0 8px;
  color: #2d3942;
  font-size: 12px;
  font-weight: 500;
}

.funding-amount-control {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.funding-unit-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #9eb8ca;
  background: #fff;
}

.funding-unit-toggle button {
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--pbsg-blue-dark);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
}

.funding-unit-toggle button + button {
  border-left: 1px solid #9eb8ca;
}

.funding-unit-toggle button.active {
  background: var(--pbsg-blue);
  color: #fff;
}

.funding-amount-input {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid #9eb8ca;
  background: #fff;
}

.funding-amount-input span {
  padding: 0 13px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.funding-amount-input input {
  min-width: 0;
  height: 46px;
  flex: 1;
  border: 0;
  background: transparent;
}

.funding-amount-input input:focus {
  outline: 3px solid rgba(20, 112, 175, 0.18);
  outline-offset: -3px;
}

.funding-period-list {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.funding-period-card {
  min-width: 0;
  margin: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.funding-period-card legend {
  padding: 0 8px;
  color: var(--pbsg-blue-dark);
  font-size: 12px;
  font-weight: 600;
}

.additional-contact-list {
  display: grid;
  gap: 16px;
}

.contact-entry-card {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.contact-entry-card legend {
  padding: 0 8px;
  color: var(--pbsg-blue-dark);
  font-size: 12px;
  font-weight: 600;
}

.remove-contact-button {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  color: var(--pbsg-blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.add-contact-button {
  min-height: 46px;
  margin-top: 16px;
  padding: 10px 18px;
  border: 1px solid #9eb8ca;
  background: #fff;
  color: var(--pbsg-blue-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.add-contact-button:hover,
.add-contact-button.is-scroll-active {
  border-color: var(--pbsg-blue);
  background: var(--pbsg-blue-soft);
}

.upload-privacy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.file-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  min-height: 60px;
  padding: 11px 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.file-list li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #f0f3f5;
  color: var(--pbsg-blue);
  font-size: 8px;
  font-weight: 700;
}

.file-list strong,
.file-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list strong {
  font-size: 11px;
  font-weight: 500;
}

.file-list small {
  color: var(--muted);
  font-size: 9px;
}

.file-list button,
.review-card-heading button,
.text-button {
  background: transparent;
  color: var(--pbsg-blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.review-card {
  border: 1px solid var(--line);
  background: #fff;
}

.review-card-heading {
  min-height: 55px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.review-card h3,
.declarations h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.review-card dl {
  margin: 0;
  padding: 8px 18px;
}

.review-item {
  padding: 10px 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid #edf0f2;
  font-size: 11px;
  line-height: 1.55;
}

.review-item:last-child {
  border-bottom: 0;
}

.review-item dt {
  color: var(--muted);
  font-weight: 400;
}

.review-item dd {
  margin: 0;
  color: #2d3a43;
  overflow-wrap: anywhere;
}

.declarations {
  padding: 24px;
  border: 1px solid var(--line);
  background: #f8fafb;
}

.declarations h3 {
  margin-bottom: 7px;
}

.declaration-requirement {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.declaration-requirement .field-status {
  margin-left: 0;
  margin-right: 5px;
}

.declarations .check-line + .field-error + .check-line,
.declarations .check-line + .check-line {
  margin-top: 10px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wizard-actions {
  margin-top: 42px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.secondary-button {
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid #9eacb5;
  border-radius: 0;
  background: #fff;
  color: #30414d;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.secondary-button:hover,
.secondary-button.is-scroll-active {
  border-color: var(--pbsg-blue);
  color: var(--pbsg-blue);
}

.wizard-actions .primary-button.is-scroll-active {
  opacity: .9;
  box-shadow: 0 10px 24px rgba(20, 112, 175, .18);
  transform: translateY(-2px);
}

.form-privacy-note {
  margin: 18px 0 0;
  color: #71808b;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.form-privacy-note span {
  margin-right: 5px;
  color: var(--success);
}

.button-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-card {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid #dce5e1;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.success-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f5ed;
  color: var(--success);
  font-size: 28px;
  font-weight: 600;
}

.test-mode-badge {
  width: fit-content;
  margin: 0 auto 18px !important;
  padding: 5px 10px;
  background: #fff4d8;
  color: var(--warning) !important;
  font-size: 10px !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.success-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.25;
}

.success-card > p {
  margin: 14px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
}

.success-reference strong {
  color: var(--pbsg-blue);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.next-steps {
  margin-top: 38px;
  padding: 28px;
  background: #f7f9fa;
  text-align: left;
}

.next-steps h3 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 500;
}

.next-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}

.next-steps li + li {
  margin-top: 15px;
}

.next-steps li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pbsg-blue-soft);
  color: var(--pbsg-blue);
  font-size: 10px;
  font-weight: 600;
}

.next-steps strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.next-steps p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.success-note {
  font-size: 10px !important;
}

.success-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.print-referral-copy {
  display: none;
}

@media (max-width: 900px) {
  .wizard-shell {
    grid-template-columns: 1fr;
  }

  .progress-panel {
    display: none;
  }

  .mobile-progress {
    margin: -4px 0 26px;
    display: block;
  }

  .mobile-progress > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
  }

  .mobile-progress > div {
    height: 4px;
    margin-top: 7px;
    background: #e2e8ec;
  }

  .mobile-progress i {
    height: 100%;
    display: block;
    background: var(--pbsg-blue);
    transition: width 220ms ease;
  }
}

@media (max-width: 799px), (max-width: 1024px) and (pointer: coarse) {
  .pathway-section.pathway-hero {
    min-height: calc(100svh - 76px);
    padding-top: clamp(54px, 7vmax, 86px);
  }

  .pathway-section.pathway-wizard {
    padding-top: 48px;
  }
}

@media (max-width: 720px) {
  body {
    line-height: 1.7;
  }

  .start-notice-backdrop {
    padding: 12px;
    align-items: end;
  }

  .start-notice-dialog {
    width: 100%;
    max-height: calc(100svh - 24px);
    padding: 26px 22px calc(24px + env(safe-area-inset-bottom));
  }

  .start-notice-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .start-notice-actions .primary-button {
    width: 100%;
  }

  .plan-details-skip-note {
    display: block;
  }

  .plan-details-skip-note strong {
    display: block;
    margin-bottom: 3px;
  }

  .pathway-section {
    padding: 54px 6vw;
  }

  .pathway-section.pathway-hero {
    min-height: auto;
    padding: calc(80px + 8vmax) 6vw 64px;
  }

  .pathway-section.pathway-wizard {
    padding-top: calc(80px + 36px);
  }

  .pathway-intro {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .intro-copy h1 {
    font-size: 32px;
  }

  .intro-copy > p:not(.section-kicker) {
    font-size: 16px;
  }

  .intro-aside {
    padding: 30px;
  }

  .wizard-card {
    margin-inline: -2vw;
    padding: 27px 5vw 100px;
    border-inline: 0;
    box-shadow: 0 12px 35px rgba(23, 54, 74, 0.08);
  }

  .wizard-heading h2 {
    font-size: 27px;
  }

  .step-content {
    gap: 30px;
    padding-top: 30px;
  }

  .choice-grid,
  .choice-grid:has(.choice-card:nth-child(3):last-child),
  .checkbox-grid,
  .compact-grid,
  .two-column,
  .three-column,
  .address-row {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 62px;
  }

  .funding-amount-control {
    grid-template-columns: 1fr;
  }

  .subsection-heading {
    margin-bottom: 18px;
  }

  .wizard-actions {
    position: sticky;
    z-index: 20;
    bottom: 0;
    margin: 38px -5vw -100px;
    padding: 14px 5vw calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -12px 26px rgba(24, 49, 65, 0.09);
  }

  .wizard-actions .primary-button,
  .wizard-actions .secondary-button {
    min-height: 50px;
    padding: 13px 20px;
  }

  .form-privacy-note {
    margin-top: 118px;
  }

  .review-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .success-card {
    padding-inline: 24px;
  }

  .next-steps {
    padding: 22px;
  }

  .success-actions {
    flex-direction: column;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .progress-panel,
  .wizard-actions,
  .success-actions,
  .form-privacy-note {
    display: none !important;
  }

  .pathway-section {
    padding: 0;
    background: #fff;
  }

  .success-card {
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .success-card > :not(.print-referral-copy) {
    display: none !important;
  }

  .print-referral-copy {
    display: block !important;
    color: #17212b;
    text-align: left;
  }

  .print-copy-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 3px solid #1470af;
  }

  .print-copy-header > p {
    margin: 0 0 8px;
    color: #1470af;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .print-copy-header h1 {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.2;
  }

  .print-copy-header dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .print-copy-header dl div {
    min-width: 0;
  }

  .print-copy-header dt,
  .print-copy-row dt {
    color: #65737d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }

  .print-copy-header dd {
    margin: 3px 0 0;
    font-size: 11px;
    font-weight: 600;
  }

  .print-copy-section {
    margin: 0 0 18px;
  }

  .print-copy-section h2 {
    margin: 0;
    padding: 7px 10px;
    background: #eaf4fa;
    color: #0e5f95;
    font-size: 13px;
    font-weight: 700;
  }

  .print-copy-section dl {
    margin: 0;
  }

  .print-copy-row {
    padding: 7px 10px;
    display: grid;
    grid-template-columns: 34% minmax(0, 1fr);
    gap: 16px;
    border-bottom: 1px solid #dfe5e8;
    break-inside: avoid;
  }

  .print-copy-row dd {
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }

  .print-copy-footer {
    margin-top: 24px;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #bfcbd2;
    color: #65737d;
    font-size: 8px;
  }

  .print-copy-footer p {
    margin: 0;
  }
}

@page {
  margin: 14mm;
}
