@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap');

:root{
    --primary: #002c5f;  /* Màu xanh chính của Hyundai */
    --secondary: #00aad2;  /* Màu xanh nhạt */
    --accent: #ffb71b;  /* Màu vàng của Hyundai */
    --accent-light: #ffd571;  /* Màu vàng nhạt */
    --hover-dark: #001f43;  /* Màu xanh đậm cho hover */
    --hover-light: #00c1e8;  /* Màu xanh nhạt cho hover */
    --button-primary: #002c5f;  /* Màu nút chính */
    --button-hover: #002c5f;  /*Màu nút khi hover`*/
    --black: #333333;  /* Màu đen cho text */
    --light-color: #666;
    --box-shadow:0 .5rem 1rem rgba(0,0,0,.1);
    --border:.1rem solid rgba(0,0,0,.1);
    --primary-color: #002c5f;
    --secondary-color: #00aad2;
    --hover-color: #001f43;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --light-bg: #f7f7f7;
    --border-color: #ddd;
}

*{
    font-family: 'Poppins', sans-serif;
    margin:0; padding:0;
    box-sizing: border-box;
    outline: none; border:none;
    text-decoration: none;
    text-transform: capitalize;
    transition: .2s linear;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 7rem;
    scroll-behavior: smooth;
}

section{
    padding:2rem 9%;
}

.heading{
    padding-bottom: 2rem;
    text-align: center;
    font-size: 4.5rem;
    color:var(--black);
}

.heading span{
    position: relative;
    z-index: 0;
}

.heading span::before{
    content: '';
    position: absolute;
    bottom:1rem; left:0;
    height: 100%;
    width: 100%;
    background: var(--accent-light);
    z-index: -1;
    clip-path: polygon(0 90%, 100% 80%, 100% 100%, 0% 100%);
}

.btn{
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 3rem;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    font-size: 1.7rem;
    border-radius: .5rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover{
    background: var(--hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top:0; left:0; right:0;
    padding: 1.5rem 9%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .logo{
    flex: 0 0 280px;
    max-width: 280px;
}

.header .logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.header .logo span{
    color:var(--accent);
}

.header .navbar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.header .navbar a {
    font-size: 1.5rem;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.header .navbar a:hover {
    color: var(--secondary);
}

#login-btn {
    margin-left: auto;
}

#login-btn .btn {
    margin: 0;
    background: var(--accent);
    color: var(--black);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1.4rem;
}

#login-btn .btn:hover {
    background: var(--accent-light);
}

#login-btn i{
    display: none;
    font-size: 2.5rem;
    color:var(--light-color);
}

.header.active{
    padding:2rem 9%;
    box-shadow: var(--box-shadow);
}

#menu-btn{
    display: none;
    font-size: 2.5rem;
    color: #333;
    cursor: pointer;
}

.login-form-container{
    display: none;
}

/* Responsive Styles for Slider (CSS thuần) */
.home {
    position: relative;
    width: 100%;
    /* Sử dụng padding-top để giữ tỷ lệ khung hình */
    padding-top: 42.85%; /* Tỷ lệ 21:9 làm mặc định cho mobile*/
    overflow: hidden;
    margin-top: 7rem; /* Khoảng cách dưới header */
}

.home .swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.home .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Đảm bảo ảnh không bị cắt */
}

/* Responsive aspect ratio */
@media (min-width: 768px) {
    .home {
        padding-top: 35%; /* Tỷ lệ rộng hơn cho màn hình lớn hơn, ví dụ 2.85:1 */
    }
}

/* Styles for Swiper Navigation Buttons */
.home .swiper-button-prev,
.home .swiper-button-next {
    color: #fff; /* Màu trắng của mũi tên */
    /* Kích thước container nút */
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3); /* Nền hơi trong suốt */
    border-radius: 50%; /* Hình tròn */
    /* Căn giữa theo chiều dọc */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* Đảm bảo nằm trên slide */
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* Đảm bảo nội dung (mũi tên) được căn giữa */
    display: flex;
    justify-content: center;
    align-items: center;
}

.home .swiper-button-prev:hover,
.home .swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.6); /* Nền đậm hơn khi hover */
}

/* Style cho mũi tên bên trong (pseudo-elements của Swiper) */
.home .swiper-button-prev::after,
.home .swiper-button-next::after {
    font-size: 2.5rem; /* Kích thước mũi tên */
}

