/* Holistico quiz. Colours come from custom properties so the theme can restyle it. */
.hq {
  --hq-bg: var(--holistico-cream, #fff9ec);
  --hq-ink: var(--holistico-ink, #26221F);
  --hq-muted: var(--holistico-muted, #5E564F);
  --hq-accent: var(--holistico-red, #303030);
  --hq-accent-ink: #fff;
  --hq-line: var(--holistico-line, #E6DED1);
  --hq-card: var(--wp--preset--color--paper, #FFFDF9);

  box-sizing: border-box;
  width: 100%;
  max-width: 44rem;
  min-height: 30rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--hq-bg);
  color: var(--hq-ink);
  font-size: var(--wp--preset--font-size--medium, 1.125rem);
  line-height: 1.6;
  text-align: center;
}
.hq *, .hq *::before, .hq *::after { box-sizing: inherit; }

.hq-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.15;
  text-wrap: balance;
  outline: none;
}
.hq-start .hq-title { font-size: clamp(1.9rem, 7vw, 3rem); }
.hq-disclaimer, .hq-note, .hq-count, .hq-sub { margin: 0 0 1.25rem; color: var(--hq-muted); font-size: 0.875rem; }
.hq-note, .hq-count { letter-spacing: 0; text-transform: none; font-size: 0.875rem; }
.hq-sub { font-size: 1rem; color: var(--hq-ink); }

.hq-progress { height: 4px; margin: 0 0 1.25rem; background: var(--hq-line); border-radius: 2px; overflow: hidden; }
.hq-progress-bar { display: block; height: 100%; background: var(--wp--preset--color--green, #303030); transition: width 0.25s ease; }

.hq-options { display: grid; gap: 0.625rem; margin: 0 0 1.25rem; }
.hq-option {
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hq-line);
  border-radius: 3px;
  background: var(--hq-card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.hq-option:hover, .hq-option.is-chosen { border-color: var(--hq-accent); background: #fff; }

.hq-btn {
  display: inline-block;
  min-height: 52px;
  padding: 0.85rem 2.25rem;
  border: 0;
  border-radius: 0.25rem;
  background: var(--hq-accent);
  color: var(--hq-accent-ink);
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}
.hq-btn:disabled { opacity: 0.6; cursor: default; }
.hq-start .hq-btn { margin: 0.5rem 0 1rem; }

.hq-back { min-width: 72px; min-height: 44px; padding: 0.5rem; border: 0; background: none; color: var(--hq-muted); font: inherit; font-size: 0.875rem; cursor: pointer; }

.hq-option:focus-visible, .hq-btn:focus-visible, .hq-back:focus-visible, .hq input:focus-visible {
  outline: 2px solid var(--hq-accent);
  outline-offset: 2px;
}

.hq-form { max-width: 26rem; margin: 0 auto 0.75rem; text-align: left; }
.hq-field { margin: 0 0 0.875rem; }
.hq-field label { display: block; margin: 0 0 0.25rem; font-size: 0.875rem; font-weight: 600; }
.hq-field input {
  width: 100%;
  min-height: 52px;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--hq-line);
  border-radius: 0.375rem;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming the page on focus */
}
.hq-consent { display: flex; gap: 0.625rem; align-items: flex-start; margin: 0 0 1rem; font-size: 0.8125rem; color: var(--hq-muted); }
.hq-consent input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--hq-accent); }
.hq-consent a { color: inherit; }
.hq-form .hq-btn { width: 100%; }
.hq-error { margin: 0 0 0.875rem; padding: 0.625rem 0.75rem; border-left: 3px solid var(--hq-accent); background: #fff; font-size: 0.875rem; }
.hq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

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

.hq-title { font-family: var(--wp--preset--font-family--heading, Georgia, serif); font-size: var(--wp--preset--font-size--question, 2.25rem); font-weight: 400; line-height: 1.2; margin-bottom: 24px; }
.hq-start .hq-title { font-size: var(--wp--preset--font-size--question, 2.25rem); }
.hq-count { margin-bottom: 16px; }
.hq-progress { height: 6px; margin-bottom: 24px; }
.hq-options { gap: 12px; margin-bottom: 16px; }
.hq-option { padding: 16px; line-height: 1.5; }
.hq-btn { border-radius: 3px; letter-spacing: 0.04em; }
.hq-field { margin-bottom: 24px; }
.hq-field label { font-weight: 500; margin-bottom: 8px; }
.hq-consent-text { padding-bottom: 12px; min-height: 44px; }
@media (max-width: 781px) {
 .hl-quiz-page .hq { padding: 0; min-height: 28rem; }
 .hq-dialog .hq { padding: 56px 20px 24px; }
 .hq-start .hq-btn { width: 100%; }
}
