.contact{
  padding: 10rem 27rem 10rem;
  overflow: hidden;
}

.contact_head{
  display: none;
}

.contact_head.active{
  display: block;
}

.contact_head form{
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
  width: 100%;
  height: 100%;
}

.contact_line{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact_label{
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: calc(24em/16);
}


.contact_label .red{
  font-weight: 500;
  color: var(--red);
}

.contact_form{
  position: relative;
  width: 100%;
  height: fit-content;
}

.contact_form input,
.contact_form select,
.contact_form textarea{
  width: stretch;
  padding: 1.8rem 2.5rem;
  background: #EDEDED;
  border-radius: .3rem;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: calc(24em/16);
}

.wpcf7-form.init input[type="text"],
.wpcf7-form.init textarea{
  /* cursor:alias; */
}

.confirm .contact_form input,
.confirm .contact_form select,
.confirm .contact_form textarea{
  background-color: #FFEED0;
}


.contact_form select{
  width: 39.3rem;
}

.contact_form.select{
  width: fit-content;
}

.contact_form.select::after{
  content: "";
  width: 2rem;
  height: 1.769rem;
  position: absolute;
  right: 3rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  background-image: url(../img/select_arrow.svg);
  background-repeat: no-repeat;
  background-size: cover;
}  

.contact_form textarea{
  resize: none;
  height: 35rem;
  box-sizing: border-box;
}

.guideline{
  margin-top: -2rem;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: calc(24em/16);
}

.confirm_button{
  cursor: pointer;
  position: relative;
  margin: 3rem auto 0;
  aspect-ratio: 281/50;
  width: 28.1rem;
  padding: 1.1rem 3rem 1rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #F38200;
  border-radius: 2.5rem;
  color: #fff;
  font-size: 2rem;
  font-palette: 0;
  line-height: 1em;
}

.confirm_button input{
  cursor: pointer;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.confirm_button.back{
  margin-top: -3rem;
  flex-direction: row-reverse;
  background-color: #808080;
}

.confirm_button::after{
  content: "";
  position: relative;
  aspect-ratio: 17.69/20;
  width: 1.769rem;
  background-image: url(../img/white_arrow.svg);
  background-repeat: no-repeat;
  background-size: cover;
}

.confirm_button.back::after{
  transform: scale(-1,1);
}


.wpcf7-spinner{
  display: none;
}


@media screen and (max-width: 699.98px) {

  .contact{
    width: 100%;
    padding: 0;
    /* padding: 5rem 1.5rem 7rem; */
  }
  
  .contact_head{
    margin: 5rem auto 7rem;
    width: 34.5rem;

  }

  .contact_line{
    gap: 1rem;
  }

  .contact_form input,
  .contact_form select,
  .contact_form textarea{
    /* width: stretch; */
    width: 100%;
    padding: 1.8rem 1.5rem;
    box-sizing: border-box;
  }

  .contact_form select{
    width: 100%;
  }

  .contact_form.select{
    width: 100%
  }

  .contact_form.select::after{
    right: 1.5rem;
  }

  .guideline{
    margin-top: -1rem;
  }

  .confirm_button{
    margin: 4rem auto 0;
  }

  .confirm_button.back{
    margin-top: -3rem;
    flex-direction: row-reverse;
    background-color: #808080;
  }

}