/* ==========================================================================
 * VinFast HCMC - Tùy Biến Giao Diện Riêng (Tương thích VinhXD Ô tô)
 * ========================================================================== */

/* 1. Giữ bo góc cho các nút trong Hero trang xe (tránh bị Elementor Kit reset border-radius: 0) */
body .vxg-hero .vxg-sws .vxg-sw { border-radius: 50%; }
body .vxg-hero .vxg-vers .vxg-ver { border-radius: 14px; }
body .vxg-hero .vxg-ocs .vxg-oc { border-radius: 10px; }
body .vxg-hero .vxg-cta .vxg-btn { border-radius: 999px; }
body .vxg-hero .vxg-rgs .vxg-rg { border-radius: 999px; }

/* 2. Khung "Giá sau ưu đãi" (Kính mờ): nhãn + badge tiết kiệm hàng 1, giá căn trái gọn gàng ở hàng 2 */
body .vxg-hero .vxg-a-card .vxg-band {
  flex-wrap: wrap;
  gap: 6px 10px;
}
body .vxg-hero .vxg-a-card .vxg-band-l {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: .88em;
}
body .vxg-hero .vxg-a-card .vxg-net {
  margin-left: 0;
  width: 100%;
  text-align: left;
  font-size: 1.75em;
}

/* 3. Desktop: giữ các dòng khuyến mãi nằm gọn trên 1 hàng */
@media (min-width: 1025px) {
  body .vxg-hero .vxg-ogrp {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  body .vxg-hero .vxg-ocs.is-rows .vxg-oc {
    font-size: .8em;
    padding: 5px 10px;
    min-height: 34px;
    white-space: nowrap;
  }
  body .vxg-hero .vxg-ocs.is-rows .vxg-oc span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 4. Bỏ hộp địa chỉ cuối trong form báo giá */
.vxq-q-info > div,
.vxq-ct-addr {
  display: none !important;
}

/* Giữ bo góc cho nút Gửi yêu cầu ở form báo giá */
body .vxq-form button[type="submit"],
body .vxq-btn-main {
  border-radius: 999px;
}

/* 5. Thanh đếm ngược Cọc Tiên Phong ngay trong thẻ giá Hero */
.vhcmc-cd-bar {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 100, 244, 0.08), rgba(14, 138, 79, 0.1));
  border: 1px solid rgba(20, 100, 244, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  font-size: .86em;
}
.vhcmc-cd-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #0f172a;
  font-weight: 600;
}
.vhcmc-cd-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #dc2626;
  background: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.vhcmc-cd-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #1464f4;
  color: #fff;
  border: 0;
  font: inherit;
  font-size: .92em;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, background-color .15s;
}
.vhcmc-cd-cta:hover { background: #0e3a7a; transform: translateY(-1px); }

/* 6. Popup tự động Style "Kính" (Glassmorphism) */
.vhcmc-pop-wrap {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.48);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.vhcmc-pop-wrap.is-open {
  opacity: 1;
  visibility: visible;
}
.vhcmc-pop-box {
  position: relative;
  width: 100%;
  max-width: 470px;
  padding: 28px 26px 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(158, 194, 242, .45) 0, transparent 48%),
    radial-gradient(circle at 8% 92%, rgba(184, 227, 220, .42) 0, transparent 45%),
    rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px -12px rgba(14, 58, 122, 0.35);
  color: #0f172a;
  transform: translateY(14px) scale(.98);
  transition: transform .25s ease;
}
.vhcmc-pop-wrap.is-open .vhcmc-pop-box {
  transform: translateY(0) scale(1);
}
.vhcmc-pop-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: #334155;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vhcmc-pop-close:hover { background: #0f172a; color: #fff; }
.vhcmc-pop-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dce8f6;
  color: #0e3a7a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.vhcmc-pop-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #0e3a7a;
}
.vhcmc-pop-hl {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
}
.vhcmc-pop-cd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #0e2447;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.vhcmc-pop-cd strong {
  margin-left: auto;
  font-size: 16px;
  font-weight: 800;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}
.vhcmc-pop-desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}
.vhcmc-pop-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vhcmc-pop-form input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 14px;
  color: #0f172a;
}
.vhcmc-pop-form input:focus {
  outline: 2px solid #1464f4;
  border-color: transparent;
}
.vhcmc-pop-submit {
  width: 100%;
  height: 46px;
  border-radius: 999px !important;
  border: 0;
  background: linear-gradient(135deg, #1464f4, #0e3a7a);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.vhcmc-pop-submit:hover { filter: brightness(1.08); }
.vhcmc-pop-msg {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.vhcmc-pop-msg.is-err { color: #dc2626; }
.vhcmc-pop-msg.is-ok { color: #15803d; padding: 12px; background: #dcfce7; border-radius: 12px; }

/* 10. Nút phụ bên dưới tiêu đề xe (VD: Xem thêm VF6 2025) */
.vhcmc-sub-btn-wrap {
  display: inline-flex;
  margin-top: 10px;
  margin-bottom: 6px;
}
.vhcmc-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  color: #0b3a82;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid rgba(11, 58, 130, 0.25);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(11, 58, 130, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.vhcmc-sub-btn:hover {
  background: #0b3a82;
  color: #ffffff;
  border-color: #0b3a82;
  box-shadow: 0 4px 12px rgba(11, 58, 130, 0.22);
  transform: translateY(-1px);
}
.vhcmc-sub-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}
.vhcmc-sub-btn:hover svg {
  transform: translateX(2px);
}
@media (max-width: 767px) {
  .vhcmc-sub-btn-wrap {
    margin-top: 8px;
    margin-bottom: 12px;
  }
  .vhcmc-sub-btn {
    font-size: 12.5px;
    padding: 5px 12px;
  }
}
