/* Tách từ templates/base.html — giữ nguyên thứ tự cascade qua <link> tại vị trí cũ. */
/* Kính trung tính cho các thành phần dùng chung */
html body{
 --vlb-glass-ink:#25313b;
 --vlb-glass-surface:linear-gradient(
  145deg,
  rgba(255,255,255,.68),
  rgba(236,243,248,.32)
 );
 --vlb-glass-edge:1px solid rgba(255,255,255,.66);
 --vlb-glass-shadow:
  inset 0 1px 0 rgba(255,255,255,.8),
  0 4px 16px rgba(24,39,52,.07);
}

html body :is(
 .site-header,
 .mobile-menu,
 .test-drive-modal,
 .vlb-quote-modal,
 .vlb-fixed-actions,
 .site-lead-success
){
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

/* Nền kính header: đã chuyển sang static/css/vlb-ui.css (.site-header::before). */
html body .site-header{transform:none!important;filter:none!important}

html body .desktop-nav{
 gap:clamp(3px,.55vw,10px);
}

html body .desktop-nav>a,
html body .nav-dropdown-trigger{
 color:var(--vlb-glass-ink)!important;
 font-size:12px;
 font-weight:500;
 letter-spacing:0;
 line-height:1.35;
 border-radius:999px;
}

html body .nav-dropdown-menu{
 background:linear-gradient(
  145deg,
  rgba(249,252,255,.88),
  rgba(235,243,249,.80)
 )!important;
 border:var(--vlb-glass-edge)!important;
 border-radius:18px!important;
 backdrop-filter:blur(14px)!important;
 -webkit-backdrop-filter:blur(14px)!important;
 box-shadow:
  inset 0 1px 0 #ffffffb3,
  0 12px 30px #172a3b12!important;
}

html body .desktop-nav>a[aria-current="page"],
html body .nav-dropdown-trigger[aria-expanded="true"]{
 background:#ffffff80!important;
}

/* Nút kính */
html body :is(
 .header-cta,
 .header-installment-cta,
 .mobile-installment-cta,
 .mobile-calculator-cta,
 .mobile-test-drive-cta,
 .vlb-fixed-action,
 .vlb-fixed-social a
),
html body #header-open-test-drive-modal.header-cta{
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 gap:8px;
 color:var(--vlb-glass-ink)!important;
 -webkit-text-fill-color:currentColor!important;
 background:var(--vlb-glass-surface)!important;
 border:var(--vlb-glass-edge)!important;
 border-radius:999px!important;
 box-shadow:var(--vlb-glass-shadow)!important;
 backdrop-filter:blur(10px)!important;
 -webkit-backdrop-filter:blur(10px)!important;
 text-shadow:none!important;
 font-weight:500!important;
 letter-spacing:0!important;
 text-decoration:none!important;
 box-sizing:border-box!important;
 -webkit-tap-highlight-color:transparent;
 touch-action:manipulation;
 transition:
  background .2s ease,
  box-shadow .2s ease,
  transform .2s ease!important;
}

html body .desktop-nav :is(.header-cta,.header-installment-cta),
html body #header-open-test-drive-modal.header-cta{
 flex:0 0 auto!important;
 min-width:0!important;
 width:auto!important;
 height:38px!important;
 min-height:38px!important;
 padding:0 13px!important;
 font-size:12px!important;
 line-height:1.3!important;
 white-space:nowrap;
}

html body :is(.header-cta,.vlb-fixed-action)::before,
html body :is(.header-cta,.vlb-fixed-action)::after,
html body #header-open-test-drive-modal.header-cta::before,
html body #header-open-test-drive-modal.header-cta::after{
 content:none!important;
 display:none!important;
 animation:none!important;
}

/* Thanh liên hệ */
html body .vlb-fixed-actions{
 left:0!important;
 right:0!important;
 bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;
 width:min(520px,calc(100% - 28px))!important;
 max-width:none!important;
 margin:0 auto!important;
 padding:0!important;
 transform:none!important;
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px!important;
 background:none!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
}

