/* Form */
.search-form {
    .flight-type {
        .form-check {
            margin: 0;
            padding: 5px 10px;
            border-radius: 25px;

            .form-check-input[type="radio"] {
                margin-left: 0;

                &:checked {
                    +.form-check-label {
                        color: var(--primary) !important;
                    }
                }
            }

            &:has(.form-check-input:checked) {
                background-color: var(--light-blue);
            }
        }
    }

    .input-label {
        margin-top: -0.6rem;
        z-index: 999;
        font-size: 13px;
    }

    .input-group {
        .input-group-text {
            z-index: 999;
            /*  left: 10px;
            display: none;*/

        }

        .switch {
            width: 30px;
            height: 30px;
            left: -25px;
            cursor: pointer;
            background: white !important;
        }

        .form-control {
            height: 60px;
            border-radius: 6px;
            padding-left: 45px;
            font-weight: 600;
        }

        &::placeholder {
            font-weight: 500;
            color: #b0b0b0;
        }

        &:focus {
            border-color: var(--primary);
        }
    }

    .dropdown {
        .form-control:not(::placeholder) {
            padding-top: 0;
        }
    }

    .traveler-class {
        bottom: 10px;
        left: 45px;
        line-height: 1;
        right: .75rem;
    }
}


.airports-dropdown {
    min-width: 400px;
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translate(0, -10px) !important;

    .form-control {
        padding: .375rem 15px !important;
        border: 0;
        border-bottom: 1px solid;
        border-radius: 0 !important;
        font-size: 20px;
    }

    .title {
        color: #9c9c9c;
        font-weight: 500;
    }

    .list-item,
    .sub-item {

        .item {
            transition: 0.2s all ease-in-out;
            cursor: pointer;

            .icon {
                img {
                    width: 34px;
                    height: auto;
                }
            }

            p {
                font-size: 13px;
            }

            &:hover {
                background-color: var(--light-blue);
            }
        }
    }
}

.passengers-dropdown {
    min-width: 350px;
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;

    div.btn {
        width: 25px !important;
        height: 25px !important;
        padding: 5px !important;
        border-radius: 50% !important;
        font-weight: 400 !important;
        font-size: 10px;
    }

    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Firefox */
    input[type="number"] {
        -moz-appearance: none;
        appearance: none;
    }

    input[type=number]::-webkit-outer-spin-button,
    input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    input[type=number] {
        -moz-appearance: textfield;
    }

    input {
        max-width: 30px;
        max-height: 25px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none
    }

    .form-control {
        height: 50px;
        border-radius: 6px;
        padding-left: inherit;
        font-weight: 600;
    }
}

#removeFlight span {
    width: 18px;
    height: 18px;
    padding: 0;
}


/*
    ##Device = Most of the Smartphones Mobiles (Portrait)
    ##Screen = B/w 320px to 479px
  */

@media (min-width: 320px) and (max-width: 480px) {

    /* Form */
    .search-form {
        .flight-type {
            .form-check {
                padding: 3px 10px;
            }
        }

        .input-group {
            .input-group-text {
                z-index: 999;

                svg {
                    width: 18px;
                }
            }

            .form-control {
                padding-left: 40px;
            }

            .traveler-class {
                bottom: 12px;
                left: 45px;
            }
        }

        .airports-dropdown {
            bottom: 0 !important;
            left: 0 !important;
            position: fixed !important;
            right: 0 !important;
            top: 0 !important;
            transform: scaleY(1) !important;
            transform-origin: bottom center !important;
            box-shadow: 0 0 25px rgba(0, 0, 0, .3);
            height: 100vh;
            max-height: 100vh;
            width: 100vw;
            min-width: none;
            border-radius: 0;

            .title {
                font-size: 13px;
            }

            .list-item,
            .sub-item {
                .item {
                    transition: 0.2s all ease-in-out;
                    cursor: pointer;

                    .icon {
                        img {
                            width: 34px;
                            height: auto;
                        }
                    }

                    p {
                        font-size: 13px;
                    }

                    &:hover {
                        background-color: var(--light-blue);
                    }
                }
            }
        }

        .passengers-dropdown {
            bottom: 0 !important;
            left: 0 !important;
            position: fixed !important;
            right: 0 !important;
            top: 0 !important;
            transform: scaleY(1) !important;
            transform-origin: bottom center !important;
            box-shadow: 0 0 25px rgba(0, 0, 0, .3);
            height: 100vh;
            max-height: 100vh;
            width: 100vw;
            min-width: none;
            border-radius: 0;

            div.btn {
                width: 25px !important;
                height: 25px !important;
                padding: 5px !important;
                border-radius: 50% !important;
                font-weight: 400 !important;
                font-size: 10px;
            }


            input::-webkit-outer-spin-button,
            input::-webkit-inner-spin-button {
                -webkit-appearance: none;
                margin: 0;
            }

            /* Firefox */
            input[type="number"] {
                -moz-appearance: none;
                appearance: none;
            }

            input {
                max-width: 30px;
                max-height: 25px;
                appearance: none;
            }

            .form-control {
                height: 50px;
                border-radius: 6px;
                padding-left: inherit;
                font-weight: 600;
            }
        }

        #removeFlight span {
            width: 18px;
            height: 18px;
            padding: 0;
        }

        .container:not(.inline).show {
            height: 100vh;
            background: white;
        }
    }
}