/* lead-form.css — минимализм в стиле сайта, тёмные карточки на светлом фоне */

.section-form {
  padding: 64px 0;
  background: #f6f7f9;
}

.section-form .container {
  max-width: none;
  margin: 0 auto;
  padding: 0 20px;
}

.form-card {
  background: #14161a;
  color: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(20, 22, 26, 0.18);
}

.form-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.form-card > p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.5;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
}

.lead-form input[type="text"],
.lead-form textarea {
  height: 48px;
  width: 100%;
  padding: 0 14px;
  background: #1d2026;
  border: 1px solid #2a2e36;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  box-sizing: border-box;
}

.lead-form textarea {
  grid-column: 1 / -1;
  min-height: 96px;
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.lead-form input[type="text"]::placeholder,
.lead-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.lead-form input[type="text"]:focus,
.lead-form textarea:focus {
  border-color: #ffd24a;
  box-shadow: 0 0 0 3px rgba(255, 210, 74, 0.22);
}

.lead-form input[type="text"]:invalid:not(:placeholder-shown) {
  border-color: #ef5a5a;
}

.lead-form button[type="submit"] {
  grid-column: 1 / -1;
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: #ffd24a;
  color: #14161a;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 80ms ease, background-color 120ms ease, opacity 120ms ease;
}

.lead-form button[type="submit"]:hover:not(:disabled) {
  background: #ffdb6a;
}

.lead-form button[type="submit"]:active:not(:disabled) {
  transform: translateY(1px);
}

/* site-legal-v1: согласие на обработку ПДн */
.lead-form-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 4px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}
.lead-form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #ffd24a;
  cursor: pointer;
}
.lead-form-consent a {
  color: #ffd24a;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lead-form-consent a:hover { color: #ffdb6a; }

.lead-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lead-form-msg {
  grid-column: 1 / -1;
  min-height: 1.4em;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.lead-form-msg.is-success {
  color: #6bd96b;
  font-weight: 500;
}

.lead-form-msg.is-error {
  color: #ff8a8a;
}

.lead-form.is-hidden {
  display: none;
}

/* Мобайл — одна колонка */
@media (max-width: 640px) {
  .section-form {
    padding: 40px 0;
  }
  .form-card {
    padding: 28px 20px;
    border-radius: 14px;
  }
  .form-card h2 {
    font-size: 22px;
  }
  .lead-form {
    grid-template-columns: 1fr;
  }
}

/* fix: input/tel/textarea не наследуют тёмный фон карточки в Safari/Chrome.
   Принудительно тёмные, как остальная форма. */
.lead-form input,
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form textarea {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border: 1px solid #334155 !important;
  caret-color: #ffd24a !important;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #94a3b8 !important; opacity: 1; }
.lead-form input:-webkit-autofill,
.lead-form input:-webkit-autofill:hover,
.lead-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #ffd24a !important;
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid #ffd24a !important;
  outline-offset: 2px;
}
