.nsh-wrap {
  --nso-ink: #17324d;
  --nso-muted: #637381;
  --nso-blue: #0b67a3;
  --nso-blue-dark: #084f7d;
  --nso-line: #d9e2e8;
  --nso-soft: #f4f8fa;
  --nso-focus: #ffbf47;
  --nso-orange: #ef7d00;
  color: var(--nso-ink);
  font: inherit;
  max-width: 920px;
  margin: 0 auto;
}

.nsh-intro {
  margin-bottom: 1.5rem;
}

.nsh-intro--panel {
  background: linear-gradient(180deg, #f7fbfd 0%, #eef5f8 100%);
  border: 1px solid #dbe7ed;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(23, 50, 77, 0.05);
  padding: clamp(1.25rem, 3vw, 1.85rem);
}

.nsh-intro__eyebrow,
.nsh-receipt__eyebrow {
  color: var(--nso-blue-dark);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.nsh-intro--panel::after {
  background: var(--nso-orange);
  border-radius: 999px;
  content: "";
  display: block;
  height: 5px;
  margin-top: 1rem;
  width: 60px;
}

.nsh-intro h2,
.nsh-notice h2 {
  color: var(--nso-ink);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.65rem;
}

.nsh-intro p,
.nsh-notice p {
  color: var(--nso-muted);
  margin: 0;
  max-width: 72ch;
}

.nsh-intro p + p {
  margin-top: 0.75rem;
}

.nsh-form {
  display: block;
}

.nsh-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.nsh-steps li {
  align-items: center;
  color: #84939e;
  display: flex;
  font-size: 0.9rem;
  gap: 0.55rem;
  min-width: 0;
  position: relative;
}

.nsh-steps li:not(:last-child)::after {
  background: var(--nso-line);
  content: "";
  height: 2px;
  left: calc(50% + 28px);
  position: absolute;
  right: 12px;
  top: 18px;
}

.nsh-steps span {
  align-items: center;
  background: #eef3f6;
  border: 1px solid var(--nso-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;
}

.nsh-steps strong {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nsh-steps li.is-active,
.nsh-steps li.is-complete {
  color: var(--nso-ink);
}

.nsh-steps li.is-active span {
  background: var(--nso-blue);
  border-color: var(--nso-blue);
  color: #fff;
}

.nsh-steps li.is-complete span {
  background: #e8f3f8;
  border-color: #9ec9dc;
  color: var(--nso-blue-dark);
}

.nsh-step[hidden] {
  display: none !important;
}

.nsh-section {
  background: #fff;
  border: 1px solid var(--nso-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23, 50, 77, 0.06);
  margin: 0;
  padding: clamp(1.15rem, 3vw, 1.8rem);
}

.nsh-section legend {
  background: #fff;
  color: var(--nso-ink);
  font-size: 1.25rem;
  font-weight: 750;
  padding: 0 0.45rem;
}

.nsh-section-intro {
  color: var(--nso-muted);
  margin: 0 0 1.15rem;
}

.nsh-grid {
  display: grid;
  gap: 1rem;
}

.nsh-grid + .nsh-grid,
.nsh-grid + .nsh-field {
  margin-top: 1rem;
}

.nsh-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nsh-grid--address {
  grid-template-columns: 2fr 1.1fr 1.1fr 1.5fr;
}

.nsh-field label {
  color: var(--nso-ink);
  display: block;
  font-size: 0.94rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.nsh-field label > span {
  color: var(--nso-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.nsh-field input,
.nsh-field select,
.nsh-field textarea {
  appearance: none;
  background: #fff;
  border: 1px solid #aebdc7;
  border-radius: 7px;
  box-sizing: border-box;
  color: var(--nso-ink);
  font: inherit;
  min-height: 48px;
  padding: 0.72rem 0.8rem;
  width: 100%;
}

.nsh-field textarea {
  min-height: 120px;
  resize: vertical;
}

.nsh-field textarea::placeholder {
  color: #8797a2;
}

.nsh-field input:focus,
.nsh-field select:focus,
.nsh-field textarea:focus,
.nsh-signature-box:focus-within,
.nsh-submit:focus,
.nsh-next:focus,
.nsh-back:focus,
.nsh-link-button:focus,
.nsh-consent a:focus {
  outline: 3px solid var(--nso-focus);
  outline-offset: 2px;
}

.nsh-section > .nsh-field + .nsh-field,
.nsh-section > .nsh-field + .nsh-help,
.nsh-signing-fields + .nsh-help {
  margin-top: 1rem;
}

.nsh-consent {
  background: var(--nso-soft);
  border-radius: 9px;
  padding: 1.1rem 1.2rem;
}

.nsh-consent label {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
}

.nsh-consent label + label {
  margin-top: 0.9rem;
}

.nsh-consent input {
  flex: 0 0 auto;
  height: 20px;
  margin-top: 0.15rem;
  width: 20px;
}

.nsh-signing-fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.nsh-help {
  color: var(--nso-muted);
  font-size: 0.92rem;
  margin: 0 0 0.7rem;
}

.nsh-signature-box {
  background: #fff;
  border: 1px solid #aebdc7;
  border-radius: 7px;
  height: 190px;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.nsh-signature-box canvas {
  cursor: crosshair;
  display: block;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 2;
}

.nsh-signature-line {
  border-bottom: 1px solid #d3dde3;
  bottom: 42px;
  left: 7%;
  position: absolute;
  right: 7%;
  z-index: 1;
}

.nsh-signature-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.65rem;
}

.nsh-link-button {
  background: transparent;
  border: 0;
  color: var(--nso-blue);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 0.25rem 0;
  text-decoration: underline;
}

.nsh-signature-error {
  color: #a22622;
  font-size: 0.9rem;
  font-weight: 650;
}

.nsh-navigation {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  margin-top: 1rem;
}

.nsh-navigation--end {
  justify-content: flex-end;
}

.nsh-next,
.nsh-submit,
.nsh-back {
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  min-height: 50px;
  padding: 0.8rem 1.35rem;
}

.nsh-next,
.nsh-submit {
  background: var(--nso-orange);
  border: 1px solid var(--nso-orange);
  color: #fff;
}

.nsh-next:hover,
.nsh-submit:hover {
  background: #c96800;
  border-color: #c96800;
}

.nsh-back {
  background: #fff;
  border: 1px solid #aebdc7;
  color: var(--nso-ink);
}

.nsh-back:hover {
  background: var(--nso-soft);
}

.nsh-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.nsh-notice {
  border-radius: 16px;
  margin-bottom: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.nsh-notice--success {
  background: linear-gradient(180deg, #f5faf7 0%, #eef6f1 100%);
  border: 1px solid #9fd0af;
  box-shadow: 0 16px 32px rgba(23, 50, 77, 0.06);
}

.nsh-notice--error {
  background: #fff0ef;
  border: 1px solid #e0a19d;
  color: #75251f;
}

.nsh-wrap {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.nsh-receipt {
  position: relative;
}

.nsh-receipt__meta {
  background: #fff;
  border: 1px solid #dbe7ed;
  border-radius: 10px;
  color: var(--nso-ink) !important;
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.4rem 0 1.1rem !important;
  padding: 0.6rem 0.9rem;
}

.nsh-receipt::before {
  background: linear-gradient(90deg, var(--nso-orange), #f5c400);
  border-radius: 999px;
  content: "";
  display: block;
  height: 6px;
  margin-bottom: 1rem;
  width: 72px;
}

.nsh-receipt__lead {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1rem !important;
}

.nsh-receipt__highlight {
  background: #fff;
  border: 1px solid #dbe7ed;
  border-left: 5px solid var(--nso-blue);
  border-radius: 12px;
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
}

.nsh-receipt__highlight strong {
  color: var(--nso-ink);
  display: inline-block;
  margin-bottom: 0.35rem;
}

.nsh-receipt__highlight p {
  margin: 0;
}






.nsh-honeypot {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

@media (max-width: 760px) {
  .nsh-grid--two,
  .nsh-grid--address,
  .nsh-signing-fields {
    grid-template-columns: 1fr;
  }

  .nsh-steps strong {
    font-size: 0.78rem;
  }

  .nsh-steps li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .nsh-steps li:not(:last-child)::after {
    left: 38px;
    right: 4px;
  }

  .nsh-signature-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .nsh-navigation {
    align-items: stretch;
  }

  .nsh-next,
  .nsh-submit,
  .nsh-back {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .nsh-steps strong {
    white-space: normal;
  }

  .nsh-navigation {
    flex-direction: column-reverse;
  }

  .nsh-navigation--end {
    flex-direction: column;
  }
}

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