/* Formulário de lead + modal (compartilhado pela landing, páginas de segmento e cadastro).
 * Autossuficiente: define as variáveis de cor, porque o cadastro.css não usa o styles.css. */
:root { --orange: #ff6b00; --orange-dark: #e05e00; --text: #1a1a2e; --muted: #5a5a5a; --gray: #f7f8fc; }

/* Botão secundário (contorno laranja) */
.btn-outline {
  background: #fff; color: var(--orange-dark); border: 2px solid var(--orange); border-radius: 20px;
  font-family: "Nunito", sans-serif; font-weight: 700; font-size: 16px; padding: 12px 22px;
  cursor: pointer; transition: 0.2s; text-decoration: none; display: inline-block; letter-spacing: 0.5px;
}
.btn-outline:hover { background: #fff4eb; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 107, 0, 0.2); }

/* ── LEAD (seção + formulário) ─────────────────── */
.lead-section { padding: 80px 5%; background: var(--gray); }
.lead-box { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #fff; border: 2px solid var(--orange); border-radius: 22px; padding: 40px; box-shadow: 0 8px 36px rgba(0, 0, 0, 0.08); }
.lead-box h2 { font-size: 30px; font-weight: 900; line-height: 1.2; margin-bottom: 12px; }
.lead-box h2 span { color: var(--orange); }
.lead-box p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.lead-bullets { list-style: none; padding: 0; margin: 18px 0 0; }
.lead-bullets li { padding: 5px 0 5px 26px; position: relative; font-weight: 700; font-size: 15px; }
.lead-bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 900; }

.lead-form { display: grid; gap: 14px; }
.lead-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.lead-form label small { font-weight: 600; color: var(--muted); }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"] {
  width: 100%; padding: 13px 14px; border: 2px solid #e3e3e8; border-radius: 12px; font-size: 16px;
  font-family: "Nunito", sans-serif; background: #fff; color: var(--text); transition: border-color 0.2s;
}
.lead-form input:focus { outline: none; border-color: var(--orange); }
.lead-form input.error { border-color: #d93025; }
.lead-err { display: none; color: #d93025; font-size: 13px; font-weight: 700; margin-top: 4px; }
.lead-err.show { display: block; }
.lead-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-submit {
  background: var(--orange); color: #fff; border: 0; border-radius: 14px; padding: 15px 18px; font-size: 16px;
  font-weight: 800; font-family: "Nunito", sans-serif; cursor: pointer; transition: 0.2s; letter-spacing: 0.4px;
}
.lead-submit:hover { background: var(--orange-dark); box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35); }
.lead-submit:disabled { opacity: 0.7; cursor: wait; }
.lead-fine { font-size: 12px; color: var(--muted); text-align: center; }
.lead-fine a { color: var(--muted); text-decoration: underline; }
.lead-msg-erro { display: none; background: #fdecea; color: #b3261e; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.lead-msg-erro.show { display: block; }

.lead-ok { display: none; text-align: center; padding: 10px 0; }
.lead-ok.show { display: block; }
.lead-ok .lead-ok-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; background: #fff4eb; border: 3px solid var(--orange); color: var(--orange-dark); font-size: 32px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.lead-ok h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.lead-ok p { color: var(--muted); font-size: 16px; line-height: 1.55; margin-bottom: 18px; }
.lead-ok .btn-wa-lead { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; font-weight: 800; border-radius: 14px; padding: 13px 24px; text-decoration: none; }

/* ── MODAL ─────────────────────────────────────── */
.lead-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 20, 40, 0.55); }
.lead-modal.open { display: flex; }
.lead-modal-card { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border: 2px solid var(--orange); border-radius: 20px; padding: 32px 28px 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.lead-modal-card h2 { font-size: 24px; font-weight: 900; margin-bottom: 6px; padding-right: 30px; }
.lead-modal-card > p { color: var(--muted); font-size: 15px; margin-bottom: 18px; line-height: 1.5; }
.lead-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); border-radius: 50%; }
.lead-close:hover { background: #f1f1f4; color: var(--text); }


/* Link de ajuda abaixo do formulário de cadastro */
.cad-ajuda { text-align: center; margin: 18px 16px 36px; font-size: 14px; color: var(--muted); font-family: "Nunito", sans-serif; }
.cad-ajuda button { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--orange-dark); text-decoration: underline; cursor: pointer; }
.cad-ajuda button:hover { color: var(--orange); }
