.g-recaptcha {
  margin-top: 24px;
}

.modal-form,
.modal-form > * {
  box-sizing: border-box;
}

.modal-form.show {
  display: block;
}

.modal-form {
  display: none;
  z-index: 2000;
  padding-top: 100px;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 8px;
  font-size: 16px;
  line-height: 20px;
  background-color: rgba(0, 0, 0, 0.2);
  -webkit-animation-name: backdrop;
  -webkit-animation-duration: 0.4s;
  animation-name: backdrop;
  animation-duration: 0.4s;
}

@-webkit-keyframes backdrop {
  from {
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    background-color: rgba(0, 0, 0, 0.2);
  }
}
@keyframes backdrop {
  from {
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    background-color: rgba(0, 0, 0, 0.2);
  }
}

.modal-close-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
}
.modal-close-icon:after,
.modal-close-icon:before {
  content: "";
  position: absolute;
  height: 30px;
  border-left: 2px solid #d6d6d6;
  left: 25px;
  transition: border 0.2s;
}
.modal-close-icon:after {
  transform: rotate(45deg);
}
.modal-close-icon:before {
  transform: rotate(-45deg);
}
.modal-close-icon:hover::before,
.modal-close-icon:hover::after {
  border-color: #aaa !important;
}

.modal-container {
  position: relative;
  max-width: 480px;
  margin: 24px auto;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #fff;
  background-color: #fff;
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}
@-webkit-keyframes animatetop {
  from {
    top: -100px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
@keyframes animatetop {
  from {
    top: -100px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.modal-container small {
  display: inline-block;
  font-size: 0.75em;
  line-height: 1.3;
}

.modal-container small > a {
  line-height: 1.3;
  display: inline-block;
}

.callbackForm.modal-form {
  left: 0;
  top: auto;
  bottom: 0;
  width: auto;
  height: auto;
  background-color: transparent;
  padding: 0;
  padding-left: 80px;
  padding-bottom: 80px;
  overflow: inherit;
  animation: none;
}

.callbackForm .modal-container {
  opacity: 0;
  max-width: 500px;
  padding-left: 72px;
  box-shadow: 0 8px 40px rgb(0, 0, 0, .16);
}

.callbackForm .modal-container > svg {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-45%, -22%);
}

.callbackForm .modal-container small {
  color: rgba(0,0,0,.45);
}

.main-form {
  position: relative;
}

.form-header {
  margin-top: -12px;
}

.form-header > h3 {
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  margin-top: 0;
  margin-bottom: 12px;
}
.form-header > h4 {
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  margin-top: 0;
  margin-bottom: 4px;
}

.form-container {
  
}

.form-header + .form-container {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.form-container + .form-footer,
.form-header + .form-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.form-footer > .form-field + .form-field,
.form-container > .form-field + .form-field {
  margin-top: 12px;
  margin-bottom: 0;
}

.form-field--personal-data {
  /* color: #888; */
}

@media (max-width: 640px) {
	.form-field.form-field--personal-data label {
		flex-flow: row nowrap;
	}
}

.form-field--not-accent {
  color: #888;
}

.form-field label {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.form-field .text-wrapper {
  margin-bottom: 2px;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"] {
  padding: 16px 12px;
  font-size: 16px;
  line-height: 20px;
  border-radius: 4px;
  border: 1px solid #aaa;
  width: auto;
  min-width: 0;
  flex: 1 1 100%;
  box-shadow: 0 0 0 0 transparent;
  outline: none;
  transition: box-shadow, border 0.2s;
}

.form-field input[type="text"]:hover,
.form-field input[type="tel"]:hover,
.form-field input[type="email"]:hover {
  border-color: #333;
}

.form-field input[type="text"]:active,
.form-field input[type="tel"]:active,
.form-field input[type="email"]:active,
.form-field input[type="text"]:focus,
.form-field input[type="tel"]:focus,
.form-field input[type="email"]:focus {
  box-shadow: 0 0 0 2px #41054f;
  border-color: #41054f;
}

.primary-button,
.form-field input[type="submit"] {
  background-color: #15a429;
  border: 0;
  font-size: 14px;
  line-height: 20px;
  border-radius: 8px;
  padding: 16px;
  width: 100%;
  color: #fff;
  box-shadow: 0 0 0 0 transparent;
  transition: background, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.primary-button:hover,
.primary-button:focus,
.form-field input[type="submit"]:hover,
.form-field input[type="submit"]:focus {
  background-color: #2eb63e;
}
.primary-button:focus,
.form-field input[type="submit"]:focus {
  box-shadow: 0 0 0 3px rgba(21, 162, 39, 0.2);
}
.primary-button:active,
.form-field input[type="submit"]:active {
  background-color: #15a429;
}

.form-field--with-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
	.form-field--with-action {
		flex-flow: column nowrap;
		align-items: stretch;
	}
}

.form-field--with-action .action {
  margin-left: 10px;
}

.errorsContainer {
  padding: 8px;
  border: 1px solid rgb(216, 8, 8, .4);
  background: rgb(216, 8, 8, .1);
  margin-top: 8px;
  border-radius: 4px;
  color: #d80808;
}

.errorItem {

}


.openCallBackModal {
  position: absolute;
  bottom: 64px;
  left: 35px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  z-index: 10;
  transform: translateY(0px);
  cursor: pointer;
  outline: none;
}

.openCallBackModal svg {
  position: relative;
  z-index: 10;
}
.openCallBackModal:before {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8A00AA 0%, #5C0670 100%);
  box-shadow: 10px 14px 24px rgba(0, 0, 0, 0.25);
}
.openCallBackModal:after {
  width: 112px;
  height: 112px;
  background: linear-gradient(180deg, #8A00AA 0%, #5C0670 100%);
  opacity: 0.12;
}
.openCallBackModal:after,
.openCallBackModal:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  transition: all .2s;
  -webkit-animation: 2s ease-in 1s infinite alternate pulse;
  animation: 2s ease-in 1s infinite alternate pulse;
}
@-webkit-keyframes pulse {
  from {
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    transform: translate(-50%, -50%) scale(1.15);
  }
}
@keyframes pulse {
  from {
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.openCallBackModal:hover::before {
  transform: translate(-50%, -50%) scale(1.05);
  -webkit-animation: none;
  animation: none;
}
.openCallBackModal:hover::after {
  transform: translate(-50%, -50%) scale(1.2);
  -webkit-animation: none;
  animation: none;
}

.openCallBackModal:active::after,
.openCallBackModal:active::before {
  transform: translate(-50%, -50%) scale(0.95);
}


.callbackForm.modal-form {
	bottom: 0;
    left: 0;
    top: auto;
    overflow: visible;
    width: auto;
    height: auto;
    display: block;
	z-index: 900;
}
.callbackForm.modal-form.active {
}

.callbackForm .modal-container {
  position: fixed;
  bottom: 90px;
  left: 70px;
  opacity: 0;
  transform: translateX(-60px);
  transition: all .2s;
  animation: none;
  visibility: hidden;
}

@media (max-width: 640px) {
	.callbackForm .modal-container {
		z-index: 100;
		width: 100%;
		left: 0;
		bottom: 0;
		border-radius: 24px;
		padding: 56px 32px 64px;
	}
}

.callbackForm.active .modal-container {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}
