/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers (opinionated).
 */

body {
  margin: 0;
}

/**
 * Add the correct display in IE 9-.
 */

article,
aside,
footer,
header,
nav,
section {
  display: block;
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in IE.
 */

figcaption,
figure,
main { /* 1 */
  display: block;
}

/**
 * Add the correct margin in IE 8.
 */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */

a {
  background-color: transparent; /* 1 */
  -webkit-text-decoration-skip: objects; /* 2 */
}

/**
 * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */

b,
strong {
  font-weight: inherit;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font style in Android 4.3-.
 */

dfn {
  font-style: italic;
}

/**
 * Add the correct background and color in IE 9-.
 */

mark {
  background-color: #ff0;
  color: #000;
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Add the correct display in IE 9-.
 */

audio,
video {
  display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Remove the border on images inside links in IE 10-.
 */

img {
  border-style: none;
}

/**
 * Hide the overflow in IE.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers (opinionated).
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: inherit; /* 1 */
  line-height: inherit; /* 1 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */

button,
html [type="button"], /* 1 */
[type="reset"],
[type="submit"] {
  -webkit-appearance: button; /* 2 */
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * 1. Add the correct display in IE 9-.
 * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Remove the default vertical scrollbar in IE.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 */

details, /* 1 */
menu {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Scripting
   ========================================================================== */

/**
 * Add the correct display in IE 9-.
 */

canvas {
  display: inline-block;
}

/**
 * Add the correct display in IE.
 */

template {
  display: none;
}

/* Hidden
   ========================================================================== */

/**
 * Add the correct display in IE 10-.
 */

[hidden] {
  display: none;
}

/* // Cross Browser standard resets */

/* // Viewport Rules - Mainly for IE11 */
@-webkit-viewport{width:device-width}
@-moz-viewport{width:device-width}
@-ms-viewport{width:device-width}
@-o-viewport{width:device-width}
@viewport{width:device-width}

/* // Box sizing reset */
*, 
*:before, 
*:after { 
  box-sizing: border-box; 
}

/* // Reset link styles */
a {
  color: inherit;
  cursor: pointer;
}

/* // Remove underline from any links with classes  */
a[class] {
  text-decoration: none;
}

/* // Turn off default button styles. Allows buttons to be used for pure semantics */
/* // Any real designed buttons will be applied by component class */
button {
  padding: 0;
  border: none;
  margin: 0;

  background: none;
  color: inherit;

  font-weight: inherit;
  text-transform: inherit;
  text-align: left;

  cursor: pointer;
}

img {
  position: relative;
  z-index: 0;

  /* // Width and height can be overridden easily (by class) when needed */
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;

  /* // Chrome, Safari, Opera add alt text as text node */
  /* // Controlled via normal font properties */
  font-family: $body-font-stack;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;  
  text-align: center;
}

/* // Style alt text for broken images */
/* // Pseudos work as long as the image doesn't load */
img:before { 
  content: "";
  
  /* // Firefox add alt text in :before, cannot be removed or absoluted */
  /* // Override z-index so that ours displays on top */
  position: relative;
  z-index: 0;
}

/* // Our replaced & styled alt text */
img:after { 
  content: "Broken image: " attr(alt);

  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  padding: 2px 10px;
  border: 2px dotted #a8a8a8;

  background-color: #e7e7e7;
  color: #4a4a4a;

  font-size: 1rem;
  font-style: normal;
  line-height: 1.5;
  text-align: center;
}

/* // Make padding relative to font size */
ol,
ul {
  padding-left: 2em;
}

/* // Set default SVG display style */
svg {
  display: inline-block;
  max-width: none;
  max-height: none;
}

/* // Reset font-style - different styles will be applied by a component class */
cite {
  font-style: normal;
}

/* // Lessen the impact of a hr */
hr {
  opacity: 0.6;
}

table {
  border-collapse: collapse;
}

/* // Show captions at bottom of table */
table caption {
  caption-side: bottom;
  padding-top: 0.5em;

  font-size: 0.9em;
}

/* // Relative padding and thin border */
table th,
table td {
  padding: 0.25em 0.5em;
  border: 1px solid rgba(0,0,0,0.4);

  text-align: left;
}


html,
body {
  width: 100%;
  margin: 0;
  padding: 0; }

body {
  min-height: 100vh;

  background-color: #495257;
  color: #495257;

  font-family: "aaux-next", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.body-wrapper {
  margin-top: 0;

  background-color: #fff;
}

form {
  margin-bottom: 3em;

  outline: none;
}

* {
  margin-top: 0;
  margin-bottom: 0; }

.container {
  display: block;
  width: 100%;
  max-width: calc( 500px + 2rem );
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto; }

.container--wide {
  max-width: calc( 700px + 2rem );
}

* + * {
  margin-top: 1.5em;
}


.sr-only:not(:focus):not(:active) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden; }

.site-header {
  padding: 1em 0 1.25em;
  margin-bottom: 2em;

  background-color: #495257;
  color: #fff;
}

#logo {
  display: block;
  width: 90%;
  height: 75px;

  margin-left: auto;
  margin-right: auto;

  background-image: url("../images/logo-new.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.disclaimer {
  margin: 1.5em auto;
}
.disclaimer p {
  font-size: 14px;
}

.site-footer {
  padding: 2em 0;
  margin-top: 0;

  background-color: #495257;
  color: #fff;

  text-align: center;
}

.site-footer p {
  display: inline-block;
}
.site-footer p + p {
  margin-left: 0.5em;
  margin-top: 0;
}

.fieldset {
  padding: 0;
  border: none;
  margin: 0; 
}
.fieldset + .fieldset {
  margin-top: 1.5em; 
}
.fieldset--submit {
  margin-top: 3em !important;

  text-align: center;
}

.fieldset__description {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 0.85em; }

.fieldset legend {
  float: left;

  display: block;
  width: 100%;
}
.fieldset legend + * {
  margin-top: 0;
}


.label {
  display: block;

  margin-bottom: 0.5em;

  font-size: 1.125em;
  font-weight: 700; 
}

.label__tag {
  margin-left: 0.5em;
  font-size: 0.85em;
  font-weight: 400;
  opacity: 0.9;
  vertical-align: baseline; }

.input {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: calc( 0.5em + 3px ) 1em;
  border: 1px solid #74828A;
  border-radius: 4em;
  margin-top: 0;
  box-shadow: none; }
  .input[disabled] {
    cursor: not-allowed;
    opacity: 0.75; }

textarea.input {
  min-height: 120px; }

*::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: #a6a6a6; }

*::-moz-placeholder {
  /* Firefox 19+ */
  color: #a6a6a6; }

*:-ms-input-placeholder {
  /* IE 10+ */
  color: #a6a6a6; }

*:-moz-placeholder {
  /* Firefox 18- */
  color: #a6a6a6; }

.input-message {
  margin-top: 0.5em;
  font-size: 1.05em;
  font-weight: 700; }

.input-message--error {
  color: #d81e1e;
}


/* class applies to select element itself, not a wrapper element */
.select {
  display: block;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.3;
  padding: .6em 1.4em .5em .8em;
  text-wrap: wrap;
  width: 100%;
  max-width: 100%; /* useful when width is set to anything other than 100% */
  box-sizing: border-box;
  margin: 0;
  border: 1px solid #aaa;
  box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
  border-radius: .5em;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  cursor: pointer;
  /* note: bg image below uses 2 urls. The first is an svg data uri for the arrow icon, and the second is the gradient. 
    for the icon, if you want to change the color, be sure to use `%23` instead of `#`, since it's a url. You can also swap in a different svg icon or an external image reference
    
  */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4"><path fill="%23495257" d="M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z"/></svg>'),
    linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%);
  background-repeat: no-repeat, repeat;
  /* arrow icon position (1em from the right, 50% vertical) , then gradient position*/
  background-position: right .7em top 50%, 0 0;
  /* icon size, then gradient */
  background-size: .65em auto, 100%;
}
/* Focus style */
.select:focus {
  border-color: #aaa;
  /* It'd be nice to use -webkit-focus-ring-color here but it doesn't work on box-shadow */
  box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
  box-shadow: 0 0 0 3px -moz-mac-focusring;
  color: #222; 
  outline: none;
}

/* Set options to normal weight */
.select option {
  font-weight:normal;
}

.submit-button {
  display: block;
  min-width: 320px;
  max-width: 100%;

  padding: 1em;
  border-radius: 4em;
  margin-left: auto;
  margin-right: auto;

  background-color: #9FC63B;
  color: #fff;

  text-align: center;
  font-size: 1.125em;
  font-weight: bold;
  text-transform: uppercase;

  transition: 300ms ease;
}
.submit-button:focus,
.submit-button:hover {
  background-color: #6e9224;
}

.submit-result {
  padding: 3em 1em;

  background-color: #9FC63B;

  font-weight: bold;
  text-align: center;
  color: #fff;
}
.submit-result__title {
  font-size: 1.3em;
  line-height: 1.2;
  text-transform: uppercase;
}
.submit-result__value {
  margin-top: 1rem;

  font-size: 2.5em;
}

.reset-button {
  display: inline-block;

  padding: 0.5em 2em;
  margin-top: 1em;

  font-weight: 600;
  text-transform: uppercase;

  opacity: 0.7;
}

.button-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: space-between;
  -ms-align-items: center;
  align-items: center;

  width: 100%;

  border-radius: 4em;
  overflow: hidden;

  background-color: #e8e8e3;
}
.button-group > * {
  margin-top: 0;
}
.button-group input {
  display: none;
}
.button-group input + label {
  cursor: pointer;
}
.button-group label {
  display: block;
  width: 50%;

  padding: 0.75em 0;
  border: 4px solid transparent;
  border-radius: 4em;
  margin-top: 0;

  text-align: center;
  font-weight: 700;

  transition: 300ms ease-out;
}
.button-group input:checked + label {
  border: 4px solid #9FC63B;

  background-color: #fff;
}

.unit-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
     -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: end;
     -ms-flex-align: end;
        align-items: flex-end;
  width: 100%;
}
.unit-group > * {
  margin-top: 0;
}

.unit-group__input {
  flex-grow: 1;
}

.unit-group__units {
  max-width: 150px;

  margin-left: 1em;
}
.unit-group__units label {
  padding: 0.5em 0;
}

.hide {
  display: none !important; }

@media only screen and (max-width: 450px) {
  .site-header {
    margin-bottom: 1em;
  }

  .submit-result__title {
    font-size: 1.25em;
  }
}

@media only screen and (max-width: 370px) {
  .button-group,
  .button-group label {
    border-radius: 1.2em;
  }

  .submit-button {
    min-width: 100%;

    font-size: 1em;
  }

  .unit-group__units {
    max-width: 120px;

    margin-left: 0.5em;
  }
}
@media only screen and (max-width: 350px) {
  .site-footer p {
    display: block;
  }
  .site-footer p + p {
    margin-left: 0;
    margin-top: 0.5em;
  }
  .site-footer__separator {
    display: none !important;
  }
}
