Full width inputs in the Search modal bars

I tried a solution using flexbox, but the result wasn't as good as this one where it uses CSS3 calc to calculate the with of the inputs making them use the remaining space.

@larz to check the final result.