:root {
  --navy: #061a3a;
  --navy-2: #0b2d60;
  --blue: #124ea2;
  --blue-light: #eaf2ff;
  --green: #15966b;
  --ink: #172033;
  --muted: #627086;
  --line: #dce3ec;
  --surface: #ffffff;
  --background: #f3f6f9;
  --danger: #b42318;
  --shadow: 0 22px 55px rgba(16, 37, 68, .11);
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input { font: inherit; }

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

a { color: inherit; }

.site-header {
  position: relative;
  z-index: 10;
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.header-inner, .intro-inner, .landing-inner, .application-layout, .footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 98px;
  height: 46px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.3);
}

.brand-section {
  font-family: "Manrope", sans-serif;
  font-size: .93rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}

.help-link small {
  display: block;
  color: #b8c6dc;
  font-size: .68rem;
  font-weight: 500;
}

.help-icon {
  width: 30px;
  height: 30px;
  border: 1px solid #8799b4;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.language-button {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.intro {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 30%, rgba(41, 101, 180, .46), transparent 25%),
    linear-gradient(114deg, #061a3a 0%, #092755 58%, #0a326c 100%);
}

.intro::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -90px;
  bottom: -260px;
  border: 54px solid rgba(255,255,255,.035);
  border-radius: 50%;
}

.intro-inner {
  position: relative;
  z-index: 1;
  padding: 66px 0 92px;
}

.landing-inner {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
  padding: 64px 0 76px;
}

.landing-copy {
  min-width: 0;
}

