/* --- GERAL --- */
:root { --cor-primaria: #fcd036; --cor-primaria-hover: #e4bb31; --cor-texto: #1a1a1a; --cor-texto-claro: #6c757d; }
body { font-family: 'Poppins', sans-serif; background-color: #f0f2f5; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }

/* --- CONTAINER PRINCIPAL --- */
.form-container { background-color: #fff; padding: 30px 40px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); width: 100%; max-width: 700px; }
.form-header { text-align: center; margin-bottom: 30px; }
.form-header h2 { font-size: 1.8em; }

/* --- BARRA DE PROGRESSO --- */
.progress-bar { display: flex; justify-content: space-between; margin-bottom: 30px; }
.step { text-align: center; position: relative; width: 100%; }
.step p { font-size: 0.8em; color: var(--cor-texto-claro); margin-top: 5px; }
.step-icon { width: 40px; height: 40px; background-color: #e0e0e0; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-weight: 500; margin: 0 auto; transition: all 0.3s ease; }
.step.active .step-icon { background-color: var(--cor-primaria); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 20px; left: 50%; width: 100%; height: 2px; background-color: #e0e0e0; z-index: -1; }
.step.active:not(:last-child)::after { background-color: var(--cor-primaria); }

/* --- ETAPAS DO FORMULÁRIO --- */
.form-step { display: none; animation: fadeIn 0.5s; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 1em; }
.form-group input.invalid { border-color: #dc3545; }

/* --- BOTÕES DE NAVEGAÇÃO --- */
.form-navigation { margin-top: 30px; display: flex; justify-content: space-between; }
.form-navigation button { padding: 12px 30px; border: none; border-radius: 8px; font-size: 1em; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
#prevBtn { background-color: #e0e0e0; }
#nextBtn { background-color: var(--cor-primaria); color: var(--cor-texto); }
#prevBtn:hover { background-color: #ccc; }
#nextBtn:hover { background-color: var(--cor-primaria-hover); }

/* --- RESPONSIVIDADE --- */
@media (max-width: 600px) {
    .form-container { padding: 20px; }
    .step p { display: none; } /* Esconde o texto dos passos em telas pequenas */
}
/* --- Estilo para Avisos/Alertas --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert-error a {
    color: #721c24;
    font-weight: 700;
    text-decoration: underline;
}