There seems to be an issue with your code because the last child in your .form-search
does not have a bordered class. If you remove (just for demonstration purposes) the last form-group class (which is the button), you should see the expected result.
To address this, you can modify your code as follows (targeting the select element of the second last child using
#top .form-search .form-group.bordered:nth-last-child(2) select
):
/*
* Search
*/
#top {
max-width: 1182px;
}
#top .search-wrapper {
display: flex;
align-items: center;
}
#top .search-wrapper .text {
margin-right: 20px;
white-space: nowrap;
}
#top .form-search {
display: flex;
justify-content: stretch;
width: 100%;
margin: 0;
}
#top .form-search .form-group {
position: relative;
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
}
/* Other CSS rules removed for brevity */
<div id="top">
<div class="search-wrapper">
<div class="text">Search position by</div>
<!-- Form elements here -->
</div>
</div>