input, select {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance:none;
    -o-appearance: none;
    appearance: none;
}

button {
  outline: none;
}

button:focus {
  outline: none;
}

div {
    box-sizing: border-box;
}

.calculator-container {
    width: 100%;
    max-width: 560px;
    padding: 10px;
    display: block;
    margin: 0 auto;
    background-color: #ffffff;
}

.calculator-form {
    width: 100%;
}

/* Titles */
.calculator-title {
    display: block;
    color: #465e82; /* Dark blue */
    font-family: 'Lato', sans-serif;
    margin: 0 0 5px 0;
}

.calculator-title-large {
    font-size: 25px;
    line-height: 31px;
    font-weight: bold;
}

.calculator-title-large h1 {
    font-size: 25px;
    line-height: 31px;
    font-weight: bold;
}

.calculator-title-medium {
    font-size: 20px;
    line-height: 24px;
}

.calculator-title-medium h1 {
    font-size: 20px;
    line-height: 24px;
}

.calculator-title-center {
    text-align: center;
}

.form-step-title {
    display: block;
    color: #95989a; /* Grey */
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 19px;
    font-weight: normal;
    margin: 10px 0;
    text-align: center;
}

.calculator-fineprint {
    color: #95989a; /* Grey */
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    line-height: 14px;
    font-weight: normal;
}

/* Structure */
.container-fullwidth {
    display: block;
    width: 100%;
    position: relative;
    padding: 20px 10px;
}

.container-center {
    text-align: center;
}

.container-result {
    background-color: #e6edf2;
    padding: 40px !important;
}

.container-border {
    border-bottom: 2px solid #f7f7f7;
}

.container-20 {
    display: inline-block;
    width: 19%;
    padding: 0 5px;
}

.container-50 {
    display: inline-block;
    width: 49%;
    padding: 0 5px;
}

.container-60 {
    display: inline-block;
    width: 59%;
    padding: 0 5px;
}

.container-80 {
    display: inline-block;
    width: 79%;
    padding: 0 5px;
}

.spacer {
    display: block;
    width: 100%;
    padding: 10px;
    clear: both;
}

.container-table {
    display: table !important;
    width: 100%;
}

.container-tablecell {
    display: table-cell !important;
    height: 100%;
    vertical-align: middle;
}

/* Indicators */

.js-calculator-tab {
    display: none;
}

.calculator-indicators {
    display: block;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}

.calculator-step {
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    line-height: 20px;
    font-weight: bold;
    color: #ffffff;
    height: 20px;
    width: 20px;
    margin: 0 2px;
    background-color: #95989a;
    border: none;
    border-radius: 50%;
    display: inline-block;
}

.calculator-step.active {
    background-color: #465e82;
}

.calculator-step.finish {
    background-color: #465e82;
}

/* Input */
input[type="radio"], input[type="checkbox"] {
  background: transparent !important;
}

input.invalid {
    background-color: #ffdddd;
}

select.invalid {
  background-color: #ffdddd;
}

.input-question {
    color: #465e82; /* Blue */
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 18px;
    font-weight: bold;
    text-align: left;
}

.input-severity {
    color: #465e82; /* Blue */
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 18px;
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
}

.input-severity span {
    top: 50%;
    transform: translateY(-50%);
}

.input-description {
    color: #95989a; /* Grey */
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    line-height: 17px;
    font-weight: normal;
    text-align: left;
}

/* General inputs */
.input-text {
    border: 2px solid #adb8c8; /* Medium grey */
    border-radius: 2px;
    background-color: #ffffff;
    padding: 10px;
    width: 100%;
    display: block;
    color: #465e82;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 18px;
    font-weight: bold;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.input-text::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #95989a; /* Grey */
  font-weight: normal;
  font-style: italic;
}
.input-text::-moz-placeholder { /* Firefox 19+ */
  color: #95989a; /* Grey */
  font-weight: normal;
  font-style: italic;
}
.input-text:-ms-input-placeholder { /* IE 10+ */
  color: #95989a; /* Grey */
  font-weight: normal;
  font-style: italic;
}
.input-text:-moz-placeholder { /* Firefox 18- */
  color: #95989a; /* Grey */
  font-weight: normal;
  font-style: italic;
}

.input-select:invalid {
  color: #95989a !important; /* Grey */
  font-weight: normal !important;
  font-style: italic !important;
}

