/* Reset css */
p {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}
ul {
    margin: 0;
    padding-inline-start: 20px;

    strong {
        color: #ff0000;
    }
}
/* Car Grid Styles */
.vinfast-car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.vinfast-car-item {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vinfast-car-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.vinfast-car-item .car-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px;
}
.vinfast-car-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vinfast-car-item .car-title {
    font-size: 1.2rem;
    margin: 15px 0 10px;
    font-weight: 700;
}
.vinfast-car-item .car-title a {
    color: #1a1a1a;
    text-decoration: none;
}
.vinfast-car-item .car-price {
    color: #005a9c; /* Vinfast Blue */
    font-weight: bold;
    font-size: 1.1rem;
}

/* Calculator Styles */
.vinfast-price-calculator {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #ddd;
}
.vinfast-price-calculator h2 {
    margin-top: 0;
    color: #005a9c;
    text-align: center;
}
.vfc-form-group {
    margin-bottom: 15px;
}
.vfc-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.vfc-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.vfc-result-area {
    margin-top: 25px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid #005a9c;
}
.vfc-result-area p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}
.vfc-result-area h3 {
    margin: 15px 0 0;
    display: flex;
    justify-content: space-between;
    color: #d9232d; /* Red for emphasis */
}

/* Nav Menu Styles */
.vinfast-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}
.vinfast-nav-menu li {
    position: relative;
}
.vinfast-nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
}

.vfc-submenu-toggle {
    margin-left: 5px;
    font-size: 14px;
}

.vinfast-nav-menu li a:hover {
    color: #005a9c;
}

/* Khoảng cách cho icon mũi tên có sẵn */
.vinfast-nav-menu li a > svg,
.vinfast-nav-menu li a > i,
.vinfast-nav-menu li a > .sub-arrow {
    margin-left: 6px;
    vertical-align: middle;
}

.vinfast-nav-menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    list-style: none;
    padding: 10px 0;
    z-index: 999;
}
.vinfast-nav-menu li:hover > ul.sub-menu {
    display: block;
}
.vinfast-nav-menu li ul.sub-menu li a {
    padding: 5px 10px;
    font-weight: 400;
    font-size: 15px;
    color: #555;
    text-align: left; /* Prevent inheriting center alignment */
    border-bottom: 1px solid #f5f5f5;
}
.vinfast-nav-menu li ul.sub-menu li:last-child a {
    border-bottom: none;
}
.vinfast-nav-menu li ul.sub-menu li a:hover {
    background: #f8f9fa;
    color: #A020F0;
    padding-left: 25px; /* Slight indent on hover */
}

/* Mobile Menu Toggle */
.vfc-menu-toggle {
    display: none;
    background: transparent;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    padding: 10px 0;
    gap: 6px;
}
.vfc-menu-toggle:hover, .vfc-menu-toggle:focus, .vfc-menu-toggle:active {
    background: transparent !important;
    box-shadow: none !important;
}
.vfc-menu-toggle .vfc-bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.vfc-menu-toggle:hover .vfc-bar {
    background-color: #A020F0; /* Đổi màu vạch khi hover giống Aimaker */
}
.vfc-menu-header-mobile {
    display: none;
    text-align: right;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}
.vfc-menu-close {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}
.vfc-menu-close:hover, .vfc-menu-close:focus, .vfc-menu-close:active {
    background: transparent !important;
    box-shadow: none !important;
    color: #A020F0; /* Tím Aimaker */
}