.eyebrow, .form-kicker {
  margin: 0 0 12px;
  color: #78aef5;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

h1 span { color: #8cbcff; }
h1[tabindex="-1"]:focus { outline: none; }

.intro-copy {
  max-width: 620px;
  margin: 22px 0 28px;
  color: #c5d3e7;
  font-size: 1.05rem;
  line-height: 1.7;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  color: #e7edf7;
  font-size: .85rem;
  font-weight: 600;
}

.benefits i {
  width: 20px;
  height: 20px;
  margin-right: 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-style: normal;
  font-size: .7rem;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.landing-primary,
.landing-secondary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 24px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
}

.landing-primary {
  color: var(--navy);
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.landing-primary:hover {
  background: #edf4ff;
}

.landing-secondary {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .5);
}

.landing-secondary:hover {
  background: rgba(255, 255, 255, .08);
  border-color: #fff;
}

.landing-primary:focus-visible,
.landing-secondary:focus-visible {
  outline: 3px solid #8cbcff;
  outline-offset: 3px;
}

.draft-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  margin-top: 18px;
  padding: 11px 14px;
  color: #dceaff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
}

.draft-notice > span {
  font-size: 1.1rem;
}

.draft-notice p,
.draft-notice strong,
.draft-notice small {
  display: block;
  margin: 0;
}

.draft-notice strong {
  color: #fff;
  font-size: .75rem;
}

.draft-notice small {
  margin-top: 2px;
  color: #bfcde0;
  font-size: .66rem;
}

.landing-legal {
  max-width: 540px;
  margin: 20px 0 0;
  color: #aebed4;
  font-size: .68rem;
  line-height: 1.6;
}

.landing-legal button,
.landing-legal a {
  padding: 0;
  color: #e7f0ff;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

.landing-card {
  padding: clamp(27px, 4vw, 42px);
  color: var(--ink);
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 15px;
  box-shadow: 0 30px 70px rgba(0, 10, 30, .24);
}

.landing-card-kicker {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.landing-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -.025em;
}

.preparation-list {
  display: grid;
  gap: 0;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.preparation-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.preparation-list li:first-child {
  padding-top: 0;
}

.preparation-list li > span {
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
}

.preparation-list p,
.preparation-list strong,
.preparation-list small {
  display: block;
  margin: 0;
}

.preparation-list strong {
  color: #29364c;
  font-size: .78rem;
}

.preparation-list small {
  margin-top: 3px;
  color: #748195;
  font-size: .67rem;
  line-height: 1.4;
}

.landing-card-note {
  display: flex;
  gap: 11px;
  padding: 14px;
  background: #f1f5fa;
  border-radius: 8px;
}

.landing-card-note > span {
  flex: 0 0 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: var(--blue);
  border: 1px solid #9bb2d2;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
}

.landing-card-note p,
.landing-card-note strong,
.landing-card-note small {
  display: block;
  margin: 0;
}

.landing-card-note strong {
  color: #344158;
  font-size: .72rem;
}

.landing-card-note small {
  margin-top: 3px;
  color: #6e7b8e;
  font-size: .65rem;
  line-height: 1.45;
}

.application-shell {
  position: relative;
  z-index: 2;
  padding-top: 42px;
  padding-bottom: 64px;
}

.application-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 720px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(213, 221, 232, .8);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.step-sidebar {
  display: flex;
  flex-direction: column;
  padding: 38px 34px 32px;
  background: #f7f9fc;
  border-right: 1px solid var(--line);
}

.sidebar-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.sidebar-heading p {
  margin: 0;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.sidebar-heading span {
  color: var(--muted);
  font-size: .72rem;
}

.progress-track {
  height: 4px;
  margin: 12px 0 32px;
  overflow: hidden;
  background: #dce5f1;
  border-radius: 4px;
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--blue);
  transition: width .3s ease;
}

.step-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: #d8e0eb;
}

.step-list li {
  position: relative;
  margin: 0 0 27px;
}

.step-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
}

.step-list button:not(:disabled) { cursor: pointer; }

.step-number {
  position: relative;
  z-index: 1;
  width: 33px;
  flex: 0 0 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: #8793a4;
  background: #fff;
  border: 1px solid #cbd5e2;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
}

.step-list strong, .step-list small {
  display: block;
}

.step-list strong {
  color: #69758a;
  font-size: .86rem;
}

.step-list small {
  margin-top: 2px;
  color: #9aa4b2;
  font-size: .69rem;
}

.step-list .is-active .step-number {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(18,78,162,.1);
}

.step-list .is-active strong { color: var(--navy); }
.step-list .is-complete .step-number {
  color: transparent;
  background: var(--green);
  border-color: var(--green);
}
.step-list .is-complete .step-number::after {
  content: "✓";
  position: absolute;
  color: #fff;
}

.save-note {
  margin-top: auto;
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #edf3fb;
  border-radius: 9px;
}

.sidebar-actions {
  margin-top: 14px;
  display: grid;
  justify-items: start;
  gap: 7px;
}

.reset-application,
.back-to-landing {
  padding: 8px 0;
  color: #536273;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
  align-self: flex-start;
}

.back-to-landing {
  color: var(--blue);
  font-weight: 700;
}

.reset-application:hover {
  color: #9d2d2d;
  border-bottom-color: currentColor;
}

.back-to-landing:hover {
  color: var(--navy);
  border-bottom-color: currentColor;
}

.reset-application:focus-visible,
.back-to-landing:focus-visible {
  outline: 3px solid rgba(18,78,162,.2);
  outline-offset: 3px;
}

.confirm-dialog {
  width: min(100% - 32px, 470px);
  padding: 32px;
  color: var(--ink);
  text-align: center;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(9,39,85,.22);
}

.confirm-dialog::backdrop {
  background: rgba(9,39,85,.5);
  backdrop-filter: blur(2px);
}

.confirm-dialog-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #9d2d2d;
  background: #fff0f0;
  border-radius: 50%;
  place-items: center;
  font-size: 1.35rem;
}

