body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  top: 40px;
  border-radius: 25px 25px 0 0;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: visibility 0.3s, opacity 0.3s;
}

@media (min-width: 768px) {
  .modal {
    top: 0px;
  }
}

.modal_hidden {
  visibility: hidden;
  opacity: 0;
}

.modal_visible {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
}

@media (min-width: 768px) {
  .modal__overlay {
    background: rgba(0, 0, 0, 0.5);
  }
}

.modal__content,
.modal__content_bitrix {
  position: relative;
  background-color: white;
  border-radius: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 100%;
  padding: 40px 80px;
  z-index: 1010;
  transform: translateY(-30px);
  animation: modal-fade-in 0.3s forwards;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal__content_bitrix {
  padding: 0;
}

.modal__content::-webkit-scrollbar,
.modal__content_bitrix::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .modal__content,
  .modal__content_bitrix {
    max-height: 90%;
  }
}

@keyframes modal-fade-in {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
}

.modal__title {
  margin: 0;
  font-size: 40px;
  text-align: center;

  font-weight: bold;
  display: block;
  margin-top: 0;
  margin-bottom: 0.83em;
  line-height: 1.2;
}

.modal__description {
  font-size: 24px;
  margin: 0;
  font-weight: 300;
  color: #666;
  text-align: center;
}

.modal__messengers {
  display: block;
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
}

.modal__button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.modal__button img {
  width: 100%;
}

.modal__form {
  display: flex;
  flex-direction: column;
}

.modal__label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .modal__label {
    font-size: 20px;
  }
}

.modal__input,
.modal__textarea {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 30px;
  padding: 24px 20px;
  font-family: inherit;
  font-size: 14px;
}

@media (min-width: 768px) {
  .modal__input,
  .modal__textarea {
    font-size: 20px;
  }
}

.modal__textarea {
  resize: none;
  height: 80px;
}

.modal__consent {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.modal__consent-label {
  font-size: 16px;
  font-weight: 500;
}

.modal__consent-label A {
  color: #000;
}

.modal__checkbox {
  margin-right: 10px;
  height: 100%;
}

.modal__submit {
  background-color: #4393f6;
  color: white;
  display: block;
  margin: 0 auto;
  border: none;
  padding: 15px 60px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
}

@media screen and (max-width: 768px) {
  .modal__content,
  .modal__content_bitrix {
    border-radius: 25px 25px 0 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    animation: modal-slide-up 0.3s forwards;
  }

  @keyframes modal-slide-up {
    from {
      transform: translateY(30px);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .modal__close {
    top: 15px;
    right: 15px;
  }
}

.captcha {
  margin-bottom: 30px;
}

.captcha div {
  display: flex;
  justify-content: space-around;
  column-gap: 15px;
}

.captcha div label {
  background-color: #f1f1f1;
  user-select: none;
  border-radius: 20px;
  padding: 10px 40px;
  min-width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.captcha div label input {
  user-select: none;
  display: none;
}

.captcha div label:has(input:checked) {
  background-color: #4393f6;
  color: #fff;
}

.bitrix-loader {
  text-align: center;
  padding: 20px;
}

.bitrix-loader_hidden {
  display: none;
}
