/**
 * Wizard Styles - ZOW Form
 * Step navigation and progress bar styling
 * Pure CSS (no @apply - works with Tailwind CDN)
 */

/* ==================== STEP CIRCLE BASE ==================== */
.step-circle {
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Step States - Base pending */
.step-circle {
    background-color: var(--gray-200, #e5e7eb);
    color: var(--gray-500, #6b7280);
}

/* ==================== STEP TEXT ==================== */
.step-text {
    transition: all 0.3s ease;
    color: var(--gray-500, #6b7280);
}

[data-step-indicator]:hover .step-text {
    color: var(--primary-600, #059669);
}

/* ==================== PROGRESS BAR ==================== */
#progress-bar {
    transition: width 0.5s ease-in-out;
    background: linear-gradient(to right, var(--primary-500), var(--primary-600));
}

/* ==================== STEP CONTENT ANIMATION ==================== */
[data-step] {
    animation: fadeIn 0.3s ease-out;
}

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

/* ==================== HOVER EFFECTS ==================== */
[data-step-indicator] {
    cursor: pointer;
}

[data-step-indicator]:hover .step-circle {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* ==================== DISABLED STEPS ==================== */
[data-step-indicator].disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

[data-step-indicator].disabled:hover .step-circle {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==================== PULSE ANIMATION FOR ACTIVE STEP ==================== */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==================== NAVIGATION BUTTONS ==================== */
#prev-button,
#next-button,
#pdf-button {
    transition: all 0.2s ease;
}

#prev-button:hover,
#next-button:hover,
#pdf-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#prev-button:active,
#next-button:active,
#pdf-button:active {
    transform: translateY(0);
}

/* Button Disabled State */
#next-button:disabled,
#prev-button:disabled,
#pdf-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ==================== LOADING STATE FOR STEPS ==================== */
.step-loading {
    position: relative;
}

.step-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .step-circle {
        width: 3rem !important;
        height: 3rem !important;
        font-size: 0.875rem;
    }

    .step-text {
        font-size: 0.625rem !important;
    }
}

/* ==================== ACCESSIBILITY ==================== */
[data-step-indicator]:focus-visible .step-circle {
    outline: 3px solid var(--primary-400, #34d399);
    outline-offset: 2px;
}

/* ==================== HIGH CONTRAST MODE ==================== */
@media (prefers-contrast: high) {
    .step-circle {
        border: 3px solid #000;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    .step-circle,
    .step-text,
    [data-step],
    #progress-bar,
    #prev-button,
    #next-button,
    #pdf-button {
        transition: none !important;
        animation: none !important;
    }
}
