/* Lead form modal (lead-form.jsx). Uses the site's theme tokens. */
.lead-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgb(0 0 0 / 0.62);
  backdrop-filter: blur(6px);
  animation: lead-fade 0.18s ease;
}
[data-theme="light"] .lead-overlay { background: rgb(15 23 20 / 0.38); }
@keyframes lead-fade { from { opacity: 0; } to { opacity: 1; } }

.lead-card {
  position: relative;
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 28px 28px 22px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(var(--accent-rgb) / 0.06);
  animation: lead-rise 0.22s ease;
}
@keyframes lead-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.lead-card h3 { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 26px; margin: 8px 0 6px; letter-spacing: -0.01em; }
.lead-sub { color: var(--ink-2); margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.lead-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-3);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.lead-close:hover { background: var(--surface-2); color: var(--ink); }

.lead-plan { display: grid; gap: 12px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.lead-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lead-seg button {
  display: grid; gap: 2px; padding: 10px 6px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 600 14px Inter, sans-serif;
}
.lead-seg button small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.lead-seg button.on { border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo) inset; background: rgb(var(--accent-rgb) / 0.10); }
.lead-price { display: flex; align-items: baseline; gap: 8px; color: var(--ink-3); font-size: 13px; }
.lead-price-amt { font: 700 24px 'Space Grotesk', Inter, sans-serif; color: var(--ink); }

.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.lead-wide { grid-column: 1 / -1; }
.lead-field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.lead-field small { color: var(--ink-3); font-weight: 400; }
.lead-field input, .lead-field select, .lead-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--bg-1); color: var(--ink);
  font: 15px Inter, sans-serif; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.lead-field textarea { resize: vertical; min-height: 76px; }
.lead-field input:focus, .lead-field select:focus, .lead-field textarea:focus {
  border-color: var(--indigo); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.18);
}
.lead-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.lead-error {
  margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgb(244 63 94 / 0.12); border: 1px solid rgb(244 63 94 / 0.35); color: #fda4af; font-size: 14px;
}
[data-theme="light"] .lead-error { color: #be123c; }
.lead-submit { width: 100%; justify-content: center; margin-top: 16px; }
.lead-submit[disabled] { opacity: 0.6; cursor: wait; }
.lead-fine { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }

.lead-done { text-align: center; padding: 12px 4px 4px; }
.lead-done-icon {
  width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%;
  display: grid; place-items: center; font-size: 28px; font-weight: 700;
  background: rgb(var(--accent-rgb) / 0.16); color: var(--indigo);
}
.lead-done p { color: var(--ink-2); line-height: 1.55; }
.lead-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

@media (max-width: 560px) {
  .lead-card { padding: 22px 16px 18px; }
  .lead-card h3 { font-size: 22px; }
  .lead-grid { grid-template-columns: 1fr; }
}