@media (max-width: 1200px) {
    .vfc-menu-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 6px;
        position: relative;
        z-index: 999;
    }
    .vfc-menu-toggle .vfc-bar {
        background-color: #111;
        width: 30px;
        height: 2px;
        border-radius: 2px;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* Hamburger to X Animation */
    .vfc-menu-toggle.active .vfc-bar-top {
        transform: translateY(8px) rotate(45deg);
    }
    .vfc-menu-toggle.active .vfc-bar-mid {
        opacity: 0;
    }
    .vfc-menu-toggle.active .vfc-bar-bot {
        transform: translateY(-8px) rotate(-45deg);
    }

    .vfc-menu-overlay {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 100%; /* Tràn viền như Aimaker */
        height: 100vh;
        background: #fff;
        z-index: 99999;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    .vfc-menu-overlay.menu-open {
        left: 0; /* Slide in from left */
    }
    .vfc-menu-header-mobile {
        display: block;
        padding: 20px 20px 0;
        background: #fff;
        border-bottom: none;
    }
    .vfc-menu-close {
        display: block;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        font-size: 24px;
        cursor: pointer;
        color: #111;
    }
    .vfc-menu-close:hover, .vfc-menu-close:focus, .vfc-menu-close:active {
        background: transparent !important;
        box-shadow: none !important;
        color: #A020F0;
    }
    .vfc-mobile-search {
        background: #f4f5f7;
        border-radius: 8px;
        padding: 5px 15px;
        display: flex;
        align-items: center;
        margin-bottom: 20px;
    }
    .vfc-mobile-search .search-form {
        display: flex;
        width: 100%;
        align-items: center;
    }
    .vfc-mobile-search .search-field {
        background: transparent;
        border: none;
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
        color: #333;
        outline: none;
    }
    .vfc-mobile-search .search-submit {
        background: transparent;
        border: none;
        color: #666;
        cursor: pointer;
        font-size: 18px;
    }

    .vinfast-nav-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px 40px;
        width: 100%;
    }
    .vinfast-nav-menu li {
        width: 100%;
        border-bottom: 1px solid #ebebeb; /* Line mờ */
    }
    .vinfast-nav-menu li a {
        padding: 10px 0;
        font-size: 17px;
        font-weight: 600; /* Chữ đậm */
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #0b1c39;
    }
    .vinfast-nav-menu li.current-menu-item > a {
        color: #A020F0; /* Màu tím Aimaker */
    }
    .vfc-submenu-toggle {
        background-color: #f4f5f7;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        font-size: 14px;
        color: #111;
        transition: transform 0.3s;
    }
    .vinfast-nav-menu li.submenu-open > a > .vfc-submenu-toggle {
        transform: rotate(180deg);
    }
    .vinfast-nav-menu li a:hover {
        background: transparent;
        color: #A020F0;
    }
    .vinfast-nav-menu li:hover > ul.sub-menu {
        display: none; /* Vô hiệu hóa hover trên mobile, để JS (click) tự xử lý inline style */
    }
    .vinfast-nav-menu li ul.sub-menu {
        position: relative;
        box-shadow: none;
        padding-left: 0;
        background: transparent;
        display: none; /* Managed by JS slideToggle */
        border: none;
    }
    .vinfast-nav-menu li ul.sub-menu li {
        border-bottom: 1px solid #f2f2f2;
    }
    .vinfast-nav-menu li ul.sub-menu li:last-child {
        border-bottom: none;
    }
    .vinfast-nav-menu li ul.sub-menu li a {
        padding: 15px 15px;
        font-size: 15px;
        font-weight: 500;
        color: #555;
    }
    .vinfast-nav-menu li ul.sub-menu li a > .vfc-submenu-toggle {
        display: none !important; /* Không hiện caret ở sub-menu cấp 2 nếu không cần */
    }
}

/* Installment Calculator Pro */
.vfc-installment-calculator-pro {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    font-family: inherit;
}
.vfc-inst-notice {
    background: #f4f7fb;
    border-left: 4px solid #1464f4;
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
}
.vfc-inst-title {
    color: #005a9c;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 18px;
    border-bottom: 2px solid #005a9c;
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 25px;
}
.vfc-inst-form-group {
    margin-bottom: 20px;
}
.vfc-inst-form-group label {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}
.vfc-inst-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}
.vfc-inst-select {
    width: 100%;
    border: none;
    padding: 8px 16px;
    font-size: 15px;
    color: #333;
    outline: none;
    border: 1px solid #333;
    box-sizing: border-box;
    background: transparent;
}
.vfc-input-suffix {
    padding: 0 15px;
    color: #555;
    font-size: 15px;
    white-space: nowrap;
}
.vfc-inst-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.vfc-inst-result-box {
    padding: 14px 16px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.vfc-box-gray {
    background: #f4f5f7;
}
.vfc-box-blue {
    background: #eef4fc;
    border: 1px solid #d4e3f8;
}
.vfc-box-red {
    background: #fcf1f1;
    border: 1px solid #f8d3d3;
}
.vfc-inst-result-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}
.vfc-inst-result-value {
    font-size: 18px;
    font-weight: bold;
    color: #005a9c;
}
.vfc-inst-result-value.highlight-red {
    color: #d9232d;
}
.vfc-inst-result-value.highlight-blue {
    color: #005a9c;
}
.vfc-inst-action {
    text-align: center;
}
.vfc-inst-btn {
    background: #1464f4;
    color: #fff;
    border: none;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s;
}
.vfc-inst-btn:hover {
    background: #0d4bc0;
}
@media(max-width: 768px) {
    .vfc-inst-results-grid {
        grid-template-columns: 1fr;
    }
}
.vfc-inst-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: right;
    overflow: hidden;
    border-radius: 12px;
}
.vfc-inst-details-table th {
    background: #1464f4;
    color: #fff;
    padding: 12px 10px;
    font-weight: bold;
    text-align: center;
    border: none;
}
.vfc-inst-details-table td {
    padding: 10px;
    border: none;
    color: #333;
}
.vfc-inst-details-table tbody tr:nth-child(even) td {
    background-color: #f5f6f8;
}
.vfc-inst-details-table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}
.vfc-inst-details-table td:first-child {
    text-align: center;
}

