/* ==================== CSS Variables ==================== */
:root {
    --primary: #2CA8C2;
    --secondary: #A3E4DB;
    --accent: #F6EAD3;
    --text-color: #2E2E2E;
    --bg-light: #FFFFFF;

    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);

    --transition: 0.3s ease;

    --border-radius: 12px;

    --background-color: linear-gradient(to bottom, rgba(163, 228, 219, 0.12), rgba(246, 234, 211, 0.19), #FFFFFF);
}

@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ==================== Base Styles ==================== */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: linear-gradient(to bottom, rgba(163, 228, 219, 0.12), rgba(246, 234, 211, 0.19), #FFFFFF);
    min-height: 100vh;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    color: var(--primary);

    @media screen and (max-width: 992px) {
        max-width: 200px;
    }

    @media screen and (max-width: 425px) {
        max-width: 300px;
    }
}

section {
    & h1 {
        font-size: 27px;
    }

    & h2 {
        font-size: 23px;
    }
}

hr {
    color: var(--text-color);
    box-shadow: var(--card-shadow);
}

/* ==================== Header / Navbar Styles ==================== */
header {
    top: 0;
    z-index: 1000;
    background-color: var(--background-color) !important;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;

    .navbar-brand {
        color: var(--text-color);

        &:hover {
            text-decoration: none;
            color: unset !important;
        }

        img {
            height: 28px;
            width: auto;
        }
    }

    .navbar {
        width: 1320px;
        border: 1px solid var(--bs-gray-300);
        border-right: 0;
        border-left: 0;

        & button.navbar-toggler {
            border: 1px var(--primary) solid !important;
        }
    }

    .navbar-nav {
        & .active {
            color: var(--primary) !important;
            font-weight: bold;
            text-decoration: solid;
            text-wrap-style: balance;
        }

        & a {
            text-decoration: none;

            &:hover {
                transition: var(--transition);
                color: var(--primary) !important;
            }
        }

        .nav-item {
            & img {
                height: 20px;
                width: auto;
                margin-bottom: 2px;
            }

            & .is_desktop.show {
                top: 46px;
                left: -10px;
                width: 120px;

                &:after {
                    content: " ";
                    position: absolute;
                    top: -9px;
                    right: 20px;
                    z-index: 9;
                    border-width: 5px;
                    border-right: 15px solid transparent;
                    border-left: 15px solid transparent;
                    border-bottom: 10px solid #fff;
                }

                &:before {
                    content: " ";
                    position: absolute;
                    top: -10px;
                    right: 20px;
                    z-index: 8;
                    border-width: 5px;
                    border-right: 15px solid transparent;
                    border-left: 15px solid transparent;
                    border-bottom: 10px solid rgb(0 0 0 / 20%);
                }
            }

            & .is_mobile.show {
                top: unset !important;
                left: unset !important;
                width: unset !important;

            }
        }
    }

    .bi-box-arrow-in-right::before {
        font-weight: bold !important;
    }
}

/* ==================== Button Styles ==================== */
.btn-primary {
    background-color: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2596AC;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ==================== Hero Section ==================== */
#hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)),
        url('https://lh3.googleusercontent.com/aida-public/AB6AXuBRoOkcSASKtd5qRRM2CSW9UmNompn7lHAdAd_F2EMlg9wa3c8-Ectd5Mrvotq0m6epcLuFW_abjy2rEl1J7QeZL-U_s3Ijx45ZLRLJ7EkCYvzmQRasgCyimcOgYNPZU-0lGKAUGf6BGr8WNU_VJhjTnxCczsj2RaFUsytZXbsLwBITsZ3Qat2lZzmYZD7Cb2mRCxMp6DdqKDF_oSsmR72vt2wEboi-WgijAOu55S0SYHSjGQqY8IP53GorsufJuROCCURHe2kKddM');
    background-size: cover;
    background-position: center;
    min-height: 480px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 48px 16px;

    & .hero-title {
        font-size: 40px;
        font-weight: 900;
        line-height: 1.2;
        margin-bottom: 16px;
        font-family: "Kanit", sans-serif;

        @media (min-width: 768px) {
            font-size: 40px;
        }
    }
}

