@import url("/popup/fonts/root.css");

.popup {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: none;
  transition: visibility 0s, opacity 0.3s ease-in-out;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  margin: auto;
  border-radius: 50%;
  width: 500px;
  height: 500px;
  background: #ff5000;
  box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.4);
}

.popup-regret {
  position: relative;
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: auto;
  border-radius: 50%;
	border: 2px solid #ff5000;
  width: 500px;
  height: 500px;
  background: white;
  box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.4);
}


.popup-title {
  font-family: "Root-bold", "Arial", sans-serif;
  font-weight: 700;
  width: 354px;
  height: 67px;
  font-size: 37px;
  line-height: 37px;
  text-align: center;
  color: #fff;
  margin: 83px auto 22px;
}

	.popup-title_regret {
	color: #000;
	margin: 0 auto;
	padding-left: 5%;
	font-size: 1.6rem;
}

.popup-img {
  display: block;
  margin-left: 40px;
  margin-right: 9px;
  width: 138px;
}

.form-label-email {
  font-family: "Root-light", "Arial", sans-serif;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  width: 273px;
  font-size: 17px;
  
  line-height: 21px;
  text-align: left;
  display: block;
  color: #fff;
  position: relative;
}

.form-input {
  font-family: "Root-medium", "Arial", sans-serif;
  font-weight: 400;
  font-size: 15px;
  height: 17px;
  line-height: 16px;
  background: #ffffff;
  border-radius: 12px;
  width: 250px;
  margin-top: 7px;
  padding: 13px 2px;
  border: 0;
  text-align: center;
  outline: none;
  color: #bdbdbd;
  text-transform: lowercase;
}

.form-input[type=checkbox] {
  -moz-appearance:initial;
}

.form-input:focus {
  color: black;
}

.form-label-accept {
  width: 380px;
  position: relative;
  cursor: pointer;
  color: #fff;
  margin: 30px 25px 30px 60px;
  padding: 0;
  font-family: "Root-light", "Arial", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
  padding-left: 65px;
  position: relative;
}

.form-input.accept {
  visibility: hidden;
}

.form-input[type=checkbox].accept::before {
  content: url("");
  position: absolute;
  left: 30px;
  top: -4px;
  cursor: pointer;
  visibility: visible;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  background: #fff;
  animation: none;
}

.form-input[type=checkbox].accept:checked.form-input[type=checkbox].accept::before {
  background: #00f500;
  animation: animate_grow 2s infinite;
  z-index: 1;
}

@keyframes animate_grow {
	0% {
		transform: scale3d(1, 1, 1);
	}
	50% {
		transform: scale3d(1.15, 1.15, 1.15);
	}
	100% {
		transform: scale3d(1, 1, 1);
	}
}

.form-btn {
  text-align: center;
  background: #fff;
  width: 500px;
  height: 500px;
  -ms-clip-path: circle(250px at 250px -180px);
  -moz-clip-path: circle(250px at 250px -180px);
  -webkit-clip-path: circle(250px at 250px -180px);
  clip-path: circle(250px at 250px -180px);
}

.form-submit {
  font-family: "Root-medium", "Arial", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 25px;
  padding: 0;
  cursor: pointer;
  background: none;
  color: #ff5000;
  margin: 20px auto;
  border: 0;
  outline: none;
}

	#popup-link {
	cursor: pointer;
	display: block;
    border: 2px solid #ff5000;
    border-radius: 50px;
    padding: 5px 10px;
    font-size: 14px;
	text-align: center
	}

.popup-btn {
  position: absolute;
  outline: none;
  border: 0;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  color: #fff;
  outline: none;
  background: url(/popup/img/cross.svg) no-repeat;
  background-size: cover;
  cursor: pointer;
}

.anim-grad {
  background:#fff;
  background-size: 400% 400%;
}

@keyframes animate_gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.inactive {
  color: #cfcfcf;
  pointer-events: none;
}

#email-input-error {
  width: 250px;
  font-size: 11px;
  line-height: 15px;
  margin-top: 35px;
  color: black;
  opacity: 1;
  position: absolute;
  right: 0;
}

#accept-input-error {
  width: 250px;
  font-size: 11px;
  line-height: 15px;
  color: black;
  opacity: 1;
  position: absolute;
  left: 0;
  margin-left: 65px;
}

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

  .form-input[type=checkbox].accept::before {
    left: 0;
    top: 0
  }

  .popup-form {
    width: 320px;
    height: 377px;
    border-radius: 50px;
  }

  .popup-regret {

    width: 320px;
    height: 377px;
    border-radius: 50px;
  }

  .popup-title {
    width: 269px;
    font-size: 25px;
    line-height: 31px;
    margin: 30px auto 0;
  }
  .popup-img {
    display: none;
  }

  .form-input.accept::before {
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
  }

  .form-label-accept {
    width: 235px;
    font-size: 14px;
    line-height: 17px;
    margin: 55px auto 0;
    padding-left: 37px;
  }
  .form-submit {
    width: 119px;
    font-size: 20px;
    line-height: 25px;
  }
  .form-btn {
    width: 320px;
    height: 75px;
    clip-path: inset(-20% round 50px);
    border-radius: 0 0 50px 50px;
  }
  .form-label-email {
    font-size: 18px;
    line-height: 22px;
    text-align: left;
    margin: 0 auto;
    padding-top: 0;
  }
  .form-input {
    width: 100%;
    padding: 13px 2px;
  }
  .popup-btn {
    top: -40px;
  }

  #email-input-error {
    margin-top: 35px;
    width: 100%;
  }

  #accept-input-error {
    top: 35px;
    margin-left: 35px;
  }
}

._active {
  display: flex;
}
._close {
  display: none;
}