/* ===== lien-he.css: popup chọn (bot, quốc gia, nền tảng) + ô liên hệ trong phiếu. Đi cùng lien-he.js.
   Màu: mỗi trang đặt lại các biến --lh-* (popup) và --lh-o-* (ô bấm trong form) cho hợp tông. ===== */
:root{
  --lh-o-bg:#fff; --lh-o-line:#D7DFDB; --lh-o-r:8px; --lh-o-h:50px; --lh-o-pad:12px; --lh-o-ink:#15211E; --lh-o-mut:#6B7773;
  --lh-o-focus-line:#15211E; --lh-o-focus:0 0 0 3px rgba(214,162,30,.35); --lh-o-loi:#C62828; --lh-loi:#B42318;
}
.lh-pop{
  --lh-bg:#fff; --lh-ink:#15211E; --lh-mut:#5B6763; --lh-line:#E1E7E4; --lh-acc:#D6A21E; --lh-acc-ink:#15211E;
  --lh-sel:rgba(214,162,30,.14); --lh-hover:rgba(21,33,30,.05); --lh-ring:rgba(214,162,30,.55);
  padding:0;border:0;border-radius:16px;background:var(--lh-bg);color:var(--lh-ink);
  width:min(460px,calc(100vw - 32px));max-width:none;max-height:min(660px,calc(100vh - 48px));max-height:min(660px,calc(100dvh - 48px));
  overflow:hidden;box-shadow:0 30px 70px -24px rgba(0,0,0,.55);font:inherit;line-height:1.4
}
.lh-pop[open]{display:flex;flex-direction:column}
.lh-pop::backdrop{background:rgba(6,12,10,.62)}
.lh-in{display:flex;flex-direction:column;flex:1;min-height:0}
.lh-dau{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 14px 8px 20px}
.lh-td{margin:0;font-size:19px;font-weight:700;line-height:1.3;color:var(--lh-ink)}
.lh-x{flex:none;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:var(--lh-hover);color:var(--lh-ink);cursor:pointer}
.lh-x:focus-visible,.lh-xong:focus-visible{outline:3px solid var(--lh-ring);outline-offset:2px}
.lh-phu{margin:0 20px 6px;font-size:14px;color:var(--lh-mut)}
.lh-tim{padding:4px 16px 10px}
.lh-tim-o{width:100%;min-height:46px;padding:0 14px;border:1.5px solid var(--lh-line);border-radius:10px;background:var(--lh-bg);color:var(--lh-ink);font:inherit;font-size:16px}
.lh-tim-o:focus{outline:none;border-color:var(--lh-acc);box-shadow:0 0 0 3px var(--lh-ring)}
.lh-ds{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 8px 8px;-webkit-overflow-scrolling:touch}
.lh-list{display:grid;gap:2px}
.lh-opt{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:52px;margin:0;padding:10px 12px;border:0;border-radius:10px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
@media (hover:hover){.lh-opt:hover{background:var(--lh-hover)}}
.lh-opt:focus-visible{outline:3px solid var(--lh-ring);outline-offset:-3px}
.lh-ot{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.lh-ot b{font-weight:600;font-size:16px}
.lh-ot small{font-size:13.5px;color:var(--lh-mut);line-height:1.35}
.lh-cc{flex:none;font-weight:600;font-variant-numeric:tabular-nums;color:var(--lh-mut)}
.lh-opt .lh-v{flex:none;color:var(--lh-acc-ink);opacity:0}
.lh-mot .lh-opt[aria-pressed="true"]{background:var(--lh-sel)}
.lh-mot .lh-opt[aria-pressed="true"] .lh-v{opacity:1}
.lh-mot .lh-opt[aria-pressed="true"] .lh-cc{color:var(--lh-ink)}
/* hộp kiểm (chọn nhiều) */
.lh-opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.lh-ck{flex:none;display:grid;place-items:center;width:24px;height:24px;border:2px solid var(--lh-line);border-radius:7px;background:var(--lh-bg);transition:background-color .15s,border-color .15s}
.lh-ck .lh-v{opacity:0;color:var(--lh-acc-ink)}
.lh-opt input:checked + .lh-ck{background:var(--lh-acc);border-color:var(--lh-acc)}
.lh-opt input:checked + .lh-ck .lh-v{opacity:1}
.lh-opt input:focus-visible + .lh-ck{outline:3px solid var(--lh-ring);outline-offset:2px}
.lh-nhieu .lh-opt:has(input:checked){background:var(--lh-sel)}
.lh-tatca{margin-bottom:6px}
.lh-tatca::after{content:"";position:absolute;left:12px;right:12px;bottom:-4px;border-bottom:1px solid var(--lh-line)}
.lh-nh{margin:0;padding:12px 12px 4px;font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--lh-mut)}
.lh-rong{margin:0;padding:28px 12px;text-align:center;color:var(--lh-mut)}
.lh-chan{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--lh-line)}
.lh-dem{font-size:14px;color:var(--lh-mut)}
.lh-xong{min-height:48px;padding:0 30px;border:0;border-radius:10px;background:var(--lh-acc);color:var(--lh-acc-ink);font:inherit;font-weight:700;font-size:16px;cursor:pointer}
.lh-mot .lh-xong{background:var(--lh-hover);color:var(--lh-ink)}
html.lh-khoa{overflow:hidden}
@keyframes lh-hien{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
@keyframes lh-len{from{transform:translateY(100%)}to{transform:none}}
@keyframes lh-mo{from{opacity:0}to{opacity:1}}
.lh-pop[open]{animation:lh-hien .24s cubic-bezier(.22,.8,.24,1) both}
.lh-pop[open]::backdrop{animation:lh-mo .24s ease both}
/* Điện thoại: tấm trượt từ dưới lên, rộng hết màn hình */
@media (max-width:640px){
  .lh-pop{width:100%;max-width:100%;margin:auto 0 0;border-radius:18px 18px 0 0;max-height:88vh;max-height:88dvh}
  .lh-pop[open]{animation:lh-len .3s cubic-bezier(.22,.8,.24,1) both}
  .lh-dau{padding-top:20px;position:relative}
  .lh-dau::before{content:"";position:absolute;top:8px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:var(--lh-line)}
  .lh-opt{min-height:56px}
  .lh-nhieu .lh-ds,.lh-mot:not(.lh-co-tim) .lh-ds{flex:0 1 auto}
}
@media (prefers-reduced-motion:reduce){.lh-pop[open],.lh-pop[open]::backdrop{animation:none}}

/* ===== ô bấm trong form (trông như ô chọn) ===== */
.lh-chon{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:var(--lh-o-h);margin:0;padding:8px var(--lh-o-pad);
  border:1.5px solid var(--lh-o-line);border-radius:var(--lh-o-r);background:var(--lh-o-bg);color:var(--lh-o-ink);font:inherit;font-size:16px;line-height:1.35;text-align:left;cursor:pointer;
  transition:border-color .15s,box-shadow .2s}
.lh-chon:focus-visible{outline:none;border-color:var(--lh-o-focus-line);box-shadow:var(--lh-o-focus)}
.lh-chon[aria-invalid="true"]{border-color:var(--lh-o-loi)}
.lh-chon .lh-mt{flex:none;opacity:.7}
.lh-chon .lh-gt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lh-chon .lh-gt.lh-trong{color:var(--lh-o-mut)}
.lh-chon-nhieu .lh-gt{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.lh-qg .lh-gt{display:flex;align-items:baseline;gap:6px}
.lh-qg-ten{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lh-qg-cc{flex:none;font-weight:600;font-variant-numeric:tabular-nums}
/* khối liên hệ */
/* Hẹp (điện thoại): mỗi ô một hàng, đủ chỗ hiện tên nước. Từ 400px: Tên Zalo 1 hàng, Quốc gia | SĐT. Từ 560px: 3 ô 1 hàng. */
.lh-khoi{display:grid;gap:14px;grid-template-columns:minmax(0,1fr);container-type:inline-size}
.lh-hang{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
.lh-hang > *,.lh-khac > *{margin:0;min-width:0}
.lh-khac{display:grid;gap:12px;grid-template-columns:minmax(0,1fr);padding:14px;border-radius:calc(var(--lh-o-r) + 4px);background:var(--lh-o-nen,rgba(214,162,30,.08));border:1px dashed var(--lh-o-line)}
.lh-khac[hidden],.lh-khac [hidden]{display:none}
.lh-bo{justify-self:start;margin:0;padding:4px 0;border:0;background:none;color:var(--lh-o-mut);font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.lh-loi{margin:8px 0 0;font-size:14px;font-weight:600;line-height:1.45;color:var(--lh-loi)}
.lh-khoi > .lh-loi{margin-top:-6px}
.lh-loi:empty{display:none}
@container (min-width:400px){
  .lh-hang{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
  .lh-hang .lh-o-ten{grid-column:1/-1}
  .lh-hang-2{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
}
@container (min-width:560px){
  .lh-hang{grid-template-columns:minmax(0,1fr) minmax(150px,.85fr) minmax(0,1fr)}
  .lh-hang .lh-o-ten{grid-column:auto}
  .lh-hang-2{grid-template-columns:minmax(150px,.85fr) minmax(0,2fr)}
}
/* het-lien-he-css */
