/* Trang tính công suất điện mặt trời — InPower
   Chữ: bộ InPower 1.0 (/assets/inpower-type/v1/inpower-fonts.css) — InPower Technical cho toàn trang (giao diện, phần báo giá ip-doc,
   bản in ip-print-doc, PDF); không dùng lớp ip-web (lớp đó gán InPower UI). Số liệu dùng ip-number (chữ số cùng độ rộng). */
:root {
  --navy: #00368B; --navy-d: #002561; --navy-l: #1a4ea8; --navy-soft: #e8eef9;
  --cam: #F15A16; --cam-d: #c9430a; --cam-l: #F87F26; --cam-soft: #fff1e8;
  --vang: #f5a524; --xanh: #12985a; --xanh-soft: #e6f6ee; --xam: #94a3b8;
  --ink: #142033; --ink2: #4a5a70; --muted: #6b7a90; --line: #dfe5ee; --line2: #eef2f7;
  --bg: #f5f7fb; --card: #ffffff; --r: 16px; --r-s: 10px;
  --sh: 0 1px 2px rgba(16, 32, 64, .05), 0 8px 28px rgba(16, 32, 64, .08);
  --sh-l: 0 2px 4px rgba(16, 32, 64, .06), 0 18px 48px rgba(16, 32, 64, .14);
  --f: var(--ip-technical, "InPower Technical", "Arial Narrow", "Segoe UI", Roboto, Arial, sans-serif);
  --f-doc: var(--ip-technical, "InPower Technical", "Arial Narrow", "Segoe UI", Roboto, Arial, sans-serif);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--f); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--navy-l); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Đầu trang ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line2); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--navy); min-width: 0; }
.logo .logo-bt { width: 42px; height: 42px; flex: none; }
.logo-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.logo-txt img { height: 21px; width: auto; display: block; }
.logo-txt small { font-size: 10.5px; line-height: 1.2; color: var(--ink2); font-weight: 600; letter-spacing: .1px; }
@media (max-width: 560px) {
  .top .wrap { gap: 8px; height: 62px; }
  .logo .logo-bt { width: 36px; height: 36px; } .logo-txt img { height: 16px; }
  .logo-txt small { font-size: 9px; }
  .top .hot { flex: none; width: 42px; height: 42px; padding: 0; justify-content: center; font-size: 19px; }
  .top .hot .hot-so { display: none; }
}
.nav { display: none; gap: 4px; margin-left: 10px; }
.nav a { text-decoration: none; color: var(--ink2); font-size: 16px; font-weight: 500; padding: 7px 10px; border-radius: 8px; }
.nav a:hover { background: var(--navy-soft); color: var(--navy); }
.top .hot { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; background: var(--cam); color: #fff;
  font-weight: 700; font-size: 16px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 4px 14px rgba(241, 90, 22, .35); }
.top .hot:hover { background: var(--cam-d); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Hero + máy tính ---------- */
.hero { background: radial-gradient(1200px 520px at 85% -10%, rgba(248, 127, 38, .20), transparent 60%),
  radial-gradient(900px 600px at -10% 10%, rgba(26, 78, 168, .16), transparent 60%), linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero .wrap { display: grid; gap: 22px; padding-top: 18px; padding-bottom: 34px; }
.crumb { font-size: 14.5px; color: var(--muted); margin: 0; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--navy); }
.hero h1 { font-size: clamp(29px, 4.6vw, 46px); line-height: 1.16; letter-spacing: 0; margin: 6px 0 12px; color: var(--navy-d); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--cam); }
.lead { font-size: 18px; color: var(--ink2); margin: 0 0 16px; max-width: 560px; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 16px; color: var(--ink2); }
.trust li { display: flex; gap: 9px; align-items: flex-start; }
.trust li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--xanh-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%2312985a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.trust li b { color: var(--ink); font-weight: 600; }
.hero-txt .stat { display: flex; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.hero-txt .stat div { font-size: 14.5px; color: var(--muted); }
.hero-txt .stat b { display: block; font-size: 23px; color: var(--navy); font-weight: 700; }
.hero-phu .stat { display: flex; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.hero-phu .stat div { font-size: 14.5px; color: var(--muted); }
.hero-phu .stat b { display: block; font-size: 23px; color: var(--navy); font-weight: 700; }
@media (max-width: 979px) { .lead { font-size: 17px; margin-bottom: 4px; } .hero h1 { margin-bottom: 8px; } }
@media (max-width: 440px) { .seg span i { display: none; } .seg span { font-size: 14.5px; } }
.seg span i { font-style: normal; }
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr 480px; grid-template-areas: "txt form" "phu form"; grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 0; padding-top: 34px; padding-bottom: 54px; align-items: start; }
  .hero-txt { grid-area: txt; padding-top: 26px; } .hero .mt { grid-area: form; } .hero-phu { grid-area: phu; }
}

