/* BF:LB — popup de lead */
.leadbox {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: 0 32px 80px -20px rgba(26, 22, 17, 0.55);
  overflow: auto;
}
.leadbox::backdrop { background: rgba(26, 22, 17, 0.62); backdrop-filter: blur(3px); }
.leadbox[open] { animation: lead-in 0.45s var(--ease-out); }
.leadbox[open]::backdrop { animation: lead-fade 0.35s ease-out; }
@keyframes lead-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes lead-fade { from { opacity: 0; } to { opacity: 1; } }

.lead__form { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 40px 36px 30px; }
.lead__close { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--color-ink); cursor: pointer; transition: background-color 0.3s; }
.lead__close:hover { background: var(--color-sand); }
.lead__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.lead__eyebrow { color: var(--color-muted); }
.lead__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.25; letter-spacing: -0.01em; color: var(--color-heading); }
.lead__lead { margin: -4px 0 4px; font-size: 15px; line-height: 1.6; color: var(--color-ink); }
.lead__field { display: flex; flex-direction: column; gap: 7px; }
.lead__field span { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); }
.lead__field input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--color-line); border-radius: 6px;
  background: var(--color-card); font: inherit; font-size: 16px; color: var(--color-heading);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.lead__field input::placeholder { color: #B5A68C; }
.lead__field input:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(116, 99, 67, 0.18); }
.lead__field input[aria-invalid="true"] { border-color: #B3402F; box-shadow: 0 0 0 3px rgba(179, 64, 47, 0.14); }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead__error { margin: 0; padding: 10px 14px; border-radius: 6px; background: #FBEAE6; font-size: 14px; line-height: 1.5; color: #8E2C1D; }
.lead__submit { width: 100%; margin-top: 4px; border: 0; cursor: pointer; }
.lead__submit:disabled { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }
.lead__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lead__note { margin: 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--color-taupe); }

@media (max-width: 480px) {
  .lead__form { padding: 36px 22px 24px; }
  .lead__title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .leadbox[open], .leadbox[open]::backdrop { animation: none; }
}