.home .swiper-button-prev {
    left: 10px; /* Vị trí cách lề trái */
}

.home .swiper-button-next {
    right: 10px; /* Vị trí cách lề phải */
}

/* Responsive adjustments for navigation buttons */
@media (max-width: 768px) {
    .home .swiper-button-prev,
    .home .swiper-button-next {
        /* Kích thước container nút trên mobile */
        width: 30px;
        height: 30px;
    }
     .home .swiper-button-prev::after,
     .home .swiper-button-next::after {
        font-size: 1.8rem; /* Kích thước mũi tên nhỏ hơn trên mobile */
    }
    .home .swiper-button-prev {
        left: 5px; /* Vị trí gần lề hơn */
    }
    .home .swiper-button-next {
        right: 5px; /* Vị trí gần lề hơn */
    }
}

@media (max-width: 450px) {
    .home .swiper-button-prev,
    .home .swiper-button-next {
         /* Kích thước container nút trên mobile nhỏ hơn nữa */
        width: 24px;
        height: 24px;
    }
     .home .swiper-button-prev::after,
     .home .swiper-button-next::after {
        font-size: 1.2rem; /* Kích thước mũi tên nhỏ hơn nữa */
    }
}

.home h3{
    color:var(--black);
    font-size: 7.5vw;
    text-transform: uppercase;
}

.home img{
    width:100%;
    height: 100%;
    /* margin:1rem 0; */
}

.icons-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap:1.5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
    background: #eee;
}

.icons-container .icons{
    background:#fff;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
    border-radius: .5rem;
    padding:2rem;
    gap:1.5rem;
}

.icons-container .icons i{
    height:5rem;
    width:5rem;
    line-height:5rem;
    font-size:2.5rem;
    color:var(--black);
    background:#eee;
    text-align: center;
    border-radius: 50%;
}

.icons-container .icons .content h3{
    font-size: 2.5rem;
    color:var(--accent);
}

.icons-container .icons .content p{
    font-size: 1.5rem;
    color:var(--light-color);
}

.icons-container .icons:hover{
    background: var(--primary);
}

.icons-container .icons:hover i{
    background: var(--secondary);
    color: var(--white);
}

.icons-container .icons:hover .content h3{
    color: var(--white);
}

.icons-container .icons:hover .content p{
    color: var(--light-bg);
}

.popular .popular-slider{
    padding-bottom: 5rem;
}

.popular .popular-slider .box{
    text-align: center;
}

.featured .featured-slider .box img{
    width:100%;
    transform: scale(.8);
    opacity: .5;
}

.featured .featured-slider .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.featured .featured-slider .box .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.featured .featured-slider .box .content p,
.featured .featured-slider .box .content .price,
.featured .featured-slider .box .content h3 {
    text-align: center;
    width: 100%;
}

.featured .featured-slider .box .content .btn {
    margin-left: auto;
    margin-right: auto;
}

.featured .featured-slider .swiper-slide-active .content{
    transform: scale(1);
}

.featured .featured-slider .swiper-slide-active img{
    transform: scale(1);    
    opacity: 1;
}

.featured .featured-slider .box .content h3{
    font-size: 2.5rem;
    color:var(--black);
}

.featured .featured-slider .box .content .price{
    font-size: 2.2rem;
    color:var(--primary);
    padding:1rem 0;
    font-weight: bolder;
}

.featured .featured-slider .box .content .price span{
    color:var(--light-color);
    font-size: 1.5rem;
    font-weight: normal;
}

.featured .featured-slider .box .content p{
    font-size: 1.6rem;
    color:var(--light-color);
    padding: 1rem 0;
    padding-top: 1.5rem;
    border-top: var(--border);
}

.featured .featured-slider .box .content span{
    font-size: 1rem;
    color:var(--accent);
    padding:0 .5rem;
}

.swiper-pagination-bullet-active{
    background: var(--accent);
}

.services .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap:1.5rem;
}

.services .box-container .box{
    padding:2rem;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    border:var(--border);
    text-align: center;
}

.services .box-container .box i{
    height:6rem;
    width:6rem;
    line-height: 6rem;
    border-radius: 50%;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--button-primary);
    color:var(--white);
}

.services .box-container .box h3{
    font-size: 2.2rem;
    color:var(--black);
}

.services .box-container .box p{
    line-height: 1.8;
    padding:1rem 0;
    font-size: 1.4rem;
    color:var(--light-color);
}

