/* Step Wizard Styling */
.step-wizard-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

/* Step Navigation Bar */
.step-nav-bar {
    display: flex;
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 10;
}

.step-nav-item {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #dee2e6;
    position: relative;
    background: #f8f9fa;
    color: #6c757d;
}

.step-nav-item:last-child {
    border-right: none;
}

.step-nav-item.active {
    background: #007bff;
    color: white;
    font-weight: 600;
}

.step-nav-item.completed {
    background: #28a745;
    color: white;
}

.step-nav-item.completed:hover {
    background: #218838;
}

.step-nav-item:not(.active):not(.completed):hover {
    background: #e9ecef;
    color: #495057;
}

.step-nav-item .step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: currentColor;
    color: white;
    line-height: 24px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

.step-nav-item:not(.active):not(.completed) .step-number {
    background: #6c757d;
}

/* Step Content Container */
.step-content-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    height: 80vh;
    overflow: hidden;
}

.step-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    background: white;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    transform: translateX(100%);
}

.step-frame.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.step-frame.previous {
    transform: translateX(-100%);
    opacity: 0;
}

.step-frame.next {
    transform: translateX(100%);
    opacity: 0;
}


/* Step Content Styling */
.step-content {
    max-width: 800px;
    margin: 0 auto;
}

.step-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.step-description {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Progress Indicator */
.step-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #007bff;
    transition: width 0.4s ease;
    z-index: 5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-nav-item {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .step-nav-item .step-number {
        margin-right: 4px;
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 10px;
    }
    
    .step-frame {
        padding: 20px;
    }
}

/* Animation for step completion */
.step-nav-item.completing {
    animation: stepComplete 0.6s ease;
}

@keyframes stepComplete {
    0% { background: #f8f9fa; }
    50% { background: #28a745; transform: scale(1.05); }
    100% { background: #28a745; transform: scale(1); }
}

/* Disabled state */
.step-nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Step status icons */
.step-status-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 12px;
}

.step-nav-item.completed .step-status-icon::before {
    content: "✓";
}

.step-nav-item.active .step-status-icon::before {
    content: "→";
}