/* BM Leads — formulário. Cores sobrescrevíveis por variáveis no Elementor (CSS personalizado). */
.bl-card {
  --bl-ink: #1B1833;
  --bl-navy: #1B1833;
  --bl-yellow: #B98935;
  --bl-wa: #1FAF55;
  --bl-wa-hover: #178C44;
  --bl-red: #C62F3F;
  --bl-bg: #FFFFFF;
  --bl-text: #23213B;
  --bl-muted: #625F78;
  --bl-field-bg: #FAF7F1;
  --bl-line: #E7DDCB;
  --bl-radius: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 20px;
  background: var(--bl-bg);
  color: var(--bl-text);
  border: 1px solid var(--bl-line);
  border-radius: 20px;
  box-shadow: 0 24px 50px -28px rgba(27, 24, 51, .45);
  font-size: 16px;
  line-height: 1.4;
}
.bl-card--escuro {
  --bl-bg: #24213F;
  --bl-text: #FFFFFF;
  --bl-muted: rgba(255, 255, 255, .72);
  --bl-field-bg: rgba(255, 255, 255, .08);
  --bl-line: rgba(255, 255, 255, .28);
  border-color: rgba(214, 176, 109, .45);
}
.bl-card *, .bl-card *::before, .bl-card *::after { box-sizing: border-box; }

.bl-title { margin: 0 0 6px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.75em; font-weight: 600; line-height: 1.15; color: inherit; }
.bl-sub { margin: 0 0 18px; color: var(--bl-muted); }

.bl-field { display: block; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.bl-field > span, .bl-field legend {
  display: block; margin: 0 0 6px; padding: 0;
  font-size: .9em; font-weight: 700; color: inherit;
}
.bl-field input[type="text"], .bl-field input[type="tel"] {
  display: block; width: 100%; height: 52px; margin: 0; padding: 0 14px;
  font: inherit; font-size: 17px; /* >=16px evita zoom no iPhone */
  color: var(--bl-text); background: var(--bl-field-bg);
  border: 1px solid var(--bl-line); border-radius: var(--bl-radius);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.bl-field input::placeholder { color: var(--bl-muted); opacity: .8; }
.bl-field input:focus { border-color: var(--bl-navy); box-shadow: 0 0 0 3px rgba(185, 137, 53, .2); }
.bl-card--escuro .bl-field input:focus { border-color: var(--bl-yellow); box-shadow: 0 0 0 3px rgba(214, 176, 109, .25); }
.bl-field input.bl-invalid, .bl-cats.bl-invalid .bl-pill span { border-color: var(--bl-red); }

.bl-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-pill { position: relative; flex: 1 1 calc(50% - 4px); margin: 0; cursor: pointer; }
.bl-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bl-pill span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 12px;
  font-weight: 600; font-size: .92em; text-align: center; white-space: nowrap;
  background: var(--bl-field-bg); border: 1px solid var(--bl-line); border-radius: 999px;
  transition: background .15s, border-color .15s, color .15s;
}
.bl-pill input:checked + span { background: var(--bl-ink); border-color: var(--bl-ink); color: #fff; }
.bl-card--escuro .bl-pill input:checked + span { background: var(--bl-yellow); border-color: var(--bl-yellow); color: #1B1833; }
.bl-pill input:focus-visible + span { outline: 3px solid var(--bl-navy); outline-offset: 2px; }

.bl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.bl-error {
  margin: 0 0 12px; padding: 10px 12px; font-size: .92em; font-weight: 600;
  color: #fff; background: var(--bl-red); border-radius: 10px;
}
.bl-error a { color: #fff; text-decoration: underline; }

.bl-card .bl-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; margin: 4px 0 0; padding: 12px 18px;
  font: inherit; font-size: 1em; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; color: #fff !important; background: var(--bl-wa);
  border: 0; border-radius: 999px;
  box-shadow: 0 10px 22px -12px rgba(31, 175, 85, .8); cursor: pointer;
  transition: transform .1s, box-shadow .1s, background .15s;
}
.bl-card .bl-btn:hover { background: var(--bl-wa-hover); }
.bl-card .bl-btn:active { transform: translateY(1px); }
.bl-card .bl-btn:disabled { opacity: .75; cursor: wait; }


.bl-legal { margin: 12px 0 0; font-size: .78em; color: var(--bl-muted); text-align: center; }
.bl-legal a { color: inherit; text-decoration: underline; }

.bl-success { text-align: center; }
.bl-success h3 { margin: 0 0 8px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.75em; font-weight: 600; color: inherit; }
.bl-success p { margin: 0 0 16px; color: var(--bl-muted); }
