/* Health check tool — layered on top of module-hoa.css brand tokens (.module-page). */

.hc-body .mh-section { padding: clamp(40px, 8vw, 96px) 0; }

/* ── Intro ─────────────────────────────────────────────────────────────── */
.hc-intro { background: var(--mh-surface); }
.hc-intro-title {
  font-family: "DMF", "Inter", sans-serif;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.08;
  margin: 12px 0 18px;
  max-width: 18ch;
}
.hc-intro .mh-lead { max-width: 60ch; }
.hc-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.hc-duration { margin: 0; color: var(--mh-muted); font-size: .95rem; }
.hc-noscript { margin-top: 20px; color: var(--mh-coral-dark); }

/* ── Quiz ──────────────────────────────────────────────────────────────── */
.hc-quiz { max-width: 720px; }
.hc-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--mh-line);
  overflow: hidden;
}
.hc-progress-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--mh-navy);
  transition: width .3s ease;
}
.hc-progress-label {
  margin: 10px 0 22px;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mh-muted);
}
.hc-question-prompt {
  font-family: "DMF", "Inter", sans-serif;
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  line-height: 1.22;
  margin: 0 0 24px;
  outline: none;
}
.hc-options { display: grid; gap: 12px; }
.hc-option {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  border: 1.5px solid var(--mh-line);
  border-radius: 14px;
  background: var(--mh-paper);
  color: var(--mh-ink);
  font-size: 1.02rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.hc-option:hover { border-color: var(--mh-navy); }
.hc-option:focus-visible { outline: 3px solid var(--mh-navy); outline-offset: 2px; }
.hc-option.is-selected {
  border-color: var(--mh-navy);
  background: var(--mh-navy);
  color: var(--mh-paper);
}
.hc-nav { margin-top: 22px; min-height: 20px; }
.hc-back {
  border: none;
  background: none;
  padding: 8px 0;
  color: var(--mh-muted);
  font-size: .98rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hc-back:hover { color: var(--mh-ink); }
.hc-back:focus-visible { outline: 2px solid var(--mh-navy); outline-offset: 2px; }

/* ── Lead gate ─────────────────────────────────────────────────────────── */
.hc-lead { max-width: 560px; }
.hc-lead-title {
  font-family: "DMF", "Inter", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin: 8px 0 12px;
}
.hc-lead-note { color: var(--mh-muted); margin-bottom: 24px; }
.hc-lead-form { display: grid; gap: 14px; }
.hc-lead-fallback {
  justify-self: start;
  margin-top: 4px;
  border: none;
  background: none;
  padding: 4px 0;
  color: var(--mh-muted);
  font-size: .95rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hc-lead-fallback:hover { color: var(--mh-ink); }

/* ── Result ────────────────────────────────────────────────────────────── */
.hc-result { max-width: 780px; display: grid; gap: clamp(28px, 5vw, 44px); }
.hc-block-title {
  font-family: "DMF", "Inter", sans-serif;
  font-size: 1.3rem;
  margin: 0 0 16px;
}

.hc-rec {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 20px;
  background: var(--mh-navy);
  color: var(--mh-paper);
}
.hc-rec .mh-eyebrow { color: var(--mh-lime); }
.hc-rec-headline {
  font-family: "DMF", "Inter", sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.1;
  margin: 8px 0 16px;
}
.hc-rec-narrative { margin: 0; font-size: 1.06rem; line-height: 1.6; opacity: .95; }

/* Snapshot bars */
.hc-bars { display: grid; gap: 12px; }
.hc-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr auto;
  align-items: center;
  gap: 12px;
}
.hc-bar-label { font-size: .96rem; }
.hc-bar-track {
  height: 12px;
  border-radius: 999px;
  background: var(--mh-line);
  overflow: hidden;
}
.hc-bar-fill { display: block; height: 100%; border-radius: 999px; transition: width .5s ease; }
.hc-bar-value { font-variant-numeric: tabular-nums; font-size: .92rem; color: var(--mh-muted); min-width: 44px; text-align: right; }
.hc-bar-row.is-weak .hc-bar-fill { background: var(--mh-coral); }
.hc-bar-row.is-mid .hc-bar-fill { background: var(--mh-navy); }
.hc-bar-row.is-strong .hc-bar-fill { background: var(--mh-lime); }

.hc-snapshot-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.hc-tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .9rem; }
.hc-tag-weak { background: rgba(249, 104, 72, .14); color: var(--mh-coral-dark); }
.hc-tag-strong { background: rgba(200, 232, 71, .3); color: #55631a; }

/* Roadmap */
.hc-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hc-phase {
  padding: 18px 20px;
  border: 1.5px solid var(--mh-line);
  border-radius: 16px;
  background: var(--mh-paper);
}
.hc-phase:first-child { border-color: var(--mh-navy); border-width: 2px; }
.hc-phase-label {
  margin: 0 0 6px;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mh-coral);
  font-weight: 700;
}
.hc-phase-eyebrow { margin: 0; font-size: .9rem; color: var(--mh-muted); }
.hc-phase-title { font-family: "DMF", "Inter", sans-serif; font-size: 1.25rem; margin: 2px 0 8px; }
.hc-phase-output { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--mh-ink); }

