.popup__content.smaller .form-inline .form__header {max-width: 410px; margin-left: auto; margin-right: auto;}
.form-inline .form__header .heading {}
.form-inline .form__header .block__text {}

.popup__content.smaller{
  max-width: 560px;
}

.popup__content.smaller .form__label,
.popup__content.smaller .form_elements,
.popup__content.smaller .form__button {
      max-width: 464px;
}

@media (min-width: 531px) and (max-width: 991px){
    .popup__content.smaller .form__label,
    .popup__content.smaller .form_elements,
    .popup__content.smaller .form__button {
        max-width: 100%;
    }
  .inner-mobile-menu--open{
    .popup__content.smaller .form__label,
    .popup__content.smaller .form_elements,
    .popup__content.smaller .form__button {
        max-width: calc(100vw / 1.5);
    }
  }
  
}
.popup__content.smaller .h4{
  font-weight: 600;
  font-size: 24px;
  line-height: 34px;
  margin-bottom: clamp(0.75rem, 2vw, 1rem)
}

.popup__content.smaller .block__text{
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  margin-bottom: clamp(1.25rem, 3vw, var(--g8-desktop));
}

.popup__content.smaller .form__placeholder{
font-weight: 400;
font-size: 13px;
line-height: 20px;
vertical-align: middle;

}

.popup__content.smaller.fade-in{
  padding: 3rem;
}

.close-popup{
  position: absolute;
  top: 21px;
  right: 21px;
}

.close-popup:hover{
  cursor: pointer;
}

.close-popup:hover svg path{
  fill: #3761E9;
}

.popup__content .loading_frame{
  display:none;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: #a5a5a5;
  background-color: rgba(31, 31, 31, 0.2);
}
.popup__content.loading .loading_frame{display:block; animation: fadeInAnimation 1s;}
.popup__content.loading{overflow:hidden;}


.popup__content.smaller .form__label::after{
  content: attr(data-error);
  position: relative;
  bottom: -2px;
  left: 0;
  color: var(--brand-red);
  line-height: 123%;
  font-size: 0.8125rem;
}

.agreement-block{
  position: relative;
}

.popup__content.smaller .agreement-block::after{
  content: attr(data-error);
  position: relative;
  bottom: -2px;
  left: -117px;
  color: var(--brand-red);
  line-height: 123%;
  font-size: 0.8125rem;
}


.agreement-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* margin-top: 1rem; */
}

.agreement-input:hover {
  cursor: pointer;
}

.agreement-input .agreement-checkbox:hover {
  background: #F5F7FC;
  border-color: #D8DCE6;
}

.agreement-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid #E6E9F2;
  background: #fff;
  border-radius: 6px;
  text-align: center
}

.agreement-checkbox.active--dot {
  border: 1px solid var(--brand-blue);
  background: var(--brand-blue);
}

.agreement-input .agreement-checkbox.active--dot:hover {
  background: var(--brand-blue-hover);
}

.agreement-checkbox.active--dot::before {
  content: "\2713";
  color: white;
}

.agreement-checkbox.required {
  border: 1px solid var(--brand-red);
}

.form-sub{
  display: flex;
  align-items: center; 
  gap: 1rem;
}

.agreement-text{
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
  color: #555558;
}

.popup_result-desc{
  max-width: 464px;
  width: 464px;
}
.result-pop-desc{
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2vw, 2rem);
  justify-content: center;
}


@media (max-width: 991px) {
  .close-popup{
    position: fixed;
    top: 1rem;
  }
  .close-popup.result-pop{
    display: none;
  }

  .popup__content.smaller.fade-in{
    padding: clamp(2.5rem, 4vw ,3rem);
    max-width: 100%;
    height: 100vh;
    border-radius: unset;
  }

  .inner-mobile-menu--open .popup__content.smaller.fade-in{
    padding: 3rem;
    max-width: 560px;
    height: auto;
  }

}


@media (max-width: 530px) {
  .popup_result-desc{
    max-width: 100%;
    width: 100%;
    div.text-regular{
      font-weight: 400;
      font-size: 14px;
      line-height: 22px;
    }
  } 
  .form{
    display: flex !important;
    flex-direction: column !important;
  }
  .inner-mobile-menu--open .popup__content.smaller.fade-in{
    padding: 0;
  }
  .form-sub{
    flex-direction: column;
  }

  .popup__content.smaller .h4{
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
  }

  .popup__content.smaller .block__text{
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
  }

  .popup__content.smaller .form__button{
    margin-top: 0.75px;
  }

   .inner-mobile-menu--open .popup__content.smaller.fade-in .form__button{
      margin-top: 1.5rem;
   }

  .form-button{
    width: 100%;
  }

  .agreement-text span{
    white-space: normal !important;
  }

}

@media (max-width: 381px) {
  .agreement-input{
    align-items: start !important;
    justify-content: start;
  }
  .agreement-text{
    /* width: calc(100vw - (2rem + 20px)); */
    white-space: normal;
    text-align: left;
    margin-top: -4px;
  }
  .popup_result-desc{
    max-width: 327px;
    width: 100%;
  }
  
}

@media (max-height: 623px) {
  .popup__content.smaller.fade-in .form{
    max-height: calc(100vh - 200px);
    overflow-y: scroll;
  }
}


/* @media (max-width: 381px) and (max-height: 670px){
  .overlay--fixed .popup__content.smaller.fade-in{
    overflow-y: scroll;
  }
} */
