/* Hiệu ứng chuyển màn hình khi vuốt lên */
#booking-screen, #aboutus-screen {
    transition: transform 0.5s cubic-bezier(0.4,0.8,0.4,1), opacity 0.4s;
}

#aboutus-screen.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
#booking-screen.hide {
    opacity: 0;
}
/*# Đảm bảo aboutus-content đồng bộ style với input-box */
.aboutus-content {
    margin-bottom: 18px;
    padding: 18px 16px;
    color: #222;
    font-size: 1rem;
    line-height: 1.7;
}
/* 
   SmartRide 2026 - Final CSS Style (Cập nhật lỗi Nút Gọi và GPS)
   Optimized for Mobile (No Scroll) and Desktop (Normal Web)
*/

:root { 
    --primary: #00b894; 
    --secondary: #0984e3; 
    --bg: #ffffff; 
    --error: #ff7675;
    --success: #2ecc71;
    --text-muted: #636e72;
    --call-btn: #e74c3c;
    font-size: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 1. CÀI ĐẶT CHUNG CHO MOBILE (Mặc định) */
html, body { 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    background: var(--bg);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden; /* Chống cuộn trên Mobile */
}

.app-container { 
    width: 100%; 
    height: 100%; 
    max-width: 500px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column;
    padding: 15px; 
	padding-bottom: 200px;
    position: relative;
    overflow-x: hidden;
}

/* Ẩn thanh cuộn */
*::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; -ms-overflow-style: none; }

/* --- CẬP NHẬT NÚT GỌI HỖ TRỢ (Mobile mặc định) --- */
.btn-call-fixed { 
    position: fixed; 
    left: 15px; 
    bottom: 15px; 
    padding: 14px 24px;
    background-color: var(--call-btn); 
    color: white; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 8px;
    text-decoration: none; 
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4); 
    z-index: 9999; /* Luôn trên cùng */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}
.btn-call-fixed svg { width: 24px; height: 24px; flex-shrink: 0; }
.btn-call-fixed span { display: inline-block; }
.btn-call-fixed:active { transform: scale(0.95); }

/* WidgetBot chat container */
.widgetbot-wrapper {
    position: fixed;
    right: 16px;
    bottom: 90px;
    width: min(360px, calc(100% - 32px));
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    background: #fff;
    z-index: 9998;
}
.widgetbot-wrapper widgetbot {
    display: block;
    width: 100%;
    height: 100%;
}

/* 2. CÀI ĐẶT CHO DESKTOP/MÀN HÌNH LỚN (>= 600px) */
@media (min-width: 600px) {
    html, body {
        overflow-y: auto;
        background: #f0f2f5; 
        display: block; 
    }
    
    body { padding-top: 50px; padding-bottom: 50px; }

    .app-container { 
        height: auto; 
        min-height: 600px; 
        max-width: 550px; 
        border-radius: 16px; 
        box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
        padding-bottom: 15px;
    }
    
    /* Tăng kích thước nút gọi trên Desktop */
    .btn-call-fixed {
        padding: 16px 28px;
        left: 40px; 
        bottom: 40px;
        font-size: 16px;
    }
    .btn-call-fixed svg { width: 26px; height: 26px; }
    .btn-call-fixed:hover { transform: translateY(-3px); background-color: #c0392b; box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5); }

    .widgetbot-wrapper {
        width: 420px;
        height: 560px;
        right: 32px;
        bottom: 110px;
    }
}

/* 3. CÁC THÀNH PHẦN CHI TIẾT */
h1 { color: var(--primary); text-align: center; margin: 0; font-size: 2rem; }
.header-container { display: flex; flex-direction: column; justify-content: center; align-items: center; margin-bottom: 12px; width: 100%; }
.sologanspan {
    display: block;
    text-align: center;
    margin-top: 0px;
    font-size: 0.96rem;
    color: var(--text-muted);
    font-weight: 500;
}
h1 { color: var(--primary); text-align: center; margin: 0; font-size: 2rem; }
h2 { color: var(--primary); text-align: center; margin: 0; font-size: 1.4rem; }
#vehicle-label { margin-top: 20px; font-size: 0.8rem; font-weight: bold; color: var(--text-muted); }    

.input-box { margin-bottom: 12px; position: relative; }
label { font-size: 1rem; font-weight: bold; color: var(--text-muted); margin-bottom: 4px; display: block; }

/* FIX LỖI GPS: Đảm bảo input-wrapper có position: relative */
.input-wrapper { 
    position: relative; 
    width: 100%; 
    display: flex; 
    align-items: center; 
}

input { 
    width: 100%; padding: 12px; border: 1.5px solid #eee; border-radius: 10px; 
    font-size: 1.2rem; outline: none; transition: all 0.2s ease; 
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1); }
#pickup { padding-right: 48px !important; } /* Đệm cho icon GPS */

.btn-gps-smart { 
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); 
    width: 36px; height: 36px; background-color: #f0f7ff; color: var(--secondary); 
    border: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; 
    cursor: pointer; z-index: 5; 
}
.btn-gps-smart:active { transform: translateY(-50%) scale(0.9); background-color: var(--secondary); color: white; }
.loading-gps { animation: rotate 1s linear infinite; color: #f39c12 !important; }
@keyframes rotate { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }


.suggestions { 
    position: absolute; width: 100%; background: white; border-radius: 10px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); z-index: 1000; max-height: 160px; overflow-y: auto; 
}
.suggestion-item { padding: 14px; font-size: 13px; border-bottom: 1px solid #f9f9f9; cursor: pointer; }
.suggestion-item:last-child { border-bottom: none; }


.options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0 0 0;
    margin: 0;
    flex-grow: 0;
}
.btn-main { 
    display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; 
    background: white; border: 1.5px solid #eee; border-radius: 14px; cursor: pointer; 
    font-weight: 600; transition: all 0.2s ease; 
}
.btn-main.active { border-color: var(--primary); background: #f0fffb; color: var(--primary); }
.btn-electric.active { background: var(--primary); color: white; border-color: var(--primary); }

.price-tag { font-size: 1rem; background: #f1f2f6; padding: 3px 10px; border-radius: 6px; color: var(--text-muted); }
.btn-main.active .price-tag { background: var(--primary); color: white; }

.distance-tag { font-size: 1rem; background: #ffeaa7; padding: 3px 10px; border-radius: 6px; color: var(--text-muted); opacity: 0; transition: opacity 0.3s ease; }
.distance-tag.visible { opacity: 1; }

.status { 
    display: inline-block; 
    color: #f39c12; 
    font-size: 14px; 
    margin-right: 8px; 
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.status.active {
    opacity: 1;
    visibility: visible;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.status.hide {
    opacity: 0;
    visibility: hidden;
}

.btn-confirm { 
    width: 100%; padding: 18px; background: var(--success); color: white; border: none; 
    border-radius: 14px; font-size: 18px; font-weight: bold; cursor: pointer; 
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3); 
}
.btn-confirm:active { transform: scale(0.98); }


#success-screen { height: 100%; display: none; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.success-icon { font-size: 70px; margin-bottom: 20px; }
.btn-reset { width: 100%; max-width: 250px; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 12px; font-weight: bold; cursor: pointer; }