.confirm-dialog h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.confirm-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.button-danger {
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  background: #9d2d2d;
  border: 1px solid #9d2d2d;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-danger:hover { background: #7f2020; }

.save-note > span {
  color: var(--blue);
  font-size: 1.1rem;
}

.save-note p { margin: 0; }
.save-note strong, .save-note small { display: block; }
.save-note strong { color: #34425a; font-size: .75rem; }
.save-note small { margin-top: 3px; color: #7b8799; font-size: .66rem; line-height: 1.4; }

.form-panel {
  min-width: 0;
  padding: 54px 68px 36px;
}

.form-step {
  max-width: 680px;
  animation: fade-in .25s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-heading { margin-bottom: 34px; }
.form-heading h2, .success-state h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.form-heading > p:not(.form-kicker) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}

.form-heading h2[tabindex="-1"]:focus {
  outline: none;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

.field {
  min-width: 0;
  display: block;
}

.field-wide { grid-column: 1 / -1; }
.field-small { grid-column: span 1; }
.field-grow { grid-column: span 1; }

.field > span, .choice-fieldset legend {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #354158;
  font-size: .78rem;
  font-weight: 700;
}

.field b, .choice-fieldset b, .terms-check b {
  color: #d02e25;
  font-weight: 700;
}

.field em {
  color: #8893a3;
  font-size: .68rem;
  font-style: normal;
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.field input::placeholder { color: #a2acb9; }
.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18,78,162,.12);
}

.field.is-invalid input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180,35,24,.08);
}

.field-hint, .field-error {
  display: block;
  margin-top: 7px;
  color: #8a95a4;
  font-size: .68rem;
}

.field-error { display: none; color: var(--danger); }
.field.is-invalid .field-hint { display: none; }
.field.is-invalid .field-error { display: block; }

.lookup-input {
  position: relative;
}

.lookup-input input {
  padding-right: 46px;
}

.lookup-spinner {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  display: none;
  margin-top: -9px;
  border: 2px solid #d6deea;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: lookup-spin .7s linear infinite;
}

.lookup-spinner.is-visible {
  display: block;
}

@keyframes lookup-spin {
  to { transform: rotate(360deg); }
}

.organization-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -10px;
  padding: 14px 16px;
  background: #eef8f4;
  border: 1px solid #b9dfd1;
  border-radius: 8px;
}

.organization-result-icon {
  flex: 0 0 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
}

.organization-result > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.organization-result strong,
.organization-result small {
  display: block;
}

.organization-result strong {
  overflow: hidden;
  color: #185844;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organization-result small {
  margin-top: 3px;
  color: #57786d;
  font-size: .66rem;
}

.organization-source {
  flex: 0 0 auto;
  padding: 4px 6px;
  color: #53776a;
  background: rgba(255,255,255,.55);
  border-radius: 4px;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.field-hint.is-error {
  color: var(--danger);
}

.section-divider {
  height: 1px;
  margin: 34px 0 30px;
  background: var(--line);
}

.form-step h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1rem;
}

.section-copy {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .78rem;
}

.choice-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.choice-card {
  position: relative;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  border: 1px solid #ccd6e2;
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.choice-card:has(input:checked) {
  background: #f1f6fd;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.choice-card input {
  position: absolute;
  opacity: 0;
}

.choice-card > i {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 16px;
  height: 16px;
  border: 1px solid #b8c3d0;
  border-radius: 50%;
}

.choice-card:has(input:checked) > i {
  border: 4px solid var(--blue);
  background: #fff;
}

.choice-icon {
  min-width: 34px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 800;
}

.choice-card strong, .choice-card small { display: block; }
.choice-card strong { color: var(--navy); font-size: .78rem; }
.choice-card small { margin-top: 2px; color: #8290a3; font-size: .64rem; }
.conditional-field { margin-top: 20px; }

.invoice-fee-notice {
  display: flex;
  gap: 11px;
  margin-top: 18px;
  padding: 14px 16px;
  color: #6e5216;
  background: #fff7e7;
  border: 1px solid #f0d89c;
  border-radius: 8px;
  font-size: .72rem;
}

.invoice-fee-notice > span {
  flex: 0 0 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #8d6511;
  border: 1px solid #d5b66e;
  border-radius: 50%;
  font-weight: 800;
}

.invoice-fee-notice p {
  margin: 1px 0 0;
  line-height: 1.5;
}

.invoice-fee-notice strong {
  display: block;
  color: #60470f;
}

.registered-address-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding: 13px 15px;
  color: #315d4f;
  background: #eef8f4;
  border: 1px solid #c1e1d5;
  border-radius: 8px;
}

.registered-address-notice > span {
  flex: 0 0 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 800;
}

.registered-address-notice p {
  min-width: 0;
  flex: 1;
  margin: 0;
}

.registered-address-notice strong,
.registered-address-notice small {
  display: block;
}

.registered-address-notice strong {
  font-size: .72rem;
}

.registered-address-notice small {
  margin-top: 2px;
  color: #628075;
  font-size: .64rem;
  line-height: 1.4;
}

.registered-address-notice button {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: #17664e;
  background: #fff;
  border: 1px solid #a9d1c2;
  border-radius: 5px;
  cursor: pointer;
  font-size: .63rem;
  font-weight: 700;
}

.addon-list { display: grid; gap: 14px; }
.addon-card {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 21px;
  border: 1px solid #cfd8e4;
  border-radius: 10px;
  cursor: pointer;
}

.addon-card:has(input:checked) {
  border-color: var(--blue);
  background: #f5f8fd;
}

.addon-card > input { position: absolute; opacity: 0; }
.addon-mark {
  flex: 0 0 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #b8c4d2;
  border-radius: 4px;
}
.addon-card input:checked + .addon-mark {
  background: var(--blue);
  border-color: var(--blue);
}
.addon-card input:checked + .addon-mark::after {
  content: "✓";
  color: #fff;
  font-size: .72rem;
}

.addon-copy { flex: 1; }
.addon-copy strong, .addon-copy small, .addon-copy > span { display: block; }
.addon-copy strong { color: var(--navy); font-size: .9rem; }
.addon-copy small { max-width: 510px; margin: 5px 0 12px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.addon-copy > span { color: var(--green); font-size: .7rem; font-weight: 700; }
.addon-copy i {
  margin-left: 7px;
  padding: 3px 6px;
  color: #087a55;
  background: #def5ec;
  border-radius: 4px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .57rem;
}

.addon-detail {
  margin: -14px 12px 0;
  padding: 20px;
  background: #eef4fb;
  border-radius: 0 0 9px 9px;
}

.taxus-card-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.button-add-card {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 17px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 7px;
  cursor: pointer;
  font-size: .74rem;
  font-weight: 700;
}

.button-add-card:hover {
  background: #0d438f;
}

.button-add-card span {
  font-size: 1rem;
  line-height: 1;
}

.taxus-entry-hint {
  margin: 7px 0 0;
  color: #748195;
  font-size: .64rem;
}

.taxus-card-error {
  margin: 7px 0 0;
  color: var(--danger);
  font-size: .68rem;
}

.taxus-card-list-wrap {
  margin-top: 17px;
  padding: 15px;
  background: #fff;
  border: 1px solid #d2ddea;
  border-radius: 8px;
}

.taxus-card-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9eef4;
}

.taxus-card-list-heading strong {
  color: var(--navy);
  font-size: .72rem;
}

.taxus-card-list-heading span {
  color: #6d798b;
  font-size: .68rem;
}

.taxus-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.taxus-card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  border-bottom: 1px solid #edf1f5;
}

.taxus-card-list li:last-child {
  border-bottom: 0;
}

.taxus-card-index {
  flex: 0 0 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 5px;
  font-size: .6rem;
  font-weight: 800;
}

.taxus-card-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #334158;
  font-size: .74rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxus-card-remove {
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  color: #768295;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.taxus-card-remove:hover {
  color: var(--danger);
  background: #fff1f0;
}

.taxus-card-empty {
  margin: 14px 0 2px;
  color: #8793a4;
  font-size: .68rem;
  text-align: center;
}

.taxus-delivery {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #d5e0ec;
}

.delivery-toggle {
  position: relative;
  display: flex;
  gap: 11px;
  cursor: pointer;
}

.delivery-toggle > input {
  position: absolute;
  opacity: 0;
}

.delivery-toggle > span {
  flex: 0 0 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #aebac9;
  border-radius: 4px;
}

.delivery-toggle input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
}

