/* Модальная форма заявки (evision.html) */

.lead-modal {
  border: none;
  padding: 0;
  max-width: min(440px, 92vw);
  width: 100%;
  background: transparent;
  color: var(--text-primary);
}

.lead-modal::backdrop {
  background: rgba(5, 11, 20, 0.78);
  backdrop-filter: blur(10px);
}

.lead-modal__panel {
  position: relative;
  padding: clamp(1.35rem, 4vw, 1.75rem);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    155deg,
    rgba(22, 34, 54, 0.98) 0%,
    rgba(12, 20, 34, 0.99) 48%,
    rgba(8, 14, 26, 1) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 20px 56px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

.lead-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lead-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.lead-modal__title {
  margin: 0 2.25rem 0.5rem 0;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lead-modal__subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lead-form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.lead-form__field {
  margin: 0;
}

.lead-form__phone-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 16, 28, 0.85);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-form__phone-wrap:focus-within {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.lead-form__flag {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.lead-form__prefix {
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lead-form__phone-wrap input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.lead-form__phone-wrap input::placeholder {
  color: rgba(231, 238, 252, 0.38);
}

.lead-form__phone-wrap input:focus {
  outline: none;
}

.lead-form__input,
.lead-form__textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 16, 28, 0.85);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-form__input::placeholder,
.lead-form__textarea::placeholder {
  color: rgba(231, 238, 252, 0.38);
}

.lead-form__input:focus,
.lead-form__textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.lead-form__textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.5;
}

.lead-form__submit {
  width: 100%;
  margin-top: 0.35rem;
}

.lead-form__hint {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(231, 238, 252, 0.45);
  line-height: 1.4;
}

.lead-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal::backdrop {
    backdrop-filter: none;
  }
}
