/* ========================================
   FORMULÁRIOS - Estilos e Validações
   ======================================== */

/* Cards de formulários */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Validação de formulários */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.input-group-text {
    background-color: #f8f9fa;
}

/* ========================================
   NAVEGAÇÃO POR ETAPAS (Steps)
   ======================================== */
.steps-navigation {
    margin-bottom: 1.5rem;
}

.step-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-btn:hover {
    color: #0d6efd;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    font-weight: bold;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.step-btn.active .step-number {
    background-color: #0d6efd;
    color: white;
}

.step-btn.completed .step-number {
    background-color: #198754;
    color: white;
}

.step-btn.active {
    color: #0d6efd;
}

.step-btn.completed {
    color: #198754;
}

.step-label {
    font-weight: 500;
    font-size: 0.875rem;
}

.step-divider {
    flex: 1;
    height: 2px;
    background-color: #e9ecef;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

/* ========================================
   ANIMAÇÃO DE ETAPAS
   ======================================== */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.form-step.active {
    display: block;
}

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

/* ========================================
   RESPONSIVIDADE MOBILE
   ======================================== */
@media (max-width: 768px) {
    .step-btn {
        padding: 0.25rem 0.5rem;
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }

    .step-label {
        font-size: 0.625rem;
    }

    .step-divider {
        margin: 0 0.25rem;
    }
}