.demo-modal:not(.demo-modal--show) {
  display: none;
}

.demo-modal {
  z-index: 1000;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(0, 27.72, 45.69, 0.9) 0%,
    rgba(0, 27.72, 45.69, 0.9) 100%
  );
  display: flex;
  justify-content: center;
}

.demo-modal .demo-modal__content {
  position: relative;
  margin: auto;
  border-radius: 10px;
  background: #ebebeb;
  background-image: url("/wp-content/plugins/elementor-custom-blocks/assets/img/modals/background-desk.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 8px 40px 0 #000a10;
  padding: 45px 30px 45px 60px;
  width: 100%;
  max-width: 820px;
}

.demo-modal .demo-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 0;
  border: 0;
}

.demo-modal .demo-modal__title {
  color: #051c2b;
  font-size: 26px;
  font-style: normal;
  font-weight: 400;
  line-height: 36px;
  margin-bottom: 20px;
  max-width: 546px;
  padding-right: 40px;
}

.demo-modal .demo-modal__title .demo-modal__title-highlight {
  color: #5691c8;
  font-weight: 700;
}

.demo-modal .demo-modal__main {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.demo-modal .demo-modal__image {
  display: block;
  margin-left: auto;
}

.demo-modal .demo-modal__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-modal .demo-modal__input {
  position: relative;
  display: flex;
}

.demo-modal .demo-modal__input input {
  display: flex;
  height: 44px;
  width: 100%;
  padding: 16px 20px;
  align-items: center;
  gap: 12px;
  color: #787878;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 128%;
  border-radius: 10px;
  border: 1px solid #d9eaff;
  background: #fff;
}

.demo-modal .demo-modal__input:not(.demo-modal__input--no-icon) input {
  padding-left: 48px;
}

.demo-modal .demo-modal__input label {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  left: 20px;
  top: 0;
}

.demo-modal .demo-modal__submit {
  display: flex;
  width: 100%;
  padding: 12px 22px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: #051c2b;
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 128%;
  letter-spacing: 0.16px;
}

.demo-modal .demo-modal__submit.demo-modal__submit--disabled {
  pointer-events: none;
  opacity: 0.5;
}

.demo-modal .demo-modal__accept {
  margin: 15px 0 0 0;
  max-width: 328px;
  color: #464646;
  font-size: 10px;
  font-style: normal;
  font-weight: 300;
  line-height: 128%;
}

@media (width <= 864px) {
  .demo-modal {
    background: #001c2e;
    background-image: url("/wp-content/plugins/elementor-custom-blocks/assets/img/modals/background-mobile.jpg");
    background-repeat: no-repeat;
    background-size: cover;
  }

  .demo-modal .demo-modal__content {
    margin: 0;
    padding: 150px 20px 20px 20px;
    background: transparent;
    border-radius: 0;
  }

  .demo-modal .demo-modal__close {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .demo-modal .demo-modal__close path {
    fill: white;
  }

  .demo-modal .demo-modal__title {
    color: #fff;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    line-height: 146%;
    margin-bottom: 48px;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .demo-modal .demo-modal__title .demo-modal__title-highlight {
    color: #fff;
    font-weight: 700;
  }

  .demo-modal .demo-modal__main {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
  }

  .demo-modal .demo-modal__form {
    width: 100%;
    max-width: 368px;
    gap: 14px;
  }

  .demo-modal .demo-modal__image {
    display: none;
  }

  .demo-modal .demo-modal__submit {
    padding: 14px 18px;
    gap: 10px;
    border-radius: 10px;
    color: #fff;
    font-weight: 400;
    line-height: 128%;
  }

  .demo-modal .demo-modal__accept {
    max-width: 328px;
    color: #fff;
    text-align: center;
    font-size: 10px;
    font-weight: 400;
    line-height: 128%;
    margin: 0 auto;
  }
}
