html {
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

#body-container {
  font-family: "DM Sans", sans-serif;
  padding: 20px;
  margin: 0;
  top: 0;
  left: 0;
  background-color: #f1f2ff;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
}

form {
  width: 100%;
}

h1 {
  font-size: 1.3em;
  margin: 0 0 10px 0;
}

h3 {
  margin: 10px 0;
  font-family: "DM Sans", sans-serif !important;
}

p,
ul {
  margin: 0;
}

fieldset {
  border: none;
}

.inputs-container {
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  padding: 30px 0;
}

.inputs-container input {
  max-width: 100%;
  width: 400px;
  margin: 5px 0;
  box-sizing: border-box;

  font-size: 16px;
  background-color: rgba(102, 102, 102, 0.15);
  border: 2px solid #fff;
  margin: 3px 0;
  height: 40px;
  padding: 0 10px;
}

.text-input {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  margin: 5px 0;
  max-width: 100%;
}

.text-input span {
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
}

.submit-container {
  margin: 40px 0;
}

.button-container {
  display: flex;
}

#submit-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#submit-form.loading .submit-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-loader,
#submit-form.loading .submit-text {
  display: none;
}

.submit-loader svg {
  width: auto;
  height: 41px;
  display: inline-block;
}

button {
  padding: 10px;
  border-radius: 41px;
  border: 2px solid #000;
  background-color: rgba(255, 255, 255, 0);
  width: 270px;
  max-width: 100%;
  height: 41px;
  font-size: 16px;
  font-weight: 700;
  font-stretch: 100%;
  margin-right: 10px;
  cursor: pointer;
}

button:disabled {
  border: 2px solid #a6a6a6;
  color: #a6a6a6;
  fill: #a6a6a6;
  cursor: not-allowed;
}

button:hover:enabled,
button:hover:hover:enabled > svg * {
  background-color: #000;
  color: #fff;
  fill: #fff;
}

.checkbox-container {
  display: flex;
  align-items: center;
}

.checkbox-container span {
  margin-left: 10px;
}

.section-container {
  display: grid;
  grid-template-columns: 20px 20px 20px 20px 20px auto;
  grid-template-rows: 1fr;
  margin-bottom: 10px;
  line-height: 25px;
  word-wrap: normal;
  word-break: normal;
}

.section-container.history {
  grid-template-columns: 40px 40px auto;
}

.section-container.history .value-header,
.section-container.history .checkbox-container {
  justify-self: center;
}

.category-container {
  display: grid;
  grid-template-columns: 40px auto;
  grid-template-rows: 1fr;
  margin-bottom: 10px;
  line-height: 25px;
  word-wrap: normal;
  word-break: normal;
}

.category-container.history,
.category-container.sleep {
  display: flex;
  flex-flow: column;
}

.category-container .value-header,
.category-container .checkbox-container {
  justify-self: center;
}

.pathologies-container {
  display: none;
  margin-left: 20px;
}

.pathologies-container.visible {
  display: block;
}

.category-instructions {
  font-weight: bold;
  margin: 20px 0;
}

.value-header {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.section-title {
  font-size: 1.3em;
  font-weight: 400;
}

.value-header {
  font-size: 1em;
  align-self: baseline;
}

.question-text,
.section-title {
  margin-left: 20px;
  align-self: baseline;
  text-align: left;
}

.legal-notice-container {
  margin: 20px 0;
  display: flex;
}

.legal-notice-container span {
  margin-left: 15px;
}

.legal-notice-container b {
  text-decoration: underline;
}

.privacy-container {
  margin-top: 20px;
}

.error {
  display: none;
  color: #cc203a;
  font-weight: 400;
  margin: 10px;
}

.error.show {
  display: block;
}

h3.begin {
  margin-top: 30px;
}

#questions-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}

#questions-loader svg {
  width: auto;
  height: 100px;
  display: inline-block;
}

#questions-form.loading #questions-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

#questions-loader,
#questions-form.loading #questions-container {
  display: none;
}

/* Checkbox mas grande para safari */
_::-webkit-full-page-media,
_:future,
:root input[type="checkbox"] {
  -webkit-transform: scale(2, 2);
}

@media screen and (max-width: 500px) {
  #questions-container {
    width: 100vw;
    max-width: 100%;
  }

  .pathologies-container {
    transform: translate(-50px, 0);
  }

  .section-container {
    grid-row-gap: 20px;
    margin-top: 20px;
  }

  .category-container .checkbox-container {
    align-items: baseline;
  }
}

@media print {
  #body-container,
  #body-container * {
    display: none !important;
  }
}