.services .box-container .box:hover{
    background: var(--primary);
}

.services .box-container .box:hover h3{
    color: var(--white);
}

.services .box-container .box:hover p{
    color: var(--light-bg);
}

.popular .popular-slider{
    padding:1rem;
    padding-bottom: 4rem;
}

.popular .popular-slider .box{
    padding:2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    border:var(--border);
    border-radius: .5rem;
}

.popular .popular-slider .box img{
    height: 15rem;
}

.popular .popular-slider .box:hover img{
    transform: scale(.9);
}

.popular .popular-slider .box .content h3{
    font-size: 2.2rem;
    color:var(--black);
}

.popular .popular-slider .box .content .stars{
    padding:1rem 0;
}

.popular .popular-slider .box .content .stars i{
    font-size: 1.7rem;
    color:var(--accent);
}

.popular .popular-slider .box .content .price{
    font-size: 2.5rem;
    color:var(--black);
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 4rem 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/pattern.webp') repeat;
    opacity: 0.1;
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter h3 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter .highlight {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.timer-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    min-width: 120px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.timer-item span:first-child {
    font-size: 3.6rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.timer-item span:last-child {
    font-size: 1.4rem;
    opacity: 0.8;
}

.timer-separator {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
}

.newsletter .description {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.newsletter .note {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--primary);
}

.newsletter-form input {
    width: 100%;
    padding: 1.5rem 2rem 1.5rem 5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.6rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form .btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.newsletter-form .btn i {
    transition: transform 0.3s ease;
}

.newsletter-form .btn:hover i {
    transform: translateX(5px);
}

.newsletter-form .recaptcha-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.newsletter-form .g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
}

@media (max-width: 768px) {
    .newsletter-form .g-recaptcha {
        transform: scale(0.8);
    }
}

@media (max-width: 450px) {
    .newsletter-form .g-recaptcha {
        transform: scale(0.7);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .newsletter {
        padding: 3rem 1.5rem;
    }

    .newsletter h3 {
        font-size: 2.4rem;
    }

    .newsletter .highlight {
        font-size: 1.6rem;
    }

    .timer-item {
        min-width: 90px;
        padding: 1rem 1.5rem;
    }

    .timer-item span:first-child {
        font-size: 2.8rem;
    }

    .timer-item span:last-child {
        font-size: 1.2rem;
    }

    .timer-separator {
        font-size: 2.4rem;
    }

    .newsletter .description {
        font-size: 1.6rem;
    }

    .newsletter-form input {
        padding-left: 4rem;
    }
    .input-group i {
        left: 1.2rem;
        font-size: 1.4rem;
    }
}

@media (max-width: 450px) {
    .countdown-timer {
        gap: 1rem;
    }

    .timer-item {
        min-width: 70px;
        padding: 0.8rem 1rem;
    }

    .timer-item span:first-child {
        font-size: 2.2rem;
    }

    .timer-item span:last-child {
        font-size: 1rem;
    }

    .timer-separator {
        font-size: 2rem;
    }

    .newsletter-form input {
        padding-left: 3.2rem;
    }
    .input-group i {
        left: 0.8rem;
        font-size: 1.2rem;
    }
}

.reviews .review-slider{
    padding-bottom: 3rem;
}

.reviews .review-slider .box{
    text-align: center;
    padding:2rem;
    margin: 2rem 0;
    opacity: .4;
    transform: scale(.9);
}

.reviews .review-slider .swiper-slide-active{
    opacity: 1;
    transform: scale(1);
    box-shadow: var(--box-shadow);
    border:var(--border);
    border-radius: .5rem;
}

.reviews .review-slider .box img{
    height:7rem;
    width:7rem;
    border-radius: 50%;
    object-fit: cover;
}

.reviews .review-slider .box .content p{
    color:var(--light-color);
    font-size: 1.4rem;
    padding:1rem 0;
}

.reviews .review-slider .box .content h3{
    color:var(--black);
    font-size: 2.2rem;
    padding-bottom: .5rem;
}

.reviews .review-slider .box .content .stars i{
    color:var(--accent);
    font-size: 1.7rem;
}

.contact .row{
    display: flex;
    flex-wrap: wrap;
    gap:1.5rem;
}

.contact .row .map{
    flex:1 1 42rem;
    width: 100%;
    padding:2rem;
    box-shadow: var(--box-shadow);
    border:var(--border);
    border-radius: .5rem;
}

.contact .row form{
    padding:2rem;
    flex:1 1 42rem;
    box-shadow: var(--box-shadow);
    border:var(--border);
    text-align: center;
    border-radius: .5rem;
}

.contact .row form h3{
    font-size: 3rem;
    color:var(--black);
    padding-bottom: 1rem;
}

.contact .row form .box{
    width:100%;
    border-radius: .5rem;
    padding:1rem 1.2rem;
    font-size: 1.6rem;
    text-transform: none;
    border:var(--border);
    margin:.7rem 0;
}

.contact .row form textarea{
    height:15rem;
    resize: none;
}

.footer{
    background: #f8f9fa;
    padding: 4rem 0 2rem;
    color: #333;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding: 0 2rem;
}

.footer-logo {
    grid-column: span 1;
}

.footer-logo img {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}

.company-info {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #666;
}

.footer h3 {
    font-size: 1.8rem;
    color: #002c5f;
    margin-bottom: 2rem;
    font-weight: 600;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 1.2rem;
}

.footer-links a,
.footer-contact a {
    color: #666;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #00aad2;
}

.footer-contact i {
    margin-right: 1rem;
    color: #002c5f;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
}

.social-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.facebook {
    background: #1877f2;
}

.youtube {
    background: #ff0000;
}

.tiktok {
    background: #000;
}

.zalo {
    background: #0068FF;
}

.zalo-icon {
    width: 60%;
    height: auto;
}

.phone {
    background: #25D366;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid #ddd;
    font-size: 1.4rem;
    color: #666;
}

/* Floating Contact Buttons */
.floating-buttons {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
}

.floating-button {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.floating-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.messenger {
    background: #0099FF;
    animation: pulse 2s infinite;
}

.tooltip {
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    font-size: 1.4rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-button:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0,153,255,0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0,153,255,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0,153,255,0);
    }
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-10deg);
    }
    20% {
        transform: rotate(10deg);
    }
    30% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .floating-buttons {
        left: 1rem;
        bottom: 1rem;
    }

    .floating-button {
        width: 5rem;
        height: 5rem;
        font-size: 2rem;
    }

    .tooltip {
        display: none;
    }

    .social-btn {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.6rem;
    }
}

/* Car Detail Page Styles */
.car-detail {
    padding-top: 10rem;
    padding-bottom: 3rem;
}

.car-detail .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.car-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.car-gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.car-gallery {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
}

.car-gallery .swiper {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
}

.car-gallery .swiper-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.car-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.car-basic-info {
    flex: 1;
    min-width: 300px;
}

.car-name {
    font-size: 3.5rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.car-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.car-price span {
    font-size: 1.8rem;
    color: var(--light-color);
}

/* Áp dụng style lớn cho giá tiền */
.car-price .price-text {
    font-size: 3rem;
    color: var(--primary);
    margin-top: 0; /* Loại bỏ nếu không cần đẩy xuống */
}


.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spec-item i {
    font-size: 2.5rem;
    color: var(--primary);
}

.spec-item span {
    font-size: 1.6rem;
    color: var(--light-color);
}

.car-details-container {
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.car-description {
    margin-bottom: 3rem;
}

.car-description h3 {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: var(--border);
}

.description-content {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 1.5rem;
}

.description-content::-webkit-scrollbar {
    width: 6px;
}

.description-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.description-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.car-description p {
    font-size: 1.6rem;
    color: var(--light-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.car-description p:last-child {
    margin-bottom: 0;
}

.car-features {
    margin-bottom: 2rem;
}

.car-features h3 {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: var(--border);
}

.car-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.car-features ul li {
    font-size: 1.6rem;
    color: var(--light-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.car-features ul li i {
    color: var(--accent);
}

.action-buttons {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.action-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 1.2rem 2rem;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.action-buttons .btn:hover {
    background: var(--hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Related Cars Section */
.related-cars {
    padding: 5rem 2rem;
    background: #f9f9f9;
    overflow: hidden;
}

.related-cars .heading {
    margin-bottom: 3rem;
}

.related-cars .box {
    text-align: center;
    padding: 2rem;
    border-radius: .5rem;
    border: var(--border);
    box-shadow: var(--box-shadow);
    background: #fff;
    margin: 1rem;
    transition: .3s ease;
}

.related-cars .box:hover {
    transform: translateY(-5px);
}

.related-cars .box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1.5rem;
    transition: transform .2s;
}

.related-cars .box:hover img {
    transform: scale(1.05);
}

.related-cars .box .content {
    padding: 1rem;
}

.related-cars .box .content h3 {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.related-cars .box .content .price {
    font-size: 2rem;
    color: var(--accent);
    margin: 1rem 0;
    font-weight: bold;
}

.related-cars .box .content .price span {
    color: var(--light-color);
    font-size: 1.5rem;
    font-weight: normal;
}

.related-cars .box .content p {
    font-size: 1.4rem;
    color: var(--light-color);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: var(--border);
}

.related-cars .box .content span {
    font-size: 1rem;
    color: var(--accent);
    padding: 0 .5rem;
}

.related-cars .swiper-wrapper {
    padding: 2rem 1rem;
    align-items: stretch;
}

.related-cars .swiper-slide {
    height: auto;
}

@media (max-width: 991px) {
    .related-cars {
        padding: 3rem 1rem;
    }
    
    .related-cars .box {
        margin: .5rem;
    }
}

@media (max-width: 768px) {
    .related-cars .box {
        margin: 1rem auto;
        max-width: 90%;
    }
    
    .related-cars .box .content h3 {
        font-size: 2rem;
    }
    
    .related-cars .box .content .price {
        font-size: 1.8rem;
    }

    .related-cars .swiper-wrapper {
        padding: 1rem 0;
    }
}

@media (max-width: 450px) {
    .related-cars .box {
        margin: .5rem auto;
        max-width: 100%;
    }
    
    .related-cars .box .content h3 {
        font-size: 1.8rem;
    }
    
    .related-cars .box .content .price {
        font-size: 1.6rem;
    }
    
    .related-cars .box .content p {
        font-size: 1.3rem;
        padding: .5rem 0;
    }

    .related-cars .swiper-wrapper {
        padding: .5rem 0;
    }
}

@media (max-width:991px){

    html{
        font-size: 55%;
    }

    .header{
        padding:1rem 3%;
    }

    .header.active{
        padding:2rem;
    }

    section{
        padding:2rem;
    }

}

@media (max-width:768px){

    #menu-btn{
        display: block;
    }

    #menu-btn.fa-times{
        transform:rotate(180deg);
    }

    #login-btn .btn{
        display: none;
    }

    #login-btn i{
        display: block;
    }

    .header .navbar{
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1rem;
        transition: 0.3s ease-in-out;
        z-index: 1001;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }

    .header .navbar.active{
        left: 0;
    }

    .header .navbar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }
    
    .header .navbar.active::before {
        opacity: 1;
        visibility: visible;
    }
    
    .header .navbar a {
        width: 100%;
        padding: 1.2rem 1.5rem;
        font-size: 1.6rem;
        border-radius: 4px;
        color: #333;
        background: transparent;
        transition: all 0.3s ease;
    }
    
    .header .navbar a:hover {
        background: var(--light-bg);
        color: var(--primary);
        padding-left: 2rem;
    }
    
    #menu-btn {
        display: block;
        z-index: 1002;
    }
    
    #menu-btn.fa-times {
        transform: rotate(180deg);
    }
    
    #login-btn {
        margin-left: 1rem;
    }
    
    #login-btn .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1.3rem;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .header .logo-img {
        height: 28px;
    }

}

@media (max-width:450px){

    html{
        font-size: 50%;
    }

    .heading{
        font-size: 3rem;
    }

}

@media (max-width: 991px) {
    .car-gallery-container {
        flex-direction: column;
    }

    .car-gallery {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .car-basic-info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .car-detail {
        padding-top: 8rem;
    }

    .car-gallery-container,
    .car-details-container {
        padding: 1.5rem;
    }

    .car-specs {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .car-features ul {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .description-content {
        max-height: 250px;
    }
}

@media (max-width: 450px) {
    .car-detail {
        padding-top: 7rem;
    }

    .car-gallery .swiper {
        padding-top: 75%; /* 4:3 Aspect Ratio */
    }

    .car-name {
        font-size: 2.8rem;
    }

    .car-price h2 {
        font-size: 2.5rem;
    }

    .description-content {
        max-height: 200px;
    }
}

/* Car Specifications Styles */
.car-specifications {
    margin-bottom: 3rem;
}

.car-specifications h3 {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: var(--border);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.spec-group {
    background: #f9f9f9;
    border-radius: .8rem;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.spec-group h4 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--light-color);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 1.4rem;
    color: var(--light-color);
    flex: 1;
}

.spec-value {
    font-size: 1.4rem;
    color: var(--black);
    font-weight: 500;
    text-align: right;
    flex: 1;
}

/* Responsive styles for specifications */
@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .spec-group {
        padding: 1.5rem;
    }

    .spec-row {
        padding: 0.8rem 0;
    }

    .spec-label,
    .spec-value {
        font-size: 1.3rem;
    }
}

@media (max-width: 450px) {
    .spec-group {
        padding: 1.2rem;
    }

    .spec-group h4 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .spec-label,
    .spec-value {
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header {
        padding: 1.5rem 5%;
    }
    
    .header .logo {
        flex: 0 0 250px;
        max-width: 250px;
    }
    
    .header .navbar {
        gap: 1.5rem;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 1.5rem 3%;
    }
    
    .header .logo {
        flex: 0 0 220px;
        max-width: 220px;
    }
    
    .header .navbar {
        gap: 1rem;
    }
    
    .header .navbar a {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 2rem;
    }
    
    .header .logo {
        flex: 0 0 200px;
        max-width: 200px;
    }
    
    .header .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem;
        gap: 1rem;
        transition: 0.3s ease-in-out;
        z-index: 1001;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    .header .navbar.active {
        left: 0;
    }
    
    .header .navbar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }
    
    .header .navbar.active::before {
        opacity: 1;
        visibility: visible;
    }
    
    .header .navbar a {
        width: 100%;
        padding: 1rem;
        font-size: 1.6rem;
        border-radius: 4px;
        color: #333;
        background: transparent;
        transition: all 0.3s ease;
    }
    
    .header .navbar a:hover {
        background: var(--light-bg);
        color: var(--primary);
        padding-left: 2rem;
    }
    
    #menu-btn {
        display: block;
        z-index: 1002;
    }
    
    #menu-btn.fa-times {
        transform: rotate(180deg);
    }
    
    #login-btn {
        margin-left: 1rem;
    }
    
    #login-btn .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1.3rem;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 450px) {
    .header {
        padding: 1rem 1.5rem;
    }
    
    .header .logo {
        flex: 0 0 180px;
        max-width: 180px;
    }
    
    .header .navbar {
        width: 50%;
        padding: 5rem;
    }
    
    .header .navbar a {
        padding: 0.8rem;
        font-size: 1.4rem;
    }
    
    #login-btn .btn {
        padding: 0.5rem 1.2rem;
        font-size: 1.2rem;
    }
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.popular-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.popular-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.popular-card img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.popular-card h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.model-list {
    margin-bottom: 1.5rem;
}

