/* Futuro Certo — formulário de captação (modal do site + landing page /consulta/)
   Usa as cores definidas em estilo.css (:root). */

/* ---------- Formulário ---------- */
.lead-form { display: grid; gap: 18px; }
.lead-campo { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lead-campo > label,
.lead-opcoes legend {
  font-weight: 600; font-size: 1rem; color: var(--profundo); padding: 0; margin-bottom: 6px;
}
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form select {
  width: 100%; min-height: 54px; padding: 12px 16px;
  font: inherit; font-size: 17px; color: var(--texto);
  background: #fff; border: 1.5px solid #C5D0DC; border-radius: 12px;
  -webkit-appearance: none; appearance: none;
  scroll-margin: 120px;
}
.lead-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23203E5A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.lead-form input:focus,
.lead-form select:focus { outline: none; border-color: var(--marinho); box-shadow: 0 0 0 3px rgba(66,108,148,.25); }
.lead-form input[aria-invalid="true"] { border-color: #B3261E; }

.lead-opcoes-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-opcao { position: relative; cursor: pointer; }
.lead-opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lead-opcao span {
  display: flex; align-items: center; justify-content: center; min-height: 54px;
  border: 1.5px solid #C5D0DC; border-radius: 12px; font-weight: 600; font-size: 17px;
  color: var(--profundo); background: #fff; transition: background .15s, border-color .15s, color .15s;
}
.lead-opcao input:checked + span { background: var(--marinho); border-color: var(--marinho); color: #fff; }
.lead-opcao input:focus-visible + span { box-shadow: 0 0 0 3px rgba(66,108,148,.35); }

.lead-campo > .lead-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 400; margin: 0; font-size: .95rem; line-height: 1.55; color: #3A4653; }
.lead-check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--marinho); cursor: pointer; }
.lead-check a { color: var(--marinho); font-weight: 600; }

/* Campo com sugestões (cidade, órgão federal): a lista fica logo abaixo do campo, no fluxo da página. */
.lead-sugestoes-lista {
  list-style: none; margin: 6px 0 0; padding: 6px; max-height: 264px; overflow-y: auto;
  background: #fff; border: 1.5px solid #C5D0DC; border-radius: 12px; box-shadow: 0 8px 24px rgba(22,40,60,.12);
}
.lead-sugestoes-lista[hidden] { display: none; }
.lead-sugestoes-lista li {
  display: grid; gap: 2px; align-content: center; min-height: 44px; padding: 10px 12px; border-radius: 8px;
  cursor: pointer; font-size: 16px; line-height: 1.3; color: var(--texto);
}
.lead-sugestoes-lista li:hover,
.lead-sugestoes-lista li[aria-selected="true"] { background: var(--fundo-alt); }
.lead-sugestao-detalhe { font-size: .85rem; color: var(--texto-suave); }

.lead-erro { margin: 0; min-height: 0; color: #B3261E; font-size: .92rem; font-weight: 500; }
.lead-erro:empty { display: none; }

.lead-botao {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px;
  padding: 14px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--laranja-escuro); color: #fff; font: inherit; font-size: 18px; font-weight: 700;
  letter-spacing: .03em; text-decoration: none; text-align: center; transition: background .15s;
}
.lead-botao:hover { background: #B4651A; }
.lead-botao:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 3px; }
.lead-botao:disabled { opacity: .7; cursor: wait; }
.lead-aviso { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--texto-suave); text-align: center; }

.lead-sucesso { text-align: center; display: grid; gap: 14px; padding: 8px 0 4px; }
.lead-sucesso[hidden], .lead-form[hidden], [data-bloco][hidden] { display: none; }
.lead-opcional { font-weight: 400; color: var(--texto-suave); }
.lead-fora-perfil .lead-sucesso-texto { outline: none; }
.lead-sucesso-titulo { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--profundo); outline: none; }
.lead-sucesso-texto { margin: 0; font-size: 1.05rem; color: #3A4653; }
.lead-botao-whats { margin-top: 6px; }

/* ---------- Modal (botões de WhatsApp do site) ---------- */
html.lead-modal-aberto, html.lead-modal-aberto body { overflow: hidden; }
.lead-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lead-modal[hidden] { display: none; }
.lead-modal-fundo { position: absolute; inset: 0; background: rgba(22,40,60,.6); }
.lead-modal-caixa {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: #fff; border-radius: 20px; padding: 28px 24px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); outline: none;
}
.lead-modal-fechar {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--texto-suave); font-size: 30px; line-height: 1; cursor: pointer;
}
.lead-modal-fechar:hover { background: var(--fundo-alt); color: var(--profundo); }
.lead-modal-titulo { margin: 0 44px 4px 0; font-size: 1.35rem; font-weight: 700; color: var(--profundo); line-height: 1.25; }
.lead-modal-sub { margin: 0 0 20px; color: var(--texto-suave); font-size: .98rem; }