.delivery-toggle input:checked + span::after {
  content: "✓";
  color: #fff;
  font-size: .7rem;
}

.delivery-toggle p {
  margin: 0;
}

.delivery-toggle strong,
.delivery-toggle small {
  display: block;
}

.delivery-toggle strong {
  color: #354158;
  font-size: .74rem;
}

.delivery-toggle small {
  margin-top: 3px;
  color: #748195;
  font-size: .64rem;
}

.taxus-address-fields {
  display: grid;
  gap: 14px;
  margin: 16px 0 0 31px;
  padding: 16px;
  background: rgba(255,255,255,.7);
  border-radius: 7px;
}

.taxus-address-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
}

.info-box {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  color: #3e4e65;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: .74rem;
}
.info-box > span {
  flex: 0 0 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--blue);
  border: 1px solid #9bb2d2;
  border-radius: 50%;
  font-weight: 800;
}
.info-box p { margin: 1px 0 0; line-height: 1.5; }

.summary-card {
  margin-bottom: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f4;
}
.summary-heading h3 { margin: 0; }
.summary-heading button, .terms-check button {
  padding: 0;
  color: var(--blue);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: underline;
}
.summary-card dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 7px 14px;
  margin: 14px 0 0;
  font-size: .75rem;
}
.summary-card dt { color: #7c8899; }
.summary-card dd { margin: 0; color: #324057; font-weight: 600; }

.signature-section {
  margin-top: 28px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.signature-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.signature-heading h3 {
  margin: 0;
}

.signature-heading h3 b {
  color: #d02e25;
}

.signature-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .72rem;
}

.signature-tabs {
  flex: 0 0 auto;
  display: flex;
  padding: 3px;
  background: #edf1f6;
  border-radius: 7px;
}

.signature-tabs button {
  min-height: 31px;
  padding: 0 12px;
  color: #667387;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 700;
}

.signature-tabs button.is-active {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 32, 51, .12);
}

.signature-type-field {
  margin-bottom: 14px;
  padding: 16px;
  background: #f3f6fa;
  border-radius: 8px;
}

.signature-type-field .field {
  max-width: 420px;
}

.signature-type-field > p {
  margin: 7px 0 0;
  color: #7d8999;
  font-size: .66rem;
}

.signature-pad {
  position: relative;
  height: 170px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18,78,162,.025) 1px, transparent 1px),
    linear-gradient(rgba(18,78,162,.025) 1px, transparent 1px),
    #fbfcfe;
  background-size: 22px 22px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.signature-pad:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18,78,162,.1);
}

