/* NTC Media – nút Tư vấn nhanh (dùng chung cho mọi trang).
   Sửa ở đây là tất cả các trang cùng thay đổi. */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&display=swap');
.cw{--head:'Bricolage Grotesque','Be Vietnam Pro',system-ui,sans-serif;--body:'Be Vietnam Pro',system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.4;color:#fff;text-align:left;letter-spacing:normal;-webkit-font-smoothing:antialiased}
.cw *,.cw *::before,.cw *::after{box-sizing:border-box}
.cw a{color:inherit;text-decoration:none}
.cw button{font-family:inherit}
/* ===== NÚT LIÊN HỆ GỘP KIỂU AI ===== */
.cw{position:fixed;right:max(18px,env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:60;display:flex;flex-direction:column;align-items:flex-end;gap:12px;font-family:var(--body)}
.cw-panel{width:min(300px,calc(100vw - 36px));background:#0f0d2bf2;border:1px solid #ffffff2e;border-radius:22px;padding:16px;box-shadow:0 30px 60px -20px #000,0 0 0 1px #6c4bff22;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transform-origin:100% 100%;opacity:0;visibility:hidden;transform:translateY(10px) scale(.96);transition:opacity .25s,transform .25s,visibility .25s}
.cw.open .cw-panel{opacity:1;visibility:visible;transform:none}
.cw-head{display:flex;gap:12px;align-items:center;padding-bottom:14px;margin-bottom:8px;border-bottom:1px solid #ffffff1f}
.cw-av{width:42px;height:42px;border-radius:14px;flex:none;display:grid;place-items:center;background:linear-gradient(140deg,#6c4bff,#27e0d0)}
.cw-av svg{width:22px;height:22px;fill:#fff}
.cw-head b{display:block;font:700 .98rem/1.2 var(--head)}
.cw-head small{display:flex;align-items:center;gap:6px;font-size:.76rem;opacity:.8;margin-top:3px}
.cw-head small i{width:7px;height:7px;border-radius:50%;background:#35f0b4;box-shadow:0 0 0 3px #35f0b433}
.cw-row{display:flex;align-items:center;gap:12px;padding:10px;border-radius:14px;transition:background .2s}
.cw-row:hover{background:#ffffff14}
.cw-ic{width:40px;height:40px;border-radius:12px;flex:none;display:grid;place-items:center;color:#fff;font:800 12px/1 Arial,sans-serif}
.cw-ic.z{background:#0068ff}
.cw-ic.t{background:#12b76a}
.cw-ic svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cw-row b{display:block;font-size:.92rem;line-height:1.25}
.cw-row small{font-size:.78rem;opacity:.7}
.cw-row .ch{margin-left:auto;width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.5}
.cw-btn{position:relative;isolation:isolate;display:flex;align-items:center;gap:10px;height:56px;padding:0 22px 0 16px;border-radius:999px;border:0;cursor:pointer;color:#fff;font:600 .95rem var(--body);background:linear-gradient(120deg,#6c4bff,#27c9c2);box-shadow:0 14px 30px -10px #6c4bffcc,inset 0 1px 0 #ffffff55;transition:transform .2s}
.cw-btn:hover{transform:translateY(-2px)}
.cw-btn::before{content:"";position:absolute;inset:0;border-radius:inherit;background:inherit;z-index:-1;opacity:.45;animation:cwPulse 2.2s ease-out infinite}
.cw.open .cw-btn::before{animation:none;opacity:0}
@keyframes cwPulse{from{transform:scale(1);opacity:.45}to{transform:scale(1.3,1.5);opacity:0}}
.cw-btn svg{width:22px;height:22px;flex:none}
.cw-btn .i-x{display:none;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round}
.cw-btn .i-ai{fill:#fff}
.cw.open .cw-btn .i-x{display:block}
.cw.open .cw-btn .i-ai{display:none}
.cw-btn{position:relative}
.cw-badge{position:absolute;top:-4px;right:-2px;min-width:20px;height:20px;border-radius:10px;background:#ff4d6a;color:#fff;font:700 11px/20px Arial,sans-serif;text-align:center;padding:0 5px;display:none;box-shadow:0 0 0 2px #0f0d2b}
.cw-badge.on{display:block}
.cw-ic.c{background:linear-gradient(140deg,#6c4bff,#27e0d0)}
button.cw-row{width:100%;text-align:left;background:none;border:0;color:inherit;font:inherit;cursor:pointer}
.cw-chat{display:none;flex-direction:column}
.cw.chat .cw-chat{display:flex}
.cw.chat .cw-row{display:none}
.cw.chat .cw-panel{width:min(360px,calc(100vw - 36px))}
.cw-bar{display:flex;align-items:center;gap:8px;margin:4px 0 8px}
.cw-back{width:32px;height:32px;border-radius:10px;border:1px solid #ffffff2e;background:#ffffff12;color:#fff;cursor:pointer;display:grid;place-items:center;flex:none}
.cw-back svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cw-bar b{font-size:.9rem}
.cw-msgs{height:min(300px,45vh);overflow-y:auto;display:flex;flex-direction:column;gap:7px;padding:4px 2px 8px;overscroll-behavior:contain}
.cw-m{max-width:82%;padding:8px 12px;border-radius:14px;font-size:.88rem;line-height:1.4;white-space:pre-wrap;word-break:break-word}
.cw-m small{display:block;font-size:.66rem;opacity:.6;margin-top:2px}
.cw-m.a{align-self:flex-start;background:#ffffff1a;border-bottom-left-radius:4px}
.cw-m.v{align-self:flex-end;background:linear-gradient(120deg,#6c4bff,#27c9c2);border-bottom-right-radius:4px}
.cw-hi{align-self:center;text-align:center;font-size:.8rem;opacity:.7;padding:18px 10px}
.cw-err{color:#ff8fa3;font-size:.78rem;min-height:1em;padding:0 2px}
.cw-form{display:flex;flex-direction:column;gap:8px;border-top:1px solid #ffffff1f;padding-top:10px}
.cw-form input,.cw-form textarea{width:100%;box-sizing:border-box;border:1px solid #ffffff2e;background:#ffffff12;color:#fff;border-radius:12px;padding:10px 12px;font:inherit;font-size:.9rem}
.cw-form input::placeholder,.cw-form textarea::placeholder{color:#ffffff80}
.cw-form input:focus,.cw-form textarea:focus{outline:2px solid #6c4bff;outline-offset:0}
.cw-send-r{display:flex;gap:8px;align-items:flex-end}
.cw-send-r textarea{resize:none;height:42px;max-height:100px}
.cw-send{height:42px;padding:0 16px;border-radius:12px;border:0;cursor:pointer;color:#fff;font:600 .88rem var(--body);background:linear-gradient(120deg,#6c4bff,#27c9c2);flex:none}
.cw-send:disabled{opacity:.5;cursor:default}
.cw-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
@media (max-width:900px){.cw-form input,.cw-form textarea{font-size:16px}}
/* --- chat kịch bản (bot) --- */
.cw.bot .cw-form{display:none}
.cw.bot .cw-menu{display:none}
.cw-menu{display:flex;align-self:flex-start;margin:0 0 8px;padding:6px 12px;border-radius:999px;border:1px solid #ffffff33;background:#ffffff12;color:#fff;font:600 .78rem var(--body);cursor:pointer}
.cw-menu:hover{background:#ffffff22}
.cw.chat.bot .cw-msgs{height:min(380px,52vh)}
.cw-opts{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:2px 0 4px}
.cw-chip{max-width:92%;text-align:left;padding:8px 14px;border-radius:14px;border:1px solid #6c4bff99;background:#6c4bff22;color:#fff;font:600 .84rem/1.3 var(--body);cursor:pointer;text-decoration:none;transition:background .15s,transform .15s}
.cw-chip:hover{background:#6c4bff55;transform:translateX(2px)}
.cw-chip.alt{border-color:#ffffff33;background:#ffffff0f;font-weight:500}
.cw-m.q{max-width:92%;padding:12px 14px}
.cw-q-n{font-size:.78rem;opacity:.75}
.cw-q-p{font:800 1.45rem/1.2 var(--head);margin:2px 0 8px;background:linear-gradient(120deg,#b9a6ff,#27e0d0);-webkit-background-clip:text;background-clip:text;color:transparent}
.cw-q-p small{font:500 .78rem var(--body);opacity:.8;margin-left:6px;color:#fff;-webkit-text-fill-color:#fff}
.cw-q ul{margin:0 0 8px;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}
.cw-q li{position:relative;padding-left:18px;font-size:.82rem;line-height:1.35}
.cw-q li::before{content:"";position:absolute;left:2px;top:.42em;width:8px;height:5px;border-left:2px solid #35f0b4;border-bottom:2px solid #35f0b4;transform:rotate(-45deg)}
.cw-q-note{font-size:.72rem;opacity:.6}
.cw-lead{align-self:stretch;display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;background:#ffffff12;border:1px solid #ffffff22}
.cw-lead input{width:100%;box-sizing:border-box;border:1px solid #ffffff2e;background:#ffffff12;color:#fff;border-radius:12px;padding:10px 12px;font:inherit;font-size:.9rem}
.cw-lead input::placeholder{color:#ffffff80}
.cw-lead input:focus{outline:2px solid #6c4bff;outline-offset:0}
.cw-lead .cw-err{padding:0}
.cw-ty{opacity:.7;letter-spacing:2px}
@media (max-width:900px){.cw-lead input{font-size:16px}}

/* ===== CHAT ĐẸP HƠN + HIỆU ỨNG ===== */
@keyframes cwGlow{from{transform:translate(0,0) scale(1);opacity:.7}to{transform:translate(-30px,40px) scale(1.25);opacity:1}}
@keyframes cwPop{from{opacity:0;transform:translateY(12px) scale(.92)}to{opacity:1;transform:none}}
@keyframes cwChip{from{opacity:0;transform:translateX(-14px) scale(.96)}to{opacity:1;transform:none}}
@keyframes cwDot{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-6px);opacity:1}}
@keyframes cwLive{0%{box-shadow:0 0 0 0 #35f0b499}100%{box-shadow:0 0 0 8px #35f0b400}}
@keyframes cwRing{0%,100%{box-shadow:0 0 0 0 #6c4bff66,0 8px 20px -8px #6c4bff}50%{box-shadow:0 0 0 7px #6c4bff00,0 8px 24px -6px #27e0d0}}

.cw-panel{position:relative;overflow:hidden;background:linear-gradient(180deg,#18144ef0,#0c0a26f7);border:1px solid #ffffff26;border-radius:26px;box-shadow:0 40px 80px -24px #000,0 0 60px -22px #6c4bffaa,inset 0 1px 0 #ffffff22;transform:translateY(18px) scale(.92);transition:opacity .3s,transform .45s cubic-bezier(.34,1.56,.64,1),visibility .3s}
.cw-panel::before{content:"";position:absolute;top:-90px;right:-70px;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,#6c4bff66,transparent 65%);pointer-events:none;animation:cwGlow 6s ease-in-out infinite alternate}
.cw-panel::after{content:"";position:absolute;bottom:-100px;left:-80px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,#27e0d033,transparent 65%);pointer-events:none}
.cw-panel>*{position:relative;z-index:1}

.cw-av{animation:cwRing 2.8s ease-in-out infinite}
.cw-head small i{animation:cwLive 1.8s ease-out infinite}
.cw-row{transition:background .2s,transform .2s}
.cw-row:hover{background:#ffffff1c;transform:translateX(3px)}
.cw-row:hover .ch{opacity:1;transform:translateX(3px)}
.cw-row .ch{transition:opacity .2s,transform .2s}
.cw-btn{transition:transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .25s}
.cw-btn:hover{transform:translateY(-3px) scale(1.04);box-shadow:0 18px 36px -10px #6c4bffee,inset 0 1px 0 #ffffff66}
.cw-btn:active{transform:scale(.96)}

.cw-bar{padding-bottom:10px;border-bottom:1px solid #ffffff14}
.cw-back{transition:background .2s,transform .2s}
.cw-back:hover{background:#ffffff26;transform:translateX(-2px)}

.cw-msgs{gap:10px;padding:8px 4px 10px;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#ffffff33 transparent}
.cw-msgs::-webkit-scrollbar{width:5px}
.cw-msgs::-webkit-scrollbar-thumb{background:#ffffff33;border-radius:10px}
.cw-m{animation:cwPop .38s cubic-bezier(.34,1.56,.64,1) both;padding:10px 14px;border-radius:18px;font-size:.88rem;line-height:1.45}
.cw-m.a{background:linear-gradient(180deg,#ffffff22,#ffffff12);border:1px solid #ffffff1f;border-bottom-left-radius:5px;box-shadow:0 8px 18px -12px #000}
.cw-m.v{background:linear-gradient(120deg,#6c4bff,#27c9c2);border-bottom-right-radius:5px;box-shadow:0 10px 22px -10px #6c4bffcc,inset 0 1px 0 #ffffff44}
.cw-m small{opacity:.55;text-align:right}
.cw-hi{animation:cwPop .5s ease both;background:#ffffff0f;border:1px dashed #ffffff26;border-radius:16px;opacity:.85}

.cw-ty{display:flex;align-items:center;gap:5px;width:fit-content;padding:13px 16px;opacity:1;letter-spacing:0}
.cw-ty i{width:7px;height:7px;border-radius:50%;background:linear-gradient(140deg,#b9a6ff,#27e0d0);animation:cwDot 1.2s ease-in-out infinite}
.cw-ty i:nth-child(2){animation-delay:.15s}
.cw-ty i:nth-child(3){animation-delay:.3s}

.cw-opts{gap:8px;margin:4px 0 6px}
.cw-chip{position:relative;overflow:hidden;padding:10px 16px;border-radius:16px;border:1px solid #8f78ff88;background:linear-gradient(120deg,#6c4bff30,#27c9c218);box-shadow:0 8px 18px -12px #6c4bff;animation:cwChip .45s cubic-bezier(.34,1.56,.64,1) both;transition:transform .2s,background .2s,box-shadow .2s,border-color .2s}
.cw-opts .cw-chip:nth-child(1){animation-delay:.05s}
.cw-opts .cw-chip:nth-child(2){animation-delay:.13s}
.cw-opts .cw-chip:nth-child(3){animation-delay:.21s}
.cw-opts .cw-chip:nth-child(4){animation-delay:.29s}
.cw-opts .cw-chip:nth-child(5){animation-delay:.37s}
.cw-chip::after{content:"";position:absolute;top:0;left:-70%;width:50%;height:100%;background:linear-gradient(100deg,transparent,#ffffff44,transparent);transform:skewX(-20deg);transition:left .55s}
.cw-chip:hover{background:linear-gradient(120deg,#6c4bff66,#27c9c244);border-color:#27e0d0aa;box-shadow:0 12px 24px -10px #6c4bffdd;transform:translateX(4px)}
.cw-chip:hover::after{left:130%}
.cw-chip:active{transform:scale(.97)}
.cw-chip.alt{border-color:#ffffff33;background:#ffffff0f;box-shadow:none}
.cw-chip.alt:hover{background:#ffffff22;border-color:#ffffff66}
.cw-menu{transition:background .2s,transform .2s}
.cw-menu:hover{transform:translateX(-2px)}

.cw-m.q{border-color:#8f78ff55;box-shadow:0 14px 30px -16px #6c4bff}
.cw-q-p{font-size:1.6rem;filter:drop-shadow(0 4px 12px #6c4bff55)}
.cw-lead{animation:cwPop .4s ease both;border-radius:18px;background:linear-gradient(180deg,#ffffff18,#ffffff0c)}

.cw-form input,.cw-form textarea,.cw-lead input{border-radius:14px;transition:border-color .2s,box-shadow .2s,background .2s}
.cw-form input:focus,.cw-form textarea:focus,.cw-lead input:focus{outline:0;border-color:#8f78ff;background:#ffffff1a;box-shadow:0 0 0 3px #6c4bff44,0 0 20px -6px #6c4bff}
.cw-send{border-radius:14px;box-shadow:0 10px 20px -10px #6c4bffcc;transition:transform .2s,box-shadow .2s}
.cw-send:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 14px 24px -10px #6c4bff}
.cw-send:active:not(:disabled){transform:scale(.95)}

@media (prefers-reduced-motion:reduce){
  .cw-panel::before,.cw-av,.cw-head small i,.cw-m,.cw-chip,.cw-hi,.cw-lead,.cw-ty i{animation:none!important}
}
