/* ==========================================================================
   Lead capture card — shared across all free tools.
   Self-contained + namespaced (.lead-capture-*) so it renders consistently
   regardless of each tool's own stylesheet. Submission is handled by
   js/forms.js (formType "tool-lead").
   ========================================================================== */

.lead-capture-section {
  --lc-accent: #3d4bca;
  --lc-accent-2: #6d7cff;
  --lc-ink: #14172b;
  --lc-muted: #5a6072;
  --lc-surface: #ffffff;
  --lc-border: rgba(20, 23, 43, 0.1);
  width: 100%;
  padding: clamp(2rem, 1rem + 4vw, 4rem) 20px;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.lead-capture-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: var(--lc-surface);
  border: 1px solid var(--lc-border);
  border-radius: 20px;
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  overflow: hidden;
  box-shadow: 0 24px 60px -32px rgba(61, 75, 202, 0.45);
}

/* Gradient accent rail down the left edge. */
.lead-capture-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--lc-accent), var(--lc-accent-2));
}

.lead-capture-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lc-ink);
}

.lead-capture-sub {
  margin: 0 0 1.4rem;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.5;
  color: var(--lc-muted);
  max-width: 52ch;
}

.lead-capture-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-capture-input {
  flex: 1 1 260px;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  font-size: 1rem;
  color: var(--lc-ink);
  background: #f7f8fc;
  border: 1.5px solid var(--lc-border);
  border-radius: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
  box-sizing: border-box;
}

.lead-capture-input::placeholder { color: #9aa0b4; }

.lead-capture-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--lc-accent);
  box-shadow: 0 0 0 4px rgba(61, 75, 202, 0.15);
}

.lead-capture-btn {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 26px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--lc-accent), var(--lc-accent-2));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
  box-shadow: 0 10px 24px -10px rgba(61, 75, 202, 0.7);
}

.lead-capture-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(61, 75, 202, 0.8);
}

.lead-capture-btn:active { transform: translateY(0); }
.lead-capture-btn:disabled { opacity: 0.65; cursor: default; transform: none; }

.lead-capture-fineprint {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #8a90a3;
}

/* Success / failure states — hidden until forms.js toggles display. */
.lead-capture-done,
.lead-capture-fail {
  display: none;
  margin-top: 0.25rem;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.lead-capture-done {
  background: rgba(34, 168, 108, 0.12);
  border: 1px solid rgba(34, 168, 108, 0.35);
  color: #16794f;
}

.lead-capture-fail {
  background: rgba(214, 69, 69, 0.1);
  border: 1px solid rgba(214, 69, 69, 0.3);
  color: #a12c2c;
}

@media (max-width: 480px) {
  .lead-capture-input,
  .lead-capture-btn { flex: 1 1 100%; }
}
