/* ============================================================
   TopCare storefront — UI 2026-11 v5 (theo mẫu online.pvi.com.vn)
   Hệ thiết kế học theo trang bán bảo hiểm trực tuyến của PVI:
   - Header TRẮNG một hàng, menu giữa, "Đăng nhập" bên phải;
     mục đang chọn màu ĐỎ; menu Sản phẩm dạng mega (4 nhóm +
     bảng sản phẩm bay), menu Cẩm nang dạng thả đơn giản.
   - Chủ đạo xanh navy #0A5F55 (nút chính, tiêu đề), nhấn đỏ
     #0E7A6B (dấu tích, hotline, mục đang chọn), hero gradient
     xanh nhạt #E3F2ED → trắng, thẻ trắng bo góc đổ bóng nhẹ.
   - Thẻ sản phẩm: icon góc phải, "Phí bảo hiểm từ: ..." với số
     tiền đậm navy; footer navy đậm 4 cột + huy hiệu thanh toán.
   Giao diện cũ (teal/mint) đã loại bỏ hoàn toàn khỏi trang bán
   hàng. Giữ nguyên toàn bộ hook app.js và các luật đã kiểm
   chứng: overflow "clip" (không bao giờ "hidden" trên body/
   .hero/.checkout-body để không giết position:sticky).
   ============================================================ */
:root {
  --bg: #F2F7F5;
  --surface: #ffffff;
  --surface-soft: #EDF4F1;
  --pale: #E7F4F0;
  --hero-1: #E3F2ED;
  --hero-2: #F4FAF8;
  --navy: #0A5F55;
  --navy-2: #0E7A6B;
  --navy-deep: #05302B;
  --primary: #0A5F55;
  --primary-strong: #0E7A6B;
  --primary-soft: #E7F4F0;
  --red: #0E7A6B;
  --red-dark: #0A5F55;
  --red-soft: #E7F4F0;
  --text: #2E3A48;
  --heading: #0A5F55;
  --muted: #5A6472;
  --danger: #D92D20;
  --danger-soft: #FEF3F2;
  --warning: #B54708;
  --warning-soft: #FFFAEB;
  --success: #067647;
  --success-soft: #ECFDF3;
  --line: #DDE8E3;
  --line-strong: #C2D8D1;
  --shadow: 0 24px 60px rgba(6, 63, 54, .13), 0 4px 14px rgba(6, 63, 54, .06);
  --shadow-soft: 0 10px 30px rgba(6, 63, 54, .08), 0 2px 6px rgba(6, 63, 54, .05);
  --shadow-lift: 0 18px 40px rgba(6, 63, 54, .16), 0 4px 10px rgba(6, 63, 54, .07);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15.5px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--navy-2); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; margin: 0; }
