title: Align Bootstrap form input fields across multiple rows inside a modal
body: <p>Specifically, the problems are:</p>
  
  <ol>
  <li>The first row wraps to a second line</li>
  <li>The input fields do not line up vertically</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/lnHJF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lnHJF.png" alt="enter image description here"></a></p>
  
  <p>It might be possible to use a table, but that might break responsiveness on mobile devices. Is there a clean/elegant way to align these input fields?</p>
  
  <p><a href="https://codepen.io/dtgq/pen/rwQRoK" rel="nofollow noreferrer">https://codepen.io/dtgq/pen/rwQRoK</a></p>
  
  <p>For posterity, a copy of the HTML on the codepen:</p>
  
  <pre><code>&lt;div class="modal fade" id="fjFilterModal"&gt;
    &lt;div class="modal-dialog modal-lg"&gt;
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;h5 class="modal-title"&gt;Filter&lt;/h5&gt;
          &lt;button type="button" class="close" data-dismiss="modal"&gt;
            &lt;span&gt;&amp;times;&lt;/span&gt;
          &lt;/button&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;
          &lt;div class="form-group row"&gt;
            &lt;label class="col-form-label col-md-2"&gt;Cost&lt;/label&gt;
            &lt;div class=col-md-10&gt;
              &lt;div class="form-inline"&gt;
                &lt;div class="form-group mx-2"&gt;
                  &lt;div class=input-group&gt;
                    &lt;span class=input-group-addon&gt;$&lt;/span&gt;
                    &lt;input class=form-control name="max_cost-gte" type=number placeholder="Minimum" step=1 min=0&gt;
                    &lt;span class=input-group-addon&gt;.00&lt;/span&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
                to
                &lt;div class="form-group mx-2"&gt;
                  &lt;div class=input-group&gt;
                    &lt;span class=input-group-addon&gt;$&lt;/span&gt;
                    &lt;input class=form-control name="min_cost-lte" type=number placeholder="Maximum" step=1 min=0&gt;
                    &lt;span class=input-group-addon&gt;.00&lt;/span&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group row"&gt;
            &lt;label class="col-form-label col-md-2"&gt;Start date&lt;/label&gt;
            &lt;div class=col-md-10&gt;
              &lt;div class="form-inline"&gt;
                &lt;div class="form-group mx-2"&gt;
                  &lt;input class="form-control" type="date" name="min_date-gte"&gt;
                &lt;/div&gt;
                to
                &lt;div class="form-group mx-2"&gt;
                  &lt;input class="form-control" type="date" name="min_date-lte"&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group row"&gt;
            &lt;label class="col-form-label col-md-2"&gt;Available units&lt;/label&gt;
            &lt;div class=col-md-10&gt;
              &lt;div class="form-inline"&gt;
                &lt;div class="form-group mx-2"&gt;
                  &lt;div class=input-group&gt;
                    &lt;input class=form-control name="sum_vacant-gte" type=number min=0 placeholder="Minimum"&gt;
                    &lt;span class=input-group-addon&gt;units&lt;/span&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
                to
                &lt;div class="form-group mx-2"&gt;
                  &lt;div class=input-group&gt;
                    &lt;input class=form-control name="sum_vacant-lte" type=number min=0 placeholder="Maximum"&gt;
                    &lt;span class=input-group-addon&gt;units&lt;/span&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="modal-footer"&gt;
          &lt;button type="button" class="btn btn-secondary" data-dismiss="modal"&gt;Close&lt;/button&gt;
          &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;button type="button" class="btn" data-toggle="modal" data-target="#fjFilterModal"&gt;
    Filter
  &lt;/button&gt;
  </code></pre>