.mt { background: var(--card); border-radius: 20px; box-shadow: var(--sh-l); border: 1px solid var(--line2); padding: 20px 18px 18px; position: relative; }
.buoc { border: 0; margin: 0; padding: 0; min-width: 0; }
.buoc legend { font-size: 20px; font-weight: 700; color: var(--navy-d); line-height: 1.3; padding: 0; margin-bottom: 12px; }
.lbl { display: block; font-size: 15px; font-weight: 600; color: var(--ink2); margin: 14px 0 7px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--line2); padding: 4px; border-radius: 12px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; gap: 5px; min-height: 40px; padding: 4px 6px; border-radius: 9px;
  font-size: 15px; font-weight: 600; color: var(--ink2); line-height: 1.2; }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seg input:focus-visible + span { outline: 2px solid var(--navy-l); outline-offset: 1px; }
.big { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 0 14px; transition: border-color .15s; }
.big:focus-within { border-color: var(--navy-l); box-shadow: 0 0 0 4px rgba(26, 78, 168, .12); }
.big input { border: 0; outline: 0; background: transparent; font-size: 29px; font-weight: 700; color: var(--navy-d); width: 100%; min-width: 0; padding: 10px 0; }
.big span { font-size: 16.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 15px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.chips button:hover { border-color: var(--navy-l); color: var(--navy); }
.chips button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.goi-y { margin: 9px 0 0; font-size: 15px; color: var(--ink2); min-height: 22px; }
.goi-y b { color: var(--navy); }
.lnk { border: 0; background: none; padding: 0; color: var(--navy-l); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sel { display: flex; gap: 8px; }
.sel select, .in { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; font-size: 17px; min-height: 46px; }
.sel select:focus, .in:focus { outline: 0; border-color: var(--navy-l); box-shadow: 0 0 0 4px rgba(26, 78, 168, .12); }
.btn-vt { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; white-space: nowrap; }
.the { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.the label { position: relative; }
.the input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.the span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; border: 1.5px solid var(--line); border-radius: 13px;
  padding: 10px 6px 9px; font-size: 15px; font-weight: 700; color: var(--ink); height: 100%; background: #fff; transition: border-color .15s, background .15s; }
.the span i { font-style: normal; font-size: 25px; line-height: 1.1; }
.the span small { font-weight: 500; font-size: 13px; color: var(--muted); line-height: 1.3; }
.the span svg { width: 46px; height: 30px; }
.the input:checked + span { border-color: var(--navy); background: var(--navy-soft); box-shadow: inset 0 0 0 1px var(--navy); }
.the input:focus-visible + span { outline: 2px solid var(--navy-l); outline-offset: 2px; }
.truot { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 15px; color: var(--ink2); }
.truot input[type=range] { flex: 1; accent-color: var(--cam); }
.truot output { font-weight: 700; color: var(--navy); min-width: 112px; text-align: right; }
.hang { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nut { display: flex; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 13px; cursor: pointer; font-weight: 700; font-size: 17px;
  padding: 13px 18px; text-decoration: none; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-c { background: var(--cam); color: #fff; box-shadow: 0 6px 18px rgba(241, 90, 22, .33); flex: 1; }
.btn-c:hover { background: var(--cam-d); }
.btn-n { background: var(--navy); color: #fff; }
.btn-n:hover { background: var(--navy-d); }
.btn-p { background: var(--line2); color: var(--ink2); }
.btn-p:hover { background: var(--line); }
.btn-o { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-o:hover { border-color: var(--navy-l); }
.btn-s { font-size: 15.5px; padding: 9px 13px; border-radius: 11px; }
.mt-foot { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- Kết quả ---------- */
.kq { padding: 28px 0 10px; scroll-margin-top: 70px; }
.kq-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-bottom: 16px; }
.kq-head h2 { margin: 0; font-size: clamp(24px, 3.2vw, 32px); color: var(--navy-d); letter-spacing: 0; line-height: 1.25; }
.kq-head p { margin: 2px 0 0; color: var(--ink2); font-size: 16px; }
.kq-nut { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.canh { border-radius: 12px; padding: 11px 14px; font-size: 15.5px; margin: 0 0 14px; display: flex; gap: 10px; align-items: flex-start; }
.canh.vang { background: #fff8e6; border: 1px solid #f6dfa5; color: #6b4d00; }
.canh.xanh { background: var(--navy-soft); border: 1px solid #cddaf2; color: var(--navy-d); }
.pa-ds { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 700px) { .pa-ds { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.pa { position: relative; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 16px 16px 14px; cursor: pointer;
  box-shadow: var(--sh); transition: border-color .15s, transform .15s; display: flex; flex-direction: column; gap: 8px; }
.pa:hover { border-color: var(--navy-l); }
.pa[aria-pressed="true"] { border-color: var(--cam); box-shadow: 0 0 0 3px rgba(241, 90, 22, .16), var(--sh); }
.pa .khuyen { position: absolute; top: -11px; left: 14px; background: var(--cam); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .2px; }
.pa .nhan { font-size: 13px; font-weight: 700; color: var(--xanh); background: var(--xanh-soft); padding: 2px 8px; border-radius: 999px; align-self: flex-start; }
.pa h3 { margin: 0; font-size: 18px; color: var(--navy-d); display: flex; align-items: center; gap: 7px; }
.pa .mo { font-size: 14.5px; color: var(--muted); margin: -6px 0 0; }
.pa .cs { font-size: 16.5px; color: var(--ink2); }
.pa .cs b { font-size: 27px; color: var(--navy); letter-spacing: 0; }
.pa .so { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 14.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 9px; }
.pa .so b { display: block; font-size: 17px; color: var(--ink); }
.pa .so .t b { color: var(--xanh); }
.pa .so .g b { color: var(--cam-d); }

.ct { display: grid; gap: 18px; }
@media (min-width: 1000px) { .ct { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); border: 1px solid var(--line2); padding: 18px; }
.card h3 { margin: 0 0 12px; font-size: 18px; color: var(--navy-d); }
.card h3 small { font-weight: 500; color: var(--muted); font-size: 14.5px; }
.kpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 560px) { .kpi { grid-template-columns: repeat(4, 1fr); } }
.kpi div { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px; box-shadow: var(--sh); }
.kpi span { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 23px; color: var(--navy-d); letter-spacing: 0; line-height: 1.25; margin-top: 2px; }
.kpi small { font-size: 13.5px; color: var(--ink2); }
.kpi .t b { color: var(--xanh); }
.hd { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 14px; }
.hd > div { border-radius: 14px; padding: 12px 14px; }
.hd .truoc { background: #f3f5f9; }
.hd .sau { background: var(--xanh-soft); }
.hd span { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.hd b { font-size: 22px; display: block; letter-spacing: 0; }
.hd .sau b { color: var(--xanh); }
.hd small { font-size: 13.5px; color: var(--ink2); }
.hd i { font-style: normal; font-size: 23px; color: var(--muted); }
.vong { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.vong svg { flex: none; width: 92px; height: 92px; }
.vong p { margin: 0; font-size: 15.5px; color: var(--ink2); }
.vong p b { color: var(--ink); }
.tabs { display: flex; gap: 4px; background: var(--line2); border-radius: 12px; padding: 4px; margin-bottom: 12px; overflow-x: auto; }
.tabs button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 8px 10px; font-size: 15px; font-weight: 700; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.thang-chon { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 8px; }
.thang-chon button { border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 13.5px; font-weight: 600; padding: 3px 7px; cursor: pointer; color: var(--ink2); }
.thang-chon button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.bd { position: relative; }
.bd svg { display: block; width: 100%; height: auto; overflow: visible; }
.bd .tip { position: absolute; pointer-events: none; background: rgba(15, 25, 45, .94); color: #fff; font-size: 14px; line-height: 1.5; padding: 8px 10px; border-radius: 9px;
  white-space: nowrap; transform: translate(-50%, -100%); margin-top: -10px; z-index: 5; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.bd .tip b { color: #ffd7b8; }
.chu { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink2); margin-top: 8px; }
.chu span { display: inline-flex; align-items: center; gap: 6px; }
.chu i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.giai { font-size: 14.5px; color: var(--muted); margin: 8px 0 0; }
.tb { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tb th, .tb td { padding: 8px 6px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; }
.tb th { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; }
.tb td.r, .tb th.r { text-align: right; white-space: nowrap; }
.tb tr.nh td { background: #f7f9fc; font-weight: 700; color: var(--navy-d); font-size: 14.5px; }
.tb tfoot td { font-weight: 700; border-bottom: 0; }
.tb tfoot tr.tong td { font-size: 18px; color: var(--cam-d); border-top: 2px solid var(--line); }
.tb .mo-ta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.sp { display: flex; gap: 10px; align-items: flex-start; }
.sp .anh { flex: none; width: 46px; height: 46px; border-radius: 9px; background: var(--line2); display: grid; place-items: center; overflow: hidden; }
.sp .anh img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sp .anh svg { width: 30px; height: 30px; }
.bh { display: inline-block; font-size: 13px; background: var(--navy-soft); color: var(--navy); border-radius: 6px; padding: 1px 6px; margin-top: 3px; font-weight: 600; }
.cfg { display: grid; gap: 10px; }
.cfg .dong { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-size: 15.5px; }
.cfg .dong > span { color: var(--ink2); font-weight: 600; }
.cfg select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; font-size: 17px; min-height: 40px; }
.dem { display: flex; align-items: center; gap: 8px; }
.dem button { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 20px; font-weight: 700; color: var(--navy); cursor: pointer; flex: none; }
.dem input[type=range] { flex: 1; accent-color: var(--navy); min-width: 60px; }
.dem output { min-width: 92px; font-weight: 700; color: var(--navy); font-size: 15.5px; text-align: right; }
.loi { color: #b3261e; font-size: 15px; margin: 6px 0 0; }
details.gd { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
details.gd summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 15.5px; }
details.gd ul { margin: 8px 0 0; padding-left: 18px; font-size: 15px; color: var(--ink2); }
.mt-xanh { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin-top: 4px; }
.mt-xanh div { background: var(--xanh-soft); border-radius: 12px; padding: 10px 6px; font-size: 13.5px; color: #2a6047; }
.mt-xanh b { display: block; font-size: 19px; color: var(--xanh); }

/* ---------- Nhận báo giá ---------- */
.lh { background: linear-gradient(135deg, var(--navy-d), var(--navy-l)); color: #fff; border-radius: 20px; padding: 22px 18px; box-shadow: var(--sh-l); margin: 22px 0 6px;
  display: grid; gap: 18px; }
@media (min-width: 900px) { .lh { grid-template-columns: 1fr 1.1fr; padding: 30px; align-items: center; } }
.lh h2 { margin: 0 0 8px; font-size: clamp(23px, 2.8vw, 29px); line-height: 1.25; }
.lh p { margin: 0 0 10px; color: #d6e2f7; font-size: 16.5px; }
.lh ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; font-size: 16px; color: #e9f0fb; }
.lh ul li::before { content: '✓  '; color: #ffb07a; font-weight: 700; }
.lh form { background: #fff; color: var(--ink); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.lh form .in { min-height: 46px; }
.lh form textarea.in { min-height: 70px; resize: vertical; }
.lh .cam-ket { font-size: 13.5px; color: var(--muted); margin: 0; }
.lh .ok { text-align: center; padding: 18px 8px; }
.lh .ok b { display: block; font-size: 20px; color: var(--xanh); margin-bottom: 6px; }
.chia { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ht { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Nội dung SEO ---------- */
.sec { padding: 40px 0 8px; }
.sec h2 { font-size: clamp(24px, 3.2vw, 32px); color: var(--navy-d); letter-spacing: 0; line-height: 1.25; margin: 0 0 10px; }
.sec h3 { font-size: 19px; color: var(--navy-d); margin: 22px 0 8px; }
.sec p, .sec li { color: var(--ink2); }
.sec .mo-dau { font-size: 17px; max-width: 820px; margin: 0 0 16px; }
.cuon { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); border: 1px solid var(--line2); }
.cuon .tb { min-width: 640px; }
.cuon .tb th, .cuon .tb td { padding: 10px 12px; }
.cuon .tb tbody tr:hover td { background: #fafbfd; }
.cuon .tb tr.dang td { background: var(--cam-soft); font-weight: 600; }
.chu-thich { font-size: 14.5px; color: var(--muted); margin: 8px 0 0; }
.cac-buoc { counter-reset: b; list-style: none; padding: 0; display: grid; gap: 12px; margin: 16px 0 0; }
@media (min-width: 800px) { .cac-buoc { grid-template-columns: 1fr 1fr; } }
.cac-buoc li { counter-increment: b; background: var(--card); border-radius: 14px; border: 1px solid var(--line2); box-shadow: var(--sh); padding: 14px 16px 14px 58px; position: relative; }
.cac-buoc li::before { content: counter(b); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 10px; background: var(--navy-soft);
  color: var(--navy); font-weight: 700; display: grid; place-items: center; }
.cac-buoc b { color: var(--ink); display: block; margin-bottom: 2px; }
.cac-buoc p { margin: 0; font-size: 16px; }
.bar-tinh { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); border: 1px solid var(--line2); padding: 14px 16px; margin-top: 14px; }
.bar-tinh svg { width: 100%; height: auto; display: block; }
.faq { display: grid; gap: 10px; margin-top: 14px; }
.faq details { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--sh); padding: 0 16px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); padding: 14px 28px 14px 0; position: relative; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 11px; font-size: 23px; color: var(--cam); font-weight: 600; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 0 14px; font-size: 16.5px; color: var(--ink2); }
.faq details > div p { margin: 0 0 8px; }
.tinh-ds { columns: 2; column-gap: 16px; padding: 0; list-style: none; font-size: 16px; margin: 12px 0 0; }
@media (min-width: 700px) { .tinh-ds { columns: 4; } }
.tinh-ds li { break-inside: avoid; padding: 3px 0; }
.dai { background: linear-gradient(135deg, var(--cam), var(--cam-l)); color: #fff; border-radius: 20px; padding: 24px 20px; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.dai h2 { margin: 0; font-size: clamp(22px, 2.8vw, 28px); flex: 1 1 320px; line-height: 1.3; }
.dai .btn { background: #fff; color: var(--cam-d); }
.chan { background: var(--navy-d); color: #c8d4ea; margin-top: 48px; padding: 30px 0 90px; font-size: 15.5px; }
.chan .wrap { display: grid; gap: 18px; }
@media (min-width: 800px) { .chan .wrap { grid-template-columns: 1.4fr 1fr 1fr; } .chan { padding-bottom: 30px; } }
.chan b { color: #fff; }
.chan a { color: #fff; }
.chan p { margin: 0 0 6px; }
.chan .nho { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; font-size: 14px; color: #93a4c4; }

/* Thanh liên hệ cố định trên điện thoại */
.dinh { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.dinh a, .dinh button { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; font-weight: 700; font-size: 15.5px; text-decoration: none; padding: 10px 6px; border: 0; cursor: pointer; }
.dinh .goi { background: var(--navy-soft); color: var(--navy); }
.dinh .zalo { background: #e7f1ff; color: #0068ff; }
.dinh .bg { background: var(--cam); color: #fff; }
@media (min-width: 800px) { .dinh { display: none; } }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: rgba(15, 25, 45, .95); color: #fff; padding: 10px 16px; border-radius: 12px;
  font-size: 15.5px; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.dang-tinh { opacity: .55; transition: opacity .15s; }

@media print {
  .top, .hero-txt, .dinh, .lh form, .chia, .tabs, .thang-chon, .sec, .dai, .chan, .mt, .crumb, #cfgCard { display: none !important; }
  .hero { background: none; } .hero .wrap { display: block; padding: 0; }
  body { background: #fff; } .card, .pa, .kpi div { box-shadow: none; }
  .kq { padding-top: 0; } .lh { background: none; color: var(--ink); box-shadow: none; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.tb tr.phu td { font-size: 15px; padding-top: 6px; padding-bottom: 6px; color: var(--ink2); }
.tb tr.phu td:first-child { padding-left: 56px; }
@media (max-width: 560px) { .truot { flex-wrap: wrap; gap: 4px 12px; } .truot label { flex-basis: 100%; font-weight: 600; } .truot output { min-width: 0; } }
/* không cho nội dung dài (ô chọn thiết bị, bảng) làm tràn khung trên điện thoại */
@media (max-width: 999px) { .ct { grid-template-columns: minmax(0, 1fr); } }
.ct > .cot, .cfg select, .card { min-width: 0; }
.cfg .dong { grid-template-columns: 96px minmax(0, 1fr); }
@media (max-width: 480px) { .tb tr.phu td:first-child { padding-left: 6px; } .kpi b { font-size: 20px; } .hd b { font-size: 19px; } .hd { gap: 6px; } }
@media print { .hero-phu { display: none !important; } }
.dem { flex-wrap: wrap; }
@media (max-width: 699px) { .pa.nen { order: -1; margin-top: 8px; } }
@media (max-width: 480px) { .dem #cNOut { flex-basis: 100%; text-align: left; min-width: 0; } }

/* ---------- Thanh tiến trình 3 bước ---------- */
.tien-trinh { display: flex; list-style: none; padding: 0 0 14px; margin: 0 0 16px; border-bottom: 1px solid var(--line2); }
.tien-trinh li { flex: 1; position: relative; min-width: 0; }
.tien-trinh li + li::before { content: ''; position: absolute; top: 17px; right: calc(50% + 24px); left: calc(-50% + 24px); height: 3px; border-radius: 2px; background: var(--line); }
.tien-trinh li.dang::before, .tien-trinh li.xong::before { background: var(--xanh); }
.tien-trinh button { width: 100%; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: inherit; }
.tien-trinh button:disabled { cursor: default; }
.tien-trinh .so { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16.5px;
  border: 2px solid var(--line); background: #fff; color: var(--muted); transition: background .15s, box-shadow .15s; }
.tien-trinh li.dang .so { background: var(--cam); border-color: var(--cam); color: #fff; box-shadow: 0 0 0 5px rgba(241, 90, 22, .18); }
.tien-trinh li.xong .so { background: var(--xanh); border-color: var(--xanh); color: #fff; }
.tien-trinh button:not(:disabled):hover .so { box-shadow: 0 0 0 5px rgba(18, 152, 90, .15); }
.tien-trinh li.dang button:hover .so { box-shadow: 0 0 0 5px rgba(241, 90, 22, .22); }
.tien-trinh .nhan { font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.25; text-align: center; }
.tien-trinh li.dang .nhan { color: var(--navy-d); font-weight: 700; }
.tien-trinh li.xong .nhan { color: var(--ink2); }
.tien-trinh .nhan small { display: block; font-size: 13px; font-weight: 600; color: var(--xanh); min-height: 0; }
.tien-trinh .nhan small:empty { display: none; }
.buoc legend .buoc-so { display: block; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--cam); margin-bottom: 2px; }
.seg.seg-2 { grid-template-columns: 1fr 1fr; }
.nhanh { background: #f7f9fc; border: 1px solid var(--line2); border-radius: 14px; padding: 2px 12px 10px; margin-top: 10px; }
.nhanh .lbl { margin-top: 10px; }
.nhanh .seg { background: #e9eef5; }
.ghi { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.ghi-ngay { background: var(--navy-soft); color: var(--navy-d); border-radius: 10px; padding: 8px 11px; margin-top: 12px; }
.ghi-ngay b { color: var(--navy); }
.canh-thap { margin: 8px 0 4px; background: #fff8e6; border: 1px solid #f6dfa5; color: #6b4d00; border-radius: 10px; padding: 8px 11px; font-size: 14.5px; line-height: 1.45; }
.lbl .tuy { font-weight: 500; color: var(--muted); }
.big.big-s input { font-size: 23px; padding: 7px 0; }
.tt-xa { font-size: 14.5px; color: var(--ink2); }
.tt-xa small { color: var(--muted); font-size: 13.5px; }
select#xa:disabled { color: var(--muted); }
.nut .btn-p { flex: none; }
@media (max-width: 400px) { .nut .btn { font-size: 16px; padding: 12px 12px; } }
/* ---------- Kết quả: lý do khuyên dùng, cách chọn, bảng số lượng ---------- */
.giai-nen { margin: -6px 0 18px; font-size: 15.5px; color: var(--ink2); background: #fff; border: 1px dashed #f3c3a6; border-radius: 12px; padding: 10px 14px; }
.giai-nen b { color: var(--cam-d); }
.co-so { font-size: 14.5px; color: var(--ink2); background: #f7f9fc; border-radius: 10px; padding: 9px 12px; margin: 0 0 10px; line-height: 1.5; }
.co-so b { color: var(--navy-d); }
.tb-sl tfoot tr.tong td { vertical-align: middle; }
.tb-sl tfoot tr.tong td small { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); }
/* Dòng tổng trải cả bảng: số tiền lớn không còn nới rộng cột "Số lượng" (cột tên thiết bị rộng hơn trên điện thoại) */
.tong-hang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; }
.tong-hang > div { flex: 1 1 170px; min-width: 0; }
.tong-hang .tong-so { margin-left: auto; font-size: 21px; white-space: nowrap; }
.pa .nhan { color: var(--cam-d); background: var(--cam-soft); }
.seg.seg-loai span { flex-direction: column; gap: 1px; min-height: 56px; line-height: 1.2; font-size: 15px; }
.seg.seg-loai span i { font-size: 20px; display: block; }
.bao-sau { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--cam-d); background: var(--cam-soft); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }

/* Khối liên hệ cuối trang: gọi điện, Zalo, Messenger fanpage */
.dai .lien-he { display: flex; flex-wrap: wrap; gap: 10px; }
.lh-icon { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16.5px;
  padding: 7px 16px 7px 7px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transition: transform .1s; }
.lh-icon:hover { transform: translateY(-1px); }
.lh-icon svg { width: 38px; height: 38px; flex: none; }
.lh-icon.goi svg circle { fill: var(--cam-soft); }
@media (max-width: 520px) { .dai .lien-he { width: 100%; } .lh-icon { flex: 1 1 0; justify-content: center; padding: 7px 10px 7px 7px; font-size: 15px; gap: 6px; } .lh-icon svg { width: 32px; height: 32px; } }
/* Bảng số liệu: giữ đúng chữ hoa / thường của đơn vị (kWh, kWp) */
.cuon .tb th { text-transform: none; letter-spacing: 0; font-size: 14.5px; }
.dai h2 { color: #fff; }

/* ---------- Bộ chữ InPower: phần báo giá dùng InPower Technical, số liệu cùng độ rộng ---------- */
.ip-doc { font-family: var(--f-doc); }
.ip-doc h3 { letter-spacing: 0; }
.ip-doc .tb { font-size: 16.5px; }
.ip-doc .tb th { font-size: 14px; }
.ip-doc .tb .mo-ta { font-size: 15px; }
.ip-doc .co-so { font-size: 15.5px; }
.tb td.r, .tong-so, .pa .so b, .kpi b, .hd b, .mt-xanh b, .big input { font-variant-numeric: lining-nums tabular-nums; }
@media print { .ip-print-doc .card, .ip-print-doc .pa { font-family: inherit; } }
/* Hộp hướng dẫn tải PDF khi đang mở trong Zalo / Facebook… */
.hop-pdf { position: fixed; inset: 0; z-index: 90; background: rgba(10, 20, 40, .55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.hop-pdf-the { background: #fff; border-radius: 18px; padding: 18px 16px 14px; width: 100%; max-width: 440px; box-shadow: var(--sh-l); }
.hop-pdf-the h3 { margin: 0 0 6px; font-size: 19px; color: var(--navy-d); }
.hop-pdf-the p { margin: 0 0 12px; font-size: 16px; color: var(--ink2); }
.hop-pdf-nut { display: grid; gap: 8px; }
.hop-pdf-nut .btn { width: 100%; }
@media (min-width: 700px) { .hop-pdf { align-items: center; } }
/* Điện thoại hẹp: 3 ô loại điện giữ chữ trên một dòng ("Điện kinh doanh") */
@media (max-width: 440px) { .seg.seg-loai span { font-size: 14px; padding: 4px 2px; } }