html body .vlb-fixed-actions::after{
 content:none!important;
}

html body .vlb-fixed-actions>.vlb-fixed-action{
 width:100%!important;
 min-width:0!important;
 height:46px!important;
 min-height:46px!important;
 padding:11px 12px!important;
 font-size:13px!important;
 line-height:1.3!important;
}

html body .vlb-fixed-social{
 position:fixed!important;
 left:auto!important;
 right:14px!important;
 bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;
 display:flex!important;
 flex-direction:column;
 gap:8px!important;
}

html body .vlb-fixed-social a{
 width:44px!important;
 height:44px!important;
 min-height:44px!important;
 padding:0!important;
 border-radius:50%!important;
 animation:none!important;
}

html body .vlb-fixed-social img{
 filter:none!important;
}

html body #vlb-scroll-top{
 left:14px!important;
 bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;
 width:44px;
 height:44px;
 transform:none!important;
 color:#435767;
 border:var(--vlb-glass-edge);
 background:var(--vlb-glass-surface);
 box-shadow:var(--vlb-glass-shadow);
}

html body #vlb-scroll-top svg{
 animation:none!important;
}

/* Popup: giữ nguyên form và cơ chế mở/đóng */
html body :is(.test-drive-modal,.vlb-quote-modal){
 padding:16px!important;
}

html body :is(.test-drive-modal-backdrop,.vlb-quote-backdrop){
 background:rgba(19,30,41,.28)!important;
 backdrop-filter:blur(4px)!important;
 -webkit-backdrop-filter:blur(4px)!important;
}

html body :is(
 .test-drive-modal-dialog,
 .vlb-quote-dialog,
 .site-lead-success-box
){
 width:min(460px,100%)!important;
 max-height:calc(100dvh - 32px)!important;
 background:linear-gradient(
  145deg,
  rgba(248,252,255,.90),
  rgba(232,241,248,.79)
 )!important;
 border:var(--vlb-glass-edge)!important;
 border-radius:24px!important;
 box-shadow:
  inset 0 1px 0 #ffffffcc,
  0 18px 50px #17253426!important;
 backdrop-filter:blur(16px)!important;
 -webkit-backdrop-filter:blur(16px)!important;
 overflow-y:auto!important;
 overscroll-behavior:contain;
 transform:none!important;
}

html body :is(.test-drive-modal-hero,.vlb-quote-hero){
 height:120px!important;
}

html body :is(.test-drive-modal-hero,.vlb-quote-hero)>img{
 width:100%!important;
 height:100%!important;
 object-fit:cover!important;
}

html body :is(
 .test-drive-modal-hero-overlay,
 .vlb-quote-hero-overlay
){
 left:18px!important;
 right:58px!important;
 bottom:14px!important;
 gap:5px!important;
 text-align:left!important;
}

html body :is(
 .test-drive-modal-hero-overlay,
 .vlb-quote-hero-overlay
) strong{
 font-size:18px!important;
 font-weight:550!important;
 line-height:1.25!important;
 white-space:normal!important;
}

html body :is(
 .test-drive-modal-hero-overlay,
 .vlb-quote-hero-overlay
) span{
 font-size:11px!important;
 line-height:1.45!important;
}

html body :is(.test-drive-modal-body,.vlb-quote-body){
 padding:18px 20px 22px!important;
}

html body :is(.test-drive-modal-body,.vlb-quote-body) h2{
 color:var(--vlb-glass-ink)!important;
 font-size:21px!important;
 font-weight:550!important;
 line-height:1.3!important;
 letter-spacing:-.02em;
 margin:0 0 14px!important;
}

html body :is(.test-drive-modal-form,.vlb-quote-form){
 display:grid;
 gap:10px;
}

