/* Button Contact PRO v22 - popup Báo giá. Chỉ nạp khi có nút Báo giá đang hiện (nguyên tắc phích cắm). */
/* ===== v22: popup Báo giá (màu chính qua biến --lq) ===== */
#g-email-pop { --lq: #1c5c05; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; padding: 16px; box-sizing: border-box; }
#g-email-pop *, #g-email-pop *::before, #g-email-pop *::after { box-sizing: border-box; }
.lq-box { display: grid; grid-template-columns: 40% 60%; width: 100%; max-width: 820px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.3); text-align: left; animation: lq-in .25s ease-out; }
@keyframes lq-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.lq-side { position: relative; overflow: hidden; padding: 30px 26px; color: #fff; background: var(--lq); background-image: linear-gradient(165deg, rgba(255,255,255,.14), rgba(0,0,0,.18)); }
.lq-side::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.07); }
.lq-logo { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.16); margin-bottom: 14px; }
.lq-logo svg { width: 38px; height: 38px; }
.lq-hd h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; color: #fff; }
.lq-hd p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.88); }
.lq-list { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.lq-list li { display: flex; gap: 9px; align-items: center; padding: 6px 0; margin: 0; }
.lq-list b { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 11px; }
.lq-hot { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 18px 10px 10px; border-radius: 999px; background: #fff; color: var(--lq) !important; text-decoration: none !important; }
.lq-hot svg { width: 36px; height: 36px; flex: 0 0 36px; animation: g-shake-strong 2.4s infinite; }
.lq-hot small { display: block; font-size: 12px; color: #64748b; }
.lq-hot b { font-size: 19px; }
.lq-main { position: relative; padding: 26px 28px 22px; }
.lq-x { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f5f9; color: #475569; font-size: 16px; cursor: pointer; line-height: 34px; padding: 0; }
.lq-x:hover { background: #e2e8f0; }
.lq-main h4 { margin: 0 0 14px; font-size: 17px; color: #0f172a; }
.lq-f { display: block; margin: 0 0 12px; }
.lq-f > span { display: block; margin: 0 0 5px 14px; font-size: 12.5px; font-weight: 700; color: #374151; }
.lq-f em { color: #dc2626; font-style: normal; }
/* id + !important: thắng CSS ô nhập của theme (Flatsome đặt bo góc 0, bóng trong) */
#g-email-pop .lq-f input, #g-email-pop .lq-f textarea { -webkit-appearance: none; appearance: none; font-family: inherit !important; line-height: 1.4 !important; width: 100% !important; max-width: none !important; height: 48px !important; min-height: 0 !important; margin: 0 !important; padding: 0 20px !important; border: 1.5px solid #d6dbe1 !important; border-radius: 999px !important; background: #fff !important; font-size: 15px !important; font-weight: 500; color: #0f172a !important; box-shadow: none !important; transition: border-color .15s, box-shadow .15s; }
#g-email-pop .lq-f textarea { height: 88px !important; padding: 13px 20px !important; border-radius: 24px !important; resize: vertical; }
#g-email-pop .lq-f input:focus, #g-email-pop .lq-f textarea:focus { outline: 0 !important; border-color: var(--lq) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lq) 18%, transparent) !important; }
#g-email-pop .lq-f input.lq-bad { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.12) !important; }
#g-email-pop #lq_product { background: #f6faf3 !important; }
.lq-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; }
.lq-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border: 0; border-radius: 999px; background: var(--lq); background-image: linear-gradient(135deg, rgba(255,255,255,.18), rgba(0,0,0,.12)); color: #fff !important; font-size: 15px; font-weight: 800; letter-spacing: .3px; cursor: pointer; text-decoration: none !important; box-shadow: 0 10px 22px color-mix(in srgb, var(--lq) 35%, transparent); }
.lq-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); animation: lb-shine 3s infinite; }
.lq-btn[disabled] { opacity: .75; cursor: wait; }
.lq-status { margin-top: 10px; font-size: 13.5px; font-weight: 600; text-align: center; }
.lq-note { margin: 8px 0 0; font-size: 12px; color: #6b7280; text-align: center; }
.lq-done { text-align: center; padding: 30px 6px 10px; }
.lq-ok { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 50%; background: color-mix(in srgb, var(--lq) 14%, #fff); color: var(--lq); font-size: 34px; font-weight: 800; }
.lq-done h4 { margin: 0 0 6px; font-size: 19px; }
.lq-done p { margin: 0 0 18px; color: #64748b; font-size: 14px; }
.lq-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lq-acts .lq-btn { height: 46px; font-size: 14px; }
.lq-zalo { background: #0068ff !important; box-shadow: none !important; }
.lq-grab { display: none; }
@media (max-width: 767px) {
  #g-email-pop { align-items: flex-end; padding: 0; }
  .lq-box { grid-template-columns: 1fr; max-height: 92vh; border-radius: 22px 22px 0 0; animation: lq-up .28s ease-out; }
  @keyframes lq-up { from { transform: translateY(100%); } to { transform: none; } }
  .lq-side { display: flex; align-items: center; gap: 12px; padding: 20px 18px 14px; }
  .lq-grab { display: block; position: absolute; top: 7px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(255,255,255,.6); }
  .lq-logo { width: 42px; height: 42px; margin: 0; flex: 0 0 42px; } .lq-logo svg { width: 32px; height: 32px; }
  .lq-hd { flex: 1; } .lq-hd h3 { font-size: 17px; margin: 0; } .lq-hd p { display: none; }
  .lq-list, .lq-hot, .lq-side::after { display: none; }
  .lq-main { padding: 16px 18px 20px; }
  .lq-main h4 { display: none; }
  .lq-x { top: -46px; right: 14px; background: rgba(255,255,255,.2); color: #fff; }
  .lq-2 { grid-template-columns: 1fr; gap: 0; }
  #g-email-pop .lq-f input, #g-email-pop .lq-f textarea { font-size: 16px !important; }
}
html.lq-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .lq-box, .lq-btn::after, .lq-hot svg { animation: none !important; } }
/* Ô bẫy chống spam: người không thấy, máy gửi tự động hay điền vào */
#g-email-pop .lq-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; }
