/*
Theme Name: Taxi
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}


/* =================================
   BOOKING FORM - MAIN
================================= */

.booking-form {
    width: 100%;
    max-width: 100%;
    padding: 20px 18px;
    background: #fff;
    border-radius: 20px;
    box-sizing: border-box;
    color: #064a40;
    font-family: inherit;
}

/* RESET CONTACT FORM 7 AUTOP */
.booking-form p {
    margin: 0 !important;
    padding: 0;
}

.booking-form br {
    display: none !important;
}

.booking-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.booking-form .wpcf7-spinner {
    display: none;
}

/* TITLE */
.booking-form .booking-title {
    margin: 0 0 15px !important;
    padding: 0;
    color: #064a40;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
}

/* =================================
   RIDE TYPE TABS
================================= */

.booking-form .booking-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 15px;
}

.booking-form .booking-type > p {
    min-width: 0;
    margin: 0 !important;
}

.booking-form .booking-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    padding: 8px 5px;
    margin: 0;
    border: 1px solid #d5e4e1;
    border-radius: 13px;
    background: #fff;
    color: #173d39;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: all .2s ease;
}

.booking-form .booking-type-btn strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.booking-form .booking-type-btn span {
    display: block;
    margin-top: 2px;
    color: #777;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.booking-form .booking-type-btn.active {
    background: #e5f3f0;
    border-color: #008675;
    box-shadow: 0 0 0 2px rgba(0, 134, 117, .10);
}

/* =================================
   FORM FIELDS
================================= */

.booking-form .booking-field {
    min-width: 0;
    margin: 0 0 12px !important;
}

.booking-form .booking-field label {
    display: block;
    margin: 0 0 6px !important;
    padding: 0;
    color: #064a40;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

/* INPUT, SELECT, TEXTAREA */

.booking-form input.booking-input,
.booking-form select.booking-input,
.booking-form textarea.booking-input {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 12px;
    border: 1px solid #d5e4e1;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    line-height: normal;
    box-sizing: border-box;
}

.booking-form input.booking-input:focus,
.booking-form select.booking-input:focus,
.booking-form textarea.booking-input:focus {
    border-color: #008675;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 134, 117, .10);
}

.booking-form input.booking-input::placeholder,
.booking-form textarea.booking-input::placeholder {
    color: #888;
    opacity: 1;
}

/* =================================
   PICKUP LOCATION + GPS
================================= */

.booking-form .booking-location {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
}

.booking-form .booking-location .wpcf7-form-control-wrap {
    flex: 1;
    min-width: 0;
}

.booking-form .booking-location input.booking-input {
    padding-right: 48px;
}

.booking-form .booking-location-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 10px;
    background: #e5f3f0;
    color: #008675;
    font-size: 17px;
    cursor: pointer;
}

.booking-form .booking-location-btn:hover {
    background: #d1eae4;
}

.booking-form .booking-location-btn:disabled {
    opacity: .5;
    cursor: wait;
}

.booking-form .location-status {
    display: block;
    margin-top: 4px;
    color: #008675;
    font-size: 12px;
    line-height: 1.4;
}

/* =================================
   SWAP LOCATION
================================= */

.booking-form .booking-swap-wrap {
    display: flex;
    justify-content: center;
    margin: -3px 0 9px;
}

.booking-form .booking-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border: 1px solid #d5e4e1;
    border-radius: 50%;
    background: #fff;
    color: #008675;
    font-size: 21px;
    cursor: pointer;
    transition: .2s;
}

.booking-form .booking-swap:hover {
    background: #e5f3f0;
    transform: rotate(180deg);
}

/* =================================
   TWO COLUMN GRID
================================= */

.booking-form .booking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.booking-form .booking-grid .booking-field {
    min-width: 0;
}

/* =================================
   ROUND TRIP CHECKBOX
================================= */

.booking-form .booking-roundtrip {
    display: none;
    margin: -1px 0 12px;
}

.booking-form .booking-roundtrip.is-visible {
    display: block;
}

.booking-form .booking-roundtrip .wpcf7-form-control-wrap {
    display: block;
}

.booking-form .booking-roundtrip .wpcf7-list-item {
    display: block;
    margin: 0;
}

.booking-form .booking-roundtrip label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #173d39;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.booking-form .booking-roundtrip input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #008675;
}

/* =================================
   TEXTAREA
================================= */

.booking-form textarea.booking-input {
    height: 60px;
    min-height: 60px;
    padding: 10px 12px;
    resize: vertical;
}

/* =================================
   SUBMIT BUTTON
================================= */

.booking-form .booking-submit-wrap {
    margin-top: 5px;
}

