.custom-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
    width: 90%;
    max-width: 1400px;
    position: relative;
    padding: 0 20px;
}

/* Linha de fundo da barra de progresso */
.custom-progress-bar::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 1;
    transform: translateY(-50%);
}

/* Preenchimento da barra de progresso */
.custom-progress-fill {
    position: absolute;
    top: 25%;
    left: 0;
    height: 4px;
    background-color: #dc743f;
    z-index: 2;
    transform: translateY(-50%);
    transition: width 0.5s ease-in-out;
}

/* Estilo dos passos */
.custom-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    color: #666;
    font-size: 14px;
    transition: all 0.4s ease;
    min-width: 80px;
}

/* Círculo dos passos */
.custom-step::before {
    content: attr(data-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    color: #999;
    font-weight: 500;
    margin-bottom: 8px;
    transition: all 0.4s ease;
    z-index: 4;
}

/* Estilo para passos ativos */
.custom-step.active {
    color: #dc743f;
    font-weight: 600;
}

.custom-step.active::before {
    background-color: #dc743f;
    color: white;
    border-color: #dc743f;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(220, 116, 63, 0.2);
}

@media (max-width: 768px) {
    .custom-progress-bar {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 20px;
    }
    .custom-progress-bar::before,
    .custom-progress-fill {
        width: 4px;
        height: 100%;
        left: 19px;
        top: 0;
        transform: none;
    }
    
    .custom-step {
        flex-direction: row;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .custom-step::before {
        margin-bottom: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .custom-progress-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colunas de largura igual */
    gap: 8px; /* espaçamento entre os itens */
    padding-bottom: 10px;
}
.form-side{
    padding: 12px;

}
    
    .custom-progress-bar::before,
    .custom-progress-fill {
        top: 15px;
        height: 4px;
        width: 100%;
        left: 0;
        transform: none;
        display: none;
    }
    
    .custom-step {
        flex-direction: column;
        min-width: 60px;
        font-size: 12px;
    }
    
    .custom-step::before {
        margin-right: 0;
        margin-bottom: 5px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}
 @media (max-width: 480px) {
    
    /* Ajustes adicionais para telas muito pequenas */
    .custom-progress-bar {
        gap: 4px;
    }
 }