.input-select option {
  color: #465e82;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: bold;
  font-style: normal;
}

.text-label {
    color: #465e82; /* Blue */
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 20px;
    display: block;
    padding: 0 10px;
}
.calc-select-wrapper {
  display: block;
  widows: 100%;
  position: relative;
}

.calc-select-wrapper:after {
  content: '';
  display: block;
  height: 15px;
  width: 15px;
  position: absolute;
  top: 13px;
  right: 13px;
  background-image: url('./select-arrow.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Slider switch */
.switch-label {
    color: #465e82; /* Blue */
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 18px;
    text-transform: uppercase;

    position: absolute;
    left: -40px;
}

.switch-label:before {
    position: absolute;
    content: 'Não';
    visibility: visible;
}

.switch-label:after {
    position: absolute;
    content: 'Sim';
    visibility: hidden;
}

.input-switch {
    position: relative;
    display: inline-block;
    width: 35px;
    height: 20px;
    top: 5px;
    float: right;
}

.input-switch input {
    display:none;
}

.input-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    border: 2px solid #01a3ca;
    -webkit-transition: .4s;
    transition: .4s;
}

.input-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: -2px;
    bottom: -2px;
    background-color: #ffffff;
    border: 2px solid #01a3ca;
    -webkit-transition: .4s;
    transition: .4s;
}

.input-slider.round {
    border-radius: 20px;
}

.input-slider.round:before {
    border-radius: 50%;
}

/* Input checked styling */
.input-checkbox:checked + .input-slider {
    background-color: #2196F3;
}

.input-checkbox:focus + .input-slider {
    box-shadow: 0 0 1px #2196F3;
}

.input-checkbox:checked + .input-slider:before {
    -webkit-transform: translateX(15px);
    -ms-transform: translateX(15px);
    transform: translateX(15px);
}

.input-checkbox:checked ~ .switch-label:before {
    visibility: hidden;
}

.input-checkbox:checked ~ .switch-label:after {
    visibility: visible;
}

/* Radio buttons */
.input-radio:checked,
.input-radio:not(:checked) {
    position: absolute;
    left: -9999px;
}

.input-radio:checked + label,
.input-radio:not(:checked) + label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    line-height: 20px;
    display: inline-block;
    color: #95989a;
    top: -15px;
    float: right;
}

.input-radio:checked + label:before,
.input-radio:not(:checked) + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #32425c;
    border-radius: 100%;
    background: #ffffff;
}

.input-radio:checked + label:after,
.input-radio:not(:checked) + label:after {
    content: '';
    width: 14px;
    height: 14px;
    background: #32425c;
    position: absolute;
    top: 4px;
    left: 4px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.input-radio:not(:checked) + label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}

.input-radio:checked + label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

/* Results */
.result-text {
    display: block;
    color: #465e82;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    margin: 5px 0;
    text-align: center;
}

.result-large {
    font-size: 50px;
    line-height: 54px;
}

.result-medium {
    font-size: 17px;
    line-height: 21px;
}

.result-small {
    font-size: 15px;
    line-height: 19px;
}

.result-verysmall {
    font-size: 10px;
    line-height: 14px;
}

/* Buttons */
.buttons-container {
    display: block;
    padding: 10px 0;
}

.buttons-center {
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.calculator-button {
    padding: 10px 20px;
    font-size: 15px;
    line-height: 19px;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 10px;
    cursor: pointer;
    -webkit-transition: .2s;
    transition: .2s;
}

.calculator-button-blue {
    border: 2px solid #00a2ca;
    background-color: #00a2ca;
    color: #ffffff;
}

.calculator-button-blue:hover {
    background-color: #ffffff;
    color: #00a2ca;
}

.calculator-button-white {
    border: 2px solid #00a2ca;
    background-color: #ffffff;
    color: #00a2ca;
}

.calculator-button-white:hover {
    background-color: #00a2ca;
    color: #ffffff;
}

/* BMI */
#js-bmi-hasvalue, #bmi-resetcontainer {
    display: none;
}

.bmi-results {
    display: none;
}

input[type='number'] {
    -moz-appearance:textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* NRS-2002 */
#nrs-alternative-result, #js-nrs-atrisk, #js-nrs-norisk {
    display: none;
}

/* MNA */
#js-cc-question {
    display: none;
}

