/* ==========================================================================
   Formulário de contato — layout "Institutional Clean"
   Usa a mesma paleta e a mesma tipografia do restante do site.
   ========================================================================== */

.sec-form-contato {
  padding: 70px 0 90px;
  background: var(--branco);
}

.fc-colunas {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 44px;
  align-items: start;
}

/* ---------- Bloco principal ---------- */
.fc-bloco {
  border: 1px solid #dce9f9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--branco);
}

.fc-bloco-topo {
  background: var(--azul-hero, #1b5da8);
  color: var(--branco);
  padding: 20px 26px;
}

.fc-bloco-topo h2 {
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 3px;
  color: var(--branco);
}

.fc-bloco-topo p {
  font-family: var(--f-form, var(--f-corpo));
  font-weight: 300;
  font-size: 13.5px;
  line-height: 20px;
  margin: 0;
  color: #d8e6f9;
}

.fc-corpo { padding: 30px 26px 26px; }

.fc-secao {
  font-family: var(--f-form, var(--f-corpo));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--azul-hero, #1b5da8);
  border-bottom: 1px solid #dce9f9;
  padding-bottom: 9px;
  margin: 8px 0 20px;
}

.fc-secao .fc-opcional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #6b7a8d;
}

.fc-grade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}

.fc-largo { grid-column: 1 / -1; }

/* ---------- Campos ---------- */
.fc-campo { position: relative; margin-bottom: 20px; }

.fc-rotulo {
  display: block;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 14px;
  font-weight: 500;
  color: var(--escuro);
  margin-bottom: 7px;
}

.fc-obrig { color: var(--azul); font-weight: 700; margin-left: 2px; }