html body :is(.test-drive-modal-field,.vlb-quote-field){
 min-height:46px!important;
 padding:0 11px!important;
 border:1px solid #acbfce66!important;
 border-radius:12px!important;
 background:#ffffff40!important;
 box-shadow:inset 0 1px 0 #ffffff8c;
}

html body :is(
 .test-drive-modal-field,
 .vlb-quote-field
):focus-within{
 border-color:#6e8a9ca6!important;
 box-shadow:0 0 0 3px #6e8a9c1a;
}

html body :is(
 .test-drive-modal-field,
 .vlb-quote-field
) :is(input:not([type="checkbox"]),select,textarea),
html body .vlb-quote-car-picker{
 min-width:0!important;
 min-height:44px!important;
 height:auto!important;
 font-size:16px!important;
 line-height:1.4!important;
 background:transparent!important;
 color:var(--vlb-glass-ink)!important;
}

html body :is(
 .test-drive-modal-field,
 .vlb-quote-field
) textarea{
 min-height:60px!important;
 padding:10px 0!important;
}

html body :is(.test-drive-modal-icon,.vlb-quote-icon){
 width:28px!important;
 height:28px!important;
 flex-basis:28px!important;
 color:#627a8a!important;
}

html body :is(.test-drive-modal-icon,.vlb-quote-icon) svg{
 width:20px!important;
 height:20px!important;
}

html body .vlb-quote-car-options{
 left:0!important;
 max-height:180px!important;
 border:var(--vlb-glass-edge)!important;
 border-radius:14px!important;
 background:#f1f6fbf5!important;
 box-shadow:0 10px 25px #2033421a!important;
}

html body .vlb-quote-car-options button{
 min-height:44px;
 font-size:14px;
 background:transparent;
}

html body :is(.test-drive-modal-consent,.vlb-quote-consent){
 margin:3px 0 5px!important;
 gap:8px!important;
 font-size:11px!important;
 line-height:1.5!important;
}

html body :is(.test-drive-modal-close,.vlb-quote-close){
 width:44px!important;
 height:44px!important;
 top:9px!important;
 right:9px!important;
 border:var(--vlb-glass-edge)!important;
 border-radius:50%!important;
 background:#f4f9fbc9!important;
 color:var(--vlb-glass-ink)!important;
 font-size:27px!important;
 line-height:40px!important;
 box-shadow:var(--vlb-glass-shadow);
}

/* Nút gửi form: kính nổi đồng bộ nút bên ngoài, kích thước gọn */
html body #test-drive-modal .test-drive-modal-submit,
html body #vlb-quote-modal .vlb-quote-submit{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 gap:6px;
 box-sizing:border-box!important;
 width:min(100%,210px)!important;
 min-height:44px!important;
 height:auto!important;
 margin:0 auto!important;
 padding:10px 16px!important;
 border:var(--vlb-glass-edge)!important;
 border-radius:999px!important;
 background:var(--vlb-glass-surface)!important;
 color:var(--vlb-glass-ink)!important;
 -webkit-text-fill-color:currentColor!important;
 font-family:inherit!important;
 font-size:12px!important;
 line-height:1.4!important;
 font-weight:550!important;
 letter-spacing:0!important;
 text-shadow:none!important;
 box-shadow:var(--vlb-glass-shadow)!important;
 backdrop-filter:blur(10px)!important;
 -webkit-backdrop-filter:blur(10px)!important;
 cursor:pointer;
 transition:background .2s ease,box-shadow .2s ease,transform .2s ease!important;
}
html body #test-drive-modal .test-drive-modal-submit span,
html body #vlb-quote-modal .vlb-quote-submit span{
 margin:0!important;
 font-size:18px!important;
 line-height:1!important;
}