/* Specs Table Styling */
.vfc-specs-table table, table.vfc-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #444;
    font-family: inherit;
    margin-bottom: 20px;
}
.vfc-specs-table th, table.vfc-specs-table th,
.vfc-specs-table td, table.vfc-specs-table td {
    border: 1px solid #d9d9d9;
    padding: 10px 15px;
    text-align: left;
    vertical-align: middle;
}
.vfc-specs-table tr td:last-child, 
table.vfc-specs-table tr td:last-child,
.vfc-specs-table tr th:last-child, 
table.vfc-specs-table tr th:last-child {
    text-align: right;
}
.vfc-specs-table thead th,
table.vfc-specs-table thead th {
    background-color: hsla(0,0%,50.2%,.0705882353);
    font-weight: bold;
    color: #333;
}
.vfc-specs-table tbody tr.group-header td,
table.vfc-specs-table tbody tr.group-header td {
    background-color: hsla(0,0%,50.2%,.0705882353);
    font-weight: bold;
    color: #333;
    text-align: left !important;
}
.vfc-specs-table tbody td {
    background-color: #fff;
}

/* VFC Sticky (Pro Features for Free) */
.vfc-sticky-yes {
    position: -webkit-sticky !important;
    position: sticky !important;
    align-self: flex-start;
}
.vfc-site-header.vfc-sticky-yes {
    top: 0;
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Back to Top Button */
.vfc-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 31px;
    height: 35px;
    background-color: #4242427d;
    color: #fff;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}
.vfc-back-to-top:hover {
    background-color: #0d4bc0;
    color: #fff;
    transform: translateY(0);
}
.vfc-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
@media (max-width: 768px) {
    .vfc-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Color Visualizer */
.vfc-color-visualizer {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.vfc-cv-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}
.vfc-cv-controls {
    margin-top: 20px;
}
#vfc-cv-color-label {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}
.vfc-cv-swatches {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.vfc-cv-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid transparent;
    transition: transform 0.2s, border 0.2s;
}
.vfc-cv-swatch.active {
    border: 2px solid #005a9c;
    transform: scale(1.2);
}

/* Specs Table */
.vfc-car-specs-wrapper {
    position: relative;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    overflow: hidden;
}
.vfc-car-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.vfc-car-specs-table td {
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
}
.vfc-car-specs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.vfc-car-specs-table .spec-name {
    color: #666;
    width: 40%;
}
.vfc-car-specs-table .spec-value {
    color: #111;
}
.vfc-car-specs-wrapper.has-read-more {
    max-height: 250px;
}
.vfc-car-specs-wrapper.has-read-more.expanded {
    max-height: none;
}
.vfc-specs-read-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 80%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15px;
}
.expanded .vfc-specs-read-more-overlay {
    position: relative;
    height: auto;
    background: none;
    padding-top: 15px;
}
.vfc-btn-read-more {
    background: none;
    border: none;
    color: #005a9c;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}
.vfc-btn-read-more:hover {
    text-decoration: underline;
}

/* Car Promos Widget */
.vfc-car-promos-wrapper {
    font-family: inherit;
}
.vfc-cp-version-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 12px;
}

.vfc-cp-version-box:last-of-type{
    margin-bottom: 25px;
}
.vfc-cp-version-name {
    font-size: 16px;
    color: #333;
}
.vfc-cp-version-price {
    font-size: 18px;
    font-weight: bold;
    color: #d9232d; /* Màu đỏ Vinfast */
}
.vfc-cp-promos-fieldset {
    border: 1px solid #e56338; /* Màu cam */
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}
.vfc-cp-promos-legend {
    color: #e56338;
    font-weight: bold;
    font-size: 15px;
    padding: 0 10px;
    width: auto;
    border: none;
    margin-bottom: 0;
}
.vfc-cp-promos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vfc-cp-promo-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.vfc-cp-promo-item.checked {
    background-color: #fff7ed;
}
input[type="checkbox"].vfc-cp-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #ea580c;
    cursor: pointer;
    flex-shrink: 0;
}
.vfc-cp-promo-text {
    font-size: 15px;
    font-weight: 500;
    color: #222;
}
.vfc-cp-promo-badge {
    background: #ffe5e5;
    color: #d9232d;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 5px;
    font-weight: bold;
}

/* Popup Báo Giá */
.vfc-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vfc-popup-modal {
    background: #fff;
    width: 480px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: vfc-popup-fade 0.3s ease;
    overflow: visible;
}
@keyframes vfc-popup-fade {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.vfc-popup-header {
    background: #1464f4;
    color: #fff;
    padding: 25px 20px 25px 90px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    position: relative;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #d9232d;
}
.vfc-popup-header-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 90px;
    color: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    border-top-left-radius: 8px;
}
.vfc-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 35px;
    height: 35px;
    background: #e63946;
    color: #fff;
    border-radius: 50%;
    line-height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 19px;
}

