/* Form */

.form {
  max-width: 300px;
  margin: 0 auto;
  padding: 10px 0;
}

.form--line {
  /* display: flex; */
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: none;
  margin: 0;
}

.form--unm {
	margin: 0;
}

.form--line .form__input {
  max-width: 25%;
  margin-right: 15px;
}

.form--line .form__input:last-child {
  margin-right: 0;
}

.form--line .form__submit {
  /* flex-grow: 1; */
  display: inline-flex;
}

.form--line .g-recaptcha div {
  margin: 15px auto;
}

.form__input {
  box-sizing: border-box;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  margin-bottom: 10px;
  padding: 10px 15px;
  font-family: inherit;
  border: 1px solid #e3e3e3;
  border-radius: 5px;
  cursor: pointer;
}

.form__submit {
  display: block;
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 8px;
  padding: 10px 15px;
  color: #FFFFFF;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  background-color: #FB3154;
  cursor: pointer;
}

.form__captcha {
  width: 304px;
  height: 79px;
  margin: 0 auto;
  border-radius: 5px;
}

.form__captcha--invalid {
  position: relative;
  left: 0;
  border: 1px solid red;
  animation-name: captcha;
  animation-duration: 0.25s;
  animation-fill-mode: forwards;
  animation-iteration-count: 4;
}

@keyframes captcha {
  0% {
    left: 0;
  }

  50% {
    left: -10px;
  }

  75% {
    right: 10px;
  }

  100% {
    left: 0;
  }
}

.form__box {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.form__tooltip {
  /* position: relative; */
  position: absolute;
  top: 110%;
  left: 50%;
  width: 190px;
  margin-left: -95px;
  padding: 12px 0;
  /* color: #fff; */
  font-size: 14px;
  font-family: inherit;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #808080;
  box-shadow: 1px 1px 3px 2px rgb(0 0 0 / 23%);
  background-color: #FFFFFF;
  opacity: 0;
  transition: 0.2s;
  visibility: hidden;
  z-index: 1;
}

.form__box .form__tooltip::after {
  content: " ";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #FFF transparent;
}

.form__box--invalid .form__tooltip {
  opacity: 1;
  visibility: visible;
}

@media screen and (max-width: 768px) {
  .form--line {
    display: flex;
    flex-direction: column;
  }
  
  .form--line .form__input {
    max-width: 100%;
    margin-right: 0;
  }
  
	.form__input {
		width: 100%;
	}
	
  .form__tooltip {
    top: 110%;
    left: 50%;
    width: 165px;
    margin-left: -88px;
    padding: 10px 0;
    font-size: 14px;
  }

  .form__box .form__tooltip::after {
    top: auto;
    bottom: 100%;
    left: 46%;
    border-color: transparent transparent #FFF transparent;
  }
}