/* Estilos para o container do formulário */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden; /* Para conter as animações */
}

.form-container h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.form-container p {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

/* --- BARRA DE PROGRESSO --- */
.form-container .progress-bar {
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-step {
    text-align: center;
    position: relative;
    width: 25%;
}

.progress-step span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    font-weight: bold;
    border: 3px solid #e0e0e0;
    transition: all 0.3s ease;
}

.progress-step p {
    margin-top: 0.5rem;
    color: #a0a0a0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Linha de conexão */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 12.5%;
    width: 75%;
    height: 4px;
    background-color: #e0e0e0;
    z-index: -1;
}

/* Estilo do passo ativo */
.progress-step.active span {
    background-color: #007bff;
    border-color: #007bff;
}

.progress-step.active p {
    color: #007bff;
}

/* --- ETAPAS DO FORMULÁRIO --- */
.form-step {
    display: none; /* Esconde todas as etapas por padrão */
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block; /* Mostra apenas a etapa ativa */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos para os fieldsets */
fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

legend {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    padding: 0 0.5rem;
}

/* Estilos para os grupos de formulário e labels */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

/* Estilos para os inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

input:invalid {
    border-color: #dc3545;
}

input[type="file"] {
    padding: 0.5rem;
}

textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #888;
}

/* --- BOTÕES DE NAVEGAÇÃO E ENVIO --- */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-principal, .btn-secondary, .btn-submit {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-principal {
    background-color: #007bff;
    color: #fff;
}

.btn-principal:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-submit {
    background-color: #28a745;
    color: #fff;
}

.btn-submit:hover {
    background-color: #218838;
}
