.mhroi-shell {
  --mhroi-green: #5d983c;
  --mhroi-green-dark: #436d2d;
  --mhroi-ink: #182015;
  --mhroi-muted: #66705f;
  --mhroi-line: #dbe5d4;
  --mhroi-surface: #f7faf4;
  --mhroi-surface-strong: #eef5e8;
  max-width: 920px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--mhroi-line);
  border-radius: 28px;
  background: linear-gradient(180deg, #fcfdfb 0%, #f4f8ef 100%);
  box-shadow: 0 20px 48px rgba(50, 79, 33, 0.08);
}

.mhroi-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.mhroi-eyebrow,
.mhroi-step-count {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mhroi-green-dark);
}

.mhroi-topbar-copy h2,
.mhroi-step-copy h3,
.mhroi-results-head h3 {
  margin: 0;
  color: var(--mhroi-ink);
  letter-spacing: -0.03em;
}

.mhroi-topbar-copy h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.mhroi-topbar-copy p,
.mhroi-step-copy p,
.mhroi-results-head p,
.mhroi-summary p,
.mhroi-mini-result p {
  margin: 0;
  color: var(--mhroi-muted);
  line-height: 1.65;
}

.mhroi-progress {
  min-width: 150px;
}

.mhroi-progress-copy {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mhroi-green-dark);
}

.mhroi-progress-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(93, 152, 60, 0.12);
}

.mhroi-progress-bar span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6ca94a 0%, #4a7d31 100%);
  transition: width 0.25s ease;
}

.mhroi-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mhroi-step {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mhroi-step--result {
  gap: 20px;
}

.mhroi-step--result .mhroi-step-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.mhroi-step[hidden],
.mhroi-step:not(.is-active) {
  display: none !important;
}

.mhroi-slider-grid,
.mhroi-contact-grid,
.mhroi-result-grid {
  display: grid;
  gap: 16px;
}

.mhroi-slider-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mhroi-slider-grid--single {
  grid-template-columns: 1fr;
}

.mhroi-contact-grid,
.mhroi-result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mhroi-slider-card,
.mhroi-result-card,
.mhroi-summary,
.mhroi-mini-result {
  padding: 16px;
  border: 1px solid var(--mhroi-line);
  border-radius: 22px;
  background: #fff;
}

.mhroi-slider-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mhroi-slider-label,
.mhroi-result-card span,
.mhroi-summary span,
.mhroi-mini-result span {
  font-size: 13px;
  font-weight: 700;
  color: var(--mhroi-green-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mhroi-slider-value,
.mhroi-result-card strong,
.mhroi-summary strong,
.mhroi-mini-result strong {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
  color: var(--mhroi-ink);
  letter-spacing: -0.04em;
}

.mhroi-slider-card input[type="range"] {
  width: 100%;
  accent-color: var(--mhroi-green);
}

.mhroi-slider-note {
  font-size: 14px;
  color: var(--mhroi-muted);
  line-height: 1.5;
}

.mhroi-toggle-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--mhroi-line);
  border-radius: 22px;
  background: var(--mhroi-surface);
}

.mhroi-toggle-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mhroi-toggle-chip {
  position: relative;
}

.mhroi-toggle-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.mhroi-toggle-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--mhroi-line);
  border-radius: 999px;
  background: #fff;
  color: var(--mhroi-ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.mhroi-toggle-chip input:checked + span {
  border-color: var(--mhroi-green);
  background: rgba(93, 152, 60, 0.12);
  color: var(--mhroi-green-dark);
}

.mhroi-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #17340f 0%, #264a18 100%);
}

.mhroi-step--result .mhroi-results {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas:
    "hero head"
    "cards cards"
    "summary summary"
    "footer footer";
  margin: 0 auto;
  width: 100%;
  max-width: 920px;
  gap: 14px 18px;
}

