/* Luxury Stepper Design - Based on Image Reference */

.exh-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto 2rem;
    position: relative;
    padding: 1.5rem 0 3rem;
    max-width: 900px;
    background: rgba(248, 250, 252, 0.6);
    border-radius: 16px;
    direction: rtl;
    overflow: visible;
}

/* Main Progress Track - Light grey horizontal line */
.exh-stepper::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 2px;
}

/* Progress Fill - Dynamic based on completed steps */
.exh-stepper::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #22c55e 100%);
    z-index: 2;
    border-radius: 2px;
    width: calc(var(--progress, 0%) * 0.8);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Secondary Progress Bar at bottom */
.exh-stepper-progress {
    position: absolute;
    bottom: 0.5rem;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #22c55e 100%);
    border-radius: 2px;
    opacity: 0.7;
}

/* Step Container */
.exh-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 180px;
}

/* Step Circle - Base Style (Inactive) */
.exh-step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #64748b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Active Step - Blue border, blue number, pulsating rings */
.exh-step.active .exh-step-circle {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #ffffff;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 0 0 6px rgba(59, 130, 246, 0.05);
    animation: activePulse 2s ease-in-out infinite;
    font-weight: 700;
}

/* Pulsating rings for active step */
.exh-step.active .exh-step-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    opacity: 0.3;
    animation: ringPulse 2s ease-in-out infinite;
}

.exh-step.active .exh-step-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #60a5fa;
    opacity: 0.2;
    animation: ringPulse 2s ease-in-out infinite 0.3s;
}

@keyframes activePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes ringPulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Completed Step - Green circle with white checkmark, green-blue glow */
.exh-step.completed .exh-step-circle {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
    box-shadow: 
        0 0 0 4px rgba(34, 197, 94, 0.15),
        0 0 0 8px rgba(59, 130, 246, 0.08);
    font-size: 0;
}

.exh-step.completed .exh-step-circle::before {
    content: '✓';
    position: absolute;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Step Label */
.exh-step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.exh-step.active .exh-step-label {
    color: #1e293b;
    font-weight: 700;
}

.exh-step.completed .exh-step-label {
    color: #16a34a;
    font-weight: 600;
}

/* Progress Track Segments - Update based on step state */
.exh-step.completed ~ .exh-step::before,
.exh-step.active ~ .exh-step::before {
    background: #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .exh-stepper {
        padding: 1rem 0 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .exh-stepper::before,
    .exh-stepper::after {
        top: 2rem;
        left: 12%;
        right: 12%;
        height: 2.5px;
    }
    
    .exh-step-circle {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .exh-step-label {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
}

/* Hover Effects */
.exh-step:not(.active):not(.completed):hover .exh-step-circle {
    border-color: #cbd5e1;
    transform: scale(1.05);
}
