/* In file: static/css/style.css */

body {
    font-family: 'Roboto', sans-serif;
}

.section-title {
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.btn-primary-custom {
    background-color: #e60012;
    border-color: #e60012;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    padding: 10px 20px;
}

.btn-primary-custom:hover {
    background-color: #c40010;
    border-color: #c40010;
    color: #fff;
}

.carousel-item {
    height: 70vh;
    min-height: 400px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.card-img-top {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.sub-banner-section {
    font-size: 0.9rem;
}

.feature-list li {
    padding: 4px 0;
    border-bottom: 1px solid #444;
}
.feature-list li:last-child {
    border-bottom: none;
}
.feature-list .bi-check-lg {
    color: #0d6efd;
    margin-right: 8px;
}

.social-icons a {
    font-size: 1.2rem;
    transition: opacity 0.2s;
}
.social-icons a:hover {
    opacity: 0.8;
}

.quick-contact-form .form-control {
    background-color: #4a4a4a;
    border-color: #6c757d;
    color: #fff;
    height: 48px;
}

.quick-contact-form .form-control::placeholder {
    color: #b5b5b5;
}

.quick-contact-form .form-control:focus {
    background-color: #5a5a5a;
    border-color: #888;
    color: #fff;
    box-shadow: none;
}

.social-icons {
    gap: 10px;
}

.social-icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.social-icon-circle:hover {
    background-color: #fff;
    color: #000;
}

.social-icon-circle i {
    font-size: 1rem;
}

.site-logo {
    max-height: 40px;
    width: auto;
}

.footer-logo {
    max-height: 50px;
    width: auto;
}

html {
    scroll-behavior: smooth;
}

.card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

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

.card-img-top {
    object-fit: contain;
    aspect-ratio: 16 / 10;
    padding: 1rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #212529;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.card-text.text-danger {
    color: #d9232d !important;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.btn-primary-custom {
    background-color: #e60012;
    border-color: #e60012;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #c40010;
    border-color: #c40010;
    color: #fff;
}

#form-bao-gia {
    background-color: #f8f9fa;
}

#form-bao-gia .card,
#form-bao-gia form {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

#form-bao-gia form {
    padding: 2rem;
}

#form-bao-gia .form-control,
#form-bao-gia .form-select {
    background-color: #f1f3f5;
    border: 1px solid transparent;
    padding: 14px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#form-bao-gia .form-control:focus,
#form-bao-gia .form-select:focus {
    background-color: #fff;
    border-color: #e60012;
    box-shadow: 0 0 0 0.25rem rgba(230, 0, 18, 0.15);
}

#form-bao-gia .form-check-input {
    width: 1.3em;
    height: 1.3em;
    margin-top: 0.1em;
}

#form-bao-gia .form-check-input:checked {
    background-color: #e60012;
    border-color: #e60012;
}

#form-bao-gia .form-check-label {
    padding-left: 0.5em;
    font-size: 1.05rem;
}

#form-bao-gia .btn-primary-custom.btn-lg {
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
}

.promo-section .section-title {
    text-align: left !important;
}

.site-footer {
    font-size: 0.95rem;
    background-color: #212529;
}

.footer-title {
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: #fff;
}

.footer-text {
    color: #adb5bd;
    line-height: 1.6;
}

.site-footer .social-icons {
    gap: 10px;
    display: flex;
}

.site-footer .social-icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #6c757d;
    border-radius: 50%;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer .social-icon-circle:hover {
    background-color: #fff;
    color: #212529;
    border-color: #fff;
}

.footer-divider {
    border-top: 1px solid #495057;
    margin: 2rem 0 1.5rem 0;
}

.copyright-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

.footer-nav a {
    color: #adb5bd;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0 10px;
}

.footer-nav a:hover {
    color: #fff;
}

/* =================================================================== */
/* ===== NÂNG CẤP KHUNG XE NỔI BẬT (HIỆU ỨNG VIỀN PHÁT SÁNG) ===== */
/* =================================================================== */

/* Khung bao ngoài, đóng vai trò là "viền gradient" */
.featured-car-wrapper {
    /* Màu gradient cho viền, bạn có thể tùy chỉnh màu sắc */
    --border-gradient: linear-gradient(to bottom right, #e60012, #ff7e00, #e60012);
    
    padding: 3px; /* Độ dày của viền */
    border-radius: 1rem; /* Bo góc 16px, lớn hơn card bên trong */
    background: var(--border-gradient);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Hiệu ứng nhấc lên khi di chuột */
.featured-car-wrapper:hover {
    transform: translateY(-8px);
}

/* Lớp giả ::after để tạo hiệu ứng "phát sáng" */
.featured-car-wrapper::after {
    position: absolute;
    content: "";
    top: 20px;
    left: 0;
    right: 0;
    z-index: -1; /* Nằm dưới viền */
    height: 100%;
    width: 100%;
    transform: scale(0.9);
    filter: blur(20px); /* Hiệu ứng tỏa sáng */
    background: var(--border-gradient);
    opacity: 0.7;
    transition: opacity .5s;
}

/* Tắt hiệu ứng phát sáng khi di chuột vào */
.featured-car-wrapper:hover::after {
    opacity: 0;
}

/* Card chứa nội dung bên trong (ảnh, tên xe, giá) */
.featured-car-wrapper .card {
    border: none; /* Bỏ viền của card bên trong */
    border-radius: 13px; /* Bo góc nhỏ hơn viền ngoài một chút (16px - 3px) */
    width: 100%;
    height: 100%;
    /* Quan trọng: Bỏ hiệu ứng của card cũ để không bị xung đột */
    transform: none; 
    box-shadow: none;
}
.featured-car-wrapper .card:hover {
    transform: none;
    box-shadow: none;
}

/* =================================================================== */
/* ===== NÂNG CẤP KHUNG NHÂN VIÊN KINH DOANH ===== */
/* =================================================================== */

.consultant-section .card {
    background-color: #fff; /* Chuyển nền thành trắng */
    border: 1px solid #dee2e6; /* Thêm viền xám rất nhạt */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07); /* Đổ bóng nhẹ nhàng */
    border-radius: 12px; /* Bo góc nhiều hơn */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.consultant-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.consultant-avatar {
    border: 5px solid #fff; /* Viền trắng dày cho avatar */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Đổ bóng cho avatar */
}