.banner {
    display: flex;
    max-height: 28rem;
    height: 65vmax;
    margin-block-end: 3rem;
    background: url('../images/banner.jpg') center/cover no-repeat;
}

.banner__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: auto;
    color: var(--content-bg);
}

.banner__text {
    max-width: 35rem;
    width: 60%;
}

.banner__title {
    margin-block-end: .8rem;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 600;
}

.banner__subtitle {
    font-size: 1.2rem;
    line-height: 1.25;
}

.form {
    max-width: 22rem;
    width: 38%;
    padding: 1rem;
    background-color: var(--form-orange);
    border-radius: 0.7rem;
}

.form__title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.form__info_title {
    display: flex;
    justify-content: space-between;
    margin-block-end: .5rem;
    font-size: .8rem;
    font-weight: 600;
}

.form__inner {
    margin-block-end: 1rem;
}

.form__inputs {
    display: flex;
    flex-direction: column;
    row-gap: .8rem;
    margin-block-end: .8rem;
}

.form__inputs input {
    width: 100%;
    color: #1a202c;
    padding-inline: .4rem;
    border-radius: .4rem;
}

.form__range {
    margin-block-end: .8rem;
}

.form__type {
    display: flex;
    column-gap: .6rem;
    margin-block-end: .6rem;
}

.form__select {
    width: calc(50% - .3rem);
}

.form__select select {
    width: 100%;
    height: 1.8rem;
    padding-inline: .4rem;
    border-radius: .4rem;
    border: none;
}

.form__submit {
    width: 100%;
    height: 2.4rem;
    font-weight: 600;
    color: var(--content-bg);
    background-color: var(--form-btn);
    border-radius: 4px;
    cursor: pointer;
}

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

.form__tel {
    margin-block-end: .5rem;
    padding-block-end: .5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid var(--content-bg);
}

.form__support {
    font-size: .6rem;
    font-weight: 600;
    text-align: center;
}

.form__transport_type {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    font-size: .8rem;
    margin-block-end: .6rem;
}

.form__transport_type label {
    display: flex;
    align-items: center;
    column-gap: .2rem;
}

.form__transport_type input {
    margin: 0;
}

/* Container styling */
.dropdown-container {
    position: relative;
}

/* Input styling */
.dropdown-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 0 !important;
    border: 1px solid #d1d5db; /* Tailwind's gray-300 */
    outline: none;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}


/* Dropdown menu styling */
.dropdown-menu {
    position: absolute;
    width: 100%;
    max-height: 12rem; /* Matches max-h-48 in Tailwind */
    overflow-y: auto;
    background-color: #ffffff; /* White background */
    border: 1px solid #d1d5db; /* Tailwind's gray-300 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Tailwind's shadow-lg */
    z-index: 10;
}

/* List item styling */
.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #000000; /* Black text */
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
    margin: 0.25rem; /* Spacing between items */
}

/* Hover and active state for list items */
.dropdown-item:hover {
    background-color: #fdae4b;
    color: #fff /* Purple */
}


@media screen and (max-width: 992px) {
    .banner {
        max-height: 39rem;
        height: 80vmax;
    }

    .banner__inner {
        flex-direction: column;
    }

    .banner__text {
        max-width: 100%;
        width: 100%;
    }

    .form {
        max-width: 28rem;
        width: 60%;
    }
}

@media screen and (max-width: 768px) {
    .form {
        max-width: 100%;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .nav {
        top: 3.5rem;
        width: 100%;
    }
}
