html {
  font-size: 62.5%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  margin-top: 1.6rem;
  margin-bottom: 3.2rem;
}

header a {
  border: 1px solid #161b2a;
  padding: 1.2rem;
  border-radius: 0.2rem;
  cursor: pointer;
  color: #161b2a;
  text-decoration: none;
  font-size: 1.4rem;
  font-family: "Montserrat";
  font-weight: 600;
}

header a:hover {
  background-color: #161b2a;
  color: white;
}

header img {
  width: 5.6rem;
}

section {
  display: grid;
  padding-bottom: 6.4rem;
}

dialog {
  position: absolute;
  z-index: 90;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 150vh;
  border: none;
  background-color: #161b2a;
}

.branco {
  color: white;
}

dialog h3 {
  text-align: left;
  margin-top: 1.6rem;
  color: white;
  font-family: "Montserrat";
  font-size: 2.4rem;
}

dialog ul {
  text-align: left;
  color: white;
  font-size: 1.8rem;
  font-family: "montserrat";
}

dialog li {
  display: block;
}

dialog li:nth-child(1) {
  margin-top: 1.6rem;
}

dialog div {
  height: 150vh;
  padding: 2.4rem;
  margin: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

dialog button {
  border: 1px solid white;
  padding: 1.2rem;
  border-radius: 0.2rem;
  cursor: pointer;
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
  font-family: "Montserrat";
  font-weight: 600;
  background-color: #161b2a;
  margin-bottom: 1.6rem;
  display: block;
  margin-left: auto;
}

dialog button:hover {
  background-color: white;
  color: #161b2a;
}

dialog div p {
  color: white;
  margin-top: 1.6rem;
  font-family: "Montserrat";
  font-weight: 400;
  font-size: 2rem;
  line-height: 30px;
  text-align: left;
}

.container-formulario {
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

.espacamento {
  margin-bottom: 5rem;
}

h2 {
  font-size: clamp(2.4rem, 2.5vw, 3.6rem);
  text-transform: uppercase;
  font-style: italic;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  line-height: 80%;
  margin-bottom: 3.2rem;
}

.title-span {
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: none;
  display: flex;
  align-items: center;
  font-family: "Montserrat", sans-serif;
}

.title-span::before {
  content: "";
  background: url("ornamento.svg");
  width: 2.6rem;
  height: 2rem;
}

sup {
  color: red;
}

ul {
  list-style-type: none;
  display: grid;
  gap: 1.6rem;
}

li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-family: "Montserrat";
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
}

input,
select {
  padding: 1.2rem 1.6rem;
  border: 1px solid #145e8e;
  border-radius: 2px;
  font-size: 1.6rem;
}

input[type="date"] {
  padding: 1.05rem 1.6rem;
}

figure {
  display: none;
}

#btn,
.button-encerrar {
  color: white;
  background-color: #156ba4;
  padding: 1.6rem;
  text-align: center;
  font-size: 1.6rem;
  text-transform: uppercase;
  transform: skew(-15deg);
  border-left-style: none;
  border-top-style: none;
  border-bottom-style: none;
  border-right-color: #145e8e;
  border-right-width: 3.2rem;
  border-right-style: solid;
  font-weight: 900;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  width: 100%;
  cursor: pointer;
  filter: drop-shadow(0px 4px 4px rgba(42, 143, 209, 0.2));
  margin-left: 0;
}

.button-encerrar {
  width: max-content;
}

#btn:hover {
  background: #145e8e;
  transition: all 300ms;
  outline: 1px solid #2a8fd1;
  box-shadow: inset 0px 0px 13px #2a8fd1;
}

img {
  width: 8rem;
  margin-bottom: 1.6rem;
}

@media (min-width: 50rem) {
  .container-formulario {
    width: 60%;
  }

  dialog div {
    width: 80rem;
  }

  ul {
    grid-template-columns: 1fr 1fr;
  }

  ul li:nth-child(1) {
    grid-column: 1/3;
  }

  ul li:nth-child(2) {
    grid-column: 1/3;
  }

  ul li:nth-child(3) {
    grid-column: 1/3;
  }

  ul li:nth-child(4) {
    grid-column: 1/3;
  }

  ul li:nth-child(5) {
    grid-column: 1/2;
  }

  ul li:nth-child(6) {
    grid-column: 2/2;
  }

  ul li:nth-child(7) {
    grid-column: 1/2;
  }
  ul li:nth-child(8) {
    grid-column: 2/3;
  }

  button {
    grid-column: 1/3;
  }
}