@media (max-width: 600px) {
  .lead-modal { padding: 0; align-items: stretch; }
  .lead-modal-caixa { max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 22px 18px 32px; }
}

/* ---------- Landing page /consulta/ ---------- */
.lp-topo { background: #fff; border-bottom: 1px solid var(--borda); }
.lp-topo .container { display: flex; align-items: center; height: 64px; }
.lp-hero {
  background: linear-gradient(135deg, #2F5579 0%, var(--marinho) 45%, var(--profundo) 100%);
  color: #fff; padding: 36px 0 96px; text-align: center;
}
.lp-hero h1 { color: #fff; font-size: clamp(1.7rem, 6vw, 2.5rem); margin: 0 auto 14px; max-width: 640px; }
.lp-hero p { color: #D6E1EC; font-size: 1.08rem; max-width: 560px; margin: 0 auto; }
.lp-cartao {
  position: relative; max-width: 560px; margin: -64px auto 0; background: #fff; border-radius: 20px;
  padding: 28px 22px; box-shadow: 0 12px 40px rgba(22,40,60,.14); border: 1px solid var(--borda);
}
.lp-confianca {
  list-style: none; padding: 0; margin: 24px auto 0; max-width: 560px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; color: var(--texto-suave); font-size: .95rem;
}
.lp-confianca li { display: flex; align-items: center; gap: 8px; }
.lp-confianca li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--laranja); }
.lp-principal { padding: 0 16px 56px; background: var(--fundo-alt); }
.lp-rodape { background: var(--profundo); color: #B7C6D6; padding: 28px 0; font-size: .88rem; line-height: 1.6; }
.lp-rodape a { color: #fff; }
.lp-rodape .container { display: grid; gap: 10px; }
@media (min-width: 700px) {
  .lp-hero { padding: 56px 0 110px; }
  .lp-cartao { padding: 36px 36px 32px; }
}

/* ---------- Landing page /consulta/ — seções extras ---------- */
.lp-hero { position: relative; overflow: hidden; padding-top: 40px; }
.lp-hero::after {
  content: ""; position: absolute; right: -70px; bottom: -40px; width: 300px; height: 340px;
  background: url("/assets/icone.svg") no-repeat center / contain; opacity: .08;
  filter: grayscale(1) brightness(3); pointer-events: none;
}
.lp-hero .container { position: relative; z-index: 1; }
.lp-selo {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 14px;
  border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #F2B27A; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
}
.lp-selo svg { width: 16px; height: 16px; }

.lp-confianca { gap: 10px; }
.lp-confianca li::before { display: none; }
.lp-confianca li {
  background: #fff; border: 1px solid var(--borda); border-radius: 999px; padding: 8px 14px;
  font-size: .9rem; color: var(--profundo); font-weight: 500;
}
.lp-confianca svg { width: 18px; height: 18px; color: var(--laranja-escuro); flex: none; }

.lp-bloco { max-width: 960px; margin: 0 auto; padding: 56px 0 0; }
.lp-bloco h2 { text-align: center; font-size: clamp(1.4rem, 5vw, 1.9rem); margin-bottom: 8px; }
.lp-bloco > p.lp-intro { text-align: center; color: var(--texto-suave); max-width: 520px; margin: 0 auto 28px; }

.lp-passos { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lp-passos li {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--borda);
  border-radius: 16px; padding: 20px;
}
.lp-passo-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--marinho); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.lp-passos h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.lp-passos p { margin: 0; color: var(--texto-suave); font-size: .95rem; }

.lp-motivos { display: grid; gap: 14px; }
.lp-motivo { background: #fff; border: 1px solid var(--borda); border-radius: 16px; padding: 22px; }
.lp-motivo-icone {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: #FDF1E5; color: var(--laranja-escuro); margin-bottom: 14px;
}
.lp-motivo-icone svg { width: 24px; height: 24px; }
.lp-motivo h3 { margin: 0 0 4px; font-size: 1.05rem; }
.lp-motivo p { margin: 0; color: var(--texto-suave); font-size: .95rem; }

.lp-faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.lp-faq details { background: #fff; border: 1px solid var(--borda); border-radius: 14px; }
.lp-faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 600; color: var(--profundo); font-size: 1rem; min-height: 56px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--laranja-escuro);
}
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 0; padding: 0 20px 18px; color: #3A4653; font-size: .97rem; }

.lp-cta {
  max-width: 720px; margin: 56px auto 0; padding: 32px 24px; border-radius: 20px; text-align: center;
  background: linear-gradient(135deg, var(--marinho), var(--profundo)); color: #fff;
}
.lp-cta h2 { color: #fff; font-size: clamp(1.3rem, 5vw, 1.7rem); margin-bottom: 8px; }
.lp-cta p { color: #D6E1EC; margin: 0 0 20px; }
.lp-cta .lead-botao { max-width: 360px; margin: 0 auto; }

.lp-rodape { margin-top: 0; }
.lp-rodape .marca { margin-bottom: 6px; }
.lp-rodape .marca-nome .f { color: #fff; }

@media (min-width: 760px) {
  .lp-passos { grid-template-columns: repeat(3, 1fr); }
  .lp-passos li { flex-direction: column; }
  .lp-motivos { grid-template-columns: repeat(3, 1fr); }
  .lp-hero::after { width: 420px; height: 480px; right: 4%; bottom: -120px; }
}

/* ---------- Modal dos botões: mesmo visual da landing page ---------- */
.lead-modal-caixa { padding: 0; }
.lead-modal-topo {
  position: relative; overflow: hidden; padding: 28px 24px 24px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #2F5579 0%, var(--marinho) 45%, var(--profundo) 100%);
}
.lead-modal-topo::after {
  content: ""; position: absolute; right: -40px; bottom: -50px; width: 170px; height: 195px;
  background: url("icone.svg") no-repeat center / contain; opacity: .08;
  filter: grayscale(1) brightness(3); pointer-events: none;
}
.lead-modal-topo > * { position: relative; z-index: 1; }
.lead-modal-topo .lp-selo { margin-bottom: 12px; }
.lead-modal-topo .lead-modal-titulo { margin: 0 0 6px; color: #fff; font-size: 1.45rem; }
.lead-modal-topo .lead-modal-sub { margin: 0; color: #D6E1EC; }
.lead-modal-fechar { z-index: 2; color: #fff; }
.lead-modal-fechar:hover { background: rgba(255,255,255,.12); color: #fff; }
.lead-modal-corpo { padding: 24px 24px 8px; }
.lead-modal .lead-modal-selos { margin: 8px 0 0; padding: 0 20px 24px; max-width: none; }
.lead-modal .lead-modal-selos li { background: var(--fundo-alt); font-size: .85rem; padding: 7px 12px; }
@media (max-width: 600px) {
  .lead-modal-caixa { padding: 0; }
  .lead-modal-topo { padding: 54px 18px 22px; }
  .lead-modal-topo .lp-selo { font-size: .76rem; }
  .lead-modal-corpo { padding: 22px 18px 8px; }
  .lead-modal .lead-modal-selos { padding: 0 14px 32px; }
}

/* ---------- Depoimentos (seção pública + página /avaliar/) ---------- */
.dep-grade { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 28px; }
/* Carrossel de depoimentos */
.dep-carrossel { position: relative; margin-top: 28px; }
.dep-carrossel .dep-grade { display: flex; gap: 18px; margin-top: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; }
.dep-carrossel .dep-grade::-webkit-scrollbar { display: none; }
.dep-carrossel .dep-card { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }
.dep-seta { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--borda); background: #fff; color: var(--profundo); box-shadow: 0 6px 18px rgba(22, 40, 60, .12); display: grid; place-items: center; cursor: pointer; padding: 0; }
.dep-seta:hover { color: var(--laranja-escuro); border-color: var(--laranja); }
.dep-seta:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 2px; }
.dep-seta svg { width: 20px; height: 20px; }
.dep-seta-ant { left: -22px; }
.dep-seta-prox { right: -22px; }
.dep-seta[hidden] { display: none; }
.dep-texto.dep-recolhido { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.dep-ler-mais { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--marinho); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
@media (max-width: 1200px) { .dep-seta-ant { left: -14px; } .dep-seta-prox { right: -14px; } }
@media (max-width: 900px) { .dep-carrossel .dep-card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 600px) {
  .dep-carrossel .dep-card { flex-basis: 86%; }
  .dep-carrossel { padding-bottom: 56px; }
  .dep-seta { top: auto; bottom: 0; transform: none; width: 42px; height: 42px; }
  .dep-seta-ant { left: calc(50% - 50px); }
  .dep-seta-prox { right: calc(50% - 50px); }
}
.dep-card { margin: 0; background: #fff; border: 1px solid var(--borda); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.dep-estrelas { color: var(--laranja); font-size: 1.15rem; letter-spacing: 2px; }
.dep-estrelas-vazias { color: #D5DCE4; }
.dep-texto { margin: 0; color: #3A4653; font-size: .98rem; line-height: 1.6; white-space: pre-line; }
.dep-autor { color: var(--profundo); font-size: .92rem; }
.dep-autor span { color: var(--texto-suave); }
.dep-acoes { margin-top: 24px; text-align: center; }
.dep-link { color: var(--marinho); font-weight: 600; }

.av-estrelas { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.av-estrelas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av-estrelas label { font-size: 2.2rem; line-height: 1; color: #D5DCE4; cursor: pointer; padding: 2px; }
.av-estrelas input:checked ~ label,
.av-estrelas label:hover, .av-estrelas label:hover ~ label { color: var(--laranja); }
.av-estrelas input:focus-visible + label { outline: 3px solid var(--azul-claro); outline-offset: 2px; border-radius: 6px; }
.lead-form textarea {
  width: 100%; min-height: 140px; padding: 12px 16px; font: inherit; font-size: 17px; color: var(--texto);
  background: #fff; border: 1.5px solid #C5D0DC; border-radius: 12px; resize: vertical;
}
.lead-form textarea:focus { outline: none; border-color: var(--marinho); box-shadow: 0 0 0 3px rgba(66,108,148,.25); }
.av-contador { margin: 0; text-align: right; font-size: .82rem; color: var(--texto-suave); }
.av-armadilha { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Confirmação após envio ---------- */
.lead-sucesso-icone { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #E6F4EA; color: #1E7B3A; font-size: 2rem; font-weight: 700; }
.lead-sucesso-pergunta { margin: 10px 0 0; font-weight: 600; color: var(--profundo); font-size: 1.05rem; }
.lead-sucesso-pergunta[hidden] { display: none; }

/* ---------- /consulta/ — hero, análise e WhatsApp secundário ---------- */
.lp-micro { list-style: none; padding: 0; margin: 20px auto 0; max-width: 560px; display: grid; gap: 8px; justify-items: center; }
.lp-micro li { display: flex; align-items: center; gap: 8px; color: #fff; font-size: .95rem; font-weight: 500; text-align: left; }
.lp-micro svg { width: 18px; height: 18px; flex: none; color: var(--laranja); }

.lp-analise { margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--borda); }
.lp-analise h2 { font-size: 1.2rem; margin: 0 0 12px; }
.lp-analise ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.lp-analise li { display: flex; gap: 10px; align-items: flex-start; color: var(--texto); font-size: .97rem; line-height: 1.45; }
.lp-analise li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--laranja-escuro); }
.lp-analise p { margin: 0; font-size: .85rem; color: var(--texto-suave); }

.lp-whats-secundario { text-align: center; margin: 18px auto 0; max-width: 560px; font-size: .92rem; color: var(--texto-suave); }
.lp-whats-secundario a { color: var(--marinho); font-weight: 600; }

@media (max-width: 600px) {
  .lp-hero { padding: 28px 0 84px; }
  .lp-hero p { font-size: 1rem; }
  .lp-micro { justify-items: start; padding: 0 6px; }
  .lp-micro li { font-size: .9rem; }
  .lp-confianca li { font-size: .82rem; padding: 7px 11px; }
}

/* ---------- Pergunta de idade (3 opções) ---------- */
.lead-opcoes-linha.lead-opcoes-3 { grid-template-columns: repeat(3, 1fr); }
.lead-opcoes-3 .lead-opcao span { font-size: 15px; text-align: center; padding: 6px 8px; line-height: 1.25; }
@media (max-width: 480px) {
  .lead-opcoes-linha.lead-opcoes-3 { grid-template-columns: 1fr; }
  .lead-opcoes-3 .lead-opcao span { min-height: 50px; font-size: 16px; }
}