.vfc-popup-body {
    padding: 40px;
}
input.vfc-popup-input,select.vfc-popup-input {
    width: 100%;
    padding: 14px 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}
input.vfc-popup-input:focus,select.vfc-popup-input:focus {
    border-color: #1464f4;
}
.vfc-popup-label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}
.vfc-popup-submit {
    width: 100%;
    padding: 10px;
    background: #1464f4;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
}
.vfc-popup-submit:hover {
    background: #0d4bc0;
}

/* Price Calculator Pro Styles */
.vinfast-price-calculator-pro {
    font-family: inherit;
}

 .vinfast-price-calculator-pro.layout-1{
       border: 1px solid #e1e4e8;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    text-align: left;
 }
.vfc-calc-title {
    margin-top: 0;
    color: #005a9c;
    text-align: left;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 2px solid #005a9c;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.vfc-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.vfc-calc-label {
    flex: 0 0 100px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}
.vfc-calc-select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #d0d8e4;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 14px;
    outline: none;
    color: #2d2d2d;
}
.vfc-promos-container {
    margin: 25px 0;
}
.vfc-promos-fieldset {
    border: 1px solid #e56338;
    border-radius: 8px;
    padding: 15px 20px 5px 20px;
    background: #fff;
    margin: 0;
}
.vfc-promos-legend {
    color: #e56338;
    font-weight: bold;
    font-size: 15px;
    padding: 0 10px;
    width: auto;
    border: none;
    margin-bottom: 0;
}
.vfc-calc-notice {
    font-size: 13px;
    font-style: italic;
    color: #888;
    margin-bottom: 15px;
}
.vfc-calc-table {
    width: 100%;
    border-collapse: collapse;
}
.vfc-calc-table td {
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    background-color: transparent;
    color: #555;
    border: none;
}
.vfc-row-gray td {
    background-color: #8080801a !important;
}
.vfc-calc-table .vfc-col-right {
    text-align: right;
    font-weight: 600;
    color: #222;
}
.vfc-calc-table tfoot td {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #005a9c;
    border-top: 2px solid #005a9c;
}
.vfc-row-discount-total td {
    color: #d9232d;
    font-size: 16px;
    border-top: none !important;
}
.vfc-row-final-total td {
    background: #d9232d;
    border: none !important;
    padding: 10px 0;
}
.vfc-total-label {
    color: #005a9c !important;
    font-size: 16px !important;
}
.vfc-total-value {
    color: #d9232d !important;
    font-size: 18px !important;
}
.vfc-total-discount-label {
    color: #d9232d !important;
    font-size: 16px !important;
}
.vfc-total-discount-value {
    color: #d9232d !important;
    font-size: 18px !important;
    font-weight: bold;
}
.vfc-final-total-label {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: bold;
}
.vfc-final-total-value {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: bold;
}

/* Calculator Custom Promo Styles */
.vfc-calc-promos-fieldset {
    border: 1px solid #e56338;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    margin: 0;
}
.vfc-calc-promos-legend {
    color: #e56338;
    font-weight: bold;
    font-size: 13px;
    padding: 0 10px;
    width: auto;
    border: none;
    margin-bottom: 0;
}
.vfc-calc-promos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vfc-calc-promos-list li {
    margin-bottom: 10px;
}
.vfc-calc-promo-item {
    display: flex;
    align-items: center;
    border: 1px solid #e56338;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fffdfc;
    cursor: pointer;
}
input[type="checkbox"].vfc-calc-promo-check {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #e56338;
    border-radius: 4px;
    margin-right: 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
    outline: none;
    flex-shrink: 0;
}
input[type="checkbox"].vfc-calc-promo-check:checked {
    background: #e56338;
}
input[type="checkbox"].vfc-calc-promo-check:checked::after {
    content: '\2713';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}
.vfc-calc-promo-text {
    margin-right: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #1f365c;
}
.vfc-calc-promo-badge {
    background: #ffe5e5;
    color: #d9232d;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: bold;
}

/* Car List Widget */
.vfc-car-list-wrapper {
    display: grid;
    gap: 20px 30px;
}
.vfc-car-list-wrapper.vfc-cols-1 { grid-template-columns: 1fr; }
.vfc-car-list-wrapper.vfc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vfc-car-list-wrapper.vfc-cols-3 { grid-template-columns: repeat(3, 1fr); }

