/* EFEITO DO FORMULÁRIO (teste de 2026-10-09) — adaptado do componente "sign-in-card-2" do 21st.dev.
   Cartão de vidro marfim, inclinação 3D leve seguindo o mouse, feixes de luz dourada percorrendo a borda,
   ícones nos campos e brilho no botão. Para reverter: remover as 2 linhas marcadas "EFEITO FORM" no index.html. */

form.lead.fx-card {
  position: relative; isolation: isolate;
  padding: 24px; margin: 0 -24px; width: calc(var(--coluna) + 48px); max-width: calc(100% + 48px);
  border-radius: 18px;
  background: rgba(26,26,29,.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(181,156,108,.38);
  box-shadow: 0 30px 60px -32px rgba(90, 66, 34, .32), inset 0 1px 0 rgba(255, 255, 255, .7);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s;
  will-change: transform;
}
form.lead.fx-card.is-hover { transition-duration: .12s, .5s; box-shadow: 0 38px 70px -32px rgba(90, 66, 34, .38), inset 0 1px 0 rgba(255, 255, 255, .7); }

/* textura interna discreta (diagonais finas, como no original) */
form.lead.fx-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: .05;
  background-image: linear-gradient(135deg, #B59C6C .5px, transparent .5px), linear-gradient(45deg, #B59C6C .5px, transparent .5px); background-size: 30px 30px; }

/* feixes de luz dourada percorrendo a borda */
.fx-borda { position: absolute; inset: -1px; border-radius: 18px; overflow: hidden; pointer-events: none; z-index: 2; }
.fx-feixe { position: absolute; opacity: 0; filter: blur(1.5px); }
.fx-feixe.t, .fx-feixe.b { height: 2px; width: 45%; background: linear-gradient(90deg, transparent, #C9A66B, transparent); }
.fx-feixe.r, .fx-feixe.l { width: 2px; height: 45%; background: linear-gradient(180deg, transparent, #C9A66B, transparent); }
.fx-feixe.t { top: 0; animation: fx-t 3.6s ease-in-out infinite 0s; }
.fx-feixe.r { right: 0; animation: fx-r 3.6s ease-in-out infinite .9s; }
.fx-feixe.b { bottom: 0; animation: fx-b 3.6s ease-in-out infinite 1.8s; }
.fx-feixe.l { left: 0; animation: fx-l 3.6s ease-in-out infinite 2.7s; }
@keyframes fx-t { 0% { left: -45%; opacity: 0; } 15%, 70% { opacity: .9; } 100% { left: 100%; opacity: 0; } }
@keyframes fx-r { 0% { top: -45%; opacity: 0; } 15%, 70% { opacity: .9; } 100% { top: 100%; opacity: 0; } }
@keyframes fx-b { 0% { right: -45%; opacity: 0; } 15%, 70% { opacity: .9; } 100% { right: 100%; opacity: 0; } }
@keyframes fx-l { 0% { bottom: -45%; opacity: 0; } 15%, 70% { opacity: .9; } 100% { bottom: 100%; opacity: 0; } }
.fx-canto { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #D9BF8C; filter: blur(1.5px); animation: fx-pisca 2.4s ease-in-out infinite alternate; }
.fx-canto:nth-of-type(5) { top: 0; left: 0; } .fx-canto:nth-of-type(6) { top: 0; right: 0; animation-delay: .5s; }
.fx-canto:nth-of-type(7) { bottom: 0; right: 0; animation-delay: 1s; } .fx-canto:nth-of-type(8) { bottom: 0; left: 0; animation-delay: 1.5s; }
@keyframes fx-pisca { from { opacity: .25; } to { opacity: .7; } }

/* campos: ícone à esquerda, leve aproximação no foco, rótulo escurece */
form.lead.fx-card .field { position: relative; }
form.lead.fx-card .field input, form.lead.fx-card .field select { padding-left: 44px; background-color: rgba(255, 255, 255, .72); border-color: rgba(181,156,108,.28); transition: background-color .25s, border-color .25s, box-shadow .25s, transform .3s cubic-bezier(.22, .61, .36, 1); }
form.lead.fx-card .field input:hover, form.lead.fx-card .field select:hover { background-color: rgba(255, 255, 255, .9); transform: scale(1.006); }
form.lead.fx-card .field input:focus, form.lead.fx-card .field select:focus { background-color: #26262A; transform: scale(1.012); }
.fx-ico { position: absolute; left: 15px; bottom: 15px; width: 18px; height: 18px; color: #8F7A52; pointer-events: none; transition: color .25s; }
form.lead.fx-card .field:focus-within .fx-ico { color: #B59C6C; }
form.lead.fx-card .field:focus-within label { color: #B59C6C; }

/* botão: brilho atravessando no hover + seta que avança */
form.lead.fx-card .btn-submit { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background-color .2s, transform .2s, box-shadow .3s; }
form.lead.fx-card .btn-submit::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0)); }
form.lead.fx-card .btn-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(110, 90, 50, .55); }
form.lead.fx-card .btn-submit:hover::after { transition: transform .9s ease; transform: translateX(100%); }
form.lead.fx-card .btn-submit:active { transform: scale(.985); }
.fx-seta { width: 15px; height: 15px; transition: transform .3s; }
form.lead.fx-card .btn-submit:hover .fx-seta { transform: translateX(4px); }

@media (max-width: 1200px) and (min-width: 861px) {
  form.lead.fx-card { padding: 20px 16px; margin: 0 -12px; width: calc(100% + 24px); max-width: none; }
}
@media (max-width: 860px) {
  form.lead.fx-card { padding: 18px 16px; margin: 0 -8px; width: calc(100% + 16px); max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  form.lead.fx-card { transform: none !important; }
  .fx-feixe, .fx-canto { animation: none; opacity: 0; }
}
