@import url('/public/css/geo-map.css');

/* design kit overrides */
#content .alert .alert-list {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

#content .alert .alert-content {
    list-style: none;
    margin-left: 0;
}

/* header banner area */
#headline {
    height: 14rem;
    text-align: center;
    background: url('/public/layout_images/map/background.svg');
    margin: 0 0 2rem 0;
    max-width: none;
}

#headline h1 {
    margin-bottom: 0;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

@media all and (min-width: 768px) {
    #headline {
        height: 22rem;
    }

    #headline h1 {
        background: url('/public/layout_images/map/gecko.png');
        background-position: bottom right;
        background-repeat: no-repeat;
        background-size: 17rem;
        padding: 7rem 12rem 7rem 0;
        max-width: 50rem;
        margin: 0 auto;
        text-align: left;
    }
}

/* address form (gfr specific overrides from geo-map.css) */
#address_form {
    padding-top: 9.5rem;
    background: url('/public/layout_images/map/gecko.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 11rem;
}

#address_form label {
    display: inline-block;
    width: calc(100% - 12rem);
    margin-top: -10rem;
}

@media all and (min-width: 768px) {
    #address_form {
        background: none;
        padding: 2rem 0;
    }

    #address_form label {
        width: 100%;
    }

    .spanish_cta {
        display: flex;
        align-items: center;
        padding: 2rem 8rem;
    }
}

/* state form */
#state_form {
    max-width: 40rem;
    margin: 4rem auto 0;
    text-align: center;
}

@media all and (min-width: 768px) {
    #state_form {
        max-width: 64rem;
    }
}

#state_form .select_box {
    margin-bottom: 2rem;
}

#state_buttons .btn {
    display: none;
}

#state_buttons .visible {
    display: inline-block;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 44px;
    left: 0;
    right: 0;
    max-width: 45rem;
}

.autocomplete-items div {
    display: flex;
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}
/* Dark mode adjustment */
.dark .autocomplete-items div {
    background-color: #1C1C1E;
}
/*when hovering an item:*/
.autocomplete-items div:hover {
    background-color: #e9e9e9;
}
/* Dark mode adjustment */
.dark .autocomplete-items div:hover {
    background-color: #757374;
}
/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
    background-color: #3773ca !important;
    color: #ffffff;
}

.autocomplete-items span.icon-geolocation {
    margin: 0.5rem 0.7rem 0 0;
}

.autocomplete-items p {
    display: inline;
    margin-bottom: 0!important;
}

.autocomplete-active .icon-geolocation {
    color: #fff !important;
}