.model-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.model-item:last-child {
    border-bottom: none;
}

.model-name {
    color: #666;
    font-size: 1.4rem;
}

.model-price {
    color: #130f40;
    font-weight: bold;
    font-size: 1.4rem;
}

.car-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    color: #666;
}

.car-specs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.car-specs span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #666;
    font-size: 1.3rem;
}

.car-specs i {
    color: #130f40;
}

.popular-card .btn {
    margin-top: auto;
    width: 100%;
    padding: 1.2rem;
    font-size: 1.6rem;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.popular-card .btn:hover {
    background: var(--hover-dark);
}

@media (max-width: 991px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-card .btn {
        padding: 1rem;
        font-size: 1.5rem;
    }
}

/* Swiper nổi bật: slide trung tâm rõ, hai bên mờ */
.featured-slider .swiper-slide {
    opacity: 0.3;
    filter: grayscale(0.7);
    transition: opacity 0.3s, filter 0.3s;
}
.featured-slider .swiper-slide-active {
    opacity: 1;
    filter: none;
    z-index: 2;
}
.featured-slider .swiper-slide .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    box-shadow: none;
    border: none;
}
.featured-slider .swiper-slide .box .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.featured-slider .swiper-slide .box .content p,
.featured-slider .swiper-slide .box .content .price,
.featured-slider .swiper-slide .box .content h3 {
    text-align: center;
    width: 100%;
}
.featured-slider .swiper-slide .box .btn {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .featured-slider .swiper-slide .box {
        padding: 1.2rem;
    }
}

