﻿/* Nút bấm chính */


/* //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////          Header chính   */

/* Tổng thể Header */
header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Tinh chỉnh Navbar */
.navbar {
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05) !important; /* Đổ bóng nhẹ hiện đại */
    border-bottom: none !important;
}

/* Định dạng các Link điều hướng */
.navbar-nav .nav-link {
    font-weight: 500;
    color: #444 !important;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0 !important;
}

    /* Hiệu ứng gạch chân (Underline) khi Hover */
    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: #f37021; /* Màu xanh chủ đạo, có thể đổi theo ý thích */
        transition: width 0.3s ease;
    }

    .navbar-nav .nav-link:hover::after {
        width: 100%;
    }

    .navbar-nav .nav-link:hover {
        color: #f37021 !important;
    }

/* Tùy chỉnh Toast Container (nếu có thông báo) */
.toast-container {
    padding: 1rem;
}

/* Responsive: Trên Mobile các link sẽ sát lề hơn */
@media (max-width: 576px) {
    .navbar-nav .nav-link {
        margin: 5px 0;
    }

        .navbar-nav .nav-link::after {
            display: none; /* Tắt hiệu ứng gạch chân trên mobile để nhìn gọn hơn */
        }
}

/* //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////      END   Header chính   */




.vehicle-list {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.vehicle-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    width: 150px;
    cursor: pointer;
}

    .vehicle-card.active {
        border-color: #f37021;
        background-color: #fff9f5;
    }

#map-container {
    flex-grow: 1;
    background: #e5e3df;
}












#btn-calculate {
    width: 100%;
    background-color: #f37021;
    color: white;
    border: none;
    padding: 14px;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 20px;
    cursor: pointer;
}





/* Ô nhập liệu phong cách Minimalist */
#pickup {
    flex: 1;
}




/* THông báo lên trang */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.custom-toast {
    background-color: #f37021;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    border-left: 4px solid #f37021; /* Màu cam đồng bộ với giao diện của bạn */
    /* Hiệu ứng xuất hiện và biến mất */
    animation: fadein 0.5s, fadeout 0.5s 2.5s forwards;
}

@keyframes fadein {
    from {
        right: -100px;
        opacity: 0;
    }

    to {
        right: 20px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        right: 20px;
        opacity: 1;
    }

    to {
        right: -100px;
        opacity: 0;
    }
}



/* Gợi ý địa chỉ khi nhập */

/* Container chứa ô input và danh sách gợi ý */
.input-wrapper {
    position: relative; /* Bắt buộc để gợi ý bám theo ô input này */
    width: 100%;
}