.vfc-car-list-item {
    display: flex;
    align-items: center;
    font-size: 16px;
}
.vfc-car-list-item i {
    margin-right: 10px;
    font-size: 14px;
    line-height: 1;
}
.vfc-car-list-item a {
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.2s;
}
.vfc-car-list-item a:hover {
    color: #005a9c;
}
@media (max-width: 768px) {
    .vfc-car-list-wrapper {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}

/* Car Price Table Widget */
.vfc-cpt-container {
    font-family: inherit;
}
.vfc-cpt-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed #ccc;
    padding: 30px 0;
}
.vfc-cpt-col-left {
    flex: 1;
    min-width: 250px;
    text-align: center;
}
.vfc-cpt-col-left a {
    text-decoration: none;
}
.vfc-cpt-col-left img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    display: block;
    margin: 0 auto;
}
.vfc-cpt-car-title {
    font-weight: 500;
    font-size: 16px;
    transition: opacity 0.3s;
    display: block;
}
.vfc-cpt-car-title:hover {
    opacity: 0.8;
}

.vfc-cpt-col-mid {
    flex: 2;
    min-width: 300px;
    padding: 0 30px;
}
.vfc-cpt-versions-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #80808080;
    margin-block-end: 0;
    font-size: 14px;
}
.vfc-cpt-td-name {
    padding: 8px 15px;
    border: 1px solid #80808080;
    background: #fdfdfd;
    width: 60%;
    color: #444;
}
.vfc-cpt-td-price {
    padding: 8px 15px;
    border: 1px solid #80808080;
    text-align: right;
    background: #fdfdfd;
    font-weight: 500;
    color: #222;
}
.vfc-cpt-no-price {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin: 0;
}

.vfc-cpt-col-right {
    flex: 0.5;
    min-width: 180px;
    text-align: center;
}
.vfc-cpt-btn {
    font-family: inherit;
    display: inline-block;
    padding: 8px 18px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: opacity 0.3s;
    text-transform: uppercase;
}
.vfc-cpt-btn i {
    margin-right: 8px;
}
.vfc-cpt-btn:hover {
    opacity: 0.8;
    color: #fff;
}

@media(max-width: 768px) {
    .vfc-cpt-row {
        flex-direction: column;
    }
    .vfc-cpt-col-left, .vfc-cpt-col-mid, .vfc-cpt-col-right {
        width: 100%;
        flex: none !important;
        padding: 10px 0 !important;
    }
}

/* Share Buttons Widget */
.vfc-share-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}
.vfc-share-container.vfc-align-left {
    justify-content: flex-start;
}
.vfc-share-container.vfc-align-center {
    justify-content: center;
}
.vfc-share-container.vfc-align-right {
    justify-content: flex-end;
}
.vfc-share-label {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-right: 5px;
}
.vfc-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.3s;
}
.vfc-share-btn:hover {
    opacity: 0.85;
}
.vfc-share-btn i {
    margin-right: 6px;
    font-size: 14px;
}
.vfc-btn-fb {
    background-color: #1877F2;
}

/* Related Posts Widget */
.vfc-related-posts-widget {
    font-family: inherit;
}
.vfc-rp-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 20px 0;
    padding-left: 10px;
    border-left: 3px solid #d9232d;
    line-height: 1.2;
}
.vfc-rp-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vfc-rp-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.vfc-rp-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.vfc-rp-item a {
    display: flex;
    text-decoration: none;
    align-items: flex-start;
    gap: 15px;
}
.vfc-rp-thumb {
    width: 90px;
    flex-shrink: 0;
}
.vfc-rp-thumb img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.vfc-rp-content {
    flex: 1;
}
.vfc-rp-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin: 0 0 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}
.vfc-rp-item a:hover .vfc-rp-post-title {
    color: #1464f4;
}
.vfc-rp-date {
    font-size: 12px;
    color: #999;
}

/* Post Grid Widget */
.vfc-post-grid {
    display: grid;
    gap: 20px;
    font-family: inherit;
}

.vfc-pg-item {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
}
.vfc-pg-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}
.vfc-pg-thumb {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}
.vfc-pg-item:hover .vfc-pg-thumb {
    transform: scale(1.05);
}
.vfc-pg-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 15px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.vfc-pg-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vfc-pg-excerpt {
    color: #ddd;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media(max-width: 768px) {
    .vfc-pg-item { aspect-ratio: 4 / 3; }
}
.vfc-btn-zalo {
    background-color: #0068FF;
}

/* Consult Form Widget */
.vfc-consult-form {
    font-family: inherit;
    margin: 0;
}
.vfc-consult-input {
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}
.vfc-consult-submit {
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    border: none;
    transition: opacity 0.3s;
    color: #fff;
}
.vfc-consult-submit:hover {
    opacity: 0.85;
}
.vfc-msg-wrap {
    width: 100%;
}

