/* [cl_location_search]: desktop op één rij, mobiel in drie rijen. */
form#iq_search { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.15fr) minmax(100px, .9fr) max-content; gap: 10px; width: 100%; margin: 0; overflow: visible; }
#iq_search :is(#cl_search_keyword, #cl_locationSearch, #dist) {
    box-sizing: border-box; display: block; width: 100%; min-width: 0; height: 56px;
    margin: 0; padding: 0 38px 0 16px; border: 1px solid #d6d6d6; border-radius: 5px;
    color: #252525; background-color: #fff; font: 400 14px/1.4 'Roboto', sans-serif;
    background-repeat: no-repeat; background-position: right 12px center; background-size: 19px 19px;
    box-shadow: none; appearance: none;
}
#iq_search #cl_search_keyword { background-image: url("../images/search-icons/zoeken.svg"); }
/* De oude Elementor-widget zet de select-achtergrond met !important. */
#iq_search #dist { background: #fff url("https://iqselect.dev.peakfort.nl/wp-content/uploads/2021/09/black_arrow_down.svg") no-repeat right 12px center / 19px 19px !important; }
#iq_search #cl_locationSearch { background-image: url("../images/search-icons/target.svg"); }
#iq_search input::placeholder { color: #252525; opacity: 1; }
#iq_search #cl_location_submit {
    box-sizing: border-box; display: flex; align-items: center; justify-content: flex-start;
    width: 100%; height: 56px; margin: 0;
    padding: 0 45px 0 20px; border: 0; border-radius: 6px;
    background: var(--e-global-color-fbbf957, #ff7818) url("../images/search-icons/zoeken-zwart.svg") no-repeat right 16px center / 20px 20px;
    color: #000; font: 700 16px/1.3 'Roboto', sans-serif; text-align: left; white-space: nowrap;
}
#iq_search .pf-location-mobile-label { display: inline; }
#iq_search #cl_location_submit img { display: none; }
#iq_search #cl_location_submit:hover { background-color: #ed6509; }
#iq_search :is(input, select, button):focus-visible { outline: 2px solid #93d500; outline-offset: 2px; }

@media (min-width: 768px) and (max-width: 1024px) {
    #iq_search #cl_location_submit { padding-left: 16px; font-size: 14px; }
}

@media (max-width: 767px) {
    form#iq_search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #iq_search :is(#cl_search_keyword, #cl_locationSearch, #dist) { height: 54px; }
    #iq_search #cl_search_keyword { grid-column: 1 / -1; grid-row: 1; }
    #iq_search #dist { grid-column: 1; grid-row: 2; }
    #iq_search #cl_locationSearch { grid-column: 2; grid-row: 2; }
    #iq_search #cl_location_submit { grid-column: 1 / -1; grid-row: 3; }
}
