.nsa-wrap {
  --nsa-ink: #17324d;
  --nsa-muted: #637381;
  --nsa-blue: #0b67a3;
  --nsa-blue-dark: #084f7d;
  --nsa-line: #d9e2e8;
  --nsa-soft: #f4f8fa;
  --nsa-focus: #ffbf47;
  --nsa-orange: #ef7d00;
  --nsa-success: #e9f7ef;
  --nsa-danger: #a22622;
  color: var(--nsa-ink);
  font: inherit;
  margin: 0 auto;
  max-width: 980px;
  padding-bottom: 2.5rem;
}

.nsa-wrap--success {
  max-width: 100%;
}

.nsa-wrap *,
.nsa-wrap *::before,
.nsa-wrap *::after {
  box-sizing: border-box;
}

.nsa-intro { margin-bottom: 1.5rem; }
.nsa-intro h2,
.nsa-notice h2 {
  color: var(--nsa-ink);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.65rem;
}
.nsa-intro p,
.nsa-notice p {
  color: var(--nsa-muted);
  margin: 0;
  max-width: 76ch;
}
.nsa-notice p + p { margin-top: 0.75rem; }

.nsa-form { display: block; margin-bottom: 2.5rem; }

.nsa-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.nsa-steps li {
  align-items: center;
  color: #84939e;
  display: flex;
  font-size: 0.9rem;
  gap: 0.55rem;
  min-width: 0;
  position: relative;
}
.nsa-steps li:not(:last-child)::after {
  background: var(--nsa-line);
  content: "";
  height: 2px;
  left: calc(50% + 28px);
  position: absolute;
  right: 12px;
  top: 18px;
}
.nsa-steps span {
  align-items: center;
  background: #eef3f6;
  border: 1px solid var(--nsa-line);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 36px;
  font-size: 0.9rem;
  font-weight: 750;
  height: 36px;
  justify-content: center;
  position: relative;
  width: 36px;
  z-index: 2;
}
.nsa-steps strong {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nsa-steps li.is-active,
.nsa-steps li.is-complete { color: var(--nsa-ink); }
.nsa-steps li.is-active span {
  background: var(--nsa-blue);
  border-color: var(--nsa-blue);
  color: #fff;
}
.nsa-steps li.is-complete span {
  background: #e8f3f8;
  border-color: #9ec9dc;
  color: var(--nsa-blue-dark);
}

.nsa-step[hidden],
.nsa-quote-consent[hidden],
.nsa-documents [hidden],
.nsa-field[hidden],
.nsa-consents[hidden],
.nsa-address-preview[hidden],
.nsa-config-warning[hidden] { display: none !important; }

.nsa-section {
  background: #fff;
  border: 1px solid var(--nsa-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23, 50, 77, 0.06);
  margin: 0;
  padding: clamp(1.15rem, 3vw, 1.8rem);
}
.nsa-section legend {
  background: #fff;
  color: var(--nsa-ink);
  font-size: 1.25rem;
  font-weight: 750;
  padding: 0 0.45rem;
}
.nsa-section-intro {
  color: var(--nsa-muted);
  margin: 0 0 1.15rem;
}

.nsa-grid { display: grid; gap: 1rem; }
.nsa-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nsa-grid--address { grid-template-columns: 1fr 1fr 0.92fr; }

.nsa-field--spaced { margin-top: 1rem; }
.nsa-field label {
  color: var(--nsa-ink);
  display: block;
  font-size: 0.94rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}
.nsa-field label > span {
  color: var(--nsa-muted);
  font-size: 0.82rem;
  font-weight: 400;
}
.nsa-field input,
.nsa-field select,
.nsa-field textarea {
  appearance: none;
  background: #fff;
  border: 1px solid #aebdc7;
  border-radius: 7px;
  color: var(--nsa-ink);
  font: inherit;
  min-height: 48px;
  padding: 0.72rem 0.8rem;
  width: 100%;
}
.nsa-field input[readonly] { background: #f8fafb; color: #536774; }
.nsa-field-help {
  color: var(--nsa-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0.45rem 0 0;
}
.nsa-field input:focus,
.nsa-field select:focus,
.nsa-field textarea:focus,
.nsa-package-card:has(input:focus-visible),
.nsa-signature-box:focus-within,
.nsa-submit:focus,
.nsa-next:focus,
.nsa-back:focus,
.nsa-link-button:focus,
.nsa-consent-row a:focus,
.nsa-documents a:focus {
  outline: 3px solid var(--nsa-focus);
  outline-offset: 2px;
}

.nsa-address-preview {
  align-items: center;
  background: var(--nsa-soft);
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
}
.nsa-address-preview strong { font-size: 0.9rem; }
.nsa-address-preview span { color: var(--nsa-muted); }

.nsa-package-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nsa-package-card {
  background: #fff;
  border: 1px solid #b9c7d0;
  border-radius: 11px;
  cursor: pointer;
  display: grid;
  min-height: 100%;
  padding: 1.2rem 1.2rem 1.15rem 3.25rem;
  position: relative;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.nsa-package-card:hover {
  border-color: #86afc7;
  box-shadow: 0 7px 20px rgba(23, 50, 77, 0.07);
  transform: translateY(-1px);
}
.nsa-package-card.is-selected {
  border-color: var(--nsa-blue);
  box-shadow: 0 0 0 2px rgba(11, 103, 163, 0.12), 0 8px 22px rgba(23, 50, 77, 0.08);
}
.nsa-package-card > input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}
.nsa-package-check {
  background: #fff;
  border: 2px solid #9fb0bb;
  border-radius: 50%;
  height: 21px;
  left: 1.15rem;
  position: absolute;
  top: 1.3rem;
  width: 21px;
}
.nsa-package-card.is-selected .nsa-package-check {
  border: 6px solid var(--nsa-blue);
}
.nsa-package-name { font-size: 1.06rem; font-weight: 750; }
.nsa-package-duration { color: var(--nsa-blue-dark); font-size: 0.92rem; font-weight: 700; margin-top: 0.15rem; }
.nsa-package-price { color: var(--nsa-ink); font-size: 1.12rem; margin-top: 0.8rem; }
.nsa-package-divider { border-top: 1px solid var(--nsa-line); margin: 0.9rem 0 0.75rem; }
.nsa-package-feature {
  color: #465c6a;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-top: 0.28rem;
  padding-left: 1.25rem;
  position: relative;
}
.nsa-package-feature::before {
  color: var(--nsa-blue);
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
}
.nsa-package-note {
  background: #fff8eb;
  border-radius: 7px;
  color: #76511f;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 0.85rem;
  padding: 0.7rem 0.8rem;
}

.nsa-summary {
  align-content: center;
  background: var(--nsa-soft);
  border: 1px solid var(--nsa-line);
  border-radius: 9px;
  display: grid;
  gap: 0.22rem;
  padding: 1rem 1.1rem;
}
.nsa-summary-kicker {
  color: var(--nsa-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nsa-summary strong { font-size: 1rem; }
.nsa-summary span:not(.nsa-summary-kicker) { color: var(--nsa-muted); font-size: 0.9rem; }

.nsa-cooling-off {
  background: #eef7fb;
  border-left: 4px solid var(--nsa-blue);
  border-radius: 7px;
  margin-top: 1.2rem;
  padding: 0.95rem 1rem;
}
.nsa-cooling-off strong { display: block; margin-bottom: 0.2rem; }
.nsa-cooling-off p { color: #4d6472; margin: 0; }

.nsa-documents,
.nsa-consents,
.nsa-quote-consent {
  border-top: 1px solid var(--nsa-line);
  margin-top: 1.3rem;
  padding-top: 1.2rem;
}
.nsa-documents h3,
.nsa-consents h3,
.nsa-quote-consent h3 {
  color: var(--nsa-ink);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}
.nsa-documents ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nsa-documents a {
  color: var(--nsa-blue);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: underline;
}
.nsa-config-warning {
  background: #fff0ef;
  border: 1px solid #e0a19d;
  border-radius: 7px;
  color: #75251f;
  font-size: 0.9rem;
  font-weight: 650;
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
}

.nsa-consents--optional { background: var(--nsa-soft); border-radius: 9px; border-top: 0; padding: 1.1rem 1.2rem; }
.nsa-consent-row {
  align-items: flex-start;
  color: #435967;
  display: flex;
  font-size: 0.9rem;
  gap: 0.75rem;
  line-height: 1.55;
}
.nsa-consent-row + .nsa-consent-row { margin-top: 0.95rem; }
.nsa-consent-row input {
  flex: 0 0 auto;
  height: 20px;
  margin: 0.17rem 0 0;
  width: 20px;
}
.nsa-consent-row--required strong { color: var(--nsa-ink); }
.nsa-sepa-meta {
  color: var(--nsa-muted);
  font-size: 0.83rem;
  margin: 0.85rem 0 0 2.75rem;
}
.nsa-sepa-meta--warning { color: #8a5a18; }

.nsa-signing-fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.3rem;
}
.nsa-help { color: var(--nsa-muted); font-size: 0.92rem; margin: 1.15rem 0 0.7rem; }
.nsa-signature-box {
  background: #fff;
  border: 1px solid #aebdc7;
  border-radius: 7px;
  height: 200px;
  overflow: hidden;
  position: relative;
  touch-action: none;
}
.nsa-signature-box canvas {
  cursor: crosshair;
  display: block;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 2;
}
.nsa-signature-line {
  border-bottom: 1px solid #d3dde3;
  bottom: 42px;
  left: 7%;
  position: absolute;
  right: 7%;
  z-index: 1;
}
.nsa-signature-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.65rem;
}
.nsa-link-button {
  background: transparent;
  border: 0;
  color: var(--nsa-blue);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 0.25rem 0;
  text-decoration: underline;
}
.nsa-signature-error { color: var(--nsa-danger); font-size: 0.9rem; font-weight: 650; }

.nsa-navigation {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.nsa-navigation--end { justify-content: flex-end; }
.nsa-next,
.nsa-submit,
.nsa-back {
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  min-height: 50px;
  padding: 0.8rem 1.35rem;
}
.nsa-next,
.nsa-submit {
  background: var(--nsa-orange);
  border: 1px solid var(--nsa-orange);
  color: #fff;
}
.nsa-next:hover,
.nsa-submit:hover { background: #c96800; border-color: #c96800; }
.nsa-back { background: #fff; border: 1px solid #aebdc7; color: var(--nsa-ink); }
.nsa-back:hover { background: var(--nsa-soft); }
.nsa-submit:disabled { cursor: wait; opacity: 0.72; }
.nsa-submit-wrap { align-items: flex-end; display: flex; flex-direction: column; gap: 0.35rem; max-width: 560px; }
.nsa-submit-note { color: var(--nsa-muted); font-size: 0.78rem; line-height: 1.35; text-align: right; }

.nsa-notice { border-radius: 8px; margin-bottom: 1.5rem; padding: 1.25rem 1.4rem; }
.nsa-notice--success { background: var(--nsa-success); border: 1px solid #8bc6a2; }
.nsa-notice--error { background: #fff0ef; border: 1px solid #e0a19d; color: #75251f; }

.nsa-thankyou {
  background: linear-gradient(135deg, #0b67a3 0%, #0b6f82 100%);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(23, 50, 77, 0.14);
  color: #fff;
  margin: 0 0 2rem;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  position: relative;
  width: 100%;
}
.nsa-thankyou::before {
  background: #f2d21b;
  content: "";
  display: block;
  height: 8px;
  left: 0;
  position: absolute;
  top: 0;
  width: 120px;
}
.nsa-thankyou h2 {
  color: #fff;
  margin-top: 0.25rem;
}
.nsa-thankyou p {
  color: rgba(255,255,255,0.94);
  margin: 0;
  max-width: 72ch;
}
.nsa-thankyou p + p {
  margin-top: 0.9rem;
}
.nsa-thankyou__eyebrow {
  color: rgba(255,255,255,0.86);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nsa-thankyou__reference {
  color: #fff;
}
.nsa-thankyou__small {
  font-size: 0.92rem;
}
.nsa-thankyou__contact {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  margin-top: 1.35rem;
  max-width: 460px;
  padding: 1rem 1.1rem;
}
.nsa-thankyou__contact strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.nsa-thankyou__contact p {
  margin: 0;
}
.nsa-thankyou__contact ul {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}
.nsa-thankyou__contact li + li {
  margin-top: 0.35rem;
}
.nsa-thankyou__contact a {
  color: #fff;
  font-weight: 650;
  text-decoration: underline;
}
.nsa-honeypot { height: 0; left: -9999px; overflow: hidden; position: absolute; width: 0; }

@media (max-width: 820px) {
  .nsa-grid--two,
  .nsa-signing-fields { grid-template-columns: 1fr; }
  .nsa-package-grid { grid-template-columns: 1fr; }
  .nsa-steps strong { font-size: 0.78rem; }
  .nsa-steps li { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .nsa-steps li:not(:last-child)::after { left: 38px; right: 4px; }
  .nsa-navigation { align-items: stretch; }
  .nsa-submit-wrap { max-width: none; }
  .nsa-submit-note { text-align: left; }
}

@media (max-width: 620px) {
  .nsa-grid--address { grid-template-columns: 1fr 1fr; }
  .nsa-grid--address .nsa-field:first-child { grid-column: 1 / -1; }
  .nsa-steps { gap: 0.35rem; }
  .nsa-steps strong { font-size: 0.72rem; white-space: normal; }
  .nsa-steps span { flex-basis: 32px; height: 32px; width: 32px; }
  .nsa-steps li:not(:last-child)::after { top: 16px; }
  .nsa-section { padding: 1rem; }
  .nsa-signature-box { height: 180px; }
  .nsa-navigation { flex-direction: column-reverse; }
  .nsa-navigation--end { flex-direction: column; }
  .nsa-next,
  .nsa-submit,
  .nsa-back { width: 100%; }
  .nsa-submit-wrap { width: 100%; }
  .nsa-address-preview { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
}

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