/**
 * Wizard Stepper - Modern Circular Step Design
 * Clean, minimal progress indicator with connecting lines
 */

/* Main Container */
.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: none;
    position: relative;
}

/* Hide the old arrow elements */
.wizard-arrow {
    display: none !important;
}

/* Individual Step */
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Connecting Line Between Steps */
.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 3px;
    background-color: #4a4a5a;
    z-index: 1;
    border: none;
}

/* Completed step connecting line */
.wizard-step.completed:not(:last-child)::after {
    background-color: #28a745;
}

/* Active step connecting line (half colored) */
.wizard-step.active:not(:last-child)::after {
    background: linear-gradient(to right, #28a745 0%, #4a4a5a 50%);
}

/* Step Number Circle */
.wizard-step .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2a2a3a;
    border: 3px solid #4a4a5a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

/* Step Label */
.wizard-step .step-label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #8a8a9a;
    text-align: center;
    transition: all 0.3s ease;
}

/* Status Badge (Completed/In Progress) */
.wizard-step .step-status {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    display: none;
}

/* ACTIVE STEP */
.wizard-step.active .step-number {
    background: linear-gradient(135deg, black 0%, var(--primary-color-dark, #0056b3) 100%);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.wizard-step.active .step-label {
    color: #fff;
    font-weight: 600;
}

.wizard-step.active .step-status {
    display: block;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

/* COMPLETED STEP */
.wizard-step.completed .step-number {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.wizard-step.completed .step-number i {
    font-size: 20px;
}

.wizard-step.completed .step-label {
    color: #28a745;
    font-weight: 500;
}

.wizard-step.completed .step-status {
    display: block;
    background-color: #28a745;
    color: #fff;
    border: none;
}

/* PENDING/INACTIVE STEP */
.wizard-step:not(.active):not(.completed) .step-number {
    background-color: transparent;
    border-color: #4a4a5a;
    color: #6c757d;
}

/* Step Content Wrapper - for backward compatibility */
.wizard-step-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 3;
    position: relative;
}

/* Navigation Buttons Container */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 2px solid #dee2e6;
    gap: 15px;
}

.wizard-navigation button {
    min-width: 140px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wizard-navigation button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Step Content Animation */
.wizard-step-content {
    animation: fadeInSlide 0.5s ease-out;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet View (< 992px) */
@media (max-width: 991px) {
    .wizard-stepper {
        padding: 30px 15px;
    }

    .wizard-step .step-number {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .wizard-step .step-label {
        font-size: 12px;
    }

    .wizard-step:not(:last-child)::after {
        top: 22px;
        left: calc(50% + 25px);
        width: calc(100% - 50px);
    }
}

/* Mobile View (< 768px) */
@media (max-width: 767px) {
    .wizard-stepper {
        padding: 25px 10px;
    }

    .wizard-step {
        max-width: 120px;
    }

    .wizard-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
        border-width: 2px;
    }

    .wizard-step .step-label {
        font-size: 10px;
        margin-top: 8px;
    }

    .wizard-step:not(:last-child)::after {
        top: 20px;
        left: calc(50% + 22px);
        width: calc(100% - 44px);
        height: 2px;
    }

    .wizard-step .step-status {
        font-size: 8px;
        padding: 2px 6px;
    }

    .wizard-navigation {
        flex-direction: column;
        width: 100%;
    }

    .wizard-navigation button {
        width: 100%;
        margin-bottom: 10px;
    }

    .wizard-navigation button:last-child {
        margin-bottom: 0;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
    .wizard-stepper {
        padding: 20px 5px;
    }

    .wizard-step .step-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .wizard-step .step-label {
        font-size: 9px;
    }

    .wizard-step:not(:last-child)::after {
        top: 18px;
        left: calc(50% + 20px);
        width: calc(100% - 40px);
    }

    .wizard-navigation button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Print Styles */
@media print {
    .wizard-stepper {
        background: white;
        border: 1px solid #ddd;
    }

    .wizard-step .step-number {
        border: 2px solid #333;
    }
}
