/* FORM START */
.modal-form .form-header{
   margin-bottom: 2.4rem;
}
.modal-form__title {
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 100%;
  margin-bottom: 1.6rem;
}
@media (min-width: 991px) {
  .modal-form__title {
    font-size: 4rem;
  }
}

.modal-form__description {
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 2.4rem;
  letter-spacing: 0%;
  margin-bottom: 2.4rem;
  color: #9b6ce6;
}
.modal-form__description:last-child {
  margin: 0;
}

.modal-form__form {
  margin-top: auto;
  margin-bottom: auto;

  &.result-mode {
    .form-result-container{
      display: block;
    }

    .form-body{
      position: relative;
    }
    
    .modal-form__form-group {
      visibility: hidden
    }
  }
}

.modal-form__form-group {
  margin-bottom: 0.8rem;
}

.modal-form__input {
  background-color: #F1F4FB;
  color: #7E7E7F;
  padding: 1.6rem 3.2rem;
  border-radius: 999rem;
  border: 1px solid transparent;
  width: 100%;
  font-size: 1.6rem;
  line-height: 2.4rem;
  letter-spacing: 0%;
  outline: none;
  transition: border-color 0.25s ease-in 0s;
}
.modal-form__input::placeholder {
  color: #7E7E7F;
}
.modal-form__input:focus {
  border-color: #9A76E8;
}
.modal-form__input:focus.error {
  border-color: #FF0000;
}
.modal-form__input:focus.success {
  border-color: #9A76E8;
}

.modal-form__input--error_message {
  max-height: 0;
  overflow: hidden;
  font-size: 1.2rem;
  line-height: 1.6rem;
  letter-spacing: 0;
  color: #FF0000;
  margin-top: 0;
  padding-left: 3.2rem;
  transition: all 0.25s linear 0s;
  will-change: max-height;

  &.open {
    max-height: 4em;
  }

  span{
    display: inline-block;
    padding-top: 0.8rem;
  }
}

.modal-form__textarea {
  background-color: #F1F4FB;
  color: #7E7E7F;
  padding: 2.4rem;
  border-radius: 2.5rem;
  border: none;
  width: 100%;
  resize: vertical;
  font-size: 1.6rem;
  border: 1px solid transparent;
  transition: all 0.25s linear 0s;
}
.modal-form__textarea:focus {
  border-color: #9A76E8;
}
.modal-form__textarea:focus.error {
  border-color: #FF0000;
}
.modal-form__textarea:focus.success {
  border-color: #9A76E8;
}

button.modal-form__submit_btn {
  width: 100%;

  &[disabled] {
    background: linear-gradient(90deg, #b7b6b6, #efeded);
  }
}

.modal-form__footer {
  margin-top: auto;
  padding-top: 1.6rem;
}

.modal-form__footer-text {
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 100%;
  letter-spacing: 0%;
  color: #BABABA;
}

.modal-form__footer-link {
    text-decoration: underline;
}

.error {
  border: 1px solid #FF0000;
}

.success {
  border: 1px solid #9A76E8;
}

.form-result-container {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;

  .form-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;

    .form-result-success {
    }
    
    .form-result-error {
    }
  }
}

/* FORM END */