/* Columbia Stepper Widget Styles - Responsive Design */

.columbia-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: inherit;
}

/* Desktop/Tablet Linear Stepper */
.columbia-desktop-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
    gap: 16px;
}

.columbia-desktop-stepper .columbia-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--step-color,var(--et_main-color));
    text-decoration: none;
    flex: 1;
    max-width: 160px;
}

.columbia-desktop-stepper .columbia-step-number {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--e-global-color-1bb238a);
    color: #22222280;
    font-size: 20px;
    line-height: 20px;
    font-weight: 600;
    z-index: 2;
    transition: all 0.3s ease;
}

.columbia-desktop-stepper .columbia-step.active .columbia-step-number {
    border-color: var(--e-global-color-primary);
    color: var(--e-global-color-primary);
    outline: 4px solid rgba(25, 135, 199, 0.2);
}

.columbia-desktop-stepper .columbia-step.completed .columbia-step-number {
    background-color: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    color: var(--et_btn-color);
}

.columbia-desktop-stepper .columbia-step.completed .columbia-step-number svg {
    width: 24px;
    height: 24px;
}

.columbia-desktop-stepper .columbia-step.completed .columbia-step-number i {
    font-size: 16px;
    font-weight: bold;
}

.columbia-desktop-stepper .columbia-step-text {
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--et_dark-2-white);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.columbia-desktop-stepper .columbia-step-text:hover {
    color: var(--e-global-color-primary);
}

/* Connecting lines for desktop stepper */
.columbia-desktop-stepper .columbia-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 24px);
    right: calc(-50% + 8px);
    height: 2px;
    background-color: #22222233;
    z-index: 1;
}

.columbia-step-text:hover {
    color: var(--e-global-color-primary);
}

.columbia-step-label.active .columbia-step-text {
    color: var(--e-global-color-primary);
    font-weight: 700;
}

/* Focus styles for accessibility */
.columbia-step-text:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
    border-radius: 3px;
}

.columbia-desktop-stepper .columbia-step.completed:not(:last-child)::after {
    background-color: var(--e-global-color-primary);
}

/* Mobile Circular Progress */
.columbia-mobile-stepper {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

/* Mobile Header */
.columbia-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.columbia-back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.columbia-back-icon {
    width: 20px;
    height: 20px;
    color: var(--et_dark-2-white);
}

.columbia-current-step-title {
    color: var(--et_dark-2-white);
    font-weight: 800;
    margin: 0;
}

/* Circular Progress Ring */
.columbia-circular-progress {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.columbia-progress-ring {
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
    transition: all 0.3s ease;
}

.columbia-progress-ring-circle {
    transition: stroke-dashoffset 0.5s ease-in-out;
    stroke-linecap: round;
}

.columbia-progress-ring-circle {
    animation: progressAnimation 1s ease-in-out;
}

.columbia-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--et_dark-2-white);
}

.columbia-current-step {
    color: var(--e-global-color-primary);
}

.columbia-step-separator {
    margin: 0 2px;
    color: var(--et_dark-2-white);
}

.columbia-total-steps {
    color: var(--et_dark-2-white);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide desktop stepper on mobile */
    .columbia-desktop-stepper {
        display: none;
    }
    
    /* Show mobile stepper on mobile */
    .columbia-mobile-stepper {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .columbia-progress-text {
        font-size: 16px;
    }
    
    .columbia-step-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .columbia-progress-text {
        font-size: 14px;
    }
    
    .columbia-step-text {
        font-size: 12px;
    }
}

/* Tablet and Desktop - Show linear stepper */
@media (min-width: 769px) {
    .columbia-desktop-stepper {
        display: flex;
    }
    
    .columbia-mobile-stepper {
        display: none;
    }
}

/* Animation for progress ring */
@keyframes progressAnimation {
    from {
        stroke-dashoffset: 163.36;
    }
    to {
        stroke-dashoffset: 0;
    }
}