/**
 * Connected Steps Widget CSS
 * 
 * This file contains styles specific to the Connected Steps widget.
 * All styles are designed to work with Elementor's dynamic styling system.
 */

/* ==========================================
   CONNECTED STEPS WIDGET
   ========================================== */

.cew-connected-steps-widget {
    position: relative;
    /* padding: 80px 0; */
    /* background-color: #f8f9fa; */
}

.cew-connected-steps-header {
    text-align: center;
    /* margin-bottom: 60px; */
}

.cew-connected-steps-title {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.cew-connected-steps-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6c757d;
}

.cew-steps-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cew-step-item {
    position: relative;
    width: 100%;
    /* max-width: 800px; */
    padding-bottom: 40px;
    /* padding: 30px; */
    /* background-color: #ffffff; */
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease;
    display: flex;
    align-items: start;
    gap: 20px;
}

.cew-connector-line{position: absolute;left: 24px;top: 48px;height: calc(100% - 48px);width: 1px;
    background-color: #B3B3B3;transition: 0.3s;}
.cew-connector-line::after,.cew-connector-line::before{height: 4px;width: 4px;background-color: inherit;content: "";position: absolute;left:50%;transform: translateX(-50%) rotate(45deg);}
.cew-connector-line::before{top: 0;}
.cew-connector-line::after{bottom: 0%;}

.cew-step-item:last-child .cew-connector-line{display: none;}

/* .cew-step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
} */

.cew-step-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* color: #ffffff; */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    /* box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); */
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* SVG Color Control */
.cew-step-icon.inactive-icon img {
    transition: filter 0.3s ease;
}

.cew-step-icon.active-icon img {
    transition: filter 0.3s ease;
}
.step-icon-wrap svg g{filter: none;}

/* .cew-step-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
} */

.cew-step-icon i {
    color: #ffffff;
}

.cew-step-number {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.cew-step-content {
    flex: 1;
}

.cew-step-title {
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    transition: 0.3s;
}

.cew-step-description {
    /* Typography controlled by Elementor */
}

/* .cew-connector-line {
    position: relative;
    width: 4px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 20px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.cew-connector-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
} */

/* Animation Classes */
.cew-step-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cew-connector-animate {
    height: 60px;
    opacity: 1;
}

/* Responsive Design */
@media screen and (max-width:1599px) {
    .cew-step-icon{width:40px;height:40px;}
    .cew-connector-line{left: 18px; top: 40px; height: calc(100% - 40px);}
}
@media screen and (max-width:1366px) {
    
}
@media (max-width: 991px) {
    .cew-connected-steps-widget {
        /* padding: 60px 0; */
    }
    
    .cew-connected-steps-title {
        font-size: 2rem;
    }
    
    /* .cew-step-item {
        padding: 25px;
        gap: 20px;
    } */
    
    .cew-step-icon {
        width: 40px;
        height: 40px;
        /* font-size: 24px; */
    }
    .cew-connector-line {
        left: 20px;
        top: 40px;
        height: calc(100% - 40px);}
    
    .cew-step-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    /* .cew-connected-steps-widget {
        padding: 40px 0;
    } */
    
    .cew-connected-steps-header {
        /* margin-bottom: 40px; */
    }
    
    .cew-connected-steps-title {
        font-size: 1.8rem;
    }
    
    .cew-connected-steps-description {
        font-size: 1rem;
    }
    
    .cew-step-item {
        /* flex-direction: column; */
        /* text-align: center; */
        /* padding: 25px 20px; */
        /* gap: 15px; */
        padding-bottom: 25px;
    }
    
    .cew-step-icon {
        width: 38px;
        height: 38px;
        /* font-size: 20px; */
    }
    .cew-connector-line {
        left: 19px;
        top: 38px;
        height: calc(100% - 38px);}
    
    .cew-step-title {
        font-size: 1.2rem;
    }

}

@media (max-width: 575px) {
    .cew-connected-steps-title {
        font-size: 1.5rem;
    }
/*     
    .cew-step-item {
        padding: 20px 15px;
        margin-bottom: 30px;
    } */
    
    .cew-step-icon {
        width: 36px;
        height: 36px;
        /* font-size: 18px; */
    }
    
    .cew-connector-line {
        left: 18px;
        top: 36px;
        height: calc(100% - 36px);}
    
    .cew-step-title {
        font-size: 1.1rem;
    }
    
    .cew-step-description {
        font-size: 0.9rem;
    }
}

/* @keyframes stepFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes connectorGrow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 40px;
        opacity: 1;
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
} */

/* Elementor Integration */
.elementor-widget.elementor-widget-connected-steps .elementor-heading-title {
    margin-bottom: 1rem;
}

.elementor-widget.elementor-widget-connected-steps .elementor-text-editor {
    margin-bottom: 0;
}

/* Accessibility */
/* .cew-step-item:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
} */

/* .cew-step-icon:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
} */

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .cew-step-item {
        border: 2px solid #000000;
    }
    
    .cew-connector-line {
        background-color: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cew-step-item,
    .cew-step-icon,
    .cew-connector-line {
        transition: none;
    }
    
    .cew-step-item:hover {
        transform: none;
    }
    
    .cew-step-icon:hover {
        transform: none;
    }
} 