/* Nút xác nhận gửi thành công */
html body .site-lead-success-ok{
 width:100%!important;
 min-height:46px!important;
 height:auto!important;
 padding:12px 18px!important;
 border:1px solid #ffffff70!important;
 border-radius:999px!important;
 background:linear-gradient(145deg,#303b44,#18232c)!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 font-size:13px!important;
 line-height:1.4!important;
 font-weight:550!important;
 box-shadow:
  inset 0 1px 0 #ffffff26,
  0 4px 12px #1324301a!important;
 transition:
  transform .2s ease,
  box-shadow .2s ease,
  filter .2s ease;
}

html body :is(
 .test-drive-modal-submit,
 .vlb-quote-submit
):disabled{
 opacity:.6;
 cursor:wait;
}

html body :is(
 .site-header,
 .mobile-menu,
 .test-drive-modal,
 .vlb-quote-modal,
 .vlb-fixed-actions,
 .vlb-fixed-social
) :is(a,button):focus-visible{
 outline:2px solid #527487!important;
 outline-offset:3px!important;
}

@media(min-width:961px){
 html body .site-header .header-inner{
  gap:12px;
  height:50px!important;
  min-height:50px!important;
   max-height:50px!important;
 }
 html body .desktop-nav{
  min-width:0;
 }
}

/* Menu mobile */
@media(max-width:960px){
 html body #mobile-menu.mobile-menu{
  top:8px!important;
  right:8px!important;
  bottom:8px!important;

  width:75vw!important;
  min-width:0!important;
  max-width:75vw!important;
  height:calc(100dvh - 16px)!important;

  display:flex!important;
  flex-direction:column;
  overflow:hidden!important;
  box-sizing:border-box;

  border:var(--vlb-glass-edge)!important;
  border-radius:24px!important;

  /* Trong hơn, vẫn giữ độ mờ của kính */
  background:linear-gradient(
   145deg,
   rgba(247,251,254,.62),
   rgba(230,240,247,.46)
  )!important;

  backdrop-filter:blur(28px) saturate(120%)!important;
  -webkit-backdrop-filter:blur(28px) saturate(120%)!important;

  box-shadow:
   inset 0 1px 0 #ffffffb3,
   -10px 0 35px #2032401a!important;
 }

 html body .mobile-menu-overlay{
  background:#182c3e38!important;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
 }

 /* Hàng logo và nút X không cuộn */
 html body #mobile-menu .mobile-menu-header{
  position:relative;
  z-index:2;
  flex:0 0 56px!important;
  height:56px!important;
  min-height:56px!important;

  background:rgba(246,250,253,.35)!important;
  border-bottom:1px solid #ffffff66;
 }

 /* Chỉ nội dung phía dưới được cuộn */
 html body #mobile-menu .mobile-menu-content{
  flex:1 1 auto;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;

  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
 }

 html body .mobile-menu-button,
 html body #mobile-menu .mobile-menu-close{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  max-width:none!important;
  max-height:none!important;

  padding:10px!important;
  border:var(--vlb-glass-edge)!important;
  border-radius:50%!important;
  background:var(--vlb-glass-surface)!important;
  box-shadow:var(--vlb-glass-shadow)!important;
 }

 /* Vòng X nhỏ lại, vùng chạm vẫn đủ lớn */
 html body #mobile-menu .mobile-menu-close{
  position:relative;
  isolation:isolate;
  flex:0 0 44px;

  display:grid!important;
  place-items:center;

  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;

  font-size:23px!important;
  font-weight:400!important;
  line-height:1!important;
  color:var(--vlb-glass-ink)!important;
 }

 html body #mobile-menu .mobile-menu-close::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:5px;
  box-sizing:border-box;

  border:1px solid #ffffffa6;
  border-radius:50%;
  background:rgba(255,255,255,.38);

  box-shadow:
   inset 0 1px 0 #ffffffb3,
   0 2px 7px #2032400a;

  pointer-events:none;
 }

 html body #mobile-menu :is(
  .mobile-main-link,
  .mobile-menu-trigger
 ){
  min-height:44px!important;
  color:var(--vlb-glass-ink)!important;
  border-radius:12px!important;
 }

 html body #mobile-menu :is(
  .mobile-installment-cta,
  .mobile-calculator-cta,
  .mobile-test-drive-cta
 ){
  min-height:44px!important;
  height:auto!important;
  padding:11px 13px!important;
  font-size:13px!important;
 }

 html body #mobile-menu .mobile-submenu{
  background:#ffffff29!important;
 }

 html body.mobile-menu-lock :is(
  .vlb-fixed-actions,
  .vlb-fixed-social,
  #vlb-scroll-top
 ){
  visibility:hidden!important;
  pointer-events:none!important;
 }
}

