.popup__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #f5f5f5;
  opacity: 0;
  pointer-events: none;
  transition: 0.5s all;
}

.popup__bg.active {
  opacity: 1;
  pointer-events: all;
  transition: 0.5s all;
  z-index: 1010;
}

.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: #f5f5f5;
  width: 650px;
  padding: 25px;
  transition: 0.5s all;
}

.popup.active {
  transform: translate(-50%, -50%) scale(1);
  transition: 0.5s all;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  border: 1px solid #cfd0d3;
  border-radius: 50%;
  box-shadow: 0 3px 10px -.5px rgba(0, 0, 0, .2);
  top: -50%;
  right: -30%;
}

.popup label {
  width: 100%;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column-reverse;
  background-color: #f5f5f5;
  margin-right: 40px;
}

.popup .label__text {
  font-size: 13px;
  font-weight: 500;
  color: #cfd0d3;
  margin-bottom: 5px;
}

.popup input {
  height: 30px;
  font-size: 18px;
  border: none;
  outline: none;
  border-bottom: 1px solid #808080;
  background-color: #f5f5f5;
}

.popup input:focus {
  border-bottom: 1px solid #249c72;
}

.popup input:focus+.label__text {
  color: #249c72;
}

.popup textarea {
  resize: none;
  width: 100%;
  height: 150px;
  border: none;
  outline: none;
  border-bottom: 1px solid #cfd0d3;
  font-size: 18px;
  padding-top: 5px;
}

.popup textarea:focus {
  border-bottom: 1px solid #249c72;
}

.popup textarea:focus+.label__text {
  color: #249c72;
}

.popup button {
  width: 175px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  border-radius: 40px;
  border: none;
  background: #249c72;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.5s all;
}

.popup button:hover {
  background: #fff;
  color: #249c72;
  transition: 0.5s all;
}

.footer__popup-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #000;
}

.footer__popup-block {
  display: flex;
  width: 100%;
  justify-content: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer__popup-copyright {
  font-size: 13px;
  color: #ccc;
}

.footer__popup-copyright-link {
  color: #ccc;
}

.label__text-item {
  color: red;
}


@media (max-width:996px) {
  .close-popup {
    right: 0;
  }

  .popup {
    width: 550px;
  }
}

@media (max-width:520px) {
  .footer__popup-block {
    flex-direction: column;
  }

  .footer__popup-block button {
    order: 1;
    margin-bottom: 20px;
  }

  .footer__popup-copyright {
    order: 2;
    text-align: left;
  }

  .close-popup {
    top: -25%;
    right: 20px;
  }

  .popup {
    width: 400px;
  }

  .label__text {
    text-align: left;
  }

  .footer__popup-copyright {
    margin-bottom: 20px;
  }

  .popup button {
    width: 100%;
  }

  .footer__popup-title {
    text-align: left;
  }
}