.mna-results {
    display: none;
}

.question-link {
    font-size: 10px;
    line-height: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: underline;
    cursor: pointer;
    color: #95989a; /* Grey */
    text-align: center;
}

/* Proteins and Calories Calculator */
#pocketformula-form, #harrisbenedict-form, #js-range-label, #js-range-container {
  display: none;
}

.slidecontainer {
  width: 100%;
  position: relative;
  padding: 15px 0 0 0;
}

.range-start-label {
  position: absolute;
  left: 0;
  top: -5px;

  font-size: 12px;
  line-height: 12px;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  color: #32425c;
}

.range-end-label {
  position: absolute;
  right: 0;
  top: -5px;

  font-size: 12px;
  line-height: 12px;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  color: #32425c;
}

.range-value-label {
  font-size: 14px;
  line-height: 18px;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  color: #32425c;
  margin: 10px 0;
  display: inline-block;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  border-radius: 20px;
  background: transparent;
  outline: none;
  border: 2px solid #32425c;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider[disabled] {
  opacity: 0.5 !important;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #32425c;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #32425c;
  cursor: pointer;
}

/* Media Queries */

@media only screen and (max-width: 480px) { /* smart phone landscape */

    body {
        padding: 0;
    }

    .page-container {
        padding: 10px 5px !important;
    }

    .calculator-container {
        padding: 5px !important;
    }

    .container-fullwidth {
        padding: 10px 5px;
    }

    .container-20 {
        width: 24%;
        padding: 0 3px;
    }

    .container-60 {
        width: 49%;
        padding: 0 3px;
    }

    .container-80 {
        width: 74%;
        padding: 0 3px;
    }


    /* Text */
    .input-question {
        font-size: 12px;
        line-height: 16px;
    }

    .input-severity {
        font-size: 12px;
        line-height: 16px;
        word-wrap: break-word;
    }

    .input-description {
        font-size: 12px;
        line-height: 16px;
    }

    /* Radio buttons */
    .input-radio:checked + label,
    .input-radio:not(:checked) + label {
        padding-left: 10px;
        line-height: 14px;
    }

    .input-radio:checked + label:before,
    .input-radio:not(:checked) + label:before {
        width: 18px;
        height: 18px;
    }

    .input-radio:checked + label:after,
    .input-radio:not(:checked) + label:after {
        width: 12px;
        height: 12px;
        top: 3px;
        left: 3px;
    }

}

/* Proteins reference table */
#js-reference-table {
  display: none;
}

.reference-table {
  display: block;
  width: 100%;
  position: relative;
  font-family: 'LatoRegular', Arial, Helvetica, sans-serif;
  padding-top: 20px;
}

.reference-table h3 {
  font-size: 18px;
  line-height: 22px;
  color: #757982;
  font-weight: bold;
  text-align: center;
  margin: 0 auto;
  width: 100%;
  display: block;
  padding: 20px 0;
  text-transform: uppercase;
}

.tab-links {
  width: 100%;
  display: block;
}

.tab {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  display: block;
}

.tab button {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 15px;
  transition: 0.3s;
  font-size: 18px;
  line-height: 22px;
  color: #34445d;
  text-transform: uppercase;
  font-weight: bold;
  width: 49%;
  display: inline-block;
  border-radius: 4px 4px 0 0;
  border: 1px solid #dddddd;
  position: relative;
  top: 1px;
}

.tab button.active {
  border-bottom-color: #ffffff !important;
}

.tabcontent {
  display: none;
  padding: 20px 0;
  border-top: 1px solid #dddddd;
  animation: fadeEffect 1s;
}

.reference-table {
  padding: 10px 0;
  margin: 0 auto;
}

.reference-table table tr th {
  font-size: 16px;
  line-height: 20px;
  color: #34445d;
  text-transform: uppercase;
  font-weight: bold;
  border-top: none !important;
  padding: 10px;
}

.reference-table table tr td {
  padding: 10px;
}

.reference-label {
  font-size: 14px;
  line-height: 18px;
  color: #34445d;
  text-transform: uppercase;
  font-weight: bold;
  border-top: 1px solid #ddd;
}

.reference-description {
  font-size: 14px;
  line-height: 18px;
  color: #34445d;
  border-top: 1px solid #ddd;
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.no-border {
  border: none !important;
}
