.wml-process-steps {
    --wml-ps-bg-color: #ffffff;
    --wml-ps-text-dark: #1a1e23;
    --wml-ps-text-muted: #757b82;
    --wml-ps-highlight-blue: #457b9d;
    --wml-ps-line-color: #cdd6dc;
    --wml-ps-circle-bg: #ffffff;
    --wml-ps-circle-size: 160px;
    --wml-ps-circle-radius: 50%;
    --wml-ps-icon-size: 65px;
    --wml-ps-badge-border: #ffffff;
    --wml-ps-path-length: 0;

    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 60px 20px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    background-color: var(--wml-ps-bg-color);
}

.wml-process-steps * {
    box-sizing: border-box;
}

/* --- SVG Line Canvas --- */
.wml-process-steps .line-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.wml-process-steps .background-line {
    fill: none;
    stroke: var(--wml-ps-line-color);
    stroke-width: 2.5;
    stroke-dasharray: 8 10;
    stroke-linecap: round;
}

.wml-process-steps .animated-line {
    fill: none;
    stroke: var(--wml-ps-animated-line-color, var(--wml-ps-highlight-blue));
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: var(--wml-ps-path-length);
    stroke-dashoffset: var(--wml-ps-path-length);
    animation: drawProcessLine var(--wml-ps-animation-duration, 8s) ease-in-out infinite; 
}

@keyframes drawProcessLine {
    0% { stroke-dashoffset: var(--wml-ps-path-length); }
    45%, 100% { stroke-dashoffset: 0; }
}

/* --- Steps Layout --- */
.wml-process-steps .steps-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.wml-process-steps .step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
}

/* --- Circle & Icons --- */
.wml-process-steps .circle-wrapper {
    position: relative;
    margin-bottom: 35px;
}

.wml-process-steps .icon-circle {
    width: var(--wml-ps-circle-size, 160px);
    height: var(--wml-ps-circle-size, 160px);
    min-width: var(--wml-ps-circle-size, 160px);
    min-height: var(--wml-ps-circle-size, 160px);
    flex-shrink: 0;
    background: var(--wml-ps-circle-bg);
    border-radius: var(--wml-ps-circle-radius, 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.wml-process-steps .step:hover .icon-circle {
    transform: translateY(-5px);
}

.wml-process-steps .icon-circle img {
    width: var(--wml-ps-icon-size, 65px) !important;
    height: var(--wml-ps-icon-size, 65px) !important;
    object-fit: contain;
}

/* --- Number Badges --- */
.wml-process-steps .badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--wml-ps-badge-bg, var(--wml-ps-text-dark));
    color: var(--wml-ps-badge-color, #ffffff);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    border: 3px solid var(--wml-ps-badge-border);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- Text Content --- */
.wml-process-steps .step h3 {
    font-size: 22px;
    color: var(--wml-ps-text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.wml-process-steps .step p {
    font-size: 15px;
    color: var(--wml-ps-text-muted);
    line-height: 1.6;
    max-width: 240px;
    margin-bottom: 0;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .wml-process-steps .steps-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
    .wml-process-steps:not(.bricks-is-builder) .line-container {
        display: none;
    }
}