@media(max-width:640px){
 html body .site-header .header-inner{
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  padding-top:0!important;
  padding-bottom:0!important;
 }

 html body .site-header .site-logo{
  max-height:42px!important;
 }

 html body>main{
  padding-top:42px!important;
 }

 html body>main main{
  padding-top:0!important;
 }

 html body .site-header .mobile-menu-button{
  position:relative;
  isolation:isolate;
  align-self:center;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
 }

 html body .site-header .mobile-menu-button span{
  display:block;
  width:16px!important;
  height:1.5px!important;
  margin:0!important;
  flex:0 0 1.5px;
  border-radius:2px;
  background:var(--vlb-glass-ink)!important;
 }

 /* Giữ Zalo và Call xếp dọc */
 html body .vlb-fixed-social{
  flex-direction:column;
 }

 /* Giữ mũi tên lên đầu trang ở giữa */
 html body #vlb-scroll-top{
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
 }

 html body{
  padding-bottom:calc(
   76px + env(safe-area-inset-bottom,0px)
  );
 }

 html body :is(
  .test-drive-modal-body,
  .vlb-quote-body
 ){
  padding:16px!important;
 }
}

/* Hover chỉ dành cho chuột */
@media(hover:hover) and (pointer:fine){
 html body .desktop-nav>a:hover,
 html body .nav-dropdown-trigger:hover{
  background:#ffffff73!important;
  color:var(--vlb-glass-ink)!important;
 }

 html body :is(
  .header-cta,
  .header-installment-cta,
  .vlb-fixed-action,
  .vlb-fixed-social a
 ):hover,
 html body #header-open-test-drive-modal.header-cta:hover{
  background:linear-gradient(
   145deg,
   #ffffffe0,
   #ecf4f9a6
  )!important;
  box-shadow:
   inset 0 1px 0 #fff,
   0 5px 18px #20384a12!important;
 }

 html body :is(
  .test-drive-modal-submit,
  .vlb-quote-submit
 ):hover{
  background:linear-gradient(145deg,#ffffffe0,#ecf4f9a6)!important;
  box-shadow:inset 0 1px 0 #fff,0 5px 18px #20384a12!important;
 }
}

html body :is(
 .header-cta,
 .header-installment-cta,
 .mobile-installment-cta,
 .mobile-calculator-cta,
 .mobile-test-drive-cta,
 .vlb-fixed-action,
 .vlb-fixed-social a,
 .test-drive-modal-submit,
 .vlb-quote-submit
):active,
html body #header-open-test-drive-modal.header-cta:active{
 transform:scale(.98)!important;
 box-shadow:inset 0 1px 3px #172b381a!important;
}

/* Trình duyệt không hỗ trợ backdrop-filter */
@supports not (
 (backdrop-filter:blur(1px)) or
 (-webkit-backdrop-filter:blur(1px))
){
 html body .site-header::before{
  background:#f1f5f9f2;
 }

 html body #mobile-menu.mobile-menu,
 html body :is(
  .test-drive-modal-dialog,
  .vlb-quote-dialog,
  .site-lead-success-box
 ){
  background:#f1f6fbf5!important;
 }
}