.fc-controle {
  width: 100%;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 16px;
  font-weight: 400;
  color: #16233a;
  background: var(--branco);
  border: 1.5px solid #dce9f9;
  border-radius: 10px;
  padding: 15px 16px;
  min-height: 54px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

textarea.fc-controle { min-height: 150px; resize: vertical; line-height: 24px; }

select.fc-controle {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b8eed'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 22px;
  padding-right: 46px;
}

.fc-controle::placeholder { color: #9aa8b8; }
.fc-controle:hover { border-color: #b9d3f2; }

.fc-controle:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(59, 142, 237, .18);
}

.fc-controle:disabled { background: #f2f5f9; color: #8c98a8; cursor: not-allowed; }

.fc-dica {
  display: block;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 12.5px;
  line-height: 19px;
  color: #6b7a8d;
  margin-top: 6px;
}

/* estado de erro */
.fc-campo.erro .fc-controle { border-color: #d93025; background: #fff7f6; }
.fc-campo.erro .fc-controle:focus { box-shadow: 0 0 0 4px rgba(217, 48, 37, .15); }

.fc-erro {
  display: none;
  align-items: center;
  gap: 7px;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: #d93025;
  margin-top: 7px;
}

.fc-campo.erro .fc-erro { display: flex; animation: fc-tremer .32s ease; }
.fc-erro svg { width: 16px; height: 16px; flex: none; fill: #d93025; }

@keyframes fc-tremer {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* estado válido */
.fc-campo.ok .fc-controle { border-color: #a9dfc2; }

.fc-ok-marca {
  position: absolute;
  right: 15px;
  bottom: 16px;
  width: 20px;
  height: 20px;
  fill: #1e9e5a;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}

.fc-campo.ok .fc-ok-marca { opacity: 1; transform: scale(1); }

/* ---------- Tratamentos ---------- */
.fc-fieldset { border: 0; padding: 0; margin: 0 0 20px; }

.fc-lista-trat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2px;
}

.fc-lista-trat label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 14px;
  line-height: 20px;
  color: #3f4c5e;
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .18s;
}

.fc-lista-trat label:hover { background: #f6f9fd; }
.fc-lista-trat input { accent-color: var(--azul); width: 18px; height: 18px; flex: none; }

/* ---------- Consentimento ---------- */
.fc-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 13.5px;
  line-height: 21px;
  color: #48576b;
  cursor: pointer;
}

.fc-consent input { margin-top: 3px; width: 19px; height: 19px; accent-color: var(--azul); flex: none; }
.fc-campo.erro .fc-consent { color: #8c1d16; }

/* ---------- Armadilha para robô ---------- */
.fc-armadilha {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Botão ---------- */
.fc-rodape {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #dce9f9;
}

.fc-aviso-lgpd { font-family: var(--f-form, var(--f-corpo)); font-size: 13px; color: #6b7a8d; }

.fc-botao {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 16.5px;
  font-weight: 500;
  color: var(--branco);
  background: var(--azul);
  border: 0;
  border-radius: 10px;
  padding: 16px 34px;
  min-height: 56px;
  cursor: pointer;
  transition: background-color .2s, transform .18s, box-shadow .22s;
}

.fc-botao:hover { background: var(--azul-escuro); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(59, 142, 237, .34); }
.fc-botao:active { transform: translateY(0); }
.fc-botao:focus-visible { outline: 3px solid #9cc7f6; outline-offset: 3px; }
.fc-botao[disabled] { opacity: .72; cursor: progress; transform: none; box-shadow: none; }

.fc-rodinha {
  width: 19px;
  height: 19px;
  border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: fc-girar .7s linear infinite;
}

.fc-botao.enviando .fc-rodinha { display: block; }

@keyframes fc-girar { to { transform: rotate(360deg); } }

/* ---------- Aviso geral ---------- */
.fc-alerta {
  display: none;
  gap: 12px;
  align-items: flex-start;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 14px;
  line-height: 21px;
}

.fc-alerta.visivel { display: flex; animation: fc-surgir .3s ease; }
.fc-alerta svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

.fc-alerta-erro {
  background: #fdecea;
  border: 1px solid #f5c6c2;
  border-left: 4px solid #d93025;
  color: #8c1d16;
}

.fc-alerta-erro svg { fill: #d93025; }

@keyframes fc-surgir {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sucesso ---------- */
.fc-sucesso { display: none; text-align: center; padding: 46px 24px 40px; }
.fc-sucesso.visivel { display: block; animation: fc-surgir .4s ease; }

.fc-circulo {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(30, 158, 90, .10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-circulo svg { width: 46px; height: 46px; }

.fc-circulo circle {
  fill: none;
  stroke: #1e9e5a;
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: fc-tracar .6s .1s ease forwards;
}

.fc-circulo path {
  fill: none;
  stroke: #1e9e5a;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: fc-tracar .35s .55s ease forwards;
}

@keyframes fc-tracar { to { stroke-dashoffset: 0; } }

.fc-sucesso h2 {
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--escuro);
  margin: 0 0 10px;
}

.fc-sucesso p {
  font-family: var(--f-form, var(--f-corpo));
  font-size: 15.5px;
  line-height: 25px;
  color: #48576b;
  margin: 0 auto 22px;
  max-width: 460px;
}

.fc-botao-2 { background: transparent; color: var(--azul); border: 1.5px solid var(--azul); }
.fc-botao-2:hover { background: var(--azul); color: var(--branco); }

/* ---------- Coluna lateral ---------- */
.fc-lateral .fc-caixa {
  border: 1px solid #dce9f9;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 18px;
  background: #f6f9fd;
}

.fc-lateral h3 {
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--escuro);
  margin: 0 0 12px;
}

.fc-lateral p { font-family: var(--f-form, var(--f-corpo)); font-size: 14px; line-height: 23px; color: #425062; margin: 0 0 10px; }
.fc-lateral ul { list-style: none; margin: 0; padding: 0; }

.fc-lateral li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--f-form, var(--f-corpo));
  font-size: 14px;
  line-height: 23px;
  color: #425062;
  margin-bottom: 12px;
}

.fc-lateral li svg { width: 18px; height: 18px; flex: none; fill: var(--azul); margin-top: 3px; }

.fc-zap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: var(--branco);
  text-decoration: none;
  font-family: var(--f-form, var(--f-corpo));
  font-weight: 500;
  font-size: 15px;
  padding: 14px;
  border-radius: 10px;
  transition: transform .18s, box-shadow .2s, filter .2s;
}

.fc-zap:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37, 211, 102, .4); filter: brightness(1.05); }
.fc-zap svg { width: 20px; height: 20px; fill: var(--branco); }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .fc-colunas { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .sec-form-contato { padding: 44px 0 60px; }
  .fc-grade { grid-template-columns: 1fr; }
  .fc-corpo { padding: 24px 18px 22px; }
  .fc-bloco-topo { padding: 18px 18px; }
  .fc-rodape { flex-direction: column-reverse; align-items: stretch; }
  .fc-botao { width: 100%; }
  .fc-aviso-lgpd { text-align: center; }
}

/* ---------- Quem prefere menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .fc-erro, .fc-alerta, .fc-sucesso, .fc-circulo circle, .fc-circulo path, .fc-rodinha { animation: none !important; }
  .fc-botao, .fc-zap, .fc-controle { transition: none !important; }
  .fc-circulo circle, .fc-circulo path { stroke-dashoffset: 0; }
}
