/**
 * Formulário de qualificação (modal) — estilos de `qualificacao.js`.
 *
 * Morava em `projetos.css`, de quando o formulário existia só em
 * /projetos/. Hoje ele roda no site inteiro, incluindo as páginas de
 * /projetos/ e /weg/, que são autocontidas (CSS inline, sem global.css).
 * Por isso todo `var()` aqui tem valor de reserva: o arquivo precisa
 * funcionar sozinho.
 */

.qf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    animation: qf-surge 0.25s ease;
}

@keyframes qf-surge {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qf-caixa {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 0 0 30px;
    text-align: left;
}

.qf-fechar {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
}

.qf-fechar:hover {
    color: #222;
    background: #f2f2f2;
}

.qf-barra {
    height: 4px;
    background: #eceff1;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.qf-barra-progresso {
    height: 100%;
    width: 0;
    background: var(--primary-color, #D10404);
    transition: width 0.35s ease;
}

.qf-conteudo {
    padding: 34px 34px 0;
}

.qf-contador {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--primary-color, #D10404);
    margin-bottom: 10px;
}

.qf-titulo {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #16181C;
}

.qf-ajuda {
    font-size: 0.94rem;
    color: #666;
    margin-bottom: 22px;
    line-height: 1.6;
}

.qf-opcoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.qf-opcao {
    text-align: left;
    background: #fff;
    border: 2px solid #e3e7ea;
    border-radius: 10px;
    padding: 15px 18px;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    color: #16181C;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.qf-opcao:hover,
.qf-opcao:focus-visible {
    border-color: var(--primary-color, #D10404);
    background: #fff7f7;
    outline: none;
}

.qf-voltar {
    background: none;
    border: none;
    color: #777;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    margin-top: 20px;
    padding: 6px 0;
}

.qf-voltar:hover {
    color: var(--primary-color, #D10404);
}

.qf-resumo {
    list-style: none;
    padding: 18px;
    margin: 20px 0 24px;
    background: #f6f8f9;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.8;
    color: #16181C;
}

.qf-enviar {
    display: block;
    text-align: center;
    background: var(--whatsapp-green, #25D366);
    color: #fff;
    padding: 16px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.qf-enviar:hover {
    background: var(--whatsapp-hover, #1da851);
}

/* Botão da tela de "fora de alcance": deliberadamente neutro, não verde
   de conversão. A pessoa pode falar mesmo assim, mas não estamos
   convidando — e esse clique não dispara conversão nenhuma. */
.qf-enviar.qf-enviar-neutro {
    background: #6b7280;
}

.qf-enviar.qf-enviar-neutro:hover {
    background: #4b5563;
}

@media (max-width: 600px) {
    .qf-conteudo { padding: 28px 22px 0; }
    .qf-titulo { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .qf-overlay { animation: none; }
    .qf-barra-progresso { transition: none; }
}
