/* Заявки: неактивная кнопка, схлопывание формы, сообщение об успехе. */
form .btn:disabled,
form .btn[disabled] {
  pointer-events: none;
  opacity: .45;
  box-shadow: none;
  transform: none;
  cursor: default;
}

.lead-slot {
  min-width: 0;
}

.lead-collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .5s ease, opacity .35s ease;
}

.lead-collapse.is-out {
  grid-template-rows: 0fr;
  opacity: 0;
}

.lead-collapse__in {
  min-height: 0;
  overflow: hidden;
}

.lead-thanks {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #146c43;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.lead-thanks[hidden] {
  display: none !important;
}

.lead-thanks.card {
  padding: 26px;
}

.lead-thanks__mark {
  flex: none;
  width: 28px;
  height: 28px;
}

.lead-thanks__text {
  margin: 0;
}

.lead-thanks.is-in {
  animation: lead-thanks-in .4s ease both;
}

@keyframes lead-thanks-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 959px) {
  .lead-slot { max-width: 520px; }
  .lead-slot .demo__form { max-width: none; }
}

@media (max-width: 767px) {
  .lead-thanks.card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .lead-collapse { transition: none; }
  .lead-thanks.is-in { animation: none; }
}
