/* ═══════════════════════════════════════════════════════════════════
   FICOUNT · visual dos formulários do site
   Cores do formulário (skill ficount-formularios): fundo #0C1416,
   perguntas #F9FAF9, respostas #8FB4AF, destaque #4E9A92, campos #13201F.
   Tudo dentro de .fq, para não vazar na capa.
   ═══════════════════════════════════════════════════════════════════ */
.fq{
  --fq-fundo:#0C1416; --fq-campo:#13201F; --fq-perg:#F9FAF9; --fq-resp:#8FB4AF;
  --fq-dest:#4E9A92; --fq-dest-forte:#68B0A8; --fq-ouro:#C29E64; --fq-borda:rgba(143,180,175,.3);
  --fq-erro:#F0B38A;
  position:relative; display:flex; flex-direction:column; height:100%; min-height:0;
  background:
    repeating-linear-gradient(180deg, transparent 0 39px, rgba(143,180,175,.045) 39px 40px),
    radial-gradient(1200px 500px at 110% -10%, rgba(34,105,97,.22), transparent 60%),
    var(--fq-fundo);
  color:var(--fq-perg); font-family:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:17px; line-height:1.55; -webkit-font-smoothing:antialiased; overflow:hidden;
  color-scheme:dark;
}
.fq *{box-sizing:border-box}
.fq a{color:var(--fq-dest-forte)}
.fq-isca{position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0}

/* progresso (fio fino no alto) */
.fq-progresso{position:absolute; top:0; left:0; right:0; height:3px; background:rgba(143,180,175,.12); z-index:3}
.fq-progresso span{display:block; height:100%; width:0; background:linear-gradient(90deg, var(--fq-dest), var(--fq-ouro)); transition:width .5s cubic-bezier(.2,.8,.2,1)}