.booking-form input.booking-submit {
    display: block;
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0 15px;
    margin: 0 !important;
    border: none;
    border-radius: 12px;
    background: #ff8800;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}

.booking-form input.booking-submit:hover {
    background: #ed7900;
    color: #fff;
}

/* =================================
   NOTE
================================= */

.booking-form .booking-note {
    margin: 10px 0 0 !important;
    padding: 0;
    color: #008b88;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}

/* =================================
   CF7 VALIDATION
================================= */

.booking-form .wpcf7-not-valid {
    border-color: #e53935 !important;
}

.booking-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.booking-form .wpcf7-response-output {
    margin: 12px 0 0 !important;
    padding: 10px !important;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

/* =================================
   MOBILE
================================= */

@media (max-width: 480px) {

    .booking-form {
        padding: 17px 13px;
        border-radius: 17px;
    }

    .booking-form .booking-title {
        font-size: 19px;
    }

    .booking-form .booking-grid {
        gap: 8px;
    }

    .booking-form .booking-field label {
        font-size: 13px;
    }

    .booking-form input.booking-input,
    .booking-form select.booking-input {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 13px;
    }

    .booking-form .booking-type-btn strong {
        font-size: 14px;
    }

    .booking-form .booking-type-btn span {
        font-size: 12px;
    }

    .booking-form .booking-note {
        font-size: 14px;
    }
}


/* =========================================
   FIX BOOKING FORM - FLATSOME + CONTACT FORM 7
========================================= */

/* 1. FORM */
.booking-form {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 18px !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

.booking-form,
.booking-form * {
    box-sizing: border-box !important;
}

/* Xóa khoảng cách mặc định của CF7 */
.booking-form p {
    margin: 0 !important;
    padding: 0 !important;
}

.booking-form br {
    display: none !important;
}


/* 3. FIX HAI TAB NẰM NGANG */
.booking-form .booking-type {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 0 15px !important;
}

.booking-form .booking-type > p {
    display: block !important;
    flex: 1 1 0 !important;
    width: 50% !important;
    min-width: 0 !important;
    max-width: 50% !important;
}

.booking-form .booking-type-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 60px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 5px !important;
    border: 1px solid #d5e4e1 !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: #064a40 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

.booking-form .booking-type-btn.active {
    background: #e5f3f0 !important;
    border-color: #008675 !important;
    box-shadow: 0 0 0 2px rgba(0,134,117,.1) !important;
}

.booking-form .booking-type-btn strong {
    display: block !important;
    font-size: 15px !important;
    margin: 0 !important;
}

.booking-form .booking-type-btn span {
    display: block !important;
    font-size: 13px !important;
    margin-top: 3px !important;
}

/* 4. FIX Ô ĐIỂM ĐÓN VÀ ICON GPS */
.booking-form .booking-location {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Bỏ ảnh hưởng thẻ p do CF7 sinh */
.booking-form .booking-location > p {
    display: contents !important;
}

.booking-form .booking-location .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}

.booking-form .booking-location input.booking-input {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 44px !important;
    padding: 0 48px 0 12px !important;
    margin: 0 !important;
}

.booking-form .booking-location-btn {
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 10px !important;
    background: #e5f3f0 !important;
    transform: none !important;
}

/* 5. FIX NÚT ĐỔI ĐIỂM TRÒN */
.booking-form .booking-swap-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 8px 0 8px !important;
}

.booking-form .booking-swap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 35px !important;
    min-width: 33px !important;
    max-width: 35px !important;
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #d5e4e1 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #008675 !important;
    font-size: 21px !important;
    line-height: 1 !important;
    transform: none;
}

/* 6. FIX GRID HAI CỘT */
.booking-form .booking-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
}

.booking-form .booking-grid > .booking-field {
    width: 100% !important;
    min-width: 0 !important;
}

/* 7. FIX TẤT CẢ INPUT */
.booking-form input.booking-input,
.booking-form select.booking-input,
.booking-form textarea.booking-input {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    margin: 0 !important;
    border: 1px solid #d5e4e1 !important;
    border-radius: 12px !important;
    background-color: #fff !important;
    box-shadow: none !important;
}

/* 8. FIX CHECKBOX KHỨ HỒI */
.booking-form .booking-roundtrip {
    width: 100% !important;
}

.booking-form .booking-roundtrip label {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: auto !important;
}

.booking-form .booking-roundtrip input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
}

/* 9. TEXTAREA */
.booking-form textarea.booking-input {
    height: 65px !important;
    min-height: 65px !important;
    padding: 10px 12px !important;
}

/* 10. NÚT GỬI */
.booking-form .booking-submit-wrap {
    width: 100% !important;
    margin-top: 5px !important;
}