/* Layout 1: Horizontal */
.vfc-consult-form.layout-1 {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.vfc-consult-form.layout-1 .vfc-consult-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: none;
    border-radius: 2px;
}
.vfc-consult-form.layout-1 .vfc-consult-submit {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border-radius: 2px;
    text-transform: uppercase;
}
.vfc-consult-form.layout-1 .vfc-msg-wrap {
    flex-basis: 100%;
    text-align: center;
}

/* Layout 2: Vertical */
.vfc-consult-form.layout-2 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.vfc-consult-form.layout-2 .vfc-consult-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    color: #555;
}
.vfc-consult-form.layout-2 .vfc-consult-input::placeholder {
    color: #888;
}
.vfc-consult-form.layout-2 .vfc-consult-submit {
    align-self: flex-start;
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 15px;
}

/* Mega Menu Xe Vinfast */
.vfc-has-mega-menu {
    position: static !important; /* Reset position để submenu có thể bám vào mép của toàn bộ menu */
}
.vfc-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    min-width: 1160px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
    padding: 30px;
    border-top: 2px solid #1464f4;
    cursor: default;
    box-sizing: border-box;
}
@media (max-width: 1600px) {
    .vfc-mega-menu {
        min-width: auto;
    }
}
/* Hiển thị khi hover vào thẻ li cha */
.vfc-has-mega-menu:hover > .vfc-mega-menu {
    display: block;
}

