* {
  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 0.625rem;
}
@media (min-width: 22.5rem) {
  .calc-outer-wrap {
    padding: 0.625rem;
  }
}
@supports (-webkit-overflow-scrolling: touch) {
  .calc-outer-wrap {
    padding: 0.625rem;
  }
}

.form-fields {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
}

.field-outer {
  width: 32%;
  flex-basis: calc(100% / 3 - 5px);
}
@media (min-width: 45rem) {
  .field-outer {
    width: 48%;
    flex-basis: calc(50% - 10px);
    margin-bottom: 5px;
  }
}

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: 0.1875rem;
  transition: box-shadow 200ms ease-in-out;
  box-shadow: inset 0 0 0 0 #59e7ed;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
input:focus,
select:focus {
  outline: 0;
  box-shadow: inset 0 -3px 0 -1px #59e7ed;
  border-radius: 0.1875rem 0.1875rem 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;
}
select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}
select::-ms-expand {
  display: none;
}

.field-items {
  display: flex;
  justify-content: space-between;
}
.field-items label,
.field-items small {
  font-size: 0.75rem;
  color: #999;
}

.field {
  display: inline-block;
  width: 32%;
  flex-grow: 1;
}
.field + .field {
  margin-left: 3px;
}

.m-hide {
  display: none;
}
@media (min-width: 45rem) {
  .m-hide {
    display: inline;
  }
}

.field-large {
  flex: 1;
  width: 67%;
}

.field-small {
  width: 4em;
  flex-grow: 0;
}

.top-label {
  font-weight: bold;
  font-size: 0.875rem;
  line-height: 1.4;
  display: block;
}
.top-label .small {
  color: #999;
  font-weight: normal;
  font-size: 0.75rem;
}

.btn-wrap {
  align-self: flex-end;
  margin: 5px 0 0 auto;
  margin-left: auto;
  flex-basis: 12rem;
}

.form-submit {
  background: #59e7ed;
  display: block;
  border: 0;
  width: 100%;
  font-size: 1rem;
  border-radius: 0.1875rem;
  height: 1.5rem;
  color: #fff;
  box-shadow: 1px 1px 1px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
  text-transform: uppercase;
}
@media (min-width: 22.5rem) {
  .form-submit {
    height: 2rem;
  }
}
.form-submit:hover, .form-submit:focus {
  background: #2be0e8;
  box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);
  outline: 0;
}
.form-submit: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;
}
@media (min-width: 22.5rem) {
  #results {
    font-size: 1rem;
  }
}
#results p {
  margin: 0;
}
@media (min-width: 45rem) {
  #results p {
    text-align: center;
  }
}
#results dl {
  width: 22em;
  margin: 1em auto 0;
  -moz-column-count: 2;
       column-count: 2;
}
#results dl dt, #results dl dd {
  display: inline-block;
  margin: 0;
}
#results dl dt {
  width: 6em;
  font-weight: bold;
}
#results dl dt, #results dl dd {
  margin: 0;
}
#results dl dd {
  width: 4em;
  text-align: right;
}
#results #rs {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 0.875rem;
  color: #aaa;
}
#results #rs:hover {
  color: #9951FF;
}