.hnib-valuation {
  --hnib-navy: #132238;
  --hnib-navy-soft: #21344f;
  --hnib-green: #8cc63f;
  --hnib-green-dark: #6da521;
  --hnib-gold: #f4a52f;
  --hnib-ink: #182230;
  --hnib-muted: #5f6b79;
  --hnib-line: #dfe4e9;
  --hnib-surface: #ffffff;
  --hnib-background: #f5f7f8;
  box-sizing: border-box;
  color: var(--hnib-ink);
  font: inherit;
  margin: clamp(2.5rem, 5vw, 4.5rem) auto clamp(7rem, 8vw, 10rem) !important;
  max-width: 1180px;
  padding: 0 clamp(1rem, 3vw, 2rem);
  position: relative;
  scroll-margin-top: 7rem;
  z-index: 100;
}

.hnib-valuation *,
.hnib-valuation *::before,
.hnib-valuation *::after {
  box-sizing: border-box;
}

.hnib-valuation [hidden] {
  display: none !important;
}

.hnib-valuation[aria-busy="true"] {
  cursor: wait;
}

.hnib-valuation__intro {
  margin: 0 auto 2rem;
  max-width: 820px;
  text-align: center;
}

.hnib-eyebrow {
  color: var(--hnib-green-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.hnib-valuation__intro h2 {
  color: var(--hnib-navy);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}

.hnib-valuation__intro > p:last-child {
  color: var(--hnib-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  margin: 1rem auto 0;
  max-width: 760px;
}

.hnib-progress {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0 auto -1px;
  max-width: 760px;
  padding: 0;
  position: relative;
  z-index: 2;
}

.hnib-progress::before {
  background: var(--hnib-line);
  content: "";
  height: 2px;
  left: 16.66%;
  position: absolute;
  right: 16.66%;
  top: 1.15rem;
  z-index: -1;
}

.hnib-progress li {
  align-items: center;
  color: #788391;
  display: flex;
  flex-direction: column;
  font-size: 0.83rem;
  gap: 0.4rem;
  text-align: center;
}

.hnib-progress li span {
  align-items: center;
  background: var(--hnib-surface);
  border: 2px solid var(--hnib-line);
  border-radius: 999px;
  display: flex;
  font-size: 0.85rem;
  font-weight: 800;
  height: 2.35rem;
  justify-content: center;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  width: 2.35rem;
}

.hnib-progress li.is-current,
.hnib-progress li.is-complete {
  color: var(--hnib-navy);
}

.hnib-progress li.is-current span,
.hnib-progress li.is-complete span {
  background: var(--hnib-green);
  border-color: var(--hnib-green);
  color: var(--hnib-navy);
}

.hnib-card {
  background: var(--hnib-surface);
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 1.4rem;
  box-shadow: 0 22px 60px rgba(19, 34, 56, 0.13);
  margin-top: 1.4rem;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.hnib-card::before {
  background: linear-gradient(90deg, var(--hnib-green) 0 33.333%, var(--hnib-gold) 33.333% 66.666%, var(--hnib-navy) 66.666% 100%);
  content: "";
  display: block;
  height: 0.42rem;
}

.hnib-form {
  margin: 0;
}

.hnib-step {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: clamp(1.4rem, 4vw, 3.2rem);
}

.hnib-step[hidden],
.hnib-subtype[hidden],
.hnib-success[hidden],
.hnib-alert[hidden],
.hnib-field[hidden] {
  display: none !important;
}

.hnib-step legend {
  color: var(--hnib-navy);
  float: left;
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.hnib-step legend + * {
  clear: both;
}

.hnib-step__hint {
  color: var(--hnib-muted);
  line-height: 1.55;
  margin: 0.8rem auto 2.25rem;
  max-width: 720px;
  text-align: center;
}

.hnib-choice-grid {
  display: grid;
  gap: 1rem;
}

.hnib-choice-grid--property {
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hnib-property-choice,
.hnib-mini-choice {
  cursor: pointer;
  display: block;
  margin: 0;
  position: relative;
}

.hnib-property-choice input,
.hnib-mini-choice input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.hnib-property-choice__content {
  align-items: center;
  background: #fff;
  border: 2px solid var(--hnib-line);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  min-height: 150px;
  padding: 1rem 0.65rem;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.hnib-property-choice__content svg {
  fill: none;
  height: 62px;
  stroke: var(--hnib-navy);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 62px;
}

.hnib-property-choice__content strong {
  color: var(--hnib-navy);
  font-size: 1rem;
  line-height: 1.25;
}

.hnib-property-choice:hover .hnib-property-choice__content {
  border-color: #b7c0ca;
  transform: translateY(-2px);
}

.hnib-property-choice input:focus-visible + .hnib-property-choice__content,
.hnib-mini-choice input:focus-visible + span {
  outline: 3px solid rgba(140, 198, 63, 0.32);
  outline-offset: 3px;
}

.hnib-property-choice input:checked + .hnib-property-choice__content {
  background: rgba(140, 198, 63, 0.07);
  border-color: var(--hnib-green);
  box-shadow: 0 10px 26px rgba(109, 165, 33, 0.13);
}

.hnib-property-choice input:checked + .hnib-property-choice__content svg {
  stroke: var(--hnib-green-dark);
}

.hnib-subtype {
  border-top: 1px solid var(--hnib-line);
  margin-top: 2rem;
  padding-top: 2rem;
}

.hnib-subtype h3,
.hnib-section-title {
  color: var(--hnib-navy);
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.hnib-choice-grid--subtype {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hnib-mini-choice span {
  align-items: center;
  background: #fff;
  border: 2px solid var(--hnib-line);
  border-radius: 0.75rem;
  color: var(--hnib-navy);
  display: flex;
  font-size: 0.92rem;
  font-weight: 700;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.7rem;
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.hnib-mini-choice input:checked + span {
  background: rgba(140, 198, 63, 0.08);
  border-color: var(--hnib-green);
}

.hnib-section-title {
  border-bottom: 1px solid var(--hnib-line);
  margin-top: 2rem;
  padding-bottom: 0.8rem;
}

.hnib-fields {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hnib-fields--address {
  grid-template-columns: 2fr 0.75fr 0.75fr 1.75fr;
}

.hnib-fields--details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hnib-field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin: 0;
  min-width: 0;
}

.hnib-field--full {
  grid-column: 1 / -1;
}

.hnib-field > span {
  color: var(--hnib-navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.hnib-field input,
.hnib-field select,
.hnib-field textarea {
  appearance: none;
  background: #fff;
  border: 2px solid #cfd6dd;
  border-radius: 0.7rem;
  color: var(--hnib-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
  min-height: 3.25rem;
  padding: 0.78rem 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.hnib-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--hnib-navy) 50%), linear-gradient(135deg, var(--hnib-navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 2.6rem;
}

.hnib-field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.hnib-field input:focus,
.hnib-field select:focus,
.hnib-field textarea:focus {
  border-color: var(--hnib-green-dark);
  box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.2);
  outline: none;
}

.hnib-field input[aria-invalid="true"],
.hnib-field select[aria-invalid="true"],
.hnib-field textarea[aria-invalid="true"] {
  border-color: #bd2c2c;
}

.hnib-consent {
  align-items: flex-start;
  background: var(--hnib-background);
  border-radius: 0.8rem;
  color: var(--hnib-muted);
  cursor: pointer;
  display: flex;
  font-size: 0.92rem;
  gap: 0.8rem;
  line-height: 1.45;
  margin: 1.5rem 0 0;
  padding: 1rem;
}

.hnib-consent input {
  accent-color: var(--hnib-green-dark);
  flex: 0 0 auto;
  height: 1.25rem;
  margin: 0.08rem 0 0;
  width: 1.25rem;
}

.hnib-consent a {
  color: var(--hnib-navy);
  font-weight: 700;
  text-decoration: underline;
}

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

.hnib-actions--end {
  justify-content: flex-end;
}

.hnib-button {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.035em;
  min-height: 2.9rem;
  min-width: 132px;
  padding: 0.65rem 1.25rem;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hnib-button:hover {
  transform: translateY(-1px);
}

.hnib-button:focus-visible {
  outline: 3px solid rgba(140, 198, 63, 0.32);
  outline-offset: 3px;
}

.hnib-button--primary {
  background: var(--hnib-green);
  color: var(--hnib-navy);
}

.hnib-button--primary:hover {
  background: #9bd348;
  box-shadow: 0 8px 20px rgba(109, 165, 33, 0.22);
}

.hnib-button--secondary {
  background: #fff;
  border-color: var(--hnib-navy);
  color: var(--hnib-navy);
}

.hnib-button--secondary:hover {
  background: var(--hnib-navy);
  color: #fff;
}

.hnib-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.hnib-required {
  color: var(--hnib-muted);
  font-size: 0.78rem;
  margin: 0.85rem 0 0;
  text-align: right;
}

.hnib-alert {
  background: #fff4f4;
  border: 1px solid #e7b5b5;
  border-radius: 0.75rem;
  color: #8c1d1d;
  margin: 1.5rem clamp(1.5rem, 5vw, 4rem) 0;
  padding: 0.9rem 1rem;
}

.hnib-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.hnib-success {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 555px;
  padding: clamp(2rem, 6vw, 5rem);
  text-align: center;
}

.hnib-success__icon {
  align-items: center;
  background: var(--hnib-green);
  border-radius: 999px;
  color: var(--hnib-navy);
  display: flex;
  font-size: 2.4rem;
  font-weight: 900;
  height: 5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  width: 5rem;
}

.hnib-success h3 {
  color: var(--hnib-navy);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0 0 0.8rem;
}

.hnib-success p {
  color: var(--hnib-muted);
  line-height: 1.6;
  margin: 0.6rem auto;
  max-width: 620px;
}

@media (max-width: 920px) {
  .hnib-choice-grid--property,
  .hnib-fields--details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hnib-fields--address {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hnib-field--wide {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .hnib-valuation {
    margin-bottom: 11rem !important;
    margin-top: 2.25rem !important;
    padding: 0 0.75rem;
  }

  .hnib-progress li strong {
    font-size: 0.75rem;
  }

  .hnib-card {
    border-radius: 1rem;
    min-height: 0;
  }

  .hnib-step {
    padding: 1.25rem 0.85rem 1.4rem;
  }

  .hnib-step legend {
    text-align: left;
  }

  .hnib-step__hint {
    margin-bottom: 1.5rem;
    text-align: left;
  }

  .hnib-choice-grid--property {
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hnib-property-choice__content {
    gap: 0.45rem;
    min-height: 116px;
    padding: 0.7rem 0.35rem;
  }

  .hnib-property-choice__content svg {
    height: 46px;
    width: 46px;
  }

  .hnib-property-choice__content strong {
    font-size: 0.76rem;
  }

  .hnib-choice-grid--subtype,
  .hnib-fields,
  .hnib-fields--address,
  .hnib-fields--details {
    grid-template-columns: 1fr;
  }

  .hnib-fields {
    gap: 0.9rem;
  }

  .hnib-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 0.7rem;
    margin-top: 1.35rem;
  }

  .hnib-actions--end {
    flex-direction: column;
  }

  .hnib-button {
    font-size: 0.8rem;
    min-height: 2.8rem;
    min-width: 0;
    padding: 0.6rem 1rem;
    width: 100%;
  }

  .hnib-alert {
    margin: 1rem 1rem 0;
  }

  .hnib-required {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hnib-valuation *,
  .hnib-valuation *::before,
  .hnib-valuation *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