.form-search {
    position: relative;

    .card-wrapper {
        position: relative;
        background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)),
            url('https://lh3.googleusercontent.com/aida-public/AB6AXuBRoOkcSASKtd5qRRM2CSW9UmNompn7lHAdAd_F2EMlg9wa3c8-Ectd5Mrvotq0m6epcLuFW_abjy2rEl1J7QeZL-U_s3Ijx45ZLRLJ7EkCYvzmQRasgCyimcOgYNPZU-0lGKAUGf6BGr8WNU_VJhjTnxCczsj2RaFUsytZXbsLwBITsZ3Qat2lZzmYZD7Cb2mRCxMp6DdqKDF_oSsmR72vt2wEboi-WgijAOu55S0SYHSjGQqY8IP53GorsufJuROCCURHe2kKddM');
        background-size: cover;
        background-position: center;
        height: 400px;

        .card-content {
            width: 100%;
            height: 100%;
            padding-top: 100px;

            .card-title {
                text-align: center;

                h1 {
                    color: #fff;
                    font-size: 40px;
                    font-weight: 900;
                    line-height: 1.2;
                    margin-bottom: 16px;

                    @media (max-width: 768px) {
                        & {
                            font-size: 30px;
                        }
                    }
                }
            }

            .card-form {
                position: relative;
                max-width: 1000px;
                margin: 0 auto;
                z-index: 100;
            }
        }

        @media (max-width: 768px) {
            & {
                height: 750px;

                .card-content {
                    .card-form {
                        padding: 0 20px;
                    }
                }
            }
        }

        @media (max-width: 576px) {
            & {
                height: 700px;

                .card-content {
                    padding-top: 40px;

                    .card-title {
                        padding-bottom: 20px;
                    }
                }
            }
        }
    }

}

a {
    color: var(--primary);
    text-decoration: none;

    &:hover {
        color: var(--secondary) !important;
        transition: var(--transition) !important;
        text-decoration: solid;
        text-decoration: underline;
    }
}

/* ==================== Search Form ==================== */
.search-form-wrapper {
    /* background: rgba(255, 255, 255, 0.2); */
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    max-width: 1100px;
    margin: 32px auto 0;

    & .search-form {
        background: white;
        border-radius: 50px;
        padding: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    & .search-input {
        border: none;
        outline: none;
        padding: 12px;
        flex: 1;

        &:focus {
            outline: none;
            box-shadow: none;
        }
    }

    & .search-divider {
        width: 1px;
        background: #e0e0e0;
        height: 32px;
        margin: 0 8px;
    }

    & .route-image {
        aspect-ratio: 4/3;
        background-size: cover;
        background-position: center;
        border-radius: 12px;
        overflow: hidden;
    }

    & .route-link {
        color: var(--primary);
        font-weight: 500;
        text-decoration: none;

        & :hover {
            text-decoration: underline;
        }
    }

    .container-search {
        .box-centent {
            padding: 30px;

        }
    }
}



/* ==================== Popular Routes ==================== */
.route-card {
    transition: transform 0.3s ease;

    &:hover {
        cursor: pointer;
        transform: scale(1.05);
    }
}

.route-image {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
}

.route-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.route-link:hover {
    text-decoration: underline;
}


/* ==================== Private Transfers ==================== */

.transfer-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.transfer-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.transfer-badge {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
}


/* ==================== Why Choose Us / Features ==================== */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;

    &:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
}

.feature-icon {
    background: var(--secondary);
    color: var(--primary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;

    & .material-symbols-outlined {
        font-size: 40px;
    }
}

/* new why choose */
section#why-choose {
    text-align: center;
    font-family: sans-serif;
    padding: 10px;
    display: block;
    /* margin: 75px auto; */
    /* max-width: 100%; */
    /* max-width: 1320px; */
    /* background-color: var(--theame-color-section); */

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        max-width: 1320px;
        margin: 0 auto;

        @media screen and (max-width: 569px) {
            gap: 0px !important;
        }
    }

    .feature-card {

        box-shadow: var(--card-shadow);
        text-align: center;
        padding: 20px;
        border-radius: var(--border-radius);

        &:hover {
            box-shadow: var(--card-shadow-hover);
        }

        @media screen and (max-width: 569px) {
            margin: 10px;
        }

        & .icon {
            width: 50px;
            height: 50px;
            margin: 0 auto 15px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;

            & img {
                opacity: 0.8;
            }
        }

        & h3 {
            font-size: 1rem;
            margin-bottom: 8px;
        }

        & p {
            font-size: 0.9rem;
            color: #666;
            line-height: 1.4;
        }
    }

}