.signature-pad.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180,35,24,.08);
}

#signatureCanvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.signature-pad.is-typed #signatureCanvas {
  cursor: default;
}

.signature-line {
  position: absolute;
  z-index: 1;
  left: 8%;
  right: 8%;
  bottom: 36px;
  height: 1px;
  background: #aeb9c7;
}

.signature-placeholder {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #a9b3c0;
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  pointer-events: none;
}

.signature-actions {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #7e8999;
  font-size: .66rem;
}

.signature-actions button {
  padding: 7px 0;
  color: var(--blue);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: .67rem;
  font-weight: 700;
}

.signature-error {
  margin: 3px 0 0;
  color: var(--danger);
  font-size: .7rem;
}

.terms-check {
  position: relative;
  display: flex;
  gap: 12px;
  margin-top: 24px;
  cursor: pointer;
}
.terms-check > input { position: absolute; opacity: 0; }
.terms-check > span {
  flex: 0 0 21px;
  height: 21px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #aebac9;
  border-radius: 4px;
}
.terms-check input:checked + span { background: var(--blue); border-color: var(--blue); }
.terms-check input:checked + span::after { content: "✓"; color: #fff; font-size: .74rem; }
.terms-check p { margin: 0; color: #4e5b6f; font-size: .75rem; line-height: 1.55; }
.terms-error { margin: 8px 0 0 33px; color: var(--danger); font-size: .7rem; }

.terms-translation-note {
  padding: 12px 14px;
  color: #34445c;
  background: #f2f6fb;
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  font-size: .78rem;
}

.form-actions {
  display: flex;
  align-items: center;
  max-width: 680px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.submit-error {
  max-width: 680px;
  margin: 14px 0 0;
  padding: 12px 14px;
  color: #8b1e1e;
  background: #fff1f1;
  border: 1px solid #efb7b7;
  border-radius: 8px;
  font-size: .78rem;
  line-height: 1.45;
}

#submitButton:disabled {
  cursor: wait;
  opacity: .72;
}
.action-spacer { flex: 1; }
.required-note {
  margin: 0 22px 0 0;
  color: #8a95a5;
  font-size: .68rem;
}
.required-note b { color: #d02e25; }

.button-primary, .button-secondary {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 21px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}
.button-primary {
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  box-shadow: 0 6px 14px rgba(6,26,58,.15);
}
.button-primary:hover { background: #0c2a59; }
.button-secondary {
  color: #48566b;
  background: #fff;
  border: 1px solid #c7d0dc;
}

.success-state {
  max-width: 600px;
  margin: 42px auto;
  text-align: center;
  outline: none;
}
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(21,150,107,.1);
  font-size: 1.8rem;
}
.success-state > p:not(.form-kicker):not(.success-note) {
  color: var(--muted);
  line-height: 1.65;
}
.reference-box {
  max-width: 320px;
  margin: 28px auto 22px;
  padding: 17px;
  background: #f1f5f9;
  border-radius: 8px;
}
.reference-box span, .reference-box strong { display: block; }
.reference-box span { color: #7b8798; font-size: .7rem; }
.reference-box strong { margin-top: 4px; color: var(--navy); letter-spacing: .06em; }
.success-note { color: #6e7a8b; font-size: .75rem; line-height: 1.6; }
.success-state .button-secondary { margin-top: 16px; }

.site-footer {
  padding: 28px 0;
  color: #8591a2;
  background: var(--navy);
  font-size: .72rem;
}
.footer-inner { display: flex; justify-content: space-between; }
.footer-inner nav { display: flex; gap: 26px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: #fff; }

dialog {
  width: min(640px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
dialog::backdrop { background: rgba(3,14,32,.72); backdrop-filter: blur(3px); }
.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 28px 32px 18px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 { margin: 0; color: var(--navy); }
.dialog-heading button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #627086;
  background: #f1f4f8;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}
.terms-content {
  max-height: 480px;
  overflow-y: auto;
  padding: 24px 32px;
}
.terms-content h3 { margin: 18px 0 5px; font-size: .95rem; }
.terms-content h3:first-child { margin-top: 0; }
.terms-content p { margin: 0 0 11px; color: #5e6b7d; font-size: .8rem; line-height: 1.65; }
.terms-content a { color: var(--blue); font-weight: 700; overflow-wrap: anywhere; }
.terms-version {
  margin-top: 24px !important;
  padding-top: 14px;
  color: #8290a2 !important;
  border-top: 1px solid var(--line);
  font-size: .68rem !important;
}
.dialog-close-button { margin: 0 32px 28px; float: right; }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .landing-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 54px 0 64px;
  }
  .landing-copy { max-width: 680px; }
  .landing-card { max-width: 680px; }
  .application-layout { grid-template-columns: 1fr; }
  .step-sidebar { padding: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .step-list { display: flex; justify-content: space-between; }
  .step-list::before { left: 12.5%; right: 12.5%; top: 16px; bottom: auto; width: auto; height: 1px; }
  .step-list li { min-width: 0; flex: 1; margin: 0; }
  .step-list button { flex-direction: column; align-items: center; text-align: center; }
  .step-list button > span:last-child { display: none; }
  .save-note { display: none; }
  .sidebar-actions {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 12px;
  }
  .form-panel { padding: 42px 36px 32px; }
}

@media (max-width: 600px) {
  .header-inner, .intro-inner, .landing-inner, .application-layout, .footer-inner { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 66px; }
  .brand img { width: 77px; height: 37px; }
  .brand { gap: 12px; }
  .brand-section { font-size: .78rem; }
  .brand-divider { height: 23px; }
  .help-link { display: none; }
  .intro-inner { padding: 38px 0 66px; }
  .landing-inner { gap: 30px; padding: 38px 0 42px; }
  h1 { font-size: clamp(2.05rem, 10vw, 2.65rem); line-height: 1.02; }
  .intro-copy { margin: 18px 0 22px; font-size: .9rem; line-height: 1.55; }
  .benefits { display: grid; gap: 8px; font-size: .8rem; }
  .landing-actions { display: grid; margin-top: 28px; }
  .landing-primary, .landing-secondary { width: 100%; min-height: 52px; }
  .draft-notice { width: 100%; }
  .landing-card { padding: 25px 21px; border-radius: 12px; }
  .application-shell { padding-top: 18px; padding-bottom: 24px; }
  .application-layout { width: 100%; border-radius: 0; border-left: 0; border-right: 0; }
  .step-sidebar { padding: 18px; }
  .progress-track { margin: 10px 0 20px; }
  .step-list button { min-height: 42px; }
  .form-panel { padding: 30px 18px 24px; }
  .form-step { width: 100%; }
  .form-heading { margin-bottom: 28px; }
  .form-heading h2, .success-state h2 { font-size: 1.65rem; }
  .form-heading > p:not(.form-kicker) { font-size: .87rem; }
  .field-grid, .choice-grid { grid-template-columns: 1fr; }
  .field, .field-small, .field-grow { grid-column: 1; }
  .field-grid { gap: 19px; }
  .field input, .field select { height: 50px; font-size: 1rem; }
  .confirm-dialog { padding: 26px 22px; }
  .confirm-dialog-actions { flex-direction: column-reverse; }
  .confirm-dialog-actions button { width: 100%; }
  .choice-card { min-height: 80px; flex-direction: row; align-items: center; }
  .choice-card > i { top: 50%; transform: translateY(-50%); }
  .addon-card { padding: 19px 17px; }
  .addon-detail { margin-left: 8px; margin-right: 8px; padding: 18px; }
  .taxus-card-entry,
  .taxus-address-row { grid-template-columns: 1fr; }
  .button-add-card { width: 100%; min-height: 49px; }
  .taxus-address-fields { margin-left: 0; }
  .form-actions { flex-wrap: wrap; gap: 12px; }
  .action-spacer { display: none; }
  .required-note { width: 100%; margin: 0; order: -1; }
  .form-actions .button-primary,
  .form-actions .button-secondary {
    min-width: 0;
    min-height: 49px;
    flex: 1 1 0;
    margin-left: 0;
    padding-left: 15px;
    padding-right: 15px;
  }
  .summary-card { padding: 18px; }
  .summary-card dl { grid-template-columns: 1fr; gap: 2px; }
  .summary-card dd { margin-bottom: 7px; }
  .signature-heading { flex-direction: column; }
  .signature-tabs { width: 100%; }
  .signature-tabs button { flex: 1; }
  .signature-pad { height: 150px; }
  .registered-address-notice { align-items: flex-start; flex-wrap: wrap; }
  .registered-address-notice p { width: calc(100% - 36px); }
  .registered-address-notice button { width: calc(100% - 33px); min-height: 40px; margin-left: 33px; }
  .signature-actions { align-items: flex-start; }
  .signature-actions span { max-width: 65%; line-height: 1.45; }
  dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); }
  .dialog-heading { padding: 22px 20px 16px; }
  .terms-content { padding: 20px; }
  .dialog-close-button { width: calc(100% - 40px); margin: 0 20px 20px; float: none; }
  .footer-inner { flex-direction: column; gap: 14px; }
}

@media (max-width: 360px) {
  .brand { gap: 9px; }
  .brand img { width: 72px; }
  .brand-section { font-size: .72rem; }
  .language-button { padding-right: 0; }
  .intro-inner { padding-top: 34px; }
  .landing-inner { padding-top: 32px; }
  h1 { font-size: 2rem; }
  .intro-copy { font-size: .84rem; }
  .form-panel { padding-left: 16px; padding-right: 16px; }
  .step-sidebar { padding-left: 16px; padding-right: 16px; }
  .form-actions { gap: 9px; }
  .form-actions .button-primary,
  .form-actions .button-secondary { font-size: .72rem; }
  .terms-check p { font-size: .72rem; }
}

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