/* topo */
.fq-topo{display:flex; align-items:center; gap:12px; padding:16px 22px 12px; flex:none; position:relative; z-index:2}
.fq-marca svg{width:22px; height:22px; display:block}
.fq-titulo-form{font-size:13.5px; color:var(--fq-resp); letter-spacing:.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.fq-titulo-form b{color:var(--fq-perg); letter-spacing:.14em; font-weight:600}
.fq-fechar{margin-left:auto; width:40px; height:40px; border-radius:50%; border:1px solid var(--fq-borda); background:transparent;
  color:var(--fq-perg); font-size:24px; line-height:1; cursor:pointer; display:grid; place-items:center; transition:background .15s, transform .15s}
.fq-fechar:hover{background:rgba(143,180,175,.12); transform:rotate(90deg)}

/* palco e cartões */
.fq-palco{flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; position:relative; outline:none; display:grid;
  -webkit-overflow-scrolling:touch; overscroll-behavior:contain}
.fq-cartao{grid-area:1/1; width:100%; max-width:700px; margin:auto; padding:28px 26px 40px; align-self:center}
.fq-entra-baixo{animation:fq-entra-baixo .28s cubic-bezier(.2,.8,.2,1) both}
.fq-entra-cima{animation:fq-entra-cima .28s cubic-bezier(.2,.8,.2,1) both}
.fq-sai-cima{animation:fq-sai-cima .2s ease both; pointer-events:none}
.fq-sai-baixo{animation:fq-sai-baixo .2s ease both; pointer-events:none}
@keyframes fq-entra-baixo{from{opacity:0; transform:translateY(28px)} to{opacity:1; transform:none}}
@keyframes fq-entra-cima{from{opacity:0; transform:translateY(-28px)} to{opacity:1; transform:none}}
@keyframes fq-sai-cima{to{opacity:0; transform:translateY(-54px)}}
@keyframes fq-sai-baixo{to{opacity:0; transform:translateY(54px)}}

.fq-kicker{font-size:12.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--fq-ouro); margin:0 0 14px}
.fq-h1{font-family:'Jost','IBM Plex Sans',sans-serif; font-weight:600; font-size:clamp(30px,5vw,44px); line-height:1.1; letter-spacing:-.015em; margin:0 0 18px; color:#FCFCFC}
.fq-pergunta{font-weight:500; font-size:clamp(21px,3vw,27px); line-height:1.32; margin:0 0 10px; color:var(--fq-perg); letter-spacing:-.005em}
.fq-obrig{color:var(--fq-ouro)}
.fq-desc{color:var(--fq-resp); font-size:16px; margin:0 0 22px; max-width:60ch}
.fq-texto{color:var(--fq-resp); font-size:17px; max-width:60ch}
.fq-texto p{margin:0 0 12px}
.fq-texto b{color:var(--fq-perg)}
.fq-miudo{font-size:13px; color:rgba(143,180,175,.8); margin:18px 0 0}
.fq-texto .fq-miudo{margin-top:18px}
.fq-campo{margin-top:22px}
.fq-desc + .fq-campo{margin-top:0}

/* campos de texto */
.fq-input{width:100%; background:transparent; border:0; border-bottom:2px solid var(--fq-borda); color:var(--fq-perg);
  font:inherit; font-size:clamp(19px,2.6vw,24px); padding:8px 0 10px; border-radius:0; outline:none; transition:border-color .2s}
.fq-input::placeholder{color:rgba(143,180,175,.45)}
.fq-input:focus{border-bottom-color:var(--fq-dest-forte)}
.fq-longo{resize:none; min-height:84px; line-height:1.45}
.fq-select{font-size:16px; padding:10px 0; background:var(--fq-fundo); cursor:pointer}
.fq-select option{background:var(--fq-fundo); color:var(--fq-perg)}
.fq-dica-longo{display:block; margin-top:8px}

/* opções (A, B, C…) */
.fq-ops{display:flex; flex-direction:column; gap:9px; max-width:560px}
.fq-op{display:flex; align-items:center; gap:12px; width:100%; text-align:left; cursor:pointer;
  background:rgba(78,154,146,.08); border:1px solid var(--fq-borda); border-radius:9px; color:var(--fq-perg);
  font:inherit; font-size:16.5px; line-height:1.35; padding:11px 14px; transition:background .15s, border-color .15s, transform .12s}
.fq-op:hover{background:rgba(78,154,146,.17); border-color:rgba(143,180,175,.55)}
.fq-op:active{transform:scale(.99)}
.fq-op:focus-visible{outline:2px solid var(--fq-ouro); outline-offset:2px}
.fq-tecla{flex:none; width:25px; height:25px; border-radius:5px; border:1px solid var(--fq-borda); display:grid; place-items:center;
  font-size:12px; font-weight:600; color:var(--fq-resp); background:rgba(12,20,22,.4)}
.fq-op-texto{flex:1}
.fq-op-v{flex:none; opacity:0; color:var(--fq-dest-forte); font-weight:700; transition:opacity .15s}
.fq-op-sel{background:rgba(78,154,146,.26); border-color:var(--fq-dest-forte)}
.fq-op-sel .fq-tecla{background:var(--fq-dest); border-color:var(--fq-dest); color:#0C1416}
.fq-op-sel .fq-op-v{opacity:1}
.fq-pisca{animation:fq-pisca .32s ease}
@keyframes fq-pisca{0%,100%{background:rgba(78,154,146,.26)} 35%{background:rgba(78,154,146,.05)} 70%{background:rgba(78,154,146,.36)}}
.fq-outro{margin-top:12px; max-width:560px}
.fq-input-outro{font-size:18px}
.fq-comentario{font-size:17px}
.fq-rotulo-miudo{display:block; font-size:12.5px; letter-spacing:.04em; color:var(--fq-resp); margin-bottom:2px}

/* aceite */
.fq-aceite{align-items:flex-start; max-width:600px}
.fq-caixa{flex:none; width:24px; height:24px; border-radius:5px; border:1.5px solid var(--fq-resp); display:grid; place-items:center;
  color:transparent; font-size:15px; font-weight:700; margin-top:1px; transition:background .15s, color .15s}
.fq-op-sel .fq-caixa{background:var(--fq-dest); border-color:var(--fq-dest); color:#0C1416}
.fq-link{color:var(--fq-dest-forte); text-decoration:underline; text-underline-offset:3px}

/* ações */
.fq-acoes{display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-top:26px}
.fq-ok{display:inline-flex; align-items:center; gap:9px; background:var(--fq-dest); color:#0C1416; border:1px solid var(--fq-dest);
  font:inherit; font-weight:600; font-size:16.5px; padding:10px 20px; border-radius:8px; cursor:pointer; text-decoration:none !important;
  transition:background .15s, transform .12s, box-shadow .2s}
.fq-ok:hover{background:var(--fq-dest-forte); box-shadow:0 10px 26px -14px rgba(78,154,146,.9)}
.fq-ok:active{transform:translateY(1px)}
.fq-ok:focus-visible{outline:2px solid var(--fq-ouro); outline-offset:3px}
.fq-ok:disabled{opacity:.6; cursor:wait}
.fq-ok-grande{font-size:18px; padding:14px 26px}
.fq-ok-linha{background:transparent; color:var(--fq-perg); border-color:var(--fq-borda)}
.fq-ok-linha:hover{background:rgba(143,180,175,.1); box-shadow:none}
.fq-zap{background:#1FA855; border-color:#1FA855; color:#fff}
.fq-zap:hover{background:#1C9A4E}
.fq-seta{transition:transform .2s}
.fq-ok:hover .fq-seta{transform:translateX(4px)}
.fq-dica{font-size:13px; color:rgba(143,180,175,.75)}
.fq-dica b{color:var(--fq-resp); font-weight:600}
.fq-carregando{position:relative; color:transparent !important}
.fq-carregando::after{content:''; position:absolute; left:50%; top:50%; width:18px; height:18px; margin:-9px 0 0 -9px;
  border:2px solid #0C1416; border-right-color:transparent; border-radius:50%; animation:fq-gira .7s linear infinite}
@keyframes fq-gira{to{transform:rotate(360deg)}}

/* erro */
.fq-erro{display:inline-flex; gap:8px; align-items:flex-start; margin:16px 0 0; padding:8px 12px; border-radius:7px;
  background:rgba(240,179,138,.1); color:var(--fq-erro); font-size:14.5px; max-width:60ch}
.fq-erro[hidden]{display:none}
.fq-erro::before{content:'!'; flex:none; width:18px; height:18px; border-radius:50%; background:var(--fq-erro); color:#0C1416;
  font-weight:700; font-size:12px; display:grid; place-items:center; margin-top:1px}
.fq-erro a{color:var(--fq-perg)}
.fq-treme{animation:fq-treme .36s ease}
@keyframes fq-treme{20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)}}

/* tabela (sócios) e endereço */
.fq-linha{border:1px solid var(--fq-borda); border-radius:10px; padding:12px 14px 16px; margin-bottom:12px; background:rgba(19,32,31,.6)}
.fq-linha-topo{display:flex; justify-content:space-between; align-items:center; margin-bottom:4px}
.fq-linha-n{font-size:12.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--fq-ouro)}
.fq-grade{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px 18px}
.fq-celula{display:block}
.fq-celula .fq-input{font-size:17px; padding:6px 0 8px}
.fq-remover{background:none; border:0; color:var(--fq-resp); font:inherit; font-size:13.5px; cursor:pointer; text-decoration:underline; text-underline-offset:3px; padding:4px 0}
.fq-remover:hover{color:var(--fq-perg)}
.fq-mais{margin-top:2px; font-size:15px}

/* assinatura */
.fq-assinatura{display:block; width:100%; max-width:640px; aspect-ratio:640/220; background:var(--fq-campo);
  border:1.5px dashed var(--fq-borda); border-radius:10px; touch-action:none; cursor:crosshair}

/* folha de termos */
.fq-folha{position:absolute; inset:0; z-index:5; background:rgba(12,20,22,.72); display:flex; align-items:flex-end; justify-content:center;
  animation:fq-fade .2s ease both}
.fq-folha-painel{width:100%; max-width:760px; max-height:88%; display:flex; flex-direction:column; background:#F9FAF9; color:#0C1416;
  border-radius:14px 14px 0 0; box-shadow:0 -20px 50px -20px rgba(0,0,0,.6); animation:fq-sobe .32s cubic-bezier(.2,.8,.2,1) both}
.fq-folha-texto{overflow-y:auto; padding:26px 28px 8px; font-size:15px; line-height:1.6}
.fq-folha-texto p{margin:0 0 12px}
.fq-folha-texto ol{padding-left:22px; margin:0 0 12px}
.fq-folha-texto li{margin-bottom:8px}
.fq-folha-acoes{display:flex; gap:12px; padding:14px 28px 20px; border-top:1px solid #D5DFDC}
.fq-folha-acoes .fq-ok{background:#226961; border-color:#226961; color:#fff}
.fq-folha-acoes .fq-ok-linha{background:transparent; color:#0C1416; border-color:#B9C8C4}
@keyframes fq-fade{from{opacity:0}}
@keyframes fq-sobe{from{transform:translateY(40px); opacity:0}}

/* rodapé */
.fq-rodape{flex:none; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 18px 14px; position:relative; z-index:2}
.fq-rodape[hidden]{display:none}
.fq-crc{font-size:11.5px; letter-spacing:.06em; color:rgba(143,180,175,.6)}
.fq-navs{display:flex; align-items:center; gap:6px}
.fq-contador{font-size:13px; color:var(--fq-resp); margin-right:8px; font-variant-numeric:tabular-nums}
.fq-nav{width:36px; height:34px; border:0; border-radius:7px; background:var(--fq-dest); color:#0C1416; font-size:17px; font-weight:700; cursor:pointer;
  display:grid; place-items:center; transition:background .15s}
.fq-nav:hover{background:var(--fq-dest-forte)}
.fq-nav:disabled{opacity:.3; cursor:default}

/* tela final */
.fq-fim{text-align:left}
.fq-selo-ok svg{width:64px; height:64px; margin-bottom:18px}
.fq-selo-ok circle{fill:none; stroke:var(--fq-dest); stroke-width:3; stroke-dasharray:183; stroke-dashoffset:183; animation:fq-traca .7s .1s ease forwards}
.fq-selo-ok path{fill:none; stroke:var(--fq-ouro); stroke-width:4; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:44; stroke-dashoffset:44; animation:fq-traca .4s .65s ease forwards}
@keyframes fq-traca{to{stroke-dashoffset:0}}

/* página própria (/irpf/, /proposta/) */
html.fq-pagina-html, body.fq-pagina{margin:0; height:100%; background:#0C1416}
body.fq-pagina [data-formulario]{height:100vh; height:100dvh}
body.fq-pagina .fq-sem-script{max-width:640px; margin:0 auto; padding:60px 24px; color:#E6EDEB; font-family:'IBM Plex Sans',sans-serif}

/* pop-up na capa */
html.fq-travado{overflow:hidden}
.fq-modal{position:fixed; inset:0; z-index:200; background:rgba(12,20,22,.62); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  display:flex; align-items:center; justify-content:center; padding:24px}
.fq-modal-caixa{width:min(880px,100%); height:min(700px,92vh); border-radius:16px; overflow:hidden;
  box-shadow:0 40px 90px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(143,180,175,.16)}
.fq-modal-in{animation:fq-fade .22s ease both}
.fq-modal-in .fq-modal-caixa{animation:fq-cresce .34s cubic-bezier(.2,.8,.2,1) both}
@keyframes fq-cresce{from{transform:translateY(18px) scale(.975); opacity:0}}

@media (max-width:820px){
  .fq-modal{padding:0}
  .fq-modal-caixa{width:100%; height:100%; height:100dvh; border-radius:0}
}
@media (max-width:560px){
  .fq{font-size:16px}
  .fq-topo{padding:14px 16px 10px}
  .fq-cartao{padding:18px 18px 34px; align-self:start}
  .fq-grade{grid-template-columns:1fr}
  .fq-crc{display:none}
  .fq-rodape{justify-content:flex-end}
  .fq-folha-texto{padding:22px 20px 8px}
  .fq-folha-acoes{padding:12px 20px 18px}
}
@media (prefers-reduced-motion: reduce){
  .fq *, .fq-modal, .fq-modal *{animation:none !important; transition:none !important}
  .fq-selo-ok circle, .fq-selo-ok path{stroke-dashoffset:0}
}

/* links com cara de botão: a cor do link comum não pode vencer */
.fq a.fq-ok{color:#0C1416}
.fq a.fq-ok-linha{color:var(--fq-perg)}
.fq a.fq-zap{color:#fff}

/* soma das participações dos sócios */
/* a soma fica presa ao pé da tela enquanto a tabela rola: é o que a pessoa
   precisa ver quando digita o percentual */
.fq-soma{position:sticky; bottom:0; z-index:1; margin:0 0 10px; padding:16px 0 10px; font-size:14.5px; color:var(--fq-resp);
  font-variant-numeric:tabular-nums; background:linear-gradient(180deg, rgba(12,20,22,0), #0C1416 38%)}
.fq-soma-ok{color:var(--fq-dest-forte)}
.fq-soma-parcial{color:var(--fq-ouro)}
.fq-soma-erro{color:var(--fq-erro); font-weight:600}
.fq-mais:disabled{opacity:.45; cursor:not-allowed}

/* tela final: pedir para outra empresa */
.fq-repetir{margin-top:22px; padding:16px 18px; border:1px dashed var(--fq-borda); border-radius:10px; max-width:60ch}
.fq-repetir .fq-texto{margin:0 0 12px; font-size:15.5px}

/* toque sem espera de zoom; o botão reage na hora */
.fq button, .fq a, .fq label{touch-action:manipulation}
