/* Wizard de formulários — identidade D D Cargas Urgentes */
.wizard-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 1.25rem;
    padding: 0 2px;
}

.wizard-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E3D9EE;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wizard-dot.active {
    background: #512773;
}

.wizard-dot.current {
    box-shadow: 0 0 0 4px rgba(81, 39, 115, 0.14);
    transform: scale(1.05);
}

.wizard-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #512773;
    letter-spacing: 0.2px;
}

.wizard-progress {
    height: 6px;
    border-radius: 99px;
    background: #EDE6F4;
    overflow: hidden;
}

.wizard-progress-fill {
    display: block;
    height: 100%;
    width: 33%;
    border-radius: 99px;
    background: linear-gradient(90deg, #512773 0%, #7A3FA0 55%, #FFD700 100%);
    transition: width 0.28s ease;
}

/* Painéis */
.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
    animation: wizardFadeIn 0.24s ease;
}

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

/* Navegação */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid #ECE5F3;
}

.wizard-nav button {
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    min-height: 44px;
}

.wizard-nav button:active {
    transform: translateY(1px);
}

.wizard-nav button[hidden] {
    display: none !important;
}

.wizard-back {
    background: #FFFFFF;
    color: #512773;
    border: 1px solid #D9CFE6 !important;
}

.wizard-back:hover {
    background: #F7F3FB;
}

.wizard-next {
    background: #512773;
    color: #FFFFFF;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(81, 39, 115, 0.18);
}

.wizard-next:hover {
    background: #3D1A58;
}

.wizard-submit {
    background: #FFD700;
    color: #512773;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.28);
}

.wizard-submit:hover {
    background: #F2C800;
}

.wizard-nav button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Erros inline */
.campo-erro {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.wizard-erro {
    display: block;
    margin-top: 4px;
    color: #B91C1C;
    font-size: 0.78rem;
    font-weight: 500;
}

.grupo-erro label {
    color: #B91C1C;
}

@media (max-width: 520px) {
    .wizard-nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .wizard-nav button {
        width: 100%;
        margin-left: 0;
    }
}
