﻿/* Nút bấm chính */
#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;
    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;
}