.booking-form input.booking-submit {
    display: block !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 12px !important;
    background: #ff8800 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* 11. GHI CHÚ */
.booking-form .booking-note {
    margin: 10px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 1.6 !important;
}

/* 12. MOBILE */
@media (max-width: 480px) {

    .booking-form {
        padding: 17px 13px !important;
    }

    .booking-form .booking-type {
        gap: 8px !important;
    }

    .booking-form .booking-type-btn {
        min-height: 60px !important;
    }

    .booking-form .booking-type-btn strong {
        font-size: 13px !important;
    }

    .booking-form .booking-type-btn span {
        font-size: 11px !important;
    }

    .booking-form .booking-grid {
        gap: 8px !important;
    }

    .booking-form .booking-grid .booking-field {
        min-width: 0 !important;
    }

    .booking-form input.booking-input,
    .booking-form select.booking-input {
        font-size: 13px !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }
}


/* FIX 2 TAB GHÉP XE - BAO XE */

.booking-form .booking-type {
    display: block !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

/* Thẻ P chứa cả 2 nút */
.booking-form .booking-type > p {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ẩn br do Contact Form 7 tự sinh */
.booking-form .booking-type > p br {
    display: none !important;
}

/* Hai nút chia đều chiều rộng */
.booking-form .booking-type > p .booking-type-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 64px !important;

    margin: 0 !important;
    padding: 8px 4px !important;

    box-sizing: border-box !important;
    white-space: normal !important;
}

/* Nội dung nút */
.booking-form .booking-type-btn strong {
    display: block !important;
    margin: 0 !important;
    font-size: 15px !important;
}

.booking-form .booking-type-btn span {
    display: block !important;
    margin-top: 3px !important;
    font-size: 13px !important;
}

/* TĂNG KÍCH THƯỚC 2 TAB GHÉP XE - BAO XE */

.booking-form .booking-type {
    width: 100% !important;
    margin-bottom: 18px !important;
}

.booking-form .booking-type > p {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;

    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

/* Hai nút */
.booking-form .booking-type > p .booking-type-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: 72px !important;
    min-height: 72px !important;

    padding: 10px 12px !important;
    border-radius: 14px !important;
}

/* Chữ tiêu đề */
.booking-form .booking-type-btn strong {
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* Chữ mô tả */
.booking-form .booking-type-btn span {
    font-size: 12px !important;
    margin-top: 5px !important;
}

/* Mobile */
@media (max-width: 480px) {
    .booking-form .booking-type > p .booking-type-btn {
        height: 68px !important;
        min-height: 68px !important;
    }
}



/* ICON BOX SECTION 2 */

.icon-boxox-section2 {
    height: 100%;
    padding: 20px 16px !important;
    background: #f3f8f7;
    border: 1px solid #d6e5e2;
    border-radius: 17px;
    box-sizing: border-box;
    transition: all .3s ease;
}

/* ICON */
.icon-boxox-section2 .icon-box-img {
    width: 38px !important;
    max-width: 38px !important;
    margin: 0 0 12px 0 !important;
}

.icon-boxox-section2 .icon-box-img img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* NỘI DUNG */
.icon-boxox-section2 .icon-box-text {
    padding: 0 !important;
    text-align: left;
}

/* TIÊU ĐỀ */
.icon-boxox-section2 h3 {
    margin: 0 0 3px !important;
    padding: 0;
    color: #064a40;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

/* MÔ TẢ */
.icon-boxox-section2 p {
    margin: 0 !important;
    padding: 0;
    color: #68777b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

/* HOVER */
.icon-boxox-section2:hover {
    background: #eaf5f2;
    border-color: #a9d2c9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(6, 74, 64, .07);
}

/* CỘT BẰNG CHIỀU CAO */
.icon-boxox-section2 .icon-box-text {
    min-width: 0;
}

/* TABLET */
@media (max-width: 849px) {
    .icon-boxox-section2 {
        padding: 16px 12px !important;
        border-radius: 14px;
    }

    .icon-boxox-section2 h3 {
        font-size: 15px;
    }

    .icon-boxox-section2 p {
        font-size: 13px;
    }
}

/* MOBILE */
@media (max-width: 549px) {
    .icon-boxox-section2 {
        padding: 14px 11px !important;
    }

    .icon-boxox-section2 .icon-box-img {
        margin-bottom: 8px !important;
    }

    .icon-boxox-section2 .icon-box-img img {
        width: 28px;
        height: 28px;
    }

    .icon-boxox-section2 h3 {
        font-size: 14px;
    }

    .icon-boxox-section2 p {
        font-size: 12px;
        line-height: 1.5;
    }
}