p { margin: 0; }
button { font-family: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(14, 122, 107, .40); outline-offset: 2px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
.anchor-alias { position: absolute; width: 0; height: 0; overflow: hidden; }
section[id], footer[id] { scroll-margin-top: 84px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font-weight: 800; font-size: 15px; line-height: 1.1; letter-spacing: -.01em; text-decoration: none;
  touch-action: manipulation;
  padding: 12px 22px; min-height: 46px; transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
  background: var(--navy); color: #fff;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-color: transparent; box-shadow: 0 16px 34px rgba(6, 63, 54, .30); }
.btn--primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--navy-2), var(--navy)); }
.btn--soft { background: var(--pale); color: var(--navy); box-shadow: none; }
.btn--soft:hover { background: #D5E8E1; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { border-color: var(--navy); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line-strong); box-shadow: none; }
.btn--outline:hover { border-color: var(--red); color: var(--red-dark); }
.btn--secondary { background: var(--navy-2); color: #fff; }
.btn--full { width: 100%; }
.btn-text { background: none; border: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; padding: 8px 6px; }
.btn-text:hover { color: var(--red-dark); }
.icon-btn {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-size: 19px; cursor: pointer;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(6, 63, 54, .05);
}
.site-header__inner { display: flex; align-items: center; gap: 26px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 900; font-size: 19px;
}
.brand__mark.has-logo { background: transparent; border-radius: 10px; }
.brand__logo { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: .2px; }
.brand__slogan { font-size: 12px; color: var(--muted); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 13px; border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.nav-link:hover { color: var(--red); }
.nav-caret { font-size: 10px; color: var(--muted); }
.nav-drop {
  position: absolute; left: 0; top: calc(100% + 10px); min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; z-index: 95;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item.has-drop:hover .nav-drop, .nav-item.has-drop:focus-within .nav-drop, .nav-item.has-drop.is-open .nav-drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop__link { display: block; padding: 10px 12px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.nav-drop__link:hover { background: var(--pale); color: var(--navy); }

/* Mega menu (Sản phẩm) */
.mega {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, 6px);
  width: 640px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); z-index: 95; overflow: hidden;
  display: grid; grid-template-columns: 250px 1fr;
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item.is-mega:hover .mega, .nav-item.is-mega:focus-within .mega, .nav-item.is-mega.is-open .mega {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.mega-cats { padding: 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.mega-cat {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px;
  color: var(--text); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.mega-cat .product-icon { width: 22px; height: 22px; color: var(--navy); flex: 0 0 auto; display: inline-flex; }
.mega-cat__label { flex: 1; }
.mega-cat__chev { color: var(--line-strong); font-size: 18px; }
.mega-cat:hover, .mega-cat.is-active { background: var(--pale); color: var(--navy); }
.mega-cat.is-active .mega-cat__chev { color: var(--red); }
.mega-fly { padding: 16px 18px; }
.mega-fly__title { font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mega-fly__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.mega-fly__link { display: flex; gap: 9px; align-items: flex-start; padding: 8px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.mega-fly__link:hover { background: var(--pale); color: var(--navy); }
.mega-fly__link .product-icon { width: 20px; height: 20px; color: var(--navy); flex: 0 0 auto; margin-top: 1px; display: inline-flex; }
.mega-fly__note { color: var(--muted); font-size: 14px; padding: 8px; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; margin-left: auto; }
.header-login { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.header-login:hover { color: var(--red); }
.header-login__icon {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(100deg, var(--hero-1) 0%, var(--hero-2) 62%, #ffffff 100%);
  padding: 52px 0 108px; position: relative; overflow-x: clip;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: center; }
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 20px; }
.hero-points { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.hero-points li { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 16px; color: var(--text); }
.hero-check {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--red); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900;
}
.hero__lead { color: var(--muted); font-size: 15.5px; max-width: 560px; }
.hero__visual { position: relative; min-height: 300px; padding: 14px 4px 32px; }
.cert-card {
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow);
  padding: 22px; max-width: 430px; margin-left: auto; position: relative; z-index: 2;
  border: 1px solid var(--line);
}
.cert-card__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.cert-card__logo { width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 19px; flex: 0 0 auto; }
.cert-card__head strong { display: block; color: var(--navy); font-size: 15.5px; }
.cert-card__head span { color: var(--muted); font-size: 13px; }
.cert-card__badge { margin-left: auto; background: var(--success-soft); color: var(--success); font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.cert-card__rows { display: flex; flex-direction: column; gap: 9px; padding: 16px 0; }
.cert-card__rows span { height: 11px; border-radius: 6px; background: var(--pale); }
.cert-card__rows span:nth-child(1) { width: 82%; }
.cert-card__rows span:nth-child(2) { width: 64%; }
.cert-card__rows span:nth-child(3) { width: 73%; }
.cert-card__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line-strong); padding-top: 14px; }
.cert-card__foot small { display: block; color: var(--muted); font-size: 12.5px; }
.cert-card__foot strong { color: var(--navy); font-size: 19px; }
.cert-card__seal { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; transform: rotate(-10deg); flex: 0 0 auto; }
.hero-chip {
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-soft); border-radius: 999px; padding: 9px 16px;
  font-weight: 700; font-size: 13.5px; color: var(--navy);
}
.hero-chip--a { left: 0; bottom: 0; }
.hero-chip--b { right: 2px; top: -4px; }

.reveal { animation: reveal .42s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--surface-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--muted); }
.section-head--row { display: flex; text-align: left; max-width: none; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head--row h2 { margin-bottom: 8px; }
.section-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.see-all { font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.see-all:hover { color: var(--red); }

/* ---------- Wizard (Nhận báo giá nhanh + checkout) ---------- */
.wizard-section { padding: 0 0 64px; margin-top: -56px; position: relative; z-index: 5; }
.wizard-shell {
  display: grid; gap: 0;
  grid-template-columns: 352px minmax(0, 1fr) 320px;
  grid-template-areas: "products main summary";
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); overflow: hidden;
}
.wizard-products { grid-area: products; background: var(--surface-soft); border-right: 1px solid var(--line); padding: 20px 16px; }
.wizard-products__title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.wizard-products__sub { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.wizard-main { grid-area: main; padding: 22px 24px 24px; min-width: 0; }
.wizard-head { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.wizard-head__icon { width: 40px; height: 40px; flex: 0 0 auto; display: inline-flex; color: var(--navy); }
.wizard-head__icon svg { width: 100%; height: 100%; }
.wizard-title { font-size: 20px; font-weight: 800; margin: 0; }
.wizard-summary { grid-area: summary; }

/* ---------- Chế độ trang mua (buy page theo trang mẫu) ---------- */
.wizard-sub { display: none; }
body.is-checkout .wizard-sub { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
body.is-checkout main > section:not(.wizard-section) { display: none; }
body.is-checkout .wizard-section { background: #EEF4F1; padding: 30px 0 64px; margin-top: 0; }
body.is-checkout .wizard-shell { background: transparent; border: none; box-shadow: none; overflow: visible; max-width: 1020px; margin: 0 auto; }
body.is-checkout .wizard-products { display: none; }
body.is-checkout .wizard-shell { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "main summary"; }
/* Bước 1 (Chọn gói) trang mẫu vẫn có sidebar Hỗ trợ/Tài liệu/FAQ,
   chỉ chưa có phần Tóm tắt đơn hàng. */
body.is-checkout[data-stage="package"] .wizard-summary__head,
body.is-checkout[data-stage="package"] .summary-list,
body.is-checkout[data-stage="package"] .summary-amounts,
body.is-checkout[data-stage="package"] .summary-subtotal,
body.is-checkout[data-stage="package"] .wizard-summary .price-breakdown,
body.is-checkout[data-stage="package"] .wizard-summary [data-open-support],
body.is-checkout[data-stage="package"] .summary-trust { display: none; }
body.is-checkout[data-stage="package"] .side-card--support { border-top: none; margin-top: 0; padding-top: 0; }
body.is-checkout .wizard-main { padding: 0; }
body.is-checkout .wizard-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
body.is-checkout .wizard-head { flex-direction: column; justify-content: center; text-align: center; border-bottom: none; padding-bottom: 0; margin-bottom: 10px; }
body.is-checkout .wizard-head__icon { display: none; }
body.is-checkout .wizard-title { font-size: 32px; }
body.is-checkout .stepper { margin-bottom: 22px; }
body.is-checkout .wizard-actions--quote { display: none; }
.form-actions.package-bar { display: none; }
body.is-checkout[data-stage="package"] .form-actions.package-bar { display: flex; background: #fff; }
.quote-group { display: contents; }
.quote-group__title { display: none; }
body.is-checkout .quote-form { display: block; }
body.is-checkout .quote-group { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px; }
body.is-checkout .quote-group__title { display: block; grid-column: 1 / -1; font-size: 17px; font-weight: 800; color: var(--navy); }
body.is-checkout .review-box { background: #fff; }
body.is-checkout .focus-zone { background: #fff; }
.side-buy-only { display: none; }
body.is-checkout .side-buy-only { display: block; }
.side-card { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.side-card h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.side-card p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.side-hotline { color: var(--red); font-weight: 800; font-size: 16px; }
.side-links { list-style: none; display: grid; gap: 6px; font-size: 14px; padding: 0; margin: 0; }
.side-faq { display: grid; gap: 8px; }
.side-faq .faq-item h3 { font-size: 13.5px; padding: 10px 12px; }
.side-faq .faq-item p { font-size: 13px; padding: 0 12px 12px; }
/* Khối ưu đãi + xác nhận + nút Thanh toán ở sidebar: chỉ hiện ở bước Thanh toán (như trang mẫu). */
.side-pay { display: none; }
body.is-checkout[data-stage="pay"] .side-pay { display: block; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.side-pay .coupon-box h3 { font-size: 15px; color: var(--navy); margin-bottom: 10px; }
.side-pay .confirm-box { margin: 14px 0; }
.package-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.package-card__head h3 { font-size: 16px; color: var(--navy); }
.side-links a { color: var(--navy-2); text-decoration: underline; }
@media (max-width: 1023px) {
  body.is-checkout .wizard-shell { grid-template-columns: 1fr; grid-template-areas: "main" "summary"; }
  body.is-checkout .wizard-title { font-size: 25px; }
  body.is-checkout .quote-group { grid-template-columns: 1fr; }
}

/* ---------- Thẻ kết quả báo giá (trang mẫu) ---------- */
.quote-result { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; }
.qr-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.qr-head .icon-3d { width: 30px; height: 30px; color: var(--navy); }
.qr-head h3 { font-size: 17px; font-weight: 800; color: var(--navy); }
.qr-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14.5px; }
.qr-row span { color: var(--muted); }
.qr-row strong { color: var(--text); font-weight: 600; text-align: right; }
.qr-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; font-size: 15px; font-weight: 700; }
.qr-total strong { color: var(--red); font-size: 20px; font-weight: 800; white-space: nowrap; }
.qr-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; text-align: center;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md);
  padding: 16px 10px 13px; min-height: 108px; font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--text);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.tab .product-icon { width: 26px; height: 26px; color: var(--navy); flex: 0 0 auto; display: inline-flex; }
.tab .icon-3d { width: 34px; height: 34px; flex: 0 0 auto; color: var(--navy); display: inline-flex; }
body.is-checkout .tabs { grid-template-columns: 1fr; }
body.is-checkout .tab { flex-direction: row; text-align: left; justify-content: flex-start; min-height: 0; padding: 10px 12px; }
body.is-checkout .tab .icon-3d { width: 24px; height: 24px; }
body:not(.is-checkout) .stepper { display: none; }
.tab:hover { border-color: var(--line-strong); }
.tab.is-active { border-color: var(--red); background: #EFF7F4; color: var(--navy); box-shadow: 0 4px 14px rgba(14, 122, 107, .08); }

.stepper { display: flex; gap: 0; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.step { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.step .step-dot {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--line-strong); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: #fff;
}
.step.is-active { color: var(--navy); }
.step.is-active .step-dot { border-color: var(--navy); background: var(--navy); color: #fff; }
.step.is-done { color: var(--navy-2); }
.step.is-done .step-dot { border-color: var(--navy-2); background: var(--navy-2); color: #fff; }
.step + .step::before { content: ""; width: 18px; height: 2px; background: var(--line); margin: 0 7px; }

.checkout-body { min-width: 0; overflow-x: clip; overflow-y: visible; }
.checkout-viewport { overflow: hidden; position: relative; transition: height .42s cubic-bezier(.22, .68, .32, 1); }
.checkout-track { display: flex; align-items: flex-start; transition: transform .42s cubic-bezier(.22, .68, .32, 1); will-change: transform; }
.checkout-panel { flex: 0 0 100%; width: 100%; min-width: 0; }
.checkout-panel > *:last-child { margin-bottom: 0; }
.checkout-body.is-snapping .checkout-viewport, .checkout-body.is-snapping .checkout-track { transition: none !important; }

/* Forms */
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 13px; font: inherit; font-size: 15px; color: var(--text); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: auto; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--pale); }
.field input:disabled, .field select:disabled { background: var(--surface-soft); color: var(--muted); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .error-text { display: none; font-size: 12.5px; color: var(--danger); font-weight: 600; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field.has-error .error-text, .field .error-text.is-visible { display: block; }
.api-note { background: var(--warning-soft); color: var(--warning); border: 1px solid #F6D9A8; border-radius: var(--radius-md); padding: 13px 15px; font-weight: 600; font-size: 14px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-column: 1 / -1; }
.choice-grid--dense { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 11px 14px; cursor: pointer; font: inherit; transition: border-color .15s ease, background .15s ease;
}
.choice strong { font-size: 14.5px; color: var(--text); }
.choice span { font-size: 12.5px; color: var(--muted); }
.choice:hover { border-color: var(--navy); }
.choice.is-active { border-color: var(--navy); background: var(--pale); box-shadow: inset 0 0 0 1px var(--navy); }
.choice.is-active strong { color: var(--navy); }
.choice:disabled { opacity: .55; cursor: not-allowed; }

.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.form-actions--center { justify-content: center; }
.wizard-actions { justify-content: space-between; }
.wizard-actions__main { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; }
.info-card__title { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.stage-title { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.wizard-actions--step { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; }
.total-bar__info { display: flex; flex-direction: column; gap: 1px; }
.total-bar__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.total-bar__label small { font-weight: 500; }
.total-bar__amount { font-size: 19px; font-weight: 800; color: var(--red); }
.total-bar__btns { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }

.skeleton { display: none; gap: 10px; flex-direction: column; }
.skeleton.is-visible { display: flex; }
.skeleton div { height: 46px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--pale), #fff, var(--pale)); background-size: 200% 100%; animation: skeleton 1.2s infinite; }
@keyframes skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Summary card */
.summary-card {
  background: var(--surface-soft); border-left: 1px solid var(--line);
  padding: 20px; position: sticky; top: calc(var(--header-h) + 12px);
}
.wizard-summary__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wizard-summary__head h3 { font-size: 16.5px; }
.summary-toggle { display: none; background: none; border: none; color: var(--navy); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.summary-list { margin: 0 0 14px; display: flex; flex-direction: column; gap: 9px; }
.summary-list div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.summary-list dt { color: var(--muted); flex: 0 0 auto; }
.summary-list dd { margin: 0; font-weight: 700; color: var(--text); text-align: right; }
.summary-amounts { border-top: 1px dashed var(--line-strong); padding-top: 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 7px; }
.summary-subtotal, .summary-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); }
.summary-total { color: var(--text); font-weight: 700; }
.summary-total strong { color: var(--red); font-size: 21px; }
.summary-subtotal strong { color: var(--navy); }
.summary-trust { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Checkout steps content */
.done-summary { background: var(--surface-soft); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); padding: 13px 15px; margin-bottom: 16px; }
.done-summary__label { font-size: 12px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 7px; }
.done-summary__list { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.done-summary__list b { color: var(--navy); }
.edit-link { color: var(--navy); font-weight: 700; font-size: 13.5px; background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }
.focus-zone { border: 2px solid var(--danger); border-radius: var(--radius-lg); padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 16px; background: #FFFDFD; }
.focus-zone .field--full { grid-column: 1 / -1; }

.review-box { border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.review-box__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-soft); padding: 11px 15px; }
.review-box__head h4 { font-size: 15px; }
.review-box__tools { display: flex; gap: 12px; flex: 0 0 auto; white-space: nowrap; }
.review-toggle { background: none; border: none; color: var(--navy); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.edit-link { white-space: nowrap; }
.review-list { padding: 12px 15px; display: flex; flex-direction: column; gap: 7px; }
.review-list div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 600; text-align: right; }
.review-box--collapsible .review-list { display: none; }
.review-box--collapsible.is-open .review-list { display: flex; }
.review-summary { font-size: 14px; color: var(--muted); padding: 0 15px 12px; }

.payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.payment-method {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md); padding: 13px 15px; cursor: pointer; background: #fff; font: inherit; text-align: left; width: 100%;
}
.payment-method.is-active { border-color: var(--navy); background: var(--pale); box-shadow: inset 0 0 0 1px var(--navy); }
.payment-method strong { color: var(--navy); font-size: 15px; }
.payment-method span { color: var(--muted); font-size: 13px; }

.coupon-row { display: flex; gap: 9px; margin-bottom: 14px; }
.coupon-row input { flex: 1; min-height: 46px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 13px; font: inherit; }
.coupon-btn { white-space: nowrap; }
.coupon-btn--remove { color: var(--red-dark); }
.coupon-hint--ok { color: var(--success); font-weight: 600; font-size: 13.5px; }
.confirm-box { background: var(--pale); border-radius: var(--radius-md); padding: 14px 16px; font-size: 14.5px; margin-bottom: 14px; }
.errors, .error-box { background: var(--danger-soft); border: 1px solid #F5C6C0; color: var(--danger); border-radius: var(--radius-md); padding: 12px 15px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; background: var(--pale); color: var(--navy); }
.badge--ok { background: var(--success-soft); color: var(--success); }
.badge--err { background: var(--danger-soft); color: var(--danger); }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 14px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.smart-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }

/* ---------- Products ---------- */
.cat-tabs { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.cat-tab {
  background: none; border: none; cursor: pointer; padding: 10px 2px 12px;
  font: inherit; font-weight: 700; font-size: 16px; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.cat-tab:hover { color: var(--navy); }
.cat-tab.is-active { color: var(--red); border-bottom-color: var(--red); }
.products-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-grid { display: contents; }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 0;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy-2);
  border-radius: var(--radius-lg); padding: 20px; text-align: left;
  box-shadow: var(--shadow-soft); font: inherit; color: var(--text);
}
button.product-card { cursor: pointer; transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; width: 100%; }
button.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.product-card.is-active { border-color: var(--red); border-left-color: var(--red); }
.product-card--soon { border-left-color: var(--line-strong); }
.product-card__top { display: flex; align-items: flex-start; justify-content: space-between; min-height: 30px; margin-bottom: 8px; }
.product-icon { width: 30px; height: 30px; color: var(--navy); display: inline-flex; margin-left: auto; }
.product-icon svg { width: 100%; height: 100%; }
.icon-3d { display: inline-flex; width: 100%; height: 100%; color: inherit; }
.icon-3d svg { width: 100%; height: 100%; }
.product-badge {
  background: #EAF1EE; color: var(--muted); font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
}
.product-card h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 7px; }
.product-card p { color: var(--muted); font-size: 14px; margin-bottom: 13px; }
.product-card__price { font-size: 14px; color: var(--muted); margin-top: auto; }
.product-card__price strong { color: var(--navy); font-size: 15.5px; }
.product-card__cover { font-size: 14px; color: var(--muted); margin-top: 3px; }
.product-card__foot { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--navy); }
.product-card__foot span { color: var(--muted); font-weight: 600; }
button.product-card .product-card__foot { color: var(--red); }
.products-wrap[data-filter="xe-co-gioi"] .product-card:not([data-type="motorbike"]):not([data-type="car"]),
.products-wrap[data-filter="du-lich"] .product-card:not([data-type="travel"]),
.products-wrap[data-filter="con-nguoi"] .product-card:not([data-type="worker"]),
.products-wrap[data-filter="tai-san"] .product-card:not([data-type="tai-san"]) { display: none; }

/* ---------- About / stats / why / steps ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 18px; text-align: center; box-shadow: var(--shadow-soft); }
.stat strong { display: block; font-size: 30px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px; box-shadow: var(--shadow-soft); }
.why-icon { font-size: 30px; display: block; margin-bottom: 12px; }
.why-card h3 { font-size: 16.5px; margin-bottom: 7px; }
.why-card p { color: var(--muted); font-size: 14.5px; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; text-align: center; box-shadow: var(--shadow-soft); position: relative; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--navy); color: #fff; font-size: 20px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px var(--pale);
}
.step-card h3 { font-size: 16.5px; margin-bottom: 7px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- B2B ---------- */
.b2b-shell { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.upload-card, .b2b-help, .data-grid-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-soft);
}
.upload-card { text-align: center; border-style: dashed; border-width: 1.5px; border-color: var(--line-strong); }
.upload-card.is-dragging { border-color: var(--navy); background: var(--pale); }
.upload-icon { font-size: 38px; margin-bottom: 8px; }
.upload-card h3 { margin-bottom: 7px; }
.upload-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.upload-card input[type="file"] { display: none; }
.b2b-help h3 { margin-bottom: 12px; font-size: 16.5px; }
.b2b-help ul { margin: 0 0 16px; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.grid-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.grid-head h3 { margin-bottom: 4px; }
.grid-head p { color: var(--muted); font-size: 14px; }
.grid-actions { display: flex; gap: 9px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.data-grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-grid th, .data-grid td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-grid th { background: var(--surface-soft); color: var(--navy); font-weight: 800; }
.data-grid td input, .data-grid td select { border: 1px solid transparent; background: transparent; font: inherit; padding: 4px 6px; border-radius: 6px; width: 100%; }
.data-grid td input:focus, .data-grid td select:focus { border-color: var(--navy); background: #fff; outline: none; }
.data-grid tr.has-error td { background: var(--danger-soft); }

/* ---------- Claims ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.timeline article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-soft); position: relative; }
.timeline article > span {
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 13px;
  border: 2px solid var(--red); color: var(--red); background: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px;
}
.timeline h3 { font-size: 16px; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 14.5px; }
.claim-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.claim-actions [data-hotline-display] { color: var(--red); font-weight: 800; }

/* ---------- Posts (Cẩm nang) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-soft); transition: box-shadow .16s ease, transform .16s ease;
}
.post-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--pale); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { display: flex; flex-direction: column; gap: 6px; padding: 17px 18px 19px; }
.post-card__date { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.post-card__title { font-weight: 800; color: var(--navy); font-size: 16px; line-height: 1.4; }
.post-card__excerpt { color: var(--muted); font-size: 14px; }

/* Content pages (Blade) */
.page-hero { background: linear-gradient(100deg, var(--hero-1), var(--hero-2)); padding: 40px 0 44px; }
.page-hero h1 { font-size: 34px; font-weight: 800; }
.breadcrumb { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb strong { color: var(--navy-2); }
.page-meta { color: var(--muted); margin-top: 10px; font-size: 14px; }
.page-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.page-tab { background: #fff; border: 1px solid var(--line-strong); color: var(--text); font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; text-decoration: none; }
.page-tab:hover { border-color: var(--navy); color: var(--navy); }
.page-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.post-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 24px; }
.post-body { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.post-body p { margin-bottom: 18px; }
.post-cta { background: var(--pale); border-radius: var(--radius-lg); padding: 24px; margin: 30px 0 36px; text-align: center; }
.post-cta h2 { font-size: 21px; margin-bottom: 8px; }
.post-cta p { color: var(--muted); margin-bottom: 16px; }
.related-title { font-size: 23px; margin-bottom: 18px; }
.empty-note { text-align: center; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 38px 24px; }
.empty-note h2 { margin-bottom: 9px; }
.empty-note p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Lookup / FAQ ---------- */
.lookup-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--navy); border-radius: var(--radius-xl); padding: 30px 32px; color: #fff;
  box-shadow: var(--shadow);
}
.lookup-card h2 { color: #fff; font-size: 24px; margin-bottom: 7px; }
.lookup-card p { color: #BEDBD2; }
.lookup-card .section-kicker { color: #9AD1C3; }
.lookup-form { display: flex; gap: 11px; flex-wrap: wrap; }
.lookup-card .btn--soft { background: #fff; }
.faq-grid { display: flex; flex-direction: column; gap: 11px; max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-item h3 {
  font-size: 15.5px; padding: 15px 18px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-item h3::after { content: "▾"; color: var(--muted); font-size: 13px; transition: transform .2s ease; }
.faq-item p { display: none; padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; }
.faq-item.is-open h3::after { transform: rotate(180deg); }
.faq-item.is-open p { display: block; }

/* ---------- Modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(4, 32, 28, .55); }
.modal__panel {
  position: relative; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow);
  max-width: 520px; width: 100%; max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px;
}
.modal__close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
body.modal-open { overflow: hidden; }
.toast {
  position: fixed; left: 50%; bottom: calc(22px + var(--safe-bottom)); transform: translate(-50%, 20px);
  background: var(--navy-deep); color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); z-index: 130;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.price-breakdown { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 13px 15px; margin-top: 14px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.price-breakdown:empty { display: none; }
.price-breakdown div { display: flex; justify-content: space-between; gap: 16px; }
.price-breakdown strong { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #CFE3DC; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 34px; padding: 48px 20px 36px; }
.site-footer h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 13px; }
.footer-slogan { color: #8FBBAE; font-size: 13.5px; margin-bottom: 16px; }
.footer-brand p { color: #A9CFC4; font-size: 14.5px; }
.footer-contact-label { font-weight: 700; color: #fff !important; margin-top: 14px; }
.footer-hotline a { color: #fff; font-size: 19px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { margin-top: 5px; }
.footer-contact a { color: #A9CFC4; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.site-footer .footer-grid > div > a { display: block; color: #A9CFC4; text-decoration: none; padding: 4px 0 4px 15px; position: relative; font-size: 14.5px; }
.site-footer .footer-grid > div > a::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #2E9E8B; }
.site-footer .footer-grid > div > a:hover { color: #fff; }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pay-badges span { background: #fff; color: var(--navy); font-weight: 800; font-size: 12.5px; padding: 6px 12px; border-radius: 8px; }
.footer-social-title { margin-top: 4px; }
.footer-social { display: flex; gap: 9px; flex-wrap: wrap; }
.footer-social a { border: 1.5px solid #2E9E8B; color: #CFE3DC; border-radius: 999px; padding: 7px 15px; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.footer-social a:hover { border-color: #fff; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 18px 0 calc(20px + var(--safe-bottom)); }
.footer-company { color: #fff; font-weight: 800; letter-spacing: .4px; font-size: 14px; text-transform: uppercase; }
.footer-address { color: #8FBBAE; font-size: 13.5px; margin-top: 4px; }

/* ---------- Mobile sticky bar ---------- */
.mobile-sticky {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(6, 63, 54, .12);
  padding: 10px 14px calc(10px + var(--safe-bottom)); align-items: center; gap: 12px;
}
.mobile-sticky[hidden] { display: none !important; }
.mobile-sticky__info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.mobile-sticky__info span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-sticky__info strong { color: var(--red); font-size: 17px; }
.mobile-sticky .btn { min-height: 46px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .wizard-shell { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "products products" "main summary"; }
  .wizard-products { border-right: none; border-bottom: 1px solid var(--line); }
  .tabs { grid-template-columns: repeat(4, 1fr); }
  body.is-checkout .tabs { grid-template-columns: repeat(4, 1fr); }
  body.is-checkout .tab { flex-direction: column; text-align: center; justify-content: flex-start; min-height: 108px; padding: 16px 10px 13px; }
  body.is-checkout .tab .icon-3d { width: 34px; height: 34px; }
  .summary-card { border-left: 1px solid var(--line); }
}
@media (max-width: 1023px) {
  .icon-btn { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 12px; right: 12px; top: calc(var(--header-h) + 6px);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 10px; flex-direction: column; align-items: stretch; gap: 2px;
    max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; margin: 0;
  }
  .main-nav.is-open { display: flex; }
  .nav-link { width: 100%; padding: 13px 12px; font-size: 15.5px; }
  .nav-drop, .mega {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: none; border-radius: 0; padding: 0 0 6px 14px; display: none; width: auto; max-width: none;
  }
  .nav-item.has-drop.is-open .nav-drop, .nav-item.is-mega.is-open .mega { display: block; }
  .nav-item.is-mega.is-open .mega, .nav-item.is-mega:hover .mega, .nav-item.is-mega:focus-within .mega { transform: none; }
  .mega { grid-template-columns: 1fr; }
  .mega-cats { border-right: none; padding: 0; }
  .mega-fly { display: none; }
  .header-login span.header-login__icon { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 38px 0 92px; }
  .hero h1 { font-size: 33px; }
  .cert-card { margin: 0 auto; }
  .hero-chip--a { left: 4px; }
  .products-wrap, .why-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .wizard-shell { grid-template-columns: 1fr; grid-template-areas: "products" "main" "summary"; }
  .summary-card { position: static; border-left: none; border-top: 1px solid var(--line); }
  .summary-toggle { display: inline-block; }
  .wizard-summary:not(.is-expanded) .summary-list,
  .wizard-summary:not(.is-expanded) .summary-subtotal,
  .wizard-summary:not(.is-expanded) .summary-trust { display: none; }
  .mobile-sticky { display: flex; }
  .mobile-sticky.is-hidden { display: none; }
  body:has(.mobile-sticky:not([hidden]):not(.is-hidden)) { padding-bottom: calc(76px + var(--safe-bottom)); }
}
@media (max-width: 760px) {
  .quote-form, .smart-form, .focus-zone { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-grid--dense { grid-template-columns: 1fr 1fr; }
  .field input, .field select { min-height: 50px; font-size: 16px; }
  .b2b-shell { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .wizard-actions { flex-direction: column; align-items: stretch; }
  .total-bar__info { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .total-bar__btns { margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .total-bar__btns .btn { width: 100%; min-height: 50px; }
  .wizard-actions__main { margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .wizard-actions__main .btn { width: 100%; min-height: 50px; }
  .btn-text { align-self: flex-start; }
  .stepper { gap: 6px 0; }
  .step + .step::before { width: 14px; margin: 0 6px; }
  .modal { align-items: flex-end; padding: 10px; }
  .modal__panel { border-radius: 22px 22px 16px 16px; padding: 20px; }
  .toast { left: 12px; right: 12px; transform: translateY(18px); }
  .toast.is-visible { transform: translateY(0); }
  body:has(.mobile-sticky:not([hidden]):not(.is-hidden)) .toast { bottom: calc(92px + var(--safe-bottom)); }
}
@media (max-width: 640px) {
  .site-header__inner { gap: 12px; }
  .brand__name { font-size: 16.5px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tab { padding: 12px 8px 10px; font-size: 13.5px; min-height: 96px; }
  .section { padding: 42px 0; }
  .section-head h2 { font-size: 25px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .products-wrap, .why-grid, .post-grid, .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 38px 20px 28px; }
  .hero { padding: 30px 0 84px; }
  .wizard-section { margin-top: -48px; }
  .wizard-main { padding: 18px 16px 20px; }
  .wizard-products { padding: 16px 14px; }
  .lookup-card { padding: 24px 20px; }
  .page-hero h1 { font-size: 27px; }
  .cat-tabs { gap: 16px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .cat-tab { white-space: nowrap; }
}
@media (max-width: 380px) {
  .brand__slogan { display: none; }
  .header-login { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Nút chat hỗ trợ (widget bên thứ ba, class .isw) ---------- */
/* Khi modal mở thì ẩn nút chat để không chồng lên hộp thoại (vd. thông
   báo thanh toán thành công). Trên mobile, nút chat né thanh giá đáy của
   app: bình thường sát đáy, khi thanh giá hiện thì nhích lên trên nó. */
body.modal-open .isw { display: none !important; }
@media (max-width: 760px) {
  .isw { bottom: calc(20px + var(--safe-bottom)) !important; }
  body:has(.mobile-sticky:not([hidden]):not(.is-hidden)) .isw { bottom: calc(92px + var(--safe-bottom)) !important; }
  /* Chừa khoảng đáy cho thanh giá cố định trên mobile. */
  body { padding-bottom: calc(84px + var(--safe-bottom)); }
}

/* ===== 2026-11-18 v5004: rà soát nút bấm trên mobile ===== */
/* 1) Tôn trọng trạng thái ẩn do JS điều khiển: khi thẻ kết quả báo giá hiện
   (hoặc đã vào trang mua), hàng nút của form báo giá phải ẩn hẳn — không để
   optimizer hồi sinh thành 2 nút Mua ngay chồng nhau như trước. */
@media (max-width: 760px) {
  /* 2) Widget: chưa có báo giá thì ẩn nút "Tiếp tục" (đang disabled),
     "Tính phí" chiếm trọn hàng; "Nhập lại" xuống dưới cùng, nhỏ gọn. */
  .wizard-actions--quote [data-start-checkout]:disabled { display: none; }
  .wizard-actions--quote .wizard-actions__main:has([data-start-checkout]:disabled) { grid-template-columns: 1fr; }
  .wizard-actions--quote .btn-text { order: 2; align-self: center; min-height: 40px; padding: 8px 18px; }
  /* 3) Stepper gọn lại để vừa một hàng trên màn hình hẹp. */
  .step { gap: 5px; font-size: 12px; white-space: nowrap; }
  .step .step-dot { width: 24px; height: 24px; font-size: 11.5px; }
  .step + .step::before { width: 8px; margin: 0 3px; }
}
@media (max-width: 1023px) {
  /* 4) Bước Thanh toán: chỉ MỘT nút Thanh toán — ẩn nút trùng trong panel,
     đưa khối ưu đãi + ô xác nhận + nút Thanh toán lên đầu cột tóm tắt,
     ngay sau panel, thay vì nằm cuối trang như trước. */
  body[data-stage="pay"] .checkout-panel:not([aria-hidden="true"]) [data-next-step] { display: none; }
  body[data-stage="pay"] .checkout-panel:not([aria-hidden="true"]) .wizard-actions--step { grid-template-columns: 1fr; }
  body[data-stage="pay"] .checkout-panel:not([aria-hidden="true"]) [data-prev-step] { flex: 1 1 auto; }
  body[data-stage="pay"] .wizard-summary { display: flex; flex-direction: column; }
  body[data-stage="pay"] .wizard-summary .side-pay { order: -1; }
  /* 5) Link "Chỉnh sửa": tăng vùng chạm cho ngón tay. */
  .edit-link { padding: 8px 6px; }
}

/* ===== 2026-11-18 v5005: menu mobile ===== */
@media (max-width: 1023px) {
  /* Menu Sản phẩm trên mobile: hiện danh sách sản phẩm của nhóm đang chọn
     ngay trong menu (trước đây bị display:none nên không chọn được sản phẩm). */
  .nav-item.is-mega.is-open .mega-fly { display: block; padding: 6px 0 4px; }
}
