.heq-quiz {
  --heq-accent: #7b6658;
  --heq-ink: #28231f;
  --heq-muted: #6e655f;
  --heq-surface: #fbf9f6;
  --heq-border: #e7dfd8;
  max-width: 760px;
  margin: 2rem auto;
  color: var(--heq-ink);
  font-family: inherit;
  line-height: 1.6;
}

.heq-quiz * {
  box-sizing: border-box;
}

.heq-card {
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid var(--heq-border);
  border-radius: 22px;
  background: var(--heq-surface);
  box-shadow: 0 16px 48px rgba(62, 48, 38, 0.08);
}

.heq-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--heq-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.heq-title {
  margin: 0 0 1rem;
  color: var(--heq-ink);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.16;
}

.heq-copy,
.heq-disclaimer,
.heq-meta {
  margin: 0 0 1.25rem;
}

.heq-disclaimer {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--heq-accent);
  background: #fff;
  color: var(--heq-muted);
  font-size: 0.94rem;
}

.heq-meta,
.heq-progress-text {
  color: var(--heq-muted);
  font-size: 0.9rem;
}

.heq-primary,
.heq-secondary,
.heq-text-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.heq-primary {
  padding: 0.8rem 1.35rem;
  background: var(--heq-accent);
  color: #fff;
}

.heq-primary:hover,
.heq-primary:focus-visible {
  filter: brightness(0.88);
}

.heq-primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.heq-secondary {
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--heq-border);
  background: #fff;
  color: var(--heq-ink);
}

.heq-primary:focus-visible,
.heq-secondary:focus-visible,
.heq-text-button:focus-visible,
.heq-option:has(input:focus-visible) {
  outline: 3px solid rgba(123, 102, 88, 0.32);
  outline-offset: 3px;
}

.heq-progress-text {
  margin-bottom: 0.45rem;
}

.heq-progress {
  height: 7px;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e3dd;
}

.heq-progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--heq-accent);
  transition: width 180ms ease;
}

.heq-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.heq-question {
  width: 100%;
  margin: 0 0 1.35rem;
  color: var(--heq-ink);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 650;
  line-height: 1.35;
}

.heq-option {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--heq-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.heq-option:hover {
  border-color: var(--heq-accent);
  transform: translateY(-1px);
}

.heq-option:has(input:checked) {
  border-color: var(--heq-accent);
  background: #f6f2ee;
}

.heq-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.heq-option-marker {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: #eee8e2;
  color: var(--heq-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.heq-option:has(input:checked) .heq-option-marker {
  background: var(--heq-accent);
  color: #fff;
}

.heq-option-label {
  line-height: 1.35;
}

.heq-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.heq-nav .heq-primary:only-child {
  margin-left: auto;
}

.heq-signup {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--heq-border);
}

.heq-signup-title {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.heq-brevo-form {
  display: block;
  width: 100%;
  min-height: 500px;
  border: 0;
  background: transparent;
}

.heq-text-button {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.5rem;
  background: transparent;
  color: var(--heq-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.heq-noscript {
  padding: 1rem;
  border: 1px solid var(--heq-border);
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 520px) {
  .heq-card {
    border-radius: 16px;
  }

  .heq-nav {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .heq-nav button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heq-progress-bar,
  .heq-option {
    transition: none;
  }
}
