/* ===== RESET CƠ BẢN ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ===== BODY ===== */

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #fdf3d4, #fbe4b2);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}


/* ===== FORM CHÍNH ===== */

.booking-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px 20px;
    width: 350px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    position: relative;
}


/* ===== TIÊU ĐỀ NÚT ===== */

.booking-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.btn-option {
    flex: 1;
    padding: 10px;
    border: 2px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 8px;
    margin-right: 10px;
    font-weight: 600;
    color: #444;
    transition: all 0.25s ease;
}

.btn-option:last-child {
    margin-right: 0;
}

.btn-option.active {
    background-color: #f7c948;
    border-color: #f7c948;
    color: #fff;
    box-shadow: 0 0 8px #f7c94888;
}

.btn-option:hover:not(.active) {
    background-color: #fdf3d4;
}


/* ===== SECTION INPUT ===== */

.booking-section {
    margin-bottom: 20px;
}

.booking-section label {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
    color: #555;
}


/* ===== NHÓM INPUT ===== */

.location-group {
    border-left: 2px dashed #3498db;
    padding-left: 12px;
}

.location-item {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
}


/* ===== INPUT ===== */

.location-item input[type="text"],
input[type="datetime-local"] {
    flex: 1;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1.5px solid #ccc;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.location-item input[type="text"]:focus,
input[type="datetime-local"]:focus {
    border-color: #f7c948;
    box-shadow: 0 0 6px #f7c948aa;
}


/* ===== NÚT THÊM & XOÁ ===== */

.btn-add,
.btn-remove {
    background-color: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 22px;
    font-size: 16px;
    margin-left: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove {
    background-color: #e74c3c;
}

.btn-add:hover {
    background-color: #27ae60;
}

.btn-remove:hover {
    background-color: #c0392b;
}


/* ===== NÚT TIẾP TỤC ===== */

.btn-continue {
    width: 100%;
    padding: 12px;
    background-color: #f7c948;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    transition: background-color 0.25s ease;
}

.btn-continue:hover {
    background-color: #f4b400;
}


/* ===== ICON BÊN PHẢI INPUT ===== */

.icon-map {
    margin-left: 10px;
    flex-shrink: 0;
    font-size: 18px;
    color: #666;
}


/* ===== DANH SÁCH GỢI Ý ===== */

.suggestion-list {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 999;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}


/* ===== VỊ TRÍ CHO GỢI Ý (cho điểm giữa) ===== */

.show2 {
    top: 100%;
}


/* ===== KHOẢNG CÁCH / PHÍ ===== */

.distance {
    float: right;
    color: #e74c3c;
    font-weight: bold;
}


/* ===== INPUT BỊ BỎ TRỐNG (ERROR) ===== */

input:invalid {
    border-color: #e74c3c;
    background-color: #fff4f4;
}


/* ===== RESPONSIVE (TÙY CHỌN) ===== */

@media (max-width: 420px) {
    .booking-form {
        width: 100%;
        margin: 10px;
    }
    .btn-option {
        font-size: 14px;
    }
}