/* Avoid */
.hc-avoid ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.hc-avoid li { line-height: 1.5; }

/* CTA */
.hc-cta {
  padding: clamp(24px, 4vw, 36px);
  border-radius: 20px;
  background: var(--mh-surface);
  text-align: center;
}
.hc-cta h3 { font-family: "DMF", "Inter", sans-serif; font-size: 1.5rem; margin: 0 0 10px; }
.hc-cta p { max-width: 52ch; margin: 0 auto 20px; color: var(--mh-muted); }
.hc-restart {
  display: block;
  margin: 16px auto 0;
  border: none;
  background: none;
  color: var(--mh-muted);
  font-size: .95rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hc-restart:hover { color: var(--mh-ink); }

/* ── Phần 1 · Câu chuyện ───────────────────────────────────────────────── */
.hc-story { max-width: 640px; }
.hc-story-title { margin: 8px 0 10px; }
.hc-story-lead { color: var(--mh-muted); margin: 0 0 22px; }
.hc-story-fields { display: grid; gap: 18px; }
.hc-story-field { display: grid; gap: 8px; }
.hc-story-field > span { font-weight: 600; line-height: 1.4; }
.hc-story-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--mh-line);
  border-radius: 12px;
  background: var(--mh-paper);
  color: var(--mh-ink);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  min-height: 60px;
}
.hc-story-field textarea:focus-visible { outline: 3px solid var(--mh-navy); outline-offset: 1px; border-color: var(--mh-navy); }
.hc-story-skip { margin: 16px 0 0; font-size: .9rem; color: var(--mh-muted); font-style: italic; }

/* ── Phần 2 · Khai sáng ────────────────────────────────────────────────── */
.hc-educate { max-width: 680px; }
.hc-educate-title { margin: 8px 0 22px; font-size: clamp(1.4rem, 4vw, 2rem); }
.hc-educate-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hc-educate-block { display: flex; gap: 16px; align-items: flex-start; }
.hc-educate-index {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--mh-navy);
  color: var(--mh-paper);
  font-family: "DMF", "Inter", sans-serif;
  font-size: 1.1rem;
}
.hc-educate-block h3 { font-size: 1.12rem; margin: 4px 0 6px; }
.hc-educate-block p { margin: 0; line-height: 1.55; color: var(--mh-ink); }

.hc-nav-split { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Section tag + câu chọn-nhiều (chân trái) ──────────────────────────── */
.hc-section-tag {
  display: inline-block;
  padding: 2px 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--mh-surface);
  color: var(--mh-navy);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
}
.hc-multi-hint { margin: -8px 0 18px; color: var(--mh-muted); font-size: .92rem; }
.hc-checks { display: grid; gap: 12px; }
.hc-check {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--mh-line);
  border-radius: 14px;
  background: var(--mh-paper);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.hc-check:hover { border-color: var(--mh-navy); }
.hc-check input { width: 20px; height: 20px; accent-color: var(--mh-navy); flex: none; }
.hc-check.is-checked { border-color: var(--mh-navy); background: rgba(0, 38, 94, .05); }
.hc-check > span { font-size: 1.02rem; }

/* ── Kết quả: hai chân ──────────────────────────────────────────────────── */
.hc-legs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hc-leg {
  display: grid; gap: 4px;
  padding: 16px 18px;
  border: 1.5px solid var(--mh-line);
  border-radius: 16px;
  background: var(--mh-paper);
}
.hc-leg-name { font-weight: 700; }
.hc-leg-value { font-family: "DMF", "Inter", sans-serif; font-size: 1.7rem; line-height: 1; }
.hc-leg-note { font-size: .9rem; color: var(--mh-muted); }
.hc-leg.is-weak { border-color: var(--mh-coral); }
.hc-leg.is-weak .hc-leg-value { color: var(--mh-coral); }
.hc-leg.is-strong { border-color: var(--mh-lime); }
@media (max-width: 520px) { .hc-legs-grid { grid-template-columns: 1fr; } }

/* ── Kết luận: viên gạch / hành trình / theo giai đoạn ─────────────────── */
.hc-rec-brick {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  font-weight: 600;
}
.hc-phased-note { margin: 16px 0 0; color: var(--mh-muted); font-style: italic; }
.hc-journey {
  margin: 0 auto 18px;
  max-width: 56ch;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 38, 94, .06);
  color: var(--mh-navy);
  font-weight: 500;
}

@media (max-width: 520px) {
  .hc-bar-row { grid-template-columns: 1fr auto; grid-template-areas: "label value" "track track"; row-gap: 6px; }
  .hc-bar-label { grid-area: label; }
  .hc-bar-value { grid-area: value; }
  .hc-bar-track { grid-area: track; }
}

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