/* Native CRM lead forms (ndvrazvitie.ru) — no Tilda forms runtime */

/* Orphan Zero Block consent — absolute coords from old Tilda form; hide and use in-form legal. */
#rec313976287 .tn-elem[data-elem-id="1620975659319"] {
  display: none !important;
}

#rec313976287 .tn-elem[data-elem-id="1614298514454"] {
  z-index: 20 !important;
}

#rec313976287 .tn-elem[data-elem-id="1614298514454"] .tn-atom {
  position: relative;
  z-index: 1;
  width: 100%;
}

.crm-lead-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: Roboto, Arial, sans-serif;
}

.crm-lead-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.crm-lead-form__field span {
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.crm-lead-form__field input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: #1c2d50;
  font-size: 16px;
  font-weight: 300;
  font-family: inherit;
  border: 1px solid #c9c9c9;
  border-radius: 5px;
  background: #fff;
  outline: none;
}

.crm-lead-form__field input:focus {
  border-color: #1c2d50;
}

.crm-lead-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.crm-lead-form__legal {
  margin: 0;
  max-width: 440px;
  color: #333;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 400;
}

.crm-lead-form__legal a {
  color: inherit;
  text-decoration: underline;
}

.crm-lead-form__submit {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  max-width: 100%;
  height: 48px;
  margin: 2px 0 0;
  padding: 0 20px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #eb3b00;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.crm-lead-form__submit:hover {
  filter: brightness(0.95);
}

.crm-lead-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.crm-lead-form__msg {
  display: none;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.45;
}

.crm-lead-form__msg.is-visible {
  display: block;
}

.crm-lead-form__msg--ok {
  color: #0b5;
  background: #e8fff2;
}

.crm-lead-form__msg--err {
  color: #b00020;
  background: #fde8ea;
}

/* t702 block: placeholders as labels; consent already below in t702__form-bottom-text */
.crm-lead-form--t702 {
  gap: 12px;
}

.crm-lead-form--t702 .crm-lead-form__field span {
  display: none;
}

.crm-lead-form--t702 .crm-lead-form__legal {
  display: none;
}

.crm-lead-form--t702 .crm-lead-form__submit {
  width: 100%;
}

.crm-lead-form--zero {
  gap: 12px;
}

.crm-lead-form--zero .crm-lead-form__field span {
  font-size: 15px;
}

@media screen and (max-width: 959px) {
  .crm-lead-form--zero .crm-lead-form__submit {
    width: 100%;
  }
}

@media screen and (max-width: 479px) {
  /* Native form is taller than old Tilda form — free space above the portrait. */
  #rec313976287 .t396__artboard,
  #rec313976287 .t396__filter,
  #rec313976287 .t396__carrier {
    height: 1080px !important;
  }

  #rec313976287 .tn-elem[data-elem-id="1614298514454"] {
    top: 270px !important;
    width: min(300px, calc(100% - 24px)) !important;
  }

  #rec313976287 .tn-elem[data-elem-id="1614297317346"] {
    top: 640px !important;
  }

  #rec313976287 .tn-elem[data-elem-id="1614297317338"] {
    top: 690px !important;
  }

  .crm-lead-form {
    gap: 8px;
  }

  .crm-lead-form--zero {
    gap: 8px;
  }

  .crm-lead-form__field {
    gap: 3px;
  }

  .crm-lead-form__field span {
    font-size: 12px;
  }

  .crm-lead-form__field input {
    height: 42px;
    font-size: 16px; /* avoid iOS zoom */
  }

  .crm-lead-form__legal {
    font-size: 10px;
    line-height: 1.35;
    max-width: none;
    text-align: left;
  }

  .crm-lead-form__submit {
    width: 100%;
    height: 44px;
    margin-top: 4px;
    font-size: 13px;
  }
}
