:root {
    --primary: #00468b;
    --warning: #f1c40f;
    --dark: #1a1a1a;
}

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #fdfdfd;
}

.navbar {
    transition: 0.3s;
}
.nav-link {
    color: #333 !important;
    padding: 10px 20px !important;
}
.nav-link:hover {
    color: var(--primary) !important;
}

/* Hero Section */
/* 1. Thiết lập khung Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000; /* Nền đen dự phòng khi ảnh chưa load */
}

/* 2. Lớp phủ tối để nổi bật nội dung (UX quan trọng) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgb(0 45 94 / 0%) 0%,
        rgb(0 0 0 / 29%) 60%,
        rgb(0 0 0 / 71%) 100%
    );
    z-index: 2;
}

/* 3. Cấu hình Slider không Transition */
.hero-slider {
    position: absolute;
    top: 80px;
    right: 395px;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 40px;
    right: 150px;
    padding-top: 100px;
    width: 73%;
    height: 88%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* Mặc định ẩn */
    /* Tổng 20s cho 4 ảnh (mỗi ảnh 5s), chuyển ngay lập tức (linear) */
    animation: slideNoTransition 4s infinite linear;
}

.limo-black {
    background-image: url("/img/limo-black.webp");
    animation-delay: 0s;
}
.limo-silver {
    background-image: url("/img/limo-silver.webp");
    animation-delay: 1s;
}
.limo-red {
    background-image: url("/img/limo-red.webp");
    animation-delay: 2s;
}
.limo-white {
    background-image: url("/img/limo-white.webp");
    animation-delay: 3s;
}

.show-1 {
    padding-top: 110px !important;
}

/* Nút Đặt Xe Cao Cấp */
.btn-booking-prime {
    /* Gradient Vàng sang Đen nhẹ */
    background: linear-gradient(135deg, #ffb800 0%, #d19802 50%, #d19802 100%);
    border: none;
    color: #fff !important;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
    transition: all 0.3s ease;

    /* Kích hoạt đồng thời 2 hiệu ứng: Lắc lư và Nháy sáng */
    animation: wobbleEffect 2s infinite, glowPulse 1.5s infinite alternate;
}

/* Hiệu ứng 1: Lắc lư (Wobble) */
@keyframes wobbleEffect {
    0% {
        transform: translateX(0%);
    }
    15% {
        transform: translateX(-5%) rotate(-1deg);
    }
    30% {
        transform: translateX(4%) rotate(1deg);
    }
    45% {
        transform: translateX(-3%) rotate(-1deg);
    }
    60% {
        transform: translateX(2%) rotate(1deg);
    }
    75% {
        transform: translateX(-1%) rotate(0deg);
    }
    100% {
        transform: translateX(0%);
    }
}

/* Hiệu ứng 2: Nháy sáng/Đổ bóng (Glow Pulse) */
@keyframes glowPulse {
    from {
        box-shadow: 0 0 5px #ffb800, 0 0 10px #ffb800;
    }
    to {
        box-shadow: 0 0 20px #ffb800, 0 0 30px #ff8a00;
    }
}

/* Hiệu ứng khi di chuột vào (Hover) */
.btn-booking-prime:hover {
    transform: scale(1.05) !important;
    filter: brightness(1.2);
    animation: none; /* Dừng lắc khi khách đang muốn bấm */
    background: linear-gradient(
        135deg,
        #d19802 0%,
        #d19802 50%,
        #ffb800 100%
    ); /* Đảo ngược màu cho ngầu */
}

/* 5. Logic chuyển ảnh "Cắt" ngay lập tức (Keyframes) */
@keyframes slideNoTransition {
    0%,
    24.99% {
        opacity: 1;
        z-index: 2;
    } /* Ảnh hiện */
    25%,
    100% {
        opacity: 0;
        z-index: 1;
    } /* Ảnh ẩn ngay lập tức */
}

.display-3 {
    font-size: 3rem; /* Giảm nhẹ size chữ để không đè xe */
    font-weight: 800;
}
/* 6. Tối ưu chữ trên Mobile */
@media (max-width: 768px) {
    .show-1 {
        padding-top: 50px !important;
    }
    .hero-section {
        text-align: center;
    }

    .display-3 {
        font-size: 1.7rem; /* Giảm nhẹ size chữ để không đè xe */
        font-weight: 800;
    }

    .hero-slider {
        /* Đảm bảo khung slider phủ kín màn hình mobile */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .slide {
        width: 100%;
        height: 40%;
        top: 135px;
        left: 0px;
        /* Mobile: Căn giữa ảnh để xe nằm chính giữa màn hình dọc */
        background-position: center center;
        /* Thu nhỏ tỷ lệ ảnh một chút nếu xe bị to quá trên mobile */
        background-size: cover;
    }
}

.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bg-primary-light {
    background: #e3effb;
}
.bg-warning-light {
    background: #fff9e6;
}
.bg-success-light {
    background: #e6f7ef;
}

.hover-shadow:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
    background: #fff;
}

.transition {
    transition: all 0.3s ease;
}

/* Floating Buttons */
.contact-buttons {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
}

.zalo-btn {
    width: 60px;
    height: 60px;
    background: #0088ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
    text-decoration: none;
}
.logo {
    width: 70px;
}
a {
    text-decoration: none;
}
.phone-btn {
    background: #e74c3c;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    box-shadow: none;
    background: #fff !important;
    border: 1px solid var(--primary) !important;
}

.badge {
    padding: 8px 15px;
}
.zalo-btn-mobile {
    position: relative;
    left: 80px !important;
}

@media (max-width: 767.98px) {
    .zalo-btn-mobile {
        position: relative;
        bottom: 55px;
        left: 6px !important;
    }
    .phone-btn {
        background: #e74c3c;
        color: white;

        /* CỐ ĐỊNH KÍCH THƯỚC ĐỂ TẠO HÌNH TRÒN */
        width: 57px; /* Chiều rộng bằng chiều cao */
        height: 57px;

        /* CĂN GIỮ ICON VÀO CHÍNH GIỮA */
        display: inline-flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%; /* 50% đảm bảo luôn tròn trịa */
        text-decoration: none;

        /* HIỆU ỨNG LẮC LƯ */
        animation: shake 0.5s infinite;

        /* GIỮ NÚT CỐ ĐỊNH Ở GÓC MÀN HÌNH (Tùy chọn cho Mobile) */
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    }
    .phone-btn > span {
        display: none;
    }
    .card-price-item {
        background: #fff;
        transition: transform 0.2s;
        border-left: 5px solid #00468b; /* Màu xanh Navy của bạn */
    }

    .card-price-item:active {
        transform: scale(0.98);
        background-color: #f8f9fa;
    }

    .route-info {
        font-size: 1.1rem;
    }

    /* Tối ưu ô nhập KM trên mobile */
    #kmInput {
        height: 50px;
        font-size: 1.1rem;
        text-align: center;
    }
}
