.modal{
    display: none;
    position: fixed;
    inset: 0;
    opacity: 0;
  }
  
  @media (max-width: 560px) {
    .modal {
        padding: 0px;
    }
}
.modal._active{
  opacity: 1;
}


.modal .sign-up-popup__body {
    max-width: 700px;
}

  @media (max-width: 560px) {
    .modal .popup-body {
        margin: auto 0 0 0;
        border-radius: 10px 10px 0 0;
    }
}

  @media (max-width: 560px) {
.modal .sign-up-popup__body-bg,
.modal .sign-up-popup__body-bg--img{
    border-radius: 10px 10px 0 0;
}
}

.modal .popup-close-btn {
    z-index: 2;
}


  @media (max-width: 400px) {
.modal .popup-close-btn {
    width: 20px;
    height: 20px;
}
}

.modal__successful {
    position: absolute;
    inset: 0;
   
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(https://roleta.lt/wp-content/themes/roleta/assets/img/popup/bg.webp), black;
    border-radius: 30px;
}

@media (max-width: 560px) {
    .modal__successful {
        border-radius: 10px 10px 0 0;
    }
}

.modal .sign-up-popup__min-title {
  text-align: center;
  margin-bottom: 10px;
}

.modal .consultation-block__label {
  flex: 1 1 100%;
  position: relative;
  padding: 10px 0;
}


  @media (max-width: 500px) {
.modal .consultation-block__label {
    max-width: 250px;
}
}

.modal .consultation-block__input {
  padding: 15px 15px 15px 36px;
  max-width: none;
  height: 54px;
}

@media (max-width: 560px) {
    .modal .consultation-block__input,
    .modal .consultation-block__submit {
  padding: 17px 36px ;
  font-size: 0.875rem;
}
}

.modal .consultation-block__submit {
    max-width: none;
    padding: 17px 0;
    height: 54px;
}

  @media (max-width: 560px) {
.modal .consultation-block__submit {
    padding: 0px;
}
}

.modal input {
     -webkit-appearance: none; /* Сбрасывает встроенные стили iOS */
    -moz-appearance: none;
    appearance: none;
    -webkit-text-decoration: none;
    text-decoration: none;
    border: none; /* Если нижняя граница похожа на подчёркивание */
    outline: none; /* Убирает выделение */
}

.modal input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    text-decoration: none;
    color: inherit; /* Возвращает цвет текста */
}

.modal input::placeholder {
    text-decoration: none;
}





.modal .consultation-block__label:first-child:before {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.53174 10.4724C13.5208 14.4604 14.4258 9.84672 16.9656 12.3848C19.4143 14.8328 20.8216 15.3232 17.7192 18.4247C17.3306 18.737 14.8616 22.4943 6.1846 13.8197C-2.49348 5.144 1.26158 2.67244 1.57397 2.28395C4.68387 -0.826154 5.16586 0.589383 7.61449 3.03733C10.1544 5.5765 5.54266 6.48441 9.53174 10.4724Z" fill="%23FF3E3E"/></svg>');
  display: inline-block;
  width: 14px;
  height: 20px;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translate(0, -50%);
}

.modal .consultation-block__or {
  width: fit-content;
  margin: 0 auto;
  padding: 10px;
  opacity: 0.9;
}

.modal .consultation-block__or::before {
  right: 100%;
  left: auto;
  top: 50%;
  transform: translate(0, 0);
  width: 56px;
  height: 1px;
  background: linear-gradient(-90deg, #fff 0, rgba(255, 255, 255, 0) 100%);
}

.modal .consultation-block__or::after {
  width: 56px;
  height: 1px;
  top: 50%;
  right: auto;
  transform: translate(0, 0);
  left: 100%;
  background: linear-gradient(90deg, #fff 0, rgba(255, 255, 255, 0) 100%);
}

.modal .consultation-block__base-info {
  margin: 0 auto;
}


.modal-button {
    position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 3;
}

@media (max-width: 560px) {
    .modal-button {
    padding: 7px 0;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: #4E4E4E99;
    border-top: 1px solid #FFFFFF0D;
    backdrop-filter: blur(10px);
    border-radius: 5px 5px 0 0;
}
}
.open-modal {
    margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px;
  padding-left: 36px;
  height:54px;
}

@media (max-width: 560px) {
    .open-modal {
        font-size: .875rem;
        padding-left: 21px;
    }
}

.open-modal .icon {
  width: 38px;
  height: 38px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.open-modal .icon-box {
  position: relative;
  width: 22px;
  height: 22px;
  border: 2px solid #e03b31;
  border-radius: 3px;
  overflow: hidden;
  /* animation: rotate 5s linear 2s infinite; */
}

.open-modal .icon-line {
  display: block;
  width: 14px;
  height: 3px;
  background: #e03b31;
  border-radius: 3px;
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translate(-50%, 0);
  animation: scale-width 3s linear infinite;
  animation-delay: 4s;
  transition: all .3s ease;
}

.open-modal .icon-arrow {
  display: block;
  width: 14px;
  height: 3px;
  background: #e03b31;
  border-radius: 3px;
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translate(-50%, 0);
  animation: scroll-right 2s linear infinite;
}

.open-modal .icon-arrow::before,
.open-modal .icon-arrow::after {
  content: "";
  width: 7px;
  height: 3px;
  position: absolute;
  right: 0;
  background: #e03b31;
  border-radius: 3px;
  transform-origin: right;
}
.open-modal .icon-arrow::before {
  top: 1px;
  rotate: 45deg;
}

.open-modal .icon-arrow::after {
  bottom: 1px;
  rotate: -45deg;
}

@keyframes scroll-right {
  0% {
    transform: translateX(-100%);
  }
  25% {
    transform: translateX(-50%);
  }
  75% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes scale-width {
  0% {
    width: 0;
  }
  50% {
    width: 14px;
  }
  100% {
    width: 14px;
  }
}


@keyframes rotate {
    0% {
        transform: rotate(0deg);
      }
      20% {
        transform: rotate(360deg); /* Анимация поворота за 1 секунду (20% от 5 секунд) */
      }
      100% {
        transform: rotate(360deg); /* Статичное состояние на оставшееся время */
      }
  }
  