.block-form-mobile-btn {
  margin-bottom: 7.5rem;
  --form-border-radius25: calc(
    15px + (25 - 15) * (100vw - 320px) / (1920 - 320)
  );
  --form-padding60: calc(30px + (60 - 30) * (100vw - 320px) / (1920 - 320));
}

.block-form-mobile-btn__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.block-form-mobile-btn__left-part {
  width: calc(50% - 0.625rem);
  padding: var(--form-padding60) calc(var(--form-padding60) - 10px);
  border-radius: var(--form-border-radius25);
  background: var(--c-light-grey-2);
  position: relative;
}

.block-form-mobile-btn__left-part .block-form-mobile-btn__title {
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.block-form-mobile-btn__left-part .block-form-mobile-btn__title span {
  color: var(--c-brand-orange);
}

.block-form-mobile-btn__left-part img {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
  width: 23rem;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

.block-form-mobile-btn__right-part {
  width: calc(50% - 0.625rem);
  background: #3f5286;
  padding: var(--form-padding60) calc(var(--form-padding60) - 10px);
  border-radius: var(--form-border-radius25);
  position: relative;
}

.block-form-mobile-btn__modal-overlay {
  display: none;
}

.block-form-mobile-btn__modal-container {
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: inherit;
  box-shadow: none;
  transform: none;
  overflow: visible;
}

.block-form-mobile-btn__modal-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.block-form-mobile-btn__right-part .block-form-mobile-btn__form {
  gap: 0;
  width: 100%;
  margin: 0;
}

.block-form-mobile-btn__right-part .form-group {
  width: 100%;
  margin-bottom: 1.875rem;
}

.block-form-mobile-btn__field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.block-form-mobile-btn__right-part .form-group input,
.block-form-mobile-btn__right-part .form-group textarea {
  margin-bottom: 0.625rem;
  width: 100%;
  border-radius: 1.25rem !important;
  padding: 1.25rem 1.875rem;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: #4b619d;
  font-family: Inter;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.688rem;
  color: var(--c-white);
  height: auto;
}

.block-form-mobile-btn__right-part .form-group textarea {
  min-height: 8.75rem;
  resize: vertical;
}

.block-form-mobile-btn__right-part .form-group input::placeholder,
.block-form-mobile-btn__right-part .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.block-form-mobile-btn__right-part .form-group input:last-child,
.block-form-mobile-btn__right-part .form-group textarea:last-child {
  margin-bottom: 0;
}

.block-form-mobile-btn__right-part .free-form-row-check {
  margin-bottom: 1.875rem;
}

.block-form-mobile-btn__right-part .free-form-row-check .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.block-form-mobile-btn__right-part
  .free-form-row-check
  .checkbox:not(:last-child) {
  margin-bottom: 1.25rem;
}

.block-form-mobile-btn__right-part .free-form-row-check .checkbox .input-box {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.625rem;
  background: transparent;
  margin-top: -2px;
  flex: 0 0 1.5rem;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.block-form-mobile-btn__right-part
  .free-form-row-check
  .checkbox
  .checkbox-label,
.block-form-mobile-btn__right-part
  .free-form-row-check
  .checkbox
  .checkbox-label
  .checkbox-label__link {
  color: var(--c-white);
  font-family: Inter;
  font-weight: 400 !important;
  font-size: 1rem;
  line-height: 130%;
  text-decoration: none;
}

.block-form-mobile-btn__right-part
  .free-form-row-check
  .checkbox
  .checkbox-label
  .checkbox-label__link {
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.block-form-mobile-btn__right-part
  .free-form-row-check
  .checkbox
  .checkbox-label
  .checkbox-label__link:hover {
  color: rgba(255, 255, 255, 0.78);
}

.block-form-mobile-btn__right-part
  .free-form-row-check
  .checkbox
  .checkbox-label {
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.block-form-mobile-btn__right-part
  .free-form-row-check
  .checkbox
  .input-box:before {
  content: "";
  background: var(--c-white);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.188rem;
  position: absolute;
  left: calc(50% - 0.25rem);
  top: calc(50% - 0.25rem);
  opacity: 0;
  transition: opacity 0.3s;
}

.block-form-mobile-btn__right-part
  .free-form-row-check
  .checkbox.active
  .input-box:before {
  opacity: 1;
}

.block-form-mobile-btn__right-part .btn--default {
  box-shadow: 0 0.625rem 3.125rem 0 #00000040;
  width: 100%;
}

.block-form-mobile-btn__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  width: 2rem;
  display: none;
  height: 2rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #fff !important;
  opacity: 0.8;
  z-index: 10;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.block-form-mobile-btn__close:hover {
  color: #fff !important;
  transform: scale(1.1);
}

.block-form-mobile-btn__right-part textarea.input.error,
.block-form-mobile-btn__right-part input.input.error {
  border: 1px solid #ff667f !important;
}

.block-form-mobile-btn__right-part textarea.input.error::placeholder,
.block-form-mobile-btn__right-part input.input.error::placeholder {
  color: #ff667f !important;
}

.block-form-mobile-btn__right-part .checkbox-legal.error > .input-box {
  border: 1px solid #ff667f !important;
}

.block-form-mobile-btn__right-part .checkbox-legal.error .checkbox-label,
.block-form-mobile-btn__right-part
  .checkbox-legal.error
  .checkbox-label
  .checkbox-label__link {
  color: #ff667f !important;
}

.block-form-mobile-btn__message {
  min-height: 1.25rem;
  margin-bottom: 0.75rem;
  color: #ff667f;
  font-family: Inter;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 130%;
}

.block-form-mobile-btn__message:empty {
  display: none;
}

.block-form-mobile-btn__mobile-button {
  display: none;
  margin-top: 1.875rem;
}

.block-form-mobile-btn__subtitle p:first-of-type {
  font-size: 1.5rem;
  line-height: 120%;
}

.block-form-mobile-btn__subtitle ul {
  line-height: 120%;
  margin-top: 1.25rem;
}

.block-form-mobile-btn__subtitle ul li {
  position: relative;
  padding-left: 1.3125rem;
}

.block-form-mobile-btn__subtitle ul li:not(:last-child) {
  margin-bottom: 0.625rem;
}

.block-form-mobile-btn__subtitle ul li::before {
  content: "";
  position: absolute;
  left: 0;
  background-image: url(./images/list_icon.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 0.9375rem;
  height: 0.9375rem;
}

.block-form-mobile-btn__subtitle {
  margin-top: 3.75rem;
}

@media screen and (max-width: 1199.98px) {
  .block-form-mobile-btn__subtext br {
    display: none;
  }
}

@media screen and (max-width: 1023.98px) {
  .block-form-mobile-btn {
    position: relative;
    margin-bottom: 6.25rem;
  }

  .block-form-mobile-btn__subtitle {
    margin-top: 1.875rem;
  }

  .block-form-mobile-btn__left-part {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .block-form-mobile-btn__left-part .block-form-mobile-btn__title {
    text-align: center;
  }

  .block-form-mobile-btn__close {
    display: flex;
  }

  .block-form-mobile-btn__right-part {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .block-form-mobile-btn__right-part.is-active {
    display: flex;
  }

  .block-form-mobile-btn__right-part .block-form-mobile-btn__modal-overlay {
    display: block;
    background: #0000005e;
  }

  .block-form-mobile-btn__right-part .block-form-mobile-btn__modal-container {
    width: calc(100% - 2.5rem);
    max-width: 34.375rem;
    max-height: calc(100vh - 2.5rem);
    margin: auto;
    padding: 3rem 1.25rem var(--form-padding60);
    overflow-y: auto;
    background: #3f5286;
    border-radius: var(--form-border-radius25);
    box-shadow: 0 -0.25rem 1.25rem rgba(0, 0, 0, 0.3);
    transform: translateY(1.25rem);
    transition: transform 0.3s ease;
  }

  .block-form-mobile-btn__right-part.is-active
    .block-form-mobile-btn__modal-container {
    transform: translateY(0);
  }

  .block-form-mobile-btn__mobile-button {
    display: block;
  }

  .block-form-mobile-btn__right-part .form-group input,
  .block-form-mobile-btn__right-part .form-group textarea {
    padding: 1.25rem 0.938rem;
    font-size: 0.875rem;
    border-radius: 0.625rem !important;
  }

  .block-form-mobile-btn__right-part .form-group textarea {
    min-height: 7.5rem;
  }

  .block-form-mobile-btn__right-part .free-form-row-check {
    margin-bottom: 0.938rem;
    max-width: 85%;
  }

  .block-form-mobile-btn__right-part
    .free-form-row-check
    .checkbox:not(:last-child) {
    margin-bottom: 0.625rem;
  }

  .block-form-mobile-btn__right-part
    .free-form-row-check
    .checkbox
    .checkbox-label,
  .block-form-mobile-btn__right-part
    .free-form-row-check
    .checkbox
    .checkbox-label
    .checkbox-label__link {
    font-size: 0.75rem;
    font-weight: 300;
  }

  .block-form-mobile-btn__right-part
    .free-form-row-check
    .checkbox
    .checkbox-label
    br {
    display: none;
  }
}

@media screen and (max-width: 767.98px) {
  .block-form-mobile-btn__left-part .block-form-mobile-btn__title {
    font-size: 1.625rem;
  }
}

@media screen and (max-width: 479.98px) {
  .block-form-mobile-btn__subtitle ul {
    font-size: 0.875rem;
  }

  .block-form-mobile-btn__mobile-button {
    width: 100%;
  }

  .block-form-mobile-btn__mobile-button button {
    line-height: 1.25rem;
  }

  .block-form-mobile-btn__subtitle p:first-of-type {
    font-size: 1.25rem;
  }

  .block-form-mobile-btn__left-part {
    align-items: start;
  }

  .block-form-mobile-btn__left-part .block-form-mobile-btn__title {
    text-align: center;
  }

  .block-form-mobile-btn__subtitle {
    margin-top: 1.875rem;
  }
}
