.pace {
 background-color: cornflowerBlue;
 padding: 50px;
 height: 600px;
}

.title {
 color: white;
}

.footer {
 background-color: black;
 padding: 50px;
 display: flex;
 justify-content: center;
}

h3 {
 font-family: 'Trebuchet MS', sans-serif; 
}

$border-radius : 0.1875rem;
$primary: #9951FF;
$primary-dark: #803ede;
$secondary: #59e7ed;
$secondary-dark: darken($secondary, 10);

@mixin mobile {
  @media (min-width:22.5rem) {
    @content;
  }
}
@mixin tablet {
  @media (min-width:37.5rem) {
    @content;
  }
}

* {box-sizing: border-box;}

html, body {
  margin: 0;
  padding: 0;
}
.calc-outer-wrap {
  margin: 0 auto;
  background: #f3f3f3;
  font-size: 1rem;
  line-height: 1.3;
  font-family: Helvetica Neue,Helvetica, Arial, sans-serif;
  padding: 0.625rem;
}

.form-fields {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: top;
}
.field-outer {
  width: 48%;
  flex-basis: calc(50% - 5px);
  
  &.col-large {
    width: 60%;
    flex-basis: calc(64% - 5px);
    
    @include tablet {
      width: 48%;
      flex-basis: calc(50% - 5px);
    }
  }
  
  @include mobile {
    &:nth-child(n+3) {
      margin-top: .5em;
    }
  }
}
label,
input,
select {
  font-size: 1em;
  line-height: 1.3;
  display: block;
}
input,
select {
  height: 1.75rem;
  border: 1px solid #bbb;
  width: 100%;
  background: #fff;
  padding: 0 0.325rem;
  border-radius : $border-radius;
  transition: box-shadow 200ms ease-in-out;
  box-shadow: inset 0 0 0 0 $secondary;
  -webkit-appearance: none;
   -moz-appearance: none;
        appearance: none;

  &:focus {
    outline: 0;
    box-shadow: inset 0 -3px 0 -1px $secondary;
    border-radius: $border-radius $border-radius 1px 1px;
  }
}
select {
  font-size: 0.875rem;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg width='16px' height='14px' viewBox='0 0 8 17' xmlns='http://www.w3.org/2000/svg' fill='%238A8A8A'%3e%3cpolygon fill='%238A8A8A' points='4 17 0 10 8 10'%3e%3c/polygon%3e%3cpolygon fill='%238A8A8A' points='4 0 0 7 8 7'%3e%3c/polygon%3e%3c/svg%3e") right center no-repeat;
  &:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
  }
  &::-ms-expand {
    display: none;
  }
}
.field-items {
  display: flex;
  justify-content: space-between;

  label {
    font-size: 0.75rem;
    color: #999;
  }
}
.field {
  display: inline-block;
  width: 32%;
  flex-grow: 1;

  + .field {
    margin-left: 3px;
  }

}
.field-large {
  flex: 1;
  width: 67%;
}
.field-med.field-med {
  width: 60%;
  @include tablet {
    width: 50%;
    margin-left: 10px;
  }
}
.field-small {
  width: 4em;
  flex-grow: 0;
}
.field-x-small {
  width: 2em;
  flex-basis: 2.4em;
  flex-shrink: 0;
}
.top-label {
  font-weight: bold;
  font-size: 0.875rem;
  line-height: 1.4;
  display: block;
}
.btn-wrap {
  align-self: flex-end;
  width: 34%;
  flex-basis: calc(36% - 5px);
  
  @include tablet {
    width: 48%;
    flex-basis: calc(50% - 5px);
  }
}
.form-submit {
  background: dodgerBlue;
  display: block;
  border: 0;
  width: 100%;
  font-size: 1rem;
  border-radius: $border-radius;
  height: 1.5rem;
  color:#fff;
  box-shadow: 1px 1px 1px 0 rgba(0,0,0,0.15);
  cursor: pointer;
  text-transform: uppercase;
  
  @include mobile {
    height: 2rem;
  }

  &:hover,
  &:focus {
    background: $secondary-dark;
    box-shadow: 2px 2px 3px 0 rgba(0,0,0,0.3);
    outline: 0;
  }

  &:active {
    box-shadow: none;
  }
}

#form-error {
  color: #fff;
  margin-bottom: 0.5rem;
  text-align:center;
  color: #c1000b;
  background-color: #ffd5d5;
  padding: 3px;
  font-size: 0.875rem;
}

#results {
  position: relative;
  width: 100%;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem;

  @include mobile {
    font-size: 1rem;
  }

  p {
    margin: 0;

    @include tablet {
      text-align: center;
    }
  }
  dl {
    width: 22em;
    margin: 1em auto;
    column-count: 2;

    dt,dd {
      display: inline-block;
      margin: 0;
    }
    dt {
      width: 6em;
      font-weight: bold;
    }
    dt,dd {
      margin: 0;
    }
    dd {
      width: 4em;
      text-align: right;
    }
  }

  #rs {
    position: absolute;
    bottom: -1.2em;
    right: 0;
    font-size: 0.875rem;
    color: #aaa;
    &:hover {
      color: $primary;
    }
  }
}