/* Đảm bảo pagination nằm ngay dưới nút, căn giữa theo slide trung tâm */
.featured-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 0;
}
.featured-slider .swiper-wrapper {
    width: 100%;
}
.featured-slider .swiper-pagination {
    position: static;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
}
.featured-slider .box .btn {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .featured-slider .swiper-pagination {
        margin-top: 1.5rem;
    }
}

/* Ẩn thông tin của 2 slide bên, chỉ hiển thị ở slide trung tâm */
.featured-slider .swiper-slide:not(.swiper-slide-active) .content,
.featured-slider .swiper-slide:not(.swiper-slide-active) .btn {
    display: none !important;
}

/* Test Drive Button Styles */
#test-drive-btn {
    margin-left: 2rem;
}

#test-drive-btn .btn {
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1.6rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#test-drive-btn .btn:hover {
    background: var(--hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Test Drive Modal Styles */
.test-drive-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    z-index: 1001;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.4rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--red);
}

.modal-logo {
    display: block;
    width: 150px;
    margin: 0 auto 2rem;
}

.modal-title {
    text-align: center;
    font-size: 2.4rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.modal-desc {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.test-drive-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-input {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.4rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--red);
    outline: none;
}

.form-input::placeholder {
    color: #999;
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    padding: 1.2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
        width: 95%;
    }

    .modal-title {
        font-size: 2rem;
    }

    .form-input,
    .btn-submit {
        font-size: 1.4rem;
    }

    #test-drive-btn {
        margin-left: 1rem;
    }

    #test-drive-btn .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1.4rem;
    }
}

/* Form Message Styles */
.error-message,
.success-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
    animation: messageFadeIn 0.3s ease;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Animation */
.modal-content.animate {
    animation: modalFadeIn 0.3s ease;
}

/* Global Button Styles */
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 3rem;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    font-size: 1.7rem;
    border-radius: .5rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Action Buttons */
.action-buttons .btn,
.contact .row form .btn,
.featured .featured-slider .box .content .btn,
.popular .popular-card .btn,
.newsletter-form .btn {
    background: var(--primary);
    color: var(--white);
    transition: all 0.3s ease;
}

.action-buttons .btn:hover,
.contact .row form .btn:hover,
.featured .featured-slider .box .content .btn:hover,
.popular .popular-card .btn:hover,
.newsletter-form .btn:hover {
    background: var(--hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Special Buttons (like in car-detail page) */
.car-detail .action-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 1.2rem 2rem;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Form Submit Buttons */
input[type="submit"].btn,
button.btn {
    border: none;
    cursor: pointer;
    padding: 1.2rem 3rem;
}

/* Newsletter Form Button with Arrow */
.newsletter-form .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
}

.newsletter-form .btn i {
    transition: transform 0.3s ease;
}

.newsletter-form .btn:hover i {
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .btn {
        padding: 0.7rem 2rem;
        font-size: 1.5rem;
    }

    .car-detail .action-buttons .btn {
        padding: 1rem 1.5rem;
        font-size: 1.4rem;
    }

    .newsletter-form .btn {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 450px) {
    .btn {
        padding: 0.6rem 1.8rem;
        font-size: 1.4rem;
    }

    .car-detail .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .car-detail .action-buttons .btn {
        width: 100%;
    }
}

.specifications {
    padding: 2rem;
    margin: 2rem 0;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.specifications h3 {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: var(--border);
}

.specifications-content {
    width: 100%;
    cursor: zoom-in;
    transition: all 0.3s ease;
    position: relative;
}

.specifications-content:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.specifications-content .specs-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Tùy chỉnh giao diện Fancybox */
.fancybox__toolbar {
    --f-button-width: 40px;
    --f-button-height: 40px;
    --f-button-border-radius: 50%;
}

.fancybox__button--close {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
}

.fancybox__button--close:hover {
    background-color: #fff !important;
    transform: scale(1.1);
}

/* Thêm tooltip khi hover vào ảnh */
.specifications-content::after {
    content: "Nhấn để phóng to";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.specifications-content:hover::after {
    opacity: 1;
}

/* Loading Spinner Styles */
.loading-spinner {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disable button styles when loading */
.btn-submit:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.recaptcha-container {
    display: flex;
    justify-content: center; /* căn giữa theo chiều ngang */
    margin: 1rem 0rem;           /* khoảng cách với các phần tử khác */
    transition: opacity 0.3s ease;
}
.recaptcha-container.hidden {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}
.info-text {
    color: var(--black) !important; /* hoặc #333 hoặc #000 tuỳ giao diện */
    font-size: 1.4rem !important; /* tuỳ chỉnh cho phù hợp */
    margin-right: 1rem;
}
