.nso-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;
  box-sizing: border-box;
  color: var(--nso-ink);
  font: inherit;
  left: 50%;
  margin: 0;
  max-width: none !important;
  padding: 0;
  position: relative;
  transform: translateX(calc(-50% + 7cm));
  width: min(920px, calc(100vw - 48px)) !important;
}

.nso-intro {
  margin-bottom: 1.5rem;
}
.nso-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);
}

.nso-intro__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;
}

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


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

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

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

.nso-form {
  display: block;
}

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

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

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

.nso-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;
}

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

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

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

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

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

.nso-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);
}

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

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

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

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

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

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

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

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

.nso-field input,
.nso-field select,
.nso-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%;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.nso-notice {
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.4rem;
}

.nso-notice--success {
  background: #e9f7ef;
  border: 1px solid #8bc6a2;
}

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

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


@media (max-width: 1200px) {
  .nso-wrap {
    transform: translateX(calc(-50% + 1cm));
  }
}
@media (max-width: 760px) {
  .nso-wrap {
    transform: translateX(-50%);
    width: calc(100vw - 24px);
    padding: 0;
  }

  .nso-grid--two,
  .nso-grid--address,
  .nso-signing-fields {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

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

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

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

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