/* ARC Steps Widget Styles */

.arc-steps-wrapper {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

/* Line Container */
.arc-steps-line-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 1;
    padding-top: 0;
    margin-top: -60px;
}

.arc-steps-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
}

.arc-steps-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a1a1a;
    transition: none;
}

/* Steps Container */
.arc-steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

/* Step Item */
.arc-step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.arc-step-item.arc-step-hidden {
    opacity: 0;
    transform: scale(0.8);
}

.arc-step-item.arc-step-visible {
    opacity: 1;
    transform: scale(1);
}

/* Circle Wrapper */
.arc-step-circle-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Circle */
.arc-step-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

/* Inner Circle with Number */
.arc-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

/* Title */
.arc-step-title {
    margin: 0;
    margin-top: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.3;
}

/* Description */
.arc-step-description {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    text-align: center;
    line-height: 1.5;
    max-width: 280px;
}

/* Responsive */
@media (max-width: 991px) {
    .arc-steps-container {
        flex-wrap: wrap;
        gap: 40px;
    }

    .arc-step-item {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .arc-steps-line-container {
        display: none;
    }
}

@media (max-width: 767px) {
    .arc-steps-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .arc-step-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }

    .arc-steps-line-container {
        display: none;
    }

    .arc-step-item.arc-step-hidden {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Keyframes */
@keyframes arcStepFadeIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes arcStepPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.3);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(26, 26, 26, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 26, 26, 0);
    }
}

.arc-step-item.arc-step-active .arc-step-circle {
    animation: arcStepPulse 0.6s ease-out;
}

/* Editor Preview */
.elementor-editor-active .arc-step-item.arc-step-hidden {
    opacity: 1;
    transform: scale(1);
}

.elementor-editor-active .arc-steps-line-progress {
    width: 100%;
}
