/**
 * Wizard Navigation - Step-by-step wizard
 */

.ngfb-nav-wizard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.ngfb-nav-wizard::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--ngfb-form-primary, rgba(168, 85, 247, 0.3));
    z-index: 0;
    border-radius: 2px;
    box-shadow: var(--ngfb-form-shadow, 0 1px 3px rgba(0, 0, 0, 0.1));
    opacity: 0.5;
}

.ngfb-nav-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: wizardStepFadeIn 0.5s ease-out backwards;
}

.ngfb-nav-wizard-step:nth-child(1) { animation-delay: 0.1s; }
.ngfb-nav-wizard-step:nth-child(2) { animation-delay: 0.2s; }
.ngfb-nav-wizard-step:nth-child(3) { animation-delay: 0.3s; }
.ngfb-nav-wizard-step:nth-child(4) { animation-delay: 0.4s; }
.ngfb-nav-wizard-step:nth-child(5) { animation-delay: 0.5s; }

@keyframes wizardStepFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ngfb-nav-wizard-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid var(--ngfb-form-primary, #A855F7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--ngfb-form-text, #1e293b);
    line-height: 1;
    position: relative;
    backdrop-filter: blur(10px);
    opacity: 0.7;
}

.ngfb-nav-wizard-circle span {
    display: block;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
}

.ngfb-nav-wizard-step:hover .ngfb-nav-wizard-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ngfb-nav-wizard-step.active .ngfb-nav-wizard-circle {
    background: linear-gradient(135deg, var(--ngfb-form-primary, #A855F7), var(--ngfb-form-accent, #EC4899));
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    animation: pulse 2s ease-in-out infinite;
    opacity: 1;
}

.ngfb-nav-wizard-step.active .ngfb-nav-wizard-circle span {
    color: #ffffff !important;
    background: transparent !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ngfb-nav-wizard-step.completed .ngfb-nav-wizard-circle {
    background: linear-gradient(135deg, var(--ngfb-form-accent, #EC4899), var(--ngfb-form-primary, #A855F7));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.ngfb-nav-wizard-step.completed .ngfb-nav-wizard-circle span {
    color: #ffffff !important;
    background: transparent !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 var(--ngfb-form-primary, #A855F7); 
    }
    50% { 
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(168, 85, 247, 0); 
    }
}

@keyframes wizardCircleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(79, 70, 229, 0.8));
    }
}

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

.ngfb-nav-wizard-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ngfb-form-text, #1e293b);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: wizardLabelSlide 0.5s ease-out backwards;
}

.ngfb-nav-wizard-step:nth-child(1) .ngfb-nav-wizard-label { animation-delay: 0.2s; }
.ngfb-nav-wizard-step:nth-child(2) .ngfb-nav-wizard-label { animation-delay: 0.3s; }
.ngfb-nav-wizard-step:nth-child(3) .ngfb-nav-wizard-label { animation-delay: 0.4s; }
.ngfb-nav-wizard-step:nth-child(4) .ngfb-nav-wizard-label { animation-delay: 0.5s; }
.ngfb-nav-wizard-step:nth-child(5) .ngfb-nav-wizard-label { animation-delay: 0.6s; }

.ngfb-nav-wizard-step.active .ngfb-nav-wizard-label {
    font-size: 14px;
    font-weight: 700;
    animation: wizardLabelSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