.vfc-mega-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    max-width: 1200px; /* Giới hạn độ rộng để không bị quá to trên màn hình rộng */
    margin: 0 auto;
}
.vfc-mega-item {
    text-align: center;
    text-decoration: none !important;
    display: block;
    transition: transform 0.3s;
    background: #fff;
}
.vfc-mega-item:hover {
    transform: translateY(-5px);
}
.vfc-mega-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}
.vfc-mega-item h4 {
    font-size: 15px;
    color: #1464f4;
    margin: 0 0 5px 0;
    font-weight: 700;
}
.vfc-mega-price {
    color: #d9232d;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive */
@media(max-width: 1024px) {
    .vfc-mega-grid { grid-template-columns: repeat(4, 1fr); }
}
@media(max-width: 768px) {
    .vfc-has-mega-menu { position: relative !important; }
    .vfc-mega-menu { 
        position: relative; 
        top: 0; 
        border-top: none; 
        box-shadow: none; 
        padding: 10px 0; 
        display: none; 
    }
    .vfc-has-mega-menu:hover > .vfc-mega-menu,
    .vfc-has-mega-menu:active > .vfc-mega-menu,
    .vfc-has-mega-menu:focus-within > .vfc-mega-menu {
        display: block;
    }
    .vfc-mega-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.vfc-consult-form.layout-2 .vfc-msg-wrap {
    text-align: left;
}

/* Price Calculator Layout 2 */
.vinfast-price-calculator-pro.layout-2 .vfc-calc-l2-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.vinfast-price-calculator-pro.layout-2 .vfc-calc-l2-left {
    flex: 0 0 50%;
}
.vinfast-price-calculator-pro.layout-2 .vfc-calc-l2-right {
    flex: 1;
}
.vinfast-price-calculator-pro.layout-2 .vfc-form-row:last-child {
    margin-bottom: 0;
}
.vfc-calc-l2-box {
    border: 1px solid #e1e4e8;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    text-align: left;
}
.vfc-calc-l2-summary-card {
    border: 1px solid #e2e6ef;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 2px 12px #1e26400f;
    min-height: 108px;
}
.vfc-calc-l2-summary-card {
    background: #fff;
    border-color: #e2e6ef;
    box-shadow: none;
}
.vfc-calc-l2-summary-card .vfc-card-info-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.vfc-calc-l2-summary-card .vfc-card-img-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgb(240, 244, 251), rgb(232, 234, 240));
}
.vfc-calc-notice-l2 {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: 15px;
}
.vfc-calc-l2-header {
    font-size: 14px;
    font-weight: 700;
    color: #d9232d;
    text-transform: uppercase;
    border-bottom: 2px solid #d9232d;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}
.vinfast-price-calculator-pro.layout-2 .vfc-form-row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.vinfast-price-calculator-pro.layout-2 .vfc-calc-label {
    width: auto;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 13px;
    color: #333;
    flex: auto;
}
.vinfast-price-calculator-pro.layout-2 .vfc-calc-select {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
}

/* Installment Calculator Layout 2 */
.vinfast-calculator-widget.layout-2,
.vinfast-calculator-widget.layout-2 * {
    box-sizing: border-box;
    background: unset;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-l2-wrapper {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #fff;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    width: 100%;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-l2-header {
    font-size: 16px;
    font-weight: 700;
    color: #1f345a; /* Dark blue */
    text-transform: uppercase;
    border-bottom: 2px solid #1f345a;
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-l2-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-form-group {
    margin-bottom: 0;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-form-group label {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    display: block;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-input-wrapper {
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    background: #f9f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-select,
.vinfast-calculator-widget.layout-2 .vfc-inst-input {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 12px 15px;
    width: 100%;
    flex: 1;
}
.vinfast-calculator-widget.layout-2 .vfc-input-suffix {
    background: transparent;
    color: #888;
    font-size: 13px;
    padding-right: 15px;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-l2-toggles {
    display: flex;
    gap: 10px;
    height: 44px; /* match input height */
}
.vinfast-calculator-widget.layout-2 .vfc-inst-toggle-btn {
    flex: 1;
    background: #f9f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-toggle-btn:hover {
    background: #f0f0f0;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-toggle-btn.active {
    background: #ffeef0;
    border-color: #d9232d;
    color: #d9232d;
}

.vinfast-calculator-widget.layout-2 .vfc-inst-results-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-result-box {
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}
.vinfast-calculator-widget.layout-2 .vfc-box-white {
    background: #fff;
}
.vinfast-calculator-widget.layout-2 .vfc-box-pink {
    background: #ffeef0;
    border-color: #ffcdd2;
}
.vinfast-calculator-widget.layout-2 .vfc-box-lightgray {
    background: #f4f6f9;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-result-label {
    color: #555;
    font-size: 12px;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-result-value {
    font-size: 18px;
}

.vinfast-calculator-widget.layout-2 .vfc-inst-action {
    margin-top: 0;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-btn {
    width: 100%;
    background: #c3243a;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.vinfast-calculator-widget.layout-2 .vfc-inst-details-table th {
    background-color: #1f345a;
    color: #fff;
    border: 1px solid #1f345a;
}
.vinfast-calculator-widget.layout-2 .vfc-inst-details-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

@media(max-width: 768px) {
    .vinfast-calculator-widget.layout-2 .vfc-inst-l2-form-grid {
        grid-template-columns: 1fr;
    }
    .vinfast-calculator-widget.layout-2 .vfc-inst-results-grid {
        grid-template-columns: 1fr;
    }
}

/* Business Car Grid Widget */
.vfc-business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vfc-business-item:hover {
    transform: translateY(-8px);
}
.vfc-business-item {
    transition: transform 0.2s ease-in-out;
    text-align: center;
}
.vfc-business-item .vfc-bg-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 15px;
}
.vfc-business-item .vfc-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}
.vfc-business-item .vfc-bg-title {
    margin: 0 0 3px;
}
.vfc-business-item .vfc-bg-title a {
    color: var(--e-global-color-secondary);
    font-family: 'Mulish';
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
}
.vfc-business-item .vfc-bg-price-bar {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.vfc-business-item .vfc-bg-price-left {
    background: #e82c16;
    color: #fff;
    padding: 0 5px;
    font-size: 13px;
    flex: 3;
    text-align: left;
    display: flex;
    align-items: center;
}
.vfc-business-item .vfc-bg-price-label {
    font-weight: bold;
    margin-right: 5px;
}
.vfc-business-item .vfc-bg-price-right {
    color: #333;
    padding: 0 5px;
    font-size: 12px;
    flex: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.vfc-business-item .vfc-bg-inst-label {
    font-size: 12px;
    color: #333;
    margin-bottom: -4px;
}
.vfc-business-item .vfc-bg-inst-value {
    color: #333;
    font-weight: 500;
}

@media(max-width: 992px) {
    .vfc-business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 768px) {
    .vfc-business-grid {
        grid-template-columns: 1fr;
    }
}


.vfc-calc-l2-summary-card {
    /* Đã chuyển lên trên */
}
.vfc-card-img-wrap {
    width: 120px;
    flex-shrink: 0;
}
.vfc-card-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}
.vfc-card-info-wrap h4 {
    margin: 0 0 2px 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
.vfc-summary-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    display: block;
    margin-bottom: 3px;
}
.vfc-summary-price {
    font-size: 16px;
    font-weight: 700;
    color: #d9232d;
}
.vfc-calc-l2-total-bottom {
    margin-top: 20px;
    text-align: left;
}
.vfc-total-bot-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}
.vfc-total-bot-val {
    font-size: 20px;
    font-weight: 700;
    color: #d9232d;
}

@media(max-width: 992px) {
    .vinfast-price-calculator-pro.layout-2 .vfc-calc-l2-wrapper {
        flex-direction: column;
    }
    .vinfast-price-calculator-pro.layout-2 .vfc-calc-l2-left,
    .vinfast-price-calculator-pro.layout-2 .vfc-calc-l2-right {
        flex: 1;
        width: 100%;
    }
}

/* Post Carousel Swiper Arrows overrides */
.vfc-post-carousel-elementor {
    padding: 0 40px;
    position: relative;
}
.vfc-post-carousel-elementor .elementor-swiper-button {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}
.vfc-post-carousel-elementor .elementor-swiper-button:hover {
    background-color: #005a9c;
}
.vfc-post-carousel-elementor .elementor-swiper-button-prev {
    left: 0;
}
.vfc-post-carousel-elementor .elementor-swiper-button-next {
    right: 0;
}

/* --- MEGA MENU CSS --- */
.vinfast-nav-menu li:has(.vinfast-car-grid),
.vinfast-nav-menu li:has(.vfc-business-grid) {
    position: static;
}

.vinfast-nav-menu li:has(.vinfast-car-grid) > ul.sub-menu,
.vinfast-nav-menu li:has(.vfc-business-grid) > ul.sub-menu {
    width: 100vw;
    left: calc(-50vw + 50%);
    box-sizing: border-box;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: max(20px, calc((100vw - 1200px) / 2));
    padding-right: max(20px, calc((100vw - 1200px) / 2));
    border-top: 1px solid #eaeaea;
}

/* Loại bỏ style của link dropdown mặc định bên trong Mega Menu */
.vinfast-nav-menu li:has(.vinfast-car-grid) > ul.sub-menu li,
.vinfast-nav-menu li:has(.vfc-business-grid) > ul.sub-menu li {
    border-bottom: none;
}
.vinfast-nav-menu li:has(.vinfast-car-grid) > ul.sub-menu li a,
.vinfast-nav-menu li:has(.vfc-business-grid) > ul.sub-menu li a {
    border-bottom: none;
    padding: 0;
    pointer-events: auto;
}
.vinfast-nav-menu li:has(.vinfast-car-grid) > ul.sub-menu li a:hover,
.vinfast-nav-menu li:has(.vfc-business-grid) > ul.sub-menu li a:hover {
    background: transparent;
    padding-left: 0;
}

/* Ép lưới bên trong Mega Menu thành 5 cột, bỏ viền, chữ nhỏ gọn */
.vinfast-nav-menu li ul.sub-menu .vinfast-car-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}
.vinfast-nav-menu li ul.sub-menu .vinfast-car-item {
    border: none;
    box-shadow: none;
    padding: 10px;
    background: transparent;
}
.vinfast-nav-menu li ul.sub-menu .vinfast-car-item:hover {
    transform: none;
    box-shadow: none;
}
.vinfast-nav-menu li ul.sub-menu .vinfast-car-item .car-title {
    font-size: 14px;
    margin: 10px 0 5px;
}
.vinfast-nav-menu li ul.sub-menu .vinfast-car-item .car-price {
    font-size: 13px;
    white-space: nowrap;
    color: #d9232d; /* Đỏ Vinfast */
}

@media (max-width: 1024px) {
    .vinfast-nav-menu li ul.sub-menu .vinfast-car-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .vinfast-nav-menu li ul.sub-menu .vinfast-car-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vinfast-nav-menu li:has(.vinfast-car-grid) > ul.sub-menu,
    .vinfast-nav-menu li:has(.vfc-business-grid) > ul.sub-menu {
        width: 100%;
        left: 0;
        padding: 15px;
    }
}

/* --- FLOATING CONTACT BUTTONS --- */
.vfc-floating-contact {
    position: fixed;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vfc-floating-contact.vfc-float-left {
    left: 30px;
}
.vfc-floating-contact.vfc-float-right {
    right: 30px;
}
.vfc-floating-contact .vfc-float-btn {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    border-radius: 40px;
    height: 46px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.vfc-floating-contact .vfc-float-btn:hover {
    transform: scale(1.05);
}
.vfc-floating-contact .vfc-btn-zalo {
    background: #0084ff;
    padding-right: 20px;
}
.vfc-floating-contact .vfc-btn-phone {
    background: #e32124;
    padding-right: 20px;
}
.vfc-floating-contact .vfc-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    position: absolute;
    left: -5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.vfc-floating-contact .vfc-btn-zalo .vfc-icon-wrapper {
    background: #fff;
}
.vfc-floating-contact .vfc-zalo-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}
.vfc-floating-contact .vfc-btn-phone i {
    color: #fff;
    font-size: 24px;
}
.vfc-floating-contact .vfc-btn-text {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    padding-left: 55px; /* space for absolute icon */
    letter-spacing: 0.5px;
}

/* Hiệu ứng toả sáng (Pulse) cho Icon Điện Thoại */
.vfc-pulse {
    position: absolute;
}
.vfc-pulse::before, .vfc-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(227, 33, 36, 0.4);
    border-radius: 50%;
    z-index: -1;
    animation: vfcPulseAnim 2s infinite;
}
.vfc-pulse::after {
    animation-delay: 1s;
}

@keyframes vfcPulseAnim {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
