/* =============================================
   Step Flow Widget — Frontend Styles
   ============================================= */

.sfw-wrapper {
    background: #f0eff8;
    border-radius: 16px;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.sfw-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

/* ── Step wrapper ── */
.sfw-step-wrapper {
    display: flex;
    align-items: stretch;
}

/* ── Card ── */
.sfw-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 35px 25px;
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(108, 76, 241, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 150px;
    min-height: 180px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    cursor: default;
    box-sizing: border-box;
}

.sfw-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(108, 76, 241, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    border-color: rgba(108, 76, 241, 0.3);
    background: rgba(255, 255, 255, 0.92);
}

/* ── Icon Box ── */
.sfw-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(108, 76, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: background 0.4s ease;
    flex-shrink: 0;
}

.sfw-item:hover .sfw-icon-wrap {
    background: rgba(108, 76, 241, 0.14);
}

/* ── Icon zoom + swipe on hover ── */
.sfw-icon-wrap i,
.sfw-icon-wrap svg {
    font-size: 26px;
    width: 26px;
    height: 26px;
    color: #6c4cf1;
    fill: #6c4cf1;
    display: block;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1) translateX(0px) rotate(0deg);
}

.sfw-item:hover .sfw-icon-wrap i,
.sfw-item:hover .sfw-icon-wrap svg {
    transform: scale(1.35) translateX(3px) rotate(-12deg);
}

/* ── Text ── */
.sfw-title {
    font-size: 15px;
    font-weight: 600;
    color: #6c4cf1;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.sfw-desc {
    font-size: 13px;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

/* ── Connector Arrow ── */
.sfw-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
    z-index: 1;
}

.sfw-connector svg {
    width: 18px;
    height: 18px;
    fill: #bbbbbb;
    display: block;
    transition: none !important;
    transform: none !important;
}

/* ══════════════════════════════════════════
   MOBILE & TABLET — full width serial layout
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {

    .sfw-wrapper {
        padding: 24px 16px;
    }

    .sfw-flow {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: 100%;
    }

    .sfw-step-wrapper {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* FULL WIDTH — override inline style from Elementor */
    .sfw-item,
    .elementor .sfw-item,
    .elementor-widget-sfw_step_flow .sfw-item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Arrow rotated downward */
    .sfw-connector {
        justify-content: center;
        padding: 4px 0;
        width: 100%;
    }

    .sfw-connector svg {
        transform: rotate(90deg) !important;
        transition: none !important;
    }
}
