/* ================================
   Форма заявки — стили
   ================================ */

.lead-form {
  background: var(--ink);
  color: var(--bg);
  border-radius: 18px;
  padding: 28px 32px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--bg);
  box-shadow: 6px 6px 0 var(--accent-2);
}

.lead-form::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(243, 195, 74, 0.15), transparent 70%);
  pointer-events: none;
}

.lead-form-title {
  font-family: 'Arial Black', 'Helvetica', sans-serif;
  font-size: 20px;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
  color: var(--bg);
  text-transform: uppercase;
}

.lead-form-sub {
  font-size: 14px;
  margin: 0 0 18px 0;
  color: var(--bg);
  opacity: 0.75;
  line-height: 1.4;
}

.lead-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

.lead-form-field {
  flex: 1 1 180px;
  min-width: 140px;
  position: relative;
}

.lead-form-field input {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  border: 2px solid var(--bg);
  background: #fff;
  color: #1a1815;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: 'Inter', -apple-system, sans-serif;
}

.lead-form-field input::placeholder {
  color: #999;
}

.lead-form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(243, 195, 74, 0.35);
}

.lead-form-field input.is-error {
  border-color: #d33;
  background: #fff5f5;
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.lead-form-submit {
  flex: 0 0 auto;
  padding: 14px 24px;
  background: var(--accent-2);
  color: #fff;
  border: 2px solid var(--bg);
  border-radius: 4px;
  font: inherit;
  font-family: 'Arial Black', 'Helvetica', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
  white-space: nowrap;
}

.lead-form-submit:hover:not(:disabled) {
  background: #e85a2f;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--bg);
}

.lead-form-submit:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.lead-form-submit:disabled {
  background: #999;
  cursor: not-allowed;
  opacity: 0.7;
}

.lead-form-foot {
  font-size: 12px;
  color: var(--bg);
  opacity: 0.6;
  margin: 12px 0 0 0;
  line-height: 1.4;
}

.lead-form-foot a {
  color: var(--bg);
  text-decoration: underline;
}

.lead-form-success {
  text-align: center;
  padding: 12px 0;
}

.lead-form-success-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--accent-2);
}

.lead-form-success h3 {
  font-family: 'Arial Black', sans-serif;
  font-size: 22px;
  margin: 0 0 8px 0;
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.lead-form-success p {
  font-size: 15px;
  margin: 0;
  color: var(--bg);
  opacity: 0.85;
  line-height: 1.4;
}

.lead-form-success-phone {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-2);
  font-family: 'Arial Black', sans-serif;
  font-size: 22px;
  text-decoration: none;
  border-bottom: 2px dashed var(--accent-2);
  padding-bottom: 2px;
}

.lead-form-success-phone:hover {
  color: #e85a2f;
}

/* Mobile */
@media (max-width: 600px) {
  .lead-form {
    padding: 20px 18px;
  }
  .lead-form-title {
    font-size: 17px;
  }
  .lead-form-row {
    flex-direction: column;
  }
  .lead-form-field {
    flex: 1 1 100%;
  }
  .lead-form-submit {
    width: 100%;
  }
}