/* ==================== Providers Section (Contact us) ==================== */
#contact-us {
    .btn-send-message {
        background-color: var(--primary);
        color: var(--bg-light);
    }

    .contact-item-card {
        display: grid;
        grid-template-columns: 40px 1fr;
        gap: 20px;
        margin-top: 20px;

        & .contact-item-icon {
            display: flex;
            align-items: start;
        }

        & .contact-item-desc {
            display: flex;
            flex-direction: column;
            gap: 2px;

            & .item-desc-title {
                font-weight: bold;
            }

            & .item-desc-info {}
        }
    }

    .social {
        .social-title {
            font-weight: bold;
            margin-bottom: 13px;
        }

        & .social-card {
            display: flex;
            gap: 12px;

            & .social-item {
                width: 50px;
                height: 50px;
                display: flex;
                justify-content: center;
                align-items: center;
                position: relative;

                &::after {
                    border-radius: 50%;
                    content: "";
                    background-color: var(--secondary);
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    z-index: 9;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }

                & i {
                    z-index: 999;
                }

                & i.bi:hover {
                    transform: scale(1.1, 1.1);
                    transition: .8s ease;
                    transition-timing-function: step-start;
                    cursor: pointer;
                }
            }
        }

    }

    .contact-us-form {
        border-radius: var(--border-radius);

        & .contact-option {
            display: flex;
            gap: 20px;
        }

        & input[type=radio] {
            /* outline: #2596AC; */
        }

        & label {
            cursor: pointer;
        }
    }



    .contact-us-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        max-width: 1020px;
        margin: 0 auto;

        @media screen and (max-width: 569px) {
            gap: 0px !important;
        }

        .contact-us-card {
            background: white;
            border-radius: 12px;
            gap: 18px;
            padding: 20px;
            margin: 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            transition: box-shadow 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;

            @media screen and (max-width: 569px) {
                margin: 10px;
            }

            & i {
                font-size: 40px;
            }

            & h3 {
                font-size: 1rem;
                margin-bottom: 0px;
            }

            &:hover {
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            }

        }

    }

    & .contact-us-social {
        display: grid;
        grid-template-columns: repeat(3, 200px);
        gap: 25px;
        align-items: center;
        justify-content: center;
        justify-items: center;

        & .contact-us-item {
            min-width: 200px;
            max-width: 200px;
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 10px;
            border-radius: 12px;
            box-shadow: var(--card-shadow);

            &:hover {
                box-shadow: var(--card-shadow-hover);
                transition: var(--transition);
            }

            & .icon {
                & i {
                    font-size: 40px;
                    color: var(--bs-primary);
                }

            }

            & .social-name {
                color: var(--text-color);
            }

            & .social-info {
                color: var(--text-color);
            }

        }
    }
}

.go-top {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    position: fixed;
    right: 50px;
    bottom: 50px;
    box-shadow: var(--card-shadow);
    color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    @media screen and (max-width: 800px) {
        bottom: 20px;
    }

    @media screen and (max-width: 615px) {
        bottom: 20px;
        right: 20px;
    }

    & i {
        font-size: 30px;
        font-weight: bold;
        color: var(--bg-light);
    }

    &:hover {
        box-shadow: var(--card-shadow-hover);
    }
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--primary);
    color: white;
    padding-top: 48px;
    margin-top: 150px;

    & a {
        color: white;
        text-decoration: none;
        transition: opacity 0.3s ease;
    }

    & a:hover {
        opacity: 0.8;
        text-decoration: underline;
    }

    .contact-us {

        & .card-item-contact {
            display: grid;
            grid-template-columns: 20px 1fr;
        }
    }

    .social-icon {
        width: 24px;
        height: 24px;
        transition: opacity 0.3s ease;

        &:hover {
            cursor: pointer;
            opacity: 0.7;
        }
    }

    .copyright {
        @media screen and (max-width: 768px) {
            text-align: center;
            padding-bottom: 5px;

        }
    }

    .terms-and-privacy {
        display: flex;
        gap: 20px;
        justify-content: end;

        @media screen and (max-width: 768px) {
            justify-content: center;

        }
    }
}

/* ==================== Section Backgrounds ==================== */
.bg-secondary-light {
    background-color: rgb(237 237 237 / 20%);
}

.bg-accent-light {
    background-color: rgba(246, 234, 211, 0.3);
}