#main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url("../images/bg1.jpg");
}

#submit-home {
  display: flex;
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  gap: 2rem;
}

#submit-home .line-left {
  padding-right: 0em;
}

#submit-home .line-left .screen1 {
  width: 100%;
  margin-left: -30px;
}

#submit-home .line-left .screen {
  margin-top: 0px;
}

#submit-home #submit .form-submit {
  margin-top: 6em;
  max-height: 580px;
}

.screenfly._2 {
  margin-left: 550px;
}

#main h1 {
  margin-bottom: 2em;
  margin-top: 1em;
  text-align: center;
  width: 900px;
}

#contato {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 4em;
}

#submit .form-submit,
#submit-contact .form-submit {
  background-color: #1b1b1b;
  padding: 0.1em 2em 2em 2em;
  border-radius: 10px;
  width: 500px;
}

#submit .form-submit h2,
#submit-contact .form-submit h2 {
  font-size: 20px;
  margin-bottom: 2em;
  text-align: center;
}

#submit-home #submit .form-submit h2 {
  font-size: 18px;
}

#submit .form-submit .BoxInput,
#submit-contact .form-submit .BoxInput {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5em;
}

#submit .form-submit .BoxInput p,
#submit-contact .form-submit .BoxInput p {
  margin-bottom: 5px;
  font-size: 16px;
  color: #f9f9f9;
  text-align: left;
}

.BoxPhone {
  display: flex;
}

.form-submit .BoxInput select {
  margin-right: 10px;
}

.form-submit .BoxInput select option {
  background-color: #1d1d1d;
}

.form-submit .BoxInput .BoxPhone input {
  width: 100%;
}

#submit .form-submit .BoxInput input,
#submit-contact .form-submit .BoxInput input,
.form-submit .BoxInput select {
  font-size: 18px;
  padding: 10px;
  border-radius: 8px;
  border: solid 1px #3e3e3e;
  background-color: #0000;
  color: white;
}

#submit .form-submit .BoxInput input:focus,
#submit-contact .form-submit .BoxInput input:focus,
.form-submit .BoxInput select:focus {
  outline: 1px solid rgb(90, 90, 90) !important;
}

#submit .form-submit .BoxBtn button,
#submit-contact .form-submit .BoxBtn button {
  font-size: 18px;
  padding: 18px 0;
  border-radius: 8px;
  border: none;
  width: 100%;
  font-weight: bold;
}

#submit-home #submit .form-success {
  margin-top: 4em;
}

.form-success {
  display: none;
  background-color: #1b1b1b;
  padding: 0.1em 2em 2em 2em;
  border-radius: 10px;
  width: 500px;
  height: 580px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-success p {
  text-align: center;
  font-size: 20px;
  line-height: 28px;
  margin-top: 30px;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
  cursor: not-allowed;
}

.btn-success {
  background-color: #027261;
  color: #fff;
}

@media screen and (max-height: 900px) {
  #main {
    padding: 3rem 0;
  }
}

@media (max-width: 1400px) {
  #submit-home {
    max-width: 1140px;
  }

  .screenfly._1 {
    margin-right: 680px;
  }
}

@media (max-width: 1200px) {
  #submit-home {
    max-width: 950px;
  }

  .screenfly._1,
  .screenfly._3 {
    margin-right: 480px;
  }

  .screenfly._2 {
    margin-left: 480px;
  }
}

@media (max-width: 1000px) {

  #submit-home {
    flex-direction: column;
    max-width: 95%;
    align-items: center;
  }

  #submit-home #submit .form-submit {
    margin-top: 0em;
    margin-bottom: 2em;
    width: 100%;
  }

  #submit-home .line-left .screen1 {
    margin-left: 0px;
  }

  #submit-home .line-left {
    padding-right: 0em;
  }

  .screenfly._1,
  .screenfly._3, .screenfly._2 {
    min-width: 200px;
  }
}

@media (max-width: 950px) {
  #main h1 {
    width: 95%;
  }

  .line-left .screen {
    padding-top: 30px;
  }

  .line-left .screen .screenfly._1 {
    margin-top: 80px;
  }
  .screenfly._1,
  .screenfly._3 {
    margin-left: 5%;
  }
}

@media screen and (max-width: 768px) {
  .screenfly._1, .screenfly._3 {
    margin-left: 5%
  }
  .screenfly._2 {
    margin-right: 35%;
  }
}

@media (max-width: 600px) {
  #submit {
    padding: 0 .5rem;
  }

  #submit .form-submit,
  #submit-contact .form-submit {
    width: 95vw;
  }

  #submit-home #submit .form-submit {
    max-height: unset;
    width: 95vw;
  }

  .form-success {
    width: 95vw !important;
    margin: 0 0 1rem 0;
  }

  .screenfly._1,
  .screenfly._3 {
    margin-left: 30%;
  }

  .line-left .screen .screenfly._1 {
    margin-top: 20px;
  }
  
  .screenfly._3 {
    margin-top: 165px;
  }
}

@media (max-width: 500px) {
  .screenfly._2 {
    margin-right: 70%;
  }

  .screenfly._1 {
    margin-top: 20px;
  }

  .screenfly._1,
  .screenfly._3 {
    margin-left: 70%;
  }

  .screenfly._3 {
    margin-top: 165px;
  }
  
  .form-success {
    width: 95vw !important;
    margin: 0 0 1rem 0;
  }

  #submit-home #submit .form-submit {
    width: 95vw;
  }
}

@media (max-width: 400px) {
  #main h1 {
    font-size: 20px;
  }

  #submit .form-submit h2,
  #submit-contact .form-submit h2 {
    font-size: 1.1rem;
  }

  .screenfly._2 {
    margin-right: 100%;
  }

  .screenfly._1 {
    margin-top: 20px;
  }

  .screenfly._1,
  .screenfly._3 {
    margin-left: 100%;
  }
}

@media screen and (max-width: 350px) {
  .screenfly._2 {
    margin-right: 130%;
  }
  .screenfly._1,
  .screenfly._3 {
    margin-left: 140%;
  }
}