:root {
  --green: #44b556;
  --green-dark: #2e9a40;
  --green-light: #eaf7ec;
  --green-bg: linear-gradient(135deg, #2e9a40 0%, #44b556 60%, #6cc97a 100%);
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  font-family: "Inter", Arial, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; vertical-align: middle; }
a { color: var(--green-dark); text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1130px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

.hidden { display: none !important; }

/* ---------- HEADER (fixed, giống AloBacsi) ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateZ(0);
  will-change: transform;
}

.header_top {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 24px;
  flex-wrap: wrap;
}

.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.5px;
}
.logo-sub { font-size: 11px; color: var(--text-light); font-weight: 500; }

.search_top { flex: 1; min-width: 200px; position: relative; }
.search_top input {
  width: 100%;
  max-width: 520px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.search_top input:focus { border-color: var(--green); }

.support_top .btn-cta-header {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  white-space: nowrap;
}

.main-nav {
  background: var(--green);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.nav-inner a {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-inner a:hover, .nav-inner a.active {
  background: rgba(255, 255, 255, 0.15);
  border-bottom-color: var(--white);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--green-dark); box-shadow: var(--shadow); }
.btn-ghost { background: var(--green-light); color: var(--green-dark); }
.btn-ghost:hover:not(:disabled) { background: #d9efdd; }
.btn-ghost-light { background: rgba(255,255,255,0.15); color: var(--white); border: 1.5px solid rgba(255,255,255,0.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.25); }
.btn-lg { padding: 14px 34px; font-size: 17px; }

/* ---------- HERO ---------- */
.hero {
  margin-top: 118px;
  background: var(--green-bg);
  color: var(--white);
  padding: 56px 0 64px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-copy { flex: 1.3; }
.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 16px;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.hero-copy > p { font-size: 17px; opacity: 0.95; margin-bottom: 24px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.hero-points li { position: relative; padding-left: 22px; }
.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.25);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.hero-visual { flex: 1; text-align: center; }
.hero-img { width: 300px; max-width: 100%; }

/* ---------- SECTIONS ---------- */
.section { padding: 56px 0; scroll-margin-top: 130px; }
.bg-light { background: #f6faf7; }
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
}

.two-col {
  display: flex;
  gap: 40px;
  align-items: center;
}
.col-text { flex: 1.4; }
.col-text p { margin-bottom: 14px; }
.col-side { flex: 1; text-align: center; }
.col-side img { width: 260px; max-width: 100%; }

.check-list { margin-top: 8px; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  font-size: 16px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 22px;
  height: 22px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 72px; height: 72px; margin-bottom: 14px; }
.card h3 { font-size: 18px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--text-light); }

/* ---------- SURVEY ---------- */
.survey-section { background: var(--green-light); }
.survey-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 36px 32px;
}
.survey-wrap h2 { font-size: 26px; font-weight: 800; color: var(--green-dark); margin-bottom: 12px; }
.survey-wrap .hero-tag { color: var(--green-dark); background: var(--green-light); border-color: var(--green); }
.survey-wrap > p { margin-bottom: 14px; }
.survey-home-actions { margin: 18px 0 10px; }
.note { font-size: 13px; color: var(--text-light); font-style: italic; }
.survey-wrap .note a { font-weight: 600; font-style: normal; }

.quiz-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.quiz-top .quiz-progress { flex: 1; margin-bottom: 0; }
.quiz-exit {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  padding: 2px 4px;
  white-space: nowrap;
}
.quiz-exit:hover { color: var(--green-dark); text-decoration: underline; }

.quiz-progress { margin-bottom: 22px; }
.progress-track {
  height: 10px;
  background: #e8efe9;
  border-radius: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 6px;
  transition: width 0.35s ease;
}
.progress-label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
}

.quiz-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 20px; line-height: 1.45; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.quiz-options button {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 16.5px;
  padding: 16px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-options button:hover { border-color: var(--green); background: #f3fbf4; }
.quiz-options button.selected {
  border-color: var(--green);
  background: var(--green-light);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--green);
}
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; }

.result-box { text-align: center; padding: 8px 0; }
.result-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 30px;
  font-weight: 800;
  line-height: 64px;
  border-radius: 50%;
}
.result-box h2 { margin-bottom: 10px; }
.result-box p { margin-bottom: 10px; }
.result-box .btn { margin-top: 12px; }

/* ---------- DOCTOR ---------- */
.doctor-img { border-radius: 14px; box-shadow: var(--shadow); width: 320px; aspect-ratio: 730 / 487; object-fit: cover; }

/* ---------- FOOTER ---------- */
footer { background: #1e2b21; color: #d7e6da; padding: 40px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.footer-brand .logo-text { color: var(--green); }
.footer-brand p { font-size: 14px; margin-top: 8px; color: #b8c9bc; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #d7e6da; font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.footer-copy {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: #93a897;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  margin-top: 8px;
  text-align: center;
}

/* ---------- RESPONSIVE (ưu tiên mobile - đối tượng 45+) ---------- */
@media (max-width: 900px) {
  html { scroll-padding-top: 110px; }
  .hero { margin-top: 106px; }
  .hero-inner, .two-col { flex-direction: column; }
  .hero-visual { display: none; }
  .two-col { gap: 24px; }
  .survey-wrap { padding: 26px 18px; }
}

@media (max-width: 640px) {
  .header_top { gap: 12px; }
  .search_top { display: none; }
  .logo-text { font-size: 22px; }
  .hero { padding: 40px 0 44px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 40px 0; }
  .survey-wrap h2 { font-size: 22px; }
  .quiz-card h3 { font-size: 18.5px; }
  .quiz-options button { font-size: 16px; }
  .btn-lg { padding: 14px 24px; font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
}