/* VietSCI - popup "Tư vấn nhanh" (toàn website). Mọi lớp bắt đầu bằng .aqc để không ảnh hưởng phần khác. */
.aqc { --c-brand: #1800ad; --c-brand-2: #3b2fd1; --c-50: #f1efff; --c-ink: #16133d; --c-text: #34324d; --c-muted: #6b6a80; --c-line: #e6e4f2; --c-acc: #ff6600; --c-bad: #b42318;
	position: fixed; width: min(660px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--c-text); box-shadow: 0 30px 90px rgba(12,5,97,.32); overflow-y: auto; overflow-x: hidden; font-size: 15px; line-height: 1.5; text-align: left; }
.aqc[open] { animation: aqcIn .22s cubic-bezier(.2,.8,.3,1.1); }
.aqc::backdrop { background: rgba(22,19,61,.52); backdrop-filter: blur(3px); }
@keyframes aqcIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.aqc *, .aqc *::before, .aqc *::after { box-sizing: border-box; }
.aqc__x { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .15s; }
.aqc__x:hover { background: rgba(255,255,255,.24); }
.aqc__done ~ .aqc__x, .aqc__pane[hidden] { display: none !important; }
/* Đầu popup: dải màu thương hiệu */
.aqc__h { display: flex; align-items: flex-start; gap: 14px; padding: 26px 64px 22px 26px; background: linear-gradient(140deg, #0c0561, var(--c-brand) 60%, var(--c-brand-2)); color: #dcdaf7; }
.aqc__ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 16px; background: rgba(255,255,255,.14); color: #ffb27a; }
.aqc__h h2 { margin: 0 0 4px; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.3; }
.aqc__h p { margin: 0; font-size: 14px; }
/* Gọi, Zalo */
.aqc__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 24px 0; }
.aqc__quick a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 14px; background: #fff; color: var(--c-ink); text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.aqc__quick a:hover { border-color: var(--c-brand); background: var(--c-50); transform: translateY(-1px); }
.aqc__quick a > svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #fff1e6; color: var(--c-acc); }
.aqc__zalo { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #0068ff; color: #fff; font-size: 10.5px; font-weight: 800; }
.aqc__quick span:last-child { display: grid; min-width: 0; line-height: 1.25; }
.aqc__quick small { color: var(--c-muted); font-size: 12px; }
.aqc__quick b { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.aqc__or { display: flex; align-items: center; gap: 10px; margin: 16px 24px 0; color: var(--c-muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.aqc__or::before, .aqc__or::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
/* Biểu mẫu */
.aqc__f { display: grid; gap: 12px; padding: 14px 24px 22px; margin: 0; }
.aqc__g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.aqc__fl { display: grid; gap: 5px; min-width: 0; margin: 0; }
.aqc__fl--w { grid-column: 1 / -1; }
.aqc__fl > span { color: var(--c-ink); font-size: 13.5px; font-weight: 700; }
.aqc__fl em { color: var(--c-bad); font-style: normal; }
.aqc input[type=text], .aqc input[type=email], .aqc input[type=tel], .aqc select, .aqc textarea { width: 100%; min-height: 42px; margin: 0; padding: 9px 12px; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; color: var(--c-ink); font: inherit; font-size: 15px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.aqc textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.aqc select { appearance: none; -webkit-appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6a80' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.aqc input:focus, .aqc select:focus, .aqc textarea:focus { outline: 0; border-color: var(--c-brand); box-shadow: 0 0 0 4px rgba(24,0,173,.08); }
.aqc .is-bad input, .aqc .is-bad select, .aqc .is-bad textarea { border-color: #f3a6ae; box-shadow: 0 0 0 4px rgba(225,29,72,.08); }
.aqc__cnt { justify-self: end; color: var(--c-muted); font-size: 12px; }
.aqc__cnt.is-ok { color: #15803d; }
.aqc__ch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.aqc__ch > span { margin-right: 4px; color: var(--c-ink); font-size: 13.5px; font-weight: 700; }
.aqc__ch label { position: relative; margin: 0; cursor: pointer; }
.aqc__ch input { position: absolute; opacity: 0; pointer-events: none; }
.aqc__ch b { display: inline-flex; padding: 6px 14px; border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-text); font-size: 13.5px; font-weight: 600; transition: all .15s; }
.aqc__ch input:checked + b { border-color: var(--c-brand); background: var(--c-brand); color: #fff; }
.aqc__ch input:focus-visible + b { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.aqc__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aqc__ok { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: var(--c-muted); font-size: 13px; line-height: 1.5; cursor: pointer; }
.aqc__ok input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--c-brand); }
.aqc__ok a { color: var(--c-brand); }
.aqc__ok.is-bad span { color: var(--c-bad); }
.aqc__err { display: block; min-height: 0; color: var(--c-bad); font-size: 13.5px; font-weight: 600; }
.aqc__err:empty { display: none; }
.aqc__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 18px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #ff7a1a, #e85a00); color: #fff !important; font: inherit; font-size: 16px; font-weight: 800; text-decoration: none !important; cursor: pointer; box-shadow: 0 10px 24px rgba(232,90,0,.28); transition: transform .15s, box-shadow .15s, opacity .15s; }
.aqc__btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(232,90,0,.34); }
.aqc__btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.aqc__btn--ghost { border: 1px solid var(--c-line); background: #fff; color: var(--c-ink) !important; box-shadow: none; }
.aqc__btn--ghost:hover { border-color: var(--c-brand); box-shadow: none; }
.aqc__note { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--c-muted); font-size: 12.5px; }
.aqc__note svg { flex: none; margin-top: 3px; }
/* Gửi thành công */
.aqc__done { display: grid; justify-items: center; gap: 8px; padding: 40px 28px 28px; text-align: center; }
.aqc__done-ic { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 6px; border-radius: 50%; background: #ecfdf3; color: #15803d; box-shadow: 0 0 0 10px #f5fdf8; }
.aqc__done h2 { margin: 6px 0 0; color: var(--c-ink); font-size: 21px; font-weight: 800; }
.aqc__done p { margin: 0; }
.aqc__code { padding: 2px 10px; border-radius: 8px; background: var(--c-50); color: var(--c-brand); font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.aqc__muted { max-width: 380px; color: var(--c-muted); font-size: 14px; }
.aqc__done-a { display: grid; grid-template-columns: 1fr auto; gap: 10px; width: 100%; margin-top: 12px; }
.aqc__done-a .aqc__btn--ghost { width: auto; padding: 10px 22px; }
.aqc__done .aqc__x, .aqc:has(.aqc__done:not([hidden])) .aqc__x { border-color: var(--c-line); background: #fff; color: var(--c-muted); }
@media (max-width: 560px) {
	.aqc { left: 0; right: 0; width: auto; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
	.aqc[open] { animation-name: aqcUp; }
	@keyframes aqcUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
	.aqc__h { padding: 22px 60px 18px 18px; }
	.aqc__quick { padding: 14px 16px 0; gap: 8px; }
	.aqc__or { margin: 14px 16px 0; }
	.aqc__f { padding: 12px 16px 18px; }
	.aqc__g { grid-template-columns: 1fr; }
	.aqc__done-a { grid-template-columns: 1fr; }
	.aqc__done-a .aqc__btn--ghost { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .aqc[open] { animation: none; } }
/* Bản rộng hơn: chừa lề thoáng hơn cho các ô nhập. */
@media (min-width: 561px) {
	.aqc__h { padding: 28px 70px 24px 30px; }
	.aqc__quick { padding: 20px 30px 0; gap: 12px; }
	.aqc__or { margin: 18px 30px 0; }
	.aqc__f { padding: 16px 30px 26px; }
	.aqc__g { gap: 12px 16px; }
}
