/* =====================================================
   VRBX STEP 1 – SEARCH FORM (SAFE VERSION)
===================================================== */

#vrbx-step1-search {
    /* layout */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;

    /* box */
    max-width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    box-sizing: border-box;
}

/* full width rows */
#vrbx-step1-search .vrbx-departure-wrapper,
#vrbx-step1-search .vrbx-arrival-wrapper,
#vrbx-step1-search .vrbx-submit-wrapper {
    grid-column: 1 / -1;
}

/* =====================================================
   FORM FIELD
===================================================== */
#vrbx-step1-search .vrbx-field {
    margin-bottom: 4px;
}

#vrbx-step1-search .vrbx-field label,
#vrbx-step1-search .vrbx-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
    color: #3b1f16;
}

#vrbx-step1-search select {
    width: 100%;
    padding: 9px 12px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #d0b8a8;
    background: #fff;
    box-sizing: border-box;
}

/* =====================================================
   CHECKBOX LIST
===================================================== */
#vrbx-step1-search .vrbx-checkbox-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;

    padding: 10px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #e2d2c6;
    border-radius: 12px;
}

#vrbx-step1-search .vrbx-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    line-height: 1.3;
    color: #2f1b14;
    cursor: pointer;
}

/* ép checkbox hiện đúng trên PC */
#vrbx-step1-search input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    opacity: 1 !important;
    display: inline-block !important;

    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

/* =====================================================
   SUBMIT BUTTON
===================================================== */
#vrbx-step1-search .vrbx-submit-wrapper {
    text-align: right;
    margin-top: 6px;
}

#vrbx-step1-search #vrbx-btn-search {
    padding: 10px 26px;
    font-size: 15px;
    font-weight: 600;

    background: #1e73be;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

#vrbx-step1-search #vrbx-btn-search:hover {
    background: #155d9c;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 768px) {

    #vrbx-step1-search {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 8px;
    }

    #vrbx-step1-search .vrbx-checkbox-list {
        grid-template-columns: 1fr;
    }

    #vrbx-step1-search .vrbx-submit-wrapper {
        margin-top: 8px;
    }

    #vrbx-step1-search #vrbx-btn-search {
        width: 100%;
        text-align: center;
    }
}
/* =========================
   STEP 2 – FORCE HIDE COLUMNS MOBILE
========================= */
@media (max-width: 768px) {

    /* Ẩn SỐ CHỖ (cột 3) */
    #vrbx-step2 table thead th:nth-child(3),
    #vrbx-step2 table tbody td:nth-child(3) {
        display: none !important;
    }

    /* Ẩn TIỆN ÍCH (cột 5) */
    #vrbx-step2 table thead th:nth-child(5),
    #vrbx-step2 table tbody td:nth-child(5) {
        display: none !important;
    }

    /* Gọn bảng hơn */
    #vrbx-step2 table {
        font-size: 14px;
    }
}
/* =====================================================
   STEP 3 – MOBILE OPTIMIZE
   ===================================================== */
@media (max-width: 768px) {

    /* ===== 1. ẨN BẢN ĐỒ TUYẾN ===== */
    #vrbx-route-map,
    .vrbx-step3-right {
        display: none !important;
    }

    /* ===== 2. TABLE: ẨN CỘT BIỂN SỐ + TIỆN ÍCH ===== */

    /* BIỂN SỐ (cột thứ 2) */
    .vrbx-table th:nth-child(2),
    .vrbx-table td:nth-child(2) {
        display: none;
    }

    /* TIỆN ÍCH (cột thứ 5) */
    .vrbx-table th:nth-child(5),
    .vrbx-table td:nth-child(5) {
        display: none;
    }

    /* ===== 3. TỐI ƯU BẢNG CHO MOBILE ===== */
    .vrbx-table {
        font-size: 14px;
    }

    .vrbx-table th,
    .vrbx-table td {
        padding: 8px 6px;
        white-space: nowrap;
    }

    /* ===== 4. CHO TABLE CUỘN NGANG AN TOÀN ===== */
    .vrbx-step3-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

