/* How It Works Vertical Block - Frontend Styles */

.taskipfb-how-it-works-vertical {
    width: 100%;
    position: relative;
}

/* ---- Container: two-column flex ---- */
.taskipfb-hiwv-container {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
}

/* ---- Left Panel (sticky on frontend) ---- */
.taskipfb-hiwv-left {
    /* sticky applied via inline <style> using blockId so stickyTop is dynamic */
    align-self: flex-start;
}

.taskipfb-hiwv-left-inner {
    padding-right: 0;
}

.taskipfb-hiwv-label {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px 0;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.taskipfb-hiwv-heading {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #111827;
}

.taskipfb-hiwv-description {
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    color: #6b7280;
}

/* ---- Right Panel ---- */
.taskipfb-hiwv-right {
    box-sizing: border-box;
}

/* ---- Steps ---- */
.taskipfb-hiwv-steps {
    display: flex;
    flex-direction: column;
}

.taskipfb-hiwv-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    z-index: 0;
}

/* ---- Step Indicator (circle + line) ---- */
.taskipfb-hiwv-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 52px;
}

.taskipfb-hiwv-step-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Active (first) step: filled circle */
.taskipfb-hiwv-step--active .taskipfb-hiwv-step-circle {
    border: none;
}

/* Vertical connector line */
.taskipfb-hiwv-step-line {
    width: 1px;
    flex: 1;
    min-height: 40px;
    margin: 6px 0;
    position: absolute;
    height: 100%;
    z-index: -1;
}

/* ---- Step Body ---- */
.taskipfb-hiwv-step-body {
    flex: 1;
    min-width: 0;
    padding-top: 10px; /* align text with circle center */
}

.taskipfb-hiwv-step-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #111827;
}

.taskipfb-hiwv-step-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #6b7280;
    margin: 0;
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
    .taskipfb-hiwv-container {
        flex-direction: column;
        gap: 48px;
    }

    .taskipfb-hiwv-left,
    .taskipfb-hiwv-right {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
    }

    .taskipfb-hiwv-heading {
        font-size: 32px;
    }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .taskipfb-hiwv-heading {
        font-size: 26px;
    }

    .taskipfb-hiwv-description {
        font-size: 15px;
    }

    .taskipfb-hiwv-step {
        gap: 16px;
    }

    .taskipfb-hiwv-step-circle {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .taskipfb-hiwv-step-indicator {
        width: 44px;
    }

    .taskipfb-hiwv-step-title {
        font-size: 17px;
    }

    .taskipfb-hiwv-step-desc {
        font-size: 14px;
    }
}

/* ---- Extra Small ---- */
@media (max-width: 480px) {
    .taskipfb-hiwv-heading {
        font-size: 22px;
    }
}
