body,
section,
form,
h2 {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Barlow", sans-serif;
}

label {
  position: relative;
}

/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */

/* Handle */
::-webkit-scrollbar-thumb {
  background: #39a48b;
  border-radius: 10px;
}

.header {
  height: 10vh;
  width: 100vw;
  display: flex;
  background-color: #39a48b;
  justify-content: space-around;
  align-items: center;
  color: white;
}

.head__title {
  font-size: 2rem;
}

.head__logo {
  width: 84px;
  margin-right: 200px;
}

.header__left__container {
  width: 42%;
  display: flex;
  justify-content: flex-end;
}

.header__right__container {
  width: 58%;
}

.main {
  width: 100vw;
  height: 90vh;
  background-color: #f1efef;
  display: flex;
  flex-direction: column;
}

.whatsapp_container {
  position: absolute;
  background-color: #39a48b;
  padding: 0.7rem;
  transition: background-color 0.2s;
  border-radius: 50px;
  right: 2.5vw;
  cursor: pointer;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp_container {
  bottom: 5vh;
}

.whatsapp-btn {
  width: 2.5rem;
  right: 2.5vw;
}

.whatsapp_container:hover {
  background-color: #507c14;
}

.calculator__fPage {
  background-color: white;
  margin: 10vh auto 0;
  width: 80vw;
  max-height: 66vh;
  border-radius: 10px;
  overflow: auto;
  box-shadow: 7px 5px 11px 3px rgba(195, 195, 195, 1);
  scroll-behavior: smooth;
}

.calculator__subtitle {
  width: 59%;
  margin: 1em auto 0;
  color: #39a48b;
  font-size: 1rem;
  font-weight: 600;
}

.calculator__subtitle span {
  display: block;
  margin: 10px 0;
  font-size: 1.1rem;
}

.calculator__fieldset {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none;
}

.calculator__fieldset-container {
  display: flex;
  flex-direction: column;
  width: 60%;
}

.calculator__checkbox__container {
  margin: 0.5rem 0;
  height: 19px;
}

.calculator__checkbox-title {
  margin: 0;
  margin-bottom: 0.4rem;
}

.calculator__label-input__container {
  position: relative;
  width: 100%;
}

.calculator__label {
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.calculator__label__paragraph {
  margin: 5px 0 0;
}

.calculator__demanda-estados__container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.calculator__demanda-estados__container label:first-child {
  width: 50%;
}

.calculator__demanda-estados__container label input {
  margin-top: 0;
}

.errorMessage {
  color: red;
  position: absolute;
  bottom: -1.23rem;
  left: 0;
  text-align: center;
}

.calculator__label input {
  margin-top: 0.4rem;
  height: 2rem;
  border: 1px solid gray;
  border-radius: 2px;
}

.calculator__input {
  margin-top: 0.3rem;
  height: 2rem;
  border: 1px solid gray;
  border-radius: 2px;
  width: 70%;
}

.calculator__label select {
  height: 36px;
  width: 100px;
  background-color: white;
  border: 1px solid gray;
  border-radius: 4px;
  margin-top: 0.25rem;
}

.calculator__button-container {
  width: 58%;
  margin: 0 auto 1rem;
  display: flex;
  justify-content: space-between;
}

.icon__container {
  display: flex;
  width: 40%;
  justify-content: flex-end;
}

.icon__container div {
  margin-right: 1rem;
}

.calculator__button {
  background-color: transparent;
  border: 1px solid #39a48b;
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgb(71, 71, 71);
  height: 43px;
  padding: 0.5rem;
  font-family: "Barlow", sans-serif;
  border-radius: 5px;
  transition: color 0.3s, background-color 0.3s;
  cursor: pointer;
}

.calculator__button:hover {
  background-color: #39a48b;
  color: white;
}

.hidden {
  display: none;
}

.calculator__sPage {
  background-color: white;
  margin: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 10px;
  overflow: auto;
  box-shadow: 7px 5px 11px 3px rgba(195, 195, 195, 1);
  scroll-behavior: smooth;
}

.calculator__sp-title {
  width: 80%;
  text-align: center;
  margin: 2rem auto 2rem;
}

.calculator__sp-text__container {
  width: 85%;
  margin: auto;
}

.calculator__sp-text__paragraph {
  margin: 0;
}

.calculator__sp-subtitle {
  font-weight: 500;
  font-size: 1.3em;
  margin: 0 auto 1rem;
}

.calculator__sp-subtitle__firstParagraph {
  font-size: 1.5em;
}

.link-btn__container {
  position: absolute;
  left: 9rem;
}

.icon__container-sp {
  display: none;
  width: 100%;
  justify-content: center;
}

.icon__container-sp div {
  margin-right: 1rem;
}

.calculator__section__chart__container {
  display: flex;
  height: 50vh;
  width: 100%;
  justify-content: space-around;
}

.chart__container,
.chart__container-bottom {
  margin: 1rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.chart__container {
  width: 60vw;
}

.chart__container span {
  position: absolute;
  z-index: 1;
}

.chart__container-top {
  height: 60vh;
}

.chart__container-top span {
  top: 10px;
}

.chart__container-bottom {
  height: 70vh;
}

.chart__container-bottom span {
  top: 35px;
}

.chart__baks__container-bottom {
  width: 60vw;
  height: 49vh;
}

.chart__baks__container-bottom p {
  text-align: center;
  margin: 0 auto;
}

.chart-top {
  height: calc(100% - 20px);
  width: 100%;
}

.chart-bottom {
  height: calc(100% - 19px);
  width: 100%;
}

.chart-bottom__baks {
  height: calc(100% - 19px - 19px - 19px);
  width: 100%;
}

.b-bottom {
  border-bottom: 1px solid gray;
}

.chloride-free {
  width: 85%;
  margin: 0 auto;
  display: flex;
  align-items: space-around;
  justify-content: center;
  flex-direction: column;

}

.chloride-free__nutrients {
  margin: 2rem 0 1.5rem;
  display: flex;
  justify-content: center;
}

.chloride-free__nutrients div {
  text-align: center;
  margin: 0 3rem;
}

.chloride-free__nutrients p {
  margin: 0.4rem 0;
}

.calculator__baks {
  width: 100%;
  margin: 0 auto 2rem;
}

.calculator__baks__title {
  font-size: 1.2em;
  color: black;
  font-weight: 700;
}

.calculator__baks__text {
  text-align: center;
width: 85%;
  margin: auto;
}

.buttons-sp__container {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.float__newCalculate-button {
  margin: 2rem 0 2rem;
  width: 240px;
  height: 40px;

  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;

  margin: 0 10px 10px;
  background-color: #39a48b;
  font-size: 0.9rem;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 10px;

  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
}

.float__newCalculate-button:hover {
  background-color: #507c14;
}

@keyframes scroll-down {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 90%;
  }
}

/* MODAL A partir daqui */
.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: 0;
  opacity: 0;
  z-index: -1;
  transition: all 0.3s;
}

.modal--active {
  transition: all 0.3s;
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
  z-index: 2;
}

.modal__card {
  position: relative;
  background-color: #f8f4f4;
  border-radius: 20px;
  min-height: 450px;
  width: 30vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal__close {
  position: absolute;
  width: 1.5rem;
  top: 1.5rem;
  right: 1.5rem;
  cursor: pointer;
  transition: transform 0.4s;
}

.modal__close:hover {
  transform: scale(1.2);
}

.modal__title__container {
  width: 80%;
  text-align: center;
  font-size: 0.95rem;
}

.modal__form {
  border-radius: 10px;
  width: 30vw;
  background-color: #f9f8f8;
  padding: 2rem;
  margin-bottom: 1rem;
}

.modal__fieldset {
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
}

.modal__input {
  height: 2rem;
  border: 1px solid #eaeaea;
  font-size: 1rem;
  padding-left: 19px;
}

.modal__select {
  width: 100%;
  height: 2rem;
  border: 1px solid #eaeaea;
  margin: 0 auto;
  font-size: 1rem;
  padding-left: 15px;
  color: gray;
  opacity: 1;
  font-size: 0.9em;
}

.modal__input:nth-of-type(2) {
  border-top: none;
  border-bottom: none;
}

.modal__input::placeholder {
  font-size: 0.9rem;
}

.modal__input:focus {
  outline: none;
}

.modal__label {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  font-weight: 600;
}

.modal__form p {
  color: black;
  line-height: 1rem;
  font-size: 0.78rem;
}

.modal__form a {
  color: #a3bd31;
}

.form__submitbtn {
  background-color: #39a48b;
  border: 1px solid #39a48b;
  padding: 0.5rem 1.2rem;
  font-size: 1.1rem;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease 0s;
}

.form__submitbtn:hover {
  box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.1);
  background-color: #8fb603;
  transform: translateY(-3px);
}

.newsletter__error {
  border-left: 1px solid red;
  border-right: 1px solid red;
}

.newsletter__error::placeholder {
  color: red;
}

@media (max-width: 1555px) {
  .modal__title__container span {
    display: inline;
  }
  .calculator__demanda-estados__container label:first-child {
    width: 70%;
  }
  .calculator__demanda-estados__container label:last-child {
    width: 70%;
  }
}

@media (max-width: 1400px) {
  .modal__card {
    width: 50vw;
  }
}

@media (max-width: 1100px) {
  .float__newCalculate-button {
    left: 1rem;
    bottom: 0.3rem;
  }

  .float__text {
    bottom: 0.3rem;
    right: 1rem;
  }
  .chloride-free h3 {
    font-size: 1.1rem;
  }

  .calculator__demanda-estados__container label:first-child {
    width: 100%;
  }
  .calculator__demanda-estados__container label:last-child {
    width: 100%;
  }
  .modal__card {
    width: 50vw;
  }
  .modal__form {
    width: 60%;
  }

  .modal__title__container {
    width: 80%;
  }
  .modal__title__container span {
    display: block;
  }
}

@media (max-width: 951px) {
  .modal__form {
    width: 70%;
  }

  .calculator__checkbox__container {
    margin: 15px 0;
  }

  .float__text {
    bottom: 1.5rem;
    right: 3rem;
  }

  .head__logo {
    margin-right: 120px;
  }

  .header__left__container {
    width: 38%;
  }

  .header__right__container {
    width: 62%;
  }
}

@media (max-width: 900px) {
  .modal__card {
    width: 60vw;
  }
  .modal__form {
    width: 90%;
  }
  .calculator__label-input__container {
    margin-bottom: 10px;
  }
  .calculator__input {
    width: 80%;
  }
}

@media (max-width: 810px) {
  .calculator__top-container {
    align-items: center;
  }
  .calculator__table {
    margin: 0;
  }
  .float__text {
    bottom: 1rem;
    right: 4rem;
  }
}

@media (max-width: 768px) {
  .modal__title__container {
    width: 75%;
  }
  .modal__title__container span {
    display: inline;
  }
  .calculator__demanda-estados__container {
    flex-direction: column;
  }
  .calculator__demanda-estados__container label:first-child {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .calculator__bottom-container {
    height: auto;
  }
  .calculator__chart-container {
    flex-direction: column;
    box-sizing: border-box;
    height: auto;
    align-items: center;
  }

  .chart__container {
    height: 55vw;
    width: 70vw;
    flex-direction: column;
  }

  .chart-left {
    height: 100%;
  }

  .chart-right {
    height: 100%;
  }

  .chloride-free {
    margin-top: 1rem;
    width: 90%;

  }
  .chloride-free h3 {
    font-size: 1rem;
  }

  .float__text {
    bottom: 1rem;
    right: 4.5rem;
  }

  .float__newCalculate-button {
    position: inherit;
  }
}

@media (max-width: 650px) {
  .calculator__top-container {
    height: 70vh;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
  }
  .calculator__sPage {
    margin: 0;
    max-height: 100%;
    height: 100%;
    width: 100%;
  }

  .float__text {
    right: 33vw;
  }
}

@media (max-width: 600px) {
  .modal__card {
    width: 75vw;
  }
  .modal__form {
    width: 90%;
  }
}

@media (max-width: 550px) {
  .calculator__top-container {
    height: 80vh;
  }

  .calculator__subtitle {
    width: 90%;
  }
  .icon__container-sp {
    display: flex;
  }
  .chart__container {
    width: 100vw;
  }

  .chloride-free__nutrients div {
    margin: 0 1.5rem;
  }

  .chloride-free h3 {
    font-size: 0.9rem;
  }

  .float__text {
    right: 33vw;
  }

  .main {
    height: 90vh;
    align-items: center;
    justify-content: center;
  }

  .modal__open-btn,
  .whatsapp-btn {
    width: 30px;
  }

  .calculator__fPage {
    margin: 0;
    width: 90vw;
    max-height: 80vh;
    height: 75vh;
  }

  .calculator__fieldset-container {
    width: 90%;
  }

  .calculator__button-container {
    width: 85%;
  }

  .calculator__title {
    font-size: 1.7rem;
  }

  .calculator__label {
    margin: 1.2rem 0;
  }

  .errorMessage {
    font-size: 0.8rem;
  }

  .head__logo {
    width: 190px;
  }

  .head__title {
    font-size: 2em;
  }

  .head__logo {
    width: 80px;
    margin-right: 20px;
  }

  .header__left__container {
    width: 25%;
  }

  .header__right__container {
    width: 75%;
  }
}

@media (max-width: 450px) {
  .calculator__table {
    width: 90%;
  }

  .chart__container {
    height: 58vh;
  }

  .chart-top {
    height: calc(100% - 20px);
    width: 100%;
  }

  .calculator__section__chart__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 45vh;
    justify-content: flex-start;
  }

  .chart__baks__container-bottom {
    width: 100%;
    height: calc(100% - 76px);
  }

  .chart-bottom {
    height: 90%;
    width: 100%;
  }

  .chloride-free {
    height: auto;
  }

  .chloride-free__nutrients {
    margin: 1rem 0 0;
  }

  .modal__card {
    width: 95vw;
  }
  .modal__form {
    width: 100%;
  }

  .calculator__label {
    margin: 0.5rem 0;
  }

  .chart__container-bottom span {
    top: 12px;
  }
}

@media (max-width: 380px) {
  .header__left__container {
    width: 40%;
  }

  .header__right__container {
    width: 60%;
  }

  .head__title {
    font-size: 1.7em;
  }

  .head__logo {
    width: 60px;
  }
}

@media (max-height: 813px) and (max-width: 400px) {
  .float__text {
    bottom: -30px;
  }
}