.mhroi-results-hero {
  grid-area: hero;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px 10px;
  text-align: center;
  border-bottom: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.mhroi-results-hero span,
.mhroi-results-hero p,
.mhroi-results-hero p strong {
  color: #fff;
}

.mhroi-results-hero span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.mhroi-results-hero strong {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: #fff;
}

.mhroi-results-hero p {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.4;
}

.mhroi-results-head {
  grid-area: head;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 100%;
}

.mhroi-step--result .mhroi-results-head {
  align-items: center;
}

.mhroi-results-head h3 {
  font-size: clamp(22px, 3vw, 34px);
}

.mhroi-results-head p {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.55;
}

.mhroi-results-head h3,
.mhroi-results-head p,
.mhroi-result-card strong,
.mhroi-result-card span,
.mhroi-summary strong,
.mhroi-summary span,
.mhroi-summary p {
  color: #fff;
}

.mhroi-result-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.mhroi-step--result .mhroi-result-grid {
  grid-area: cards;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mhroi-step--result .mhroi-result-card {
  padding: 14px 16px;
}

.mhroi-step--result .mhroi-result-card span {
  font-size: 11px;
}

.mhroi-step--result .mhroi-result-card strong {
  font-size: clamp(18px, 2vw, 24px);
}

.mhroi-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.mhroi-summary-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mhroi-step--result .mhroi-summary {
  grid-area: summary;
  gap: 16px;
  padding: 14px 16px;
}

.mhroi-step--result .mhroi-summary-main strong {
  font-size: clamp(24px, 3vw, 34px);
}

.mhroi-step--result .mhroi-summary p {
  font-size: 14px;
  line-height: 1.45;
}

.mhroi-results-footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
  text-align: left;
}

.mhroi-results-footer p {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.mhroi-button--result {
  min-width: 220px;
  background: linear-gradient(135deg, #8ccc60 0%, #6aa644 100%);
  box-shadow: 0 16px 36px rgba(13, 30, 8, 0.28);
}

.mhroi-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mhroi-field span {
  font-size: 14px;
  font-weight: 700;
  color: var(--mhroi-ink);
}

.mhroi-field input,
.mhroi-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--mhroi-line);
  border-radius: 16px;
  background: #fff;
  color: var(--mhroi-ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mhroi-field input:focus,
.mhroi-field textarea:focus {
  outline: none;
  border-color: rgba(93, 152, 60, 0.85);
  box-shadow: 0 0 0 4px rgba(93, 152, 60, 0.12);
}

.mhroi-mini-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--mhroi-surface);
}

.mhroi-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--mhroi-line);
  border-radius: 18px;
  background: #fff;
  color: var(--mhroi-muted);
  line-height: 1.6;
}

.mhroi-consent a {
  color: var(--mhroi-green-dark);
}

.mhroi-status {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.mhroi-status.is-visible {
  display: block;
}

.mhroi-status.is-success {
  background: #e8f6df;
  color: #275415;
}

.mhroi-status.is-error {
  background: #fdeaea;
  color: #8a2430;
}

.mhroi-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.mhroi-button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #6aa644 0%, #4f7f32 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mhroi-button--secondary {
  background: #fff;
  color: var(--mhroi-ink);
  border: 1px solid var(--mhroi-line);
}

.mhroi-button[hidden],
.mhroi-honeypot {
  display: none !important;
}

.mhroi-recaptcha {
  margin-top: 4px;
}

.mhroi-form .is-invalid {
  border-color: #d54f5e !important;
  box-shadow: 0 0 0 4px rgba(213, 79, 94, 0.12) !important;
}

@media (max-width: 860px) {
  .mhroi-shell {
    padding: 18px;
    border-radius: 24px;
  }

  .mhroi-topbar,
  .mhroi-results-head,
  .mhroi-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .mhroi-step--result .mhroi-results {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "head"
      "cards"
      "summary"
      "footer";
  }

  .mhroi-step--result .mhroi-step-copy,
  .mhroi-results-footer {
    align-items: flex-start;
    text-align: left;
  }

  .mhroi-results-hero {
    align-items: flex-start;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mhroi-slider-grid,
  .mhroi-contact-grid,
  .mhroi-result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .mhroi-shell {
    padding: 18px;
  }

  .mhroi-actions {
    flex-direction: column-reverse;
  }

  .mhroi-button {
    width: 100%;
  }

  .mhroi-button--result {
    min-width: 0;
  }
}