/* Giảm chuyển động theo cài đặt thiết bị */
@media(prefers-reduced-motion:reduce){
 html body :is(
  .site-header,
  .mobile-menu,
  .mobile-menu-overlay,
  .test-drive-modal,
  .vlb-quote-modal,
  .vlb-fixed-actions,
  .vlb-fixed-social
 ),
 html body :is(
  .site-header,
  .mobile-menu,
  .test-drive-modal,
  .vlb-quote-modal,
  .vlb-fixed-actions,
  .vlb-fixed-social
 ) *{
  transition:none!important;
  animation:none!important;
 }
}

/* Giữ bố cục thông tin doanh nghiệp */
html body #mobile-menu .vlb-menu-company{
 display:block!important;
 position:relative!important;
 margin:16px 0 0!important;
 padding:12px 0 calc(16px + env(safe-area-inset-bottom,0px))!important;
 border:0!important;
 border-top:1px solid rgba(0,82,156,.13)!important;
 border-radius:0!important;
 background:none!important;
 box-shadow:none!important;
 font-size:11px!important;
 line-height:1.5!important;
 color:#242a32!important;
 text-align:left!important;
 flex-shrink:0!important;
}

html body #mobile-menu .vlb-menu-company h3{
 margin:0 0 5px!important;
 font-size:13px!important;
 line-height:1.4!important;
 font-weight:750!important;
 color:#111!important;
}

html body #mobile-menu .vlb-menu-company p{
 margin:0 0 5px!important;
 font-size:inherit!important;
 line-height:inherit!important;
}

html body #mobile-menu .vlb-menu-company dl{
 margin:9px 0!important;
}

html body #mobile-menu .vlb-menu-company dl div{
 display:block!important;
 margin:0 0 5px!important;
}

html body #mobile-menu .vlb-menu-company dt,
html body #mobile-menu .vlb-menu-company dd{
 display:inline!important;
 margin:0!important;
 padding:0!important;
 font-size:inherit!important;
 line-height:inherit!important;
 overflow-wrap:anywhere;
}

html body #mobile-menu .vlb-menu-company dt{
 font-weight:650!important;
}

html body #mobile-menu .vlb-menu-company a{
 display:inline!important;
 padding:0!important;
 color:#00529c!important;
 text-decoration:none!important;
 font-size:inherit!important;
}

html body #mobile-menu .vlb-menu-company .vlb-menu-company-note{
 margin-top:8px!important;
 color:#525b65!important;
}

/* Giữ icon mạng xã hội */
html body #mobile-menu .vlb-menu-company .vlb-menu-brand-row{
 display:flex!important;
 align-items:center!important;
 gap:12px!important;
 margin:0 0 8px!important;
 flex-wrap:wrap;
}

html body #mobile-menu .vlb-menu-company .vlb-menu-brand-row h3{
 margin:0!important;
}

html body #mobile-menu .vlb-menu-company .vlb-menu-social{
 display:flex!important;
 align-items:center!important;
 gap:9px!important;
}

html body #mobile-menu .vlb-menu-company .vlb-menu-social a{
 display:inline-flex!important;
 position:relative!important;
 align-items:center!important;
 justify-content:center!important;
 flex:0 0 32px!important;
 width:32px!important;
 height:32px!important;
 min-height:0!important;
 padding:0!important;
 margin:0!important;
 border:0!important;
 border-radius:7px!important;
 overflow:hidden!important;
 background:transparent!important;
 box-shadow:none!important;
 line-height:1!important;
}

html body #mobile-menu .vlb-menu-company .vlb-menu-social svg{
 display:block!important;
 width:32px!important;
 height:32px!important;
 min-width:32px!important;
 max-width:32px!important;
 object-fit:contain!important;
 flex:none!important;
}



html body #mobile-menu .vlb-menu-company .vlb-menu-social a:focus-visible{
 outline:2px solid #00529c;
 outline-offset:3px;
}