.autocomplete-suggestions {
    position: absolute; /* Giúp danh sách "bay" lơ lửng, không đẩy nút bấm xuống */
    top: 100%; /* Hiển thị ngay sát mép dưới của ô input */
    left: 0;
    right: 0;
    background: white;
    service-price: fw-bold text-primary;
    border: 1px solid #ddd;
    border-top: none;
    /* Tăng z-index để nó nằm trên cùng, không bị nút bấm hay thành phần khác đè lên */
    z-index: 99999;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15); /* Đổ bóng cho giống App thật */
    border-radius: 0 0 4px 4px;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
    color: #333;
    white-space: nowrap; /* Không cho chữ xuống dòng */
    overflow: hidden; /* Ẩn phần chữ thừa */
    text-overflow: ellipsis; /* Hiện dấu ... nếu địa chỉ quá dài */
}

    .suggestion-item:hover {
        background-color: #fff4ed; /* Màu cam nhạt khi di chuột vào */
        color: #f37021;
    }


    
    /* Căn giữa và layout */

    .delivery-container { display: flex; height: calc(100vh - 60px); }

    .sidebar { width: 400px; background: #fff; border-right: 1px solid #eee; display: flex; flex-direction: column; }

    .sidebar-content { padding: 20px; flex: 1; overflow-y: auto; }

    #map { flex: 1; }



    /* CSS cho 3 thẻ chọn giá */

    .price-options-container { display: none; margin-top: 20px; }

    .price-card {

        border: 1px solid #eee; border-radius: 10px; padding: 15px; margin-bottom: 10px;

        cursor: pointer; position: relative; transition: 0.3s;

    }

    .price-card:hover { border-color: #f37021; }

    .price-card.active { border: 2px solid #f37021; background-color: #fff9f5; }



    .price-card .service-name { font-weight: bold; font-size: 16px; margin-bottom: 5px; display: block; }

    .price-card .service-desc { font-size: 12px; color: #777; line-height: 1.4; display: block; margin-bottom: 10px; }

    .price-card .service-price { font-size: 20px; font-weight: 800; color: #333; }

    .price-card .service-price::before { content: '₫'; text-decoration: underline; margin-right: 2px; }



    /* Icon tia sét/phần trăm cho sinh động */

    .badge-icon { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }

    .bg-yellow { background: #fff9db; color: #fab005; }

    .bg-green { background: #ebfbee; color: #40c057; }



    .btn-next-step { 

        background: #f37021; color: white; border: none; width: 100%; padding: 15px; 

        border-radius: 8px; font-weight: bold; font-size: 18px; margin-top: 15px; display: none;

    }





:root {
    --primary-color: #f37021;
    --border-color: #eee;
}

/* Cấu trúc lộ trình mới */
.route-section {
    margin: 15px 0;
}

.route-item {
    display: flex;
    align-items: flex-start;
}

.icon-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30px;
    margin-top: 10px;
}

.circle-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

    .circle-icon.destination {
        background-color: var(--primary-color);
    }

.line-dotted {
    width: 0;
    height: 30px;
    border-left: 2px dotted var(--primary-color);
    margin: 4px 0;
}

.input-column {
    flex-grow: 1;
}

.route-input-custom {
    width: 100%;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    padding: 10px 5px !important;
    background: transparent !important;
    box-shadow: none !important;
}

    .route-input-custom:focus {
        border-bottom: 1px solid var(--primary-color) !important;
    }

/* Điều chỉnh lại price-card cho đẹp hơn */
.price-options-container {
    margin-top: 20px;
}

.price-card {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

    .price-card.active {
        border-color: var(--primary-color);
        background-color: #fff9f5;
    }




/* Ẩn mặc định các màn hình phụ */
#step-details, #step-summary {
    display: none;
}

/* Style cho bảng tổng kết */
.summary-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px dashed #f37021;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}


/* //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Thiết lập Modal (Popup)/ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out;
}

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

.modal-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}



/* //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////          Giao diện chính   */


.chu-y {
    font-size: 20px;
    font-weight: 300;
    color: #e74555;
}

/* //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////         index  */
/* Service Cards */
.service-card {
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    height: 100%;
    transition: transform 0.3s;
}

    .service-card:hover {
        transform: translateY(-5px);
    }

.service-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-label {
    background-color: #f37021;
    color: white;
    padding: 15px 10px;
    font-weight: bold;
    font-size: 0.9rem;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: #f37021; /* Màu cam chủ đạo */
}

.benefit-box {
    background: white;
    padding: 25px 20px;
    border-radius: 15px;
    height: 100%;
    position: relative;
}

.benefit-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #f37021;
    line-height: 1;
    margin-bottom: 10px;
}

.benefit-title {
    font-weight: bold;
    color: #f37021;
    margin-bottom: 15px;
    line-height: 1.3;
}

.benefit-desc {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .benefit-box {
        text-align: center;
    }
}


/* //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////         gọi nhanh  */




/* Container chứa các nút liên hệ */
.contact-widgets {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Style chung cho nút */
.widget-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    color: white;
    text-decoration: none;
    font-size: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
}

/* Nút Gọi */
.btn-call {
    background: #FF8C00; /* Màu cam đồng bộ với web */
    animation: ring 1.5s infinite;
}

/* Nút Zalo */
.btn-zalo {
    background: #0088ff; /* Màu xanh đặc trưng của Zalo */
}

/* Hiệu ứng rung cho nút gọi */
@keyframes ring {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.widget-btn:hover {
    transform: translateY(-5px);
    color: white;
}

/* Hiển thị chú thích khi di chuột vào */
.widget-btn::before {
    content: attr(data-label);
    position: absolute;
    right: 70px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.widget-btn:hover::before {
    opacity: 1;
}



/* //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////         biểu tượng login thành công  */







/* Làm cho menu dropdown mượt hơn */
.dropdown-menu {
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nút logout không có viền xấu */
.btn-link:focus {
    box-shadow: none;
}

