.popup-node {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 999;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  pointer-events: none;
}

.popup-node.active {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-node.active .popup-container {
  -webkit-animation: showMainPopup 0.3s;
  animation: showMainPopup 0.3s;
}

.popup-container {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: #1b1b1d;
  -webkit-animation: hideMainPopup 0.15s forwards;
  animation: hideMainPopup 0.15s forwards;
}

/* GPT PROMPTS */

.style-black {
  box-sizing: border-box;
  width: -webkit-calc(100% - 20px);
  width: calc(100% - 20px);
  max-width: 300px;
  padding: 24px;
  background-color: #000;
}

.popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  outline: 0;
  background-color: transparent;
  cursor: pointer;
  transition: 0.3s;
  opacity: 0.5;
}
.popup__close:hover {
  opacity: 1;
}
.popup-step1 {
  /* display: none; */
}
.popup__title {
  font-family: Roobert, Helvetica, Arial, sans-serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  margin: 0;
  margin-bottom: 16px;
}
.popup__desc {
  font-family: Roobert, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: #bcbcbc;
  margin: 0;
  margin-bottom: 20px;
}

.popup__input-field {
  position: relative;
  margin-bottom: 12px;
}
.popup__input-field--email-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 14px;

  width: 20px;
  height: 20px;

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 21'%3E%3Cpath d='M2.00333 6.38355L9.99995 11.3819L17.9967 6.3835C17.9363 5.33315 17.0655 4.5 16 4.5H4C2.93452 4.5 2.06363 5.33318 2.00333 6.38355Z'/%3E%3Cpath d='M18 7.88086L9.99995 12.8809L2 7.88086V14.3814C2 15.486 2.89543 16.3814 4 16.3814H16C17.1046 16.3814 18 15.486 18 14.3814V7.88086Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 21'%3E%3Cpath d='M2.00333 6.38355L9.99995 11.3819L17.9967 6.3835C17.9363 5.33315 17.0655 4.5 16 4.5H4C2.93452 4.5 2.06363 5.33318 2.00333 6.38355Z'/%3E%3Cpath d='M18 7.88086L9.99995 12.8809L2 7.88086V14.3814C2 15.486 2.89543 16.3814 4 16.3814H16C17.1046 16.3814 18 15.486 18 14.3814V7.88086Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;

  background-color: #fff;
  opacity: 0.5;
  transition: 0.3s;
  z-index: 2;
  pointer-events: none;
}

.popup__input-field--email-icon:focus-within::before {
  opacity: 1;
}

.popup__input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  outline: 0;
  background-color: transparent;
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 150%;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

.popup__input--error {
  display: block;
  font-size: 1.2rem;
  color: rgba(255, 42, 0, 0.912);
  transition: all 0.2s ease;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 5px;
}

.popup__input:hover {
  border-color: #fff;
}
.popup__input:focus {
  border-color: #ffa800;
}

.popup__input--email-icon {
  padding: 9px 20px 11px 40px;
}

.popup__button {
  width: 100%;
  box-sizing: border-box;
  font-family: Roobert, Helvetica, Arial, sans-serif;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
  border-radius: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  -webkit-transition: 0.4s ease-in-out;
  -o-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out;
  cursor: pointer;
}
.popup__button--accent {
  color: #000;
  background-color: #ffa800;
}
.popup__button--accent:hover {
  opacity: 0.8;
}

.popup__policy {
  font-family: Roobert, Helvetica, Arial, sans-serif;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 150%;
  opacity: 0.5;
  margin-top: 16px;
  margin-bottom: 12px;
}
.popup__policy a {
  text-decoration: underline;
}

.popup-step2 {
  display: none;
}
.popup__button--success {
}

@media screen and (min-width: 767px) {
  .style-black {
    padding: 40px;
    max-width: 390px;
  }

  .popup__title {
    font-size: 30px;
  }
  .popup__input-field {
    margin-bottom: 16px;
  }
  .popup__input--email-icon {
    padding: 11px 20px 13px 40px;
  }
}

@-webkit-keyframes showMainPopup {
  0% {
    -webkit-transform: scale(0.7);
    transform: scale(0.7);
  }

  45% {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }

  80% {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes showMainPopup {
  0% {
    -webkit-transform: scale(0.7);
    transform: scale(0.7);
  }

  45% {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }

  80% {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@-webkit-keyframes hideMainPopup {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }

  100% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    opacity: 0;
  }
}

@keyframes hideMainPopup {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }

  100% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    opacity: 0;
  }
}

/* popup__gdrp */
.popup__gdrp {
  max-width: 290px;
  border-radius: 0;
  padding: 40px 15px;
  overflow: visible;
  box-sizing: border-box;
}
.popup__gdrp-title {
  font-family: Graphik, Helvetica, Arial, sans-serif;
  font-size: 24px;
  line-height: 29px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 17px;
}
.popup__gdrp-desc {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 150%;
  color: #fff;
  margin-bottom: 20px;
}
.popup__gdrp-desc p {
  text-align: center;
}

.popup__gdrp-desc p + p {
  margin-top: 20px;
}

.popup__input--gdrp {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background-color: transparent;
  width: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  padding: 14px 16px;
  box-sizing: border-box;
}
.popup__input--email {
  border-radius: 28px;
  margin-bottom: 20px;
}

.popup__gdrp-checkbox-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.popup__gdrp-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.popup__gdrp-checkbox-input {
  display: none;
}
.popup__gdrp-checkbox-fake {
  display: inline-block;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  min-width: 20px;
  height: 20px;
  background-color: transparent;
  -webkit-transition: all ease 0.5s;
  -o-transition: all ease 0.5s;
  transition: all ease 0.5s;
  cursor: pointer;
}

.error__input + .popup__gdrp-checkbox-fake {
  border-color: red;
}

.popup__gdrp-checkbox-fake:hover {
  border: 1px solid #fff;
}

.popup__gdrp-checkbox-input:checked ~ .popup__gdrp-checkbox-fake {
  background-color: #ffa800;
  border: 1px solid #ffa800;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10.5L8.33333 14L15 7' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.popup__gdrp-text {
  font-family: Roobert, sans-serif;
  color: #868391;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  line-height: 18px;
  margin: 0;
}

.popup__button--gdrp {
  padding: 18px 40px;
  border-radius: 40px;
  letter-spacing: 1.04px;
}

.popup__button--gdrp:disabled {
  pointer-events: none;
  background: #797979 !important;
  opacity: 0.4;
}

.popup__gdrp-success {
}

.popup__gdrp-text {
}
.popup__gdrp-success-text {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 150%;
  text-align: center;
  color: #fff;
  margin-top: 0;
  margin-bottom: 20px;
}

.js-popup-step-spinner {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.js-popup-step-error {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0);
}

.popup__error-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
