.lead-form {
  box-sizing: border-box;
  width: 100%;
  padding: 38px 0;
  color: rgb(0, 0, 0);
  font-family: var(--font-base);
}

.lead-form__inner {
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}

.lead-form__title {
  margin: 0 0 32px;
  color: rgb(37, 39, 40);
  font-size: 32px;
  font-weight: 600;
  line-height: 48px;
}

.lead-form__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.lead-form__field {
  box-sizing: border-box;
  width: 49%;
  margin-bottom: 22px;
  position: relative;
}

.lead-form__field--full {
  width: 100%;
}

.lead-form__input,
.lead-form__select,
.lead-form__textarea,
.lead-form__phone {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  border: 1px solid rgb(220, 221, 223);
  border-radius: 0;
  color: rgb(0, 0, 0);
  font: inherit;
  font-size: 16px;
}

.lead-form__textarea {
  height: auto;
  padding: 10px;
  resize: vertical;
  outline: none;
  background: rgb(255, 255, 255);
}

.lead-form__textarea:focus {
  border-color: rgb(37, 39, 40);
}

.lead-form__input,
.lead-form__select {
  padding: 0 10px;
  outline: none;
  background: rgb(255, 255, 255);
  appearance: none;
}

.lead-form__select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23aaaaaa' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.lead-form__select:invalid {
  color: rgb(124, 125, 126);
}

.lead-form__input::placeholder {
  color: rgb(124, 125, 126);
}

.lead-form__input:focus,
.lead-form__select:focus {
  border-color: rgb(37, 39, 40);
}

.lead-form__error {
  display: block;
  min-height: 20px;
  margin-top: 4px;
  color: rgb(215, 12, 25);
  font-size: 13px;
  line-height: 20px;
}

.lead-form__consent {
  margin: 24px 0 0;
}

.lead-form__consent + .lead-form__consent {
  margin-top: 4px;
}

.lead-form__check {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.lead-form__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lead-form__checkmark {
  flex: 0 0 auto;
  display: inline-block;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin: 2px 8px 0 0;
  border: 1px solid rgb(210, 210, 210);
  background-color: rgb(255, 255, 255);
  color: transparent;
  font-size: 12px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
  transition: 0.1s linear;
}

.lead-form__check:hover .lead-form__checkmark {
  border-color: rgb(95, 184, 120);
}

.lead-form__checkbox:checked + .lead-form__checkmark {
  background-color: rgba(51, 51, 51, 0.8);
  color: rgb(255, 255, 255);
}

.lead-form__checkbox:focus-visible + .lead-form__checkmark {
  outline: 2px solid rgb(37, 39, 40);
  outline-offset: 2px;
}

.lead-form__check-text {
  color: rgb(104, 104, 104);
  font-size: 14px;
  line-height: 22px;
}

.lead-form__result {
  margin: 16px 0 0;
  min-height: 22px;
  color: rgb(37, 39, 40);
  font-size: 14px;
  line-height: 22px;
}

.lead-form__result.is-error {
  color: rgb(215, 12, 25);
}

.lead-form__result.is-success {
  color: rgb(51, 140, 87);
}

.lead-form__submit {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  border: 1px solid rgb(1, 1, 1);
  background: rgb(1, 1, 1);
  color: rgb(255, 255, 255);
  font-family: Montserrat, var(--font-base);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.6s;
}

.lead-form__submit:hover {
  background: rgb(255, 255, 255);
  color: rgb(1, 1, 1);
}

.lead-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgb(1, 1, 1);
  color: rgb(255, 255, 255);
}

@media (max-width: 767px) {
  .lead-form {
    padding: 0;
  }

  .lead-form__inner {
    padding: 48px 20px;
  }

  .lead-form__title {
    margin-bottom: 32px;
  }

  .lead-form__grid {
    display: block;
  }

  .lead-form__field {
    width: 100%;
    margin-bottom: 24px;
  }

  .lead-form__error {
    font-size: 13px;
    line-height: 20px;
  }

  .lead-form__input,
  .lead-form__select,
  .lead-form__textarea {
    border-width: 1.5px;
    font-size: 16px;
  }

  .lead-form__submit {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 40px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
  }
}
