/* ==========================================================================
   Fale comigo: botão flutuante, página /contato, mural e comentários
   ========================================================================== */

/* Campo isca dos formulários: fora da tela (gente não vê, robô preenche) */
.fc-isca { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Campos dos formulários */
.fc-form, .recado-form { display: flex; flex-direction: column; gap: 14px; }
.fc-campo { display: flex; flex-direction: column; gap: 5px; }
.fc-campo label { font-weight: 600; font-size: .92rem; }
.fc-campo input, .fc-campo textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.fc-campo input:focus, .fc-campo textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.fc-campo textarea { resize: vertical; min-height: 110px; }
.fc-campo [aria-invalid="true"] { border-color: var(--danger); }
.fc-ajuda { margin: 0; font-size: .82rem; color: var(--muted); }
.fc-form .botao, .recado-form .botao { align-self: flex-start; }
.fc-status { margin: 0; font-size: .92rem; font-weight: 600; min-height: 1.3em; }
.fc-status.ok, .fc-aviso-ok { color: var(--ok, #15803d); }
.fc-status.erro, .fc-aviso-erro { color: var(--danger); }
.fc-aviso { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg-alt); font-weight: 600; }

/* Canais (página /contato e painel flutuante) */
.fc-canais { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fc-canal {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left;
  font: inherit; color: var(--text); text-decoration: none; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, transform .15s;
}
.fc-canal:hover, .fc-canal:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.fc-canal strong { display: block; font-size: .95rem; }
.fc-canal small { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.fc-canal-icone {
  flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; font-size: 1.15rem;
  border-radius: 50%; background: var(--bg-alt);
}

/* Página /contato */
.fc-pagina { max-width: 980px; margin: 0 auto; }
.fc-grade { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.fc-cartao { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.fc-cartao h2 { margin-top: 0; font-size: 1.25rem; }
.fc-mais { margin-top: 28px; color: var(--muted); }
@media (max-width: 760px) { .fc-grade { grid-template-columns: 1fr; } }

/* Botão flutuante e painel */
.fc-flutuante { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 250; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fc-botao {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; color: #fff; background: var(--gradiente, var(--accent));
  box-shadow: 0 10px 28px rgba(20, 10, 60, .28);
  transition: transform .15s, box-shadow .15s;
}
.fc-botao:hover, .fc-botao:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(20, 10, 60, .34); }
.fc-botao[aria-expanded="true"] { transform: none; }
.fc-painel {
  width: min(380px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 110px)); overflow: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg, 0 20px 50px rgba(0, 0, 0, .25)); padding: 16px;
}
.fc-painel[hidden] { display: none; }
.fc-painel-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fc-painel-topo h2 { margin: 0; font-size: 1.15rem; }
.fc-fechar { border: 0; background: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.fc-fechar:hover { color: var(--text); }
.fc-opcoes { display: flex; flex-direction: column; gap: 8px; }
.fc-voltar { border: 0; background: none; color: var(--link); cursor: pointer; padding: 0; margin-bottom: 10px; font: inherit; font-size: .9rem; }
.fc-painel .fc-campo textarea { min-height: 90px; }
@media (max-width: 520px) {
  .fc-botao { padding: 13px 15px; }
  .fc-botao-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media print { .fc-flutuante { display: none; } }

/* Mural e comentários */
.recados { margin-top: clamp(28px, 4vw, 48px); }
.recados h2 { font-size: 1.4rem; }
.recados-conta { color: var(--muted); font-weight: 400; font-size: 1rem; }
.recados-lista { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.recado { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.recado-autor { margin: 0 0 6px; }
.recado-autor time, .recado-selo { color: var(--muted); font-size: .85rem; margin-left: 6px; }
.recado-texto { line-height: 1.6; overflow-wrap: anywhere; }
.recado-resposta { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.recados-vazio { color: var(--muted); }
.recado-convite { margin: 0; font-weight: 700; font-size: 1.05rem; }
.recado-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(16px, 3vw, 24px); }
.vg-recados { max-width: var(--max-text, 760px); margin-left: auto; margin-right: auto; }
