@import url("https://fonts.googleapis.com/css2?family=Alatsi&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  background-image: url(../assets/services-background.png);
  background-size: cover;
  flex: 1;
}

header {
  width: 100vw;
  height: 135px;
  display: flex;
  justify-content: center;
  background-color: #1a2337;
  margin: 0;
  padding: 0;
}

header img {
  margin: 18px 0;
}

#h1-open-cnpj {
  font-family: "Abril Fatface", serif;
  font-size: 48px;
  margin: 25px auto;
  text-align: center;
  width: 1000px;
  max-width: 90%;
}

.form-container {
  font-family: "Alatsi", cursive;
  background-color: #86bad9;
  width: 1000px;
  height: auto;
  margin: 0 auto 50px auto;
  padding: 20px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-box-shadow: 3px 5px 22px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 3px 5px 22px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 3px 5px 22px 0px rgba(0, 0, 0, 0.2);
}

.open-form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 85%;
}

.top-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.left-items,
.right-items {
  width: 400px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.open-form {
  width: 100%;
}

.open-form label {
  font-family: "Alatsi", cursive;
  font-size: 12px;
  margin: 0 0 0 10px;
}

.open-form input,
.open-form select {
  padding: 8px;
  width: 100%;
  max-width: 250px;
  height: 30px;
  border-radius: 25px;
  border: none;
  -webkit-box-shadow: 3px 5px 22px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 3px 5px 22px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 3px 5px 22px 0px rgba(0, 0, 0, 0.2);
}

.open-form textarea {
  width: 100%;
  max-width: 560px;
  height: 210px;
  border-radius: 25px;
  border: none;
  -webkit-box-shadow: 3px 5px 22px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 3px 5px 22px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 3px 5px 22px 0px rgba(0, 0, 0, 0.2);
  padding: 15px;
  resize: none;
  margin: 0 0 0 75px;
}

.open-form button {
  border: none;
  background-color: #1a2337;
  color: #86bad9;
  width: 230px;
  height: 60px;
  border-radius: 25px;
  font-family: inherit;
  font-size: 24px;
  -webkit-box-shadow: 3px 5px 22px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 3px 5px 22px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 3px 5px 22px 0px rgba(0, 0, 0, 0.2);
  transition: 0.5s;
}

.open-form button:hover {
  transform: scale(1.07);
}

.bottom-items {
  width: 95%;
  display: flex;
  justify-content: space-between;
}

.input-box {
  margin: 5px 0;
  display: flex;
  flex-direction: column;
}

footer {
  width: 100%;
  padding: 50px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1a2337;
  margin-top: auto;
  flex-direction: column;
  color: #fff;
  font-family: "Alatsi", cursive;
  & img {
    width: 135px;
    height: 50px;
    margin: 0 0 30px 0;
  }
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.footer-left-items {
  display: flex;
  flex-direction: column;
}

.local,
.email,
.whatsapp,
.tel {
  display: flex;
  flex-direction: row;
  margin-bottom: 10px;
  & svg {
    margin-right: 5px;
  }
  & a {
    text-decoration: none;
    color: #ffffff;
  }
}

.local p {
  width: 270px;
}

.p-footer {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

@media (max-width: 1200px) {
  header {
    display: flex;
    justify-content: center;
    margin: 0;
  }

  .form-container {
    width: 90%;
    margin: 0 auto 50px auto;
    padding: 20px 10px;
  }

  #h1-open-cnpj {
    font-size: 36px;
    margin: 25px 0;
    text-align: center;
  }

  .left-items,
  .right-items {
    width: 100%;
  }

  .open-form {
    width: 100%;
    padding: 0;
  }

  .open-form input,
  .open-form select,
  .open-form textarea {
    width: 100%;
    max-width: none;
  }

  .top-items {
    flex-direction: column;
  }

  .form-container {
    height: auto;
  }

  .bottom-items {
    display: flex;
    flex-direction: column;
    & textarea {
      margin: 0 0 15px 0;
    }
    & button {
      size: 80%;
    }
  }
  .footer-content {
    display: flex;
    justify-content: space-between;
    
  }

  .footer-left-items {
    display: flex;
    flex-direction: column;
  }

  .local,
  .email,
  .whatsapp,
  .tel {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
    & svg {
      margin-right: 5px;
    }
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }

  header img {
    margin: 10px 0;
  }

  #h1-open-cnpj {
    font-size: 28px;
    margin: 10px 0;
  }

  .form-container {
    width: 100%;
    margin: 0 auto 50px auto;
    padding: 15px;
  }

  .left-items,
  .right-items {
    width: 100%;
  }

  .open-form input,
  .open-form select,
  .open-form textarea {
    width: 100%;
    max-width: none;
  }

  .top-items {
    flex-direction: column;
  }

  .bottom-items {
    display: flex;
    flex-direction: column;
    & textarea {
      margin: 0 0 15px 0;
    }
    & button {
      size: 80%;
    }
  }
  .footer-content {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }
}
