/* How It Works Block - Frontend Styles */

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

.taskipfb-hiw-container {
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.taskipfb-hiw-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    margin-bottom: 80px;
}

.taskipfb-hiw-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.taskipfb-hiw-heading {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.taskipfb-hiw-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Steps Section - Horizontal Layout */
.taskipfb-hiw-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.taskipfb-hiw-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Number Wrapper */
.taskipfb-hiw-number-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
}

/* Step Number */
.taskipfb-hiw-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    display: block;
    margin-bottom: 16px;
}

/* Timeline Container */
.taskipfb-hiw-timeline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

/* Timeline Line - Horizontal */
.taskipfb-hiw-line {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    width: 315px;
    min-width: 60px;
}

/* Timeline Dot */
.taskipfb-hiw-dot {
    border-radius: 50%;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* Content */
.taskipfb-hiw-content {
    width: 100%;
}

.taskipfb-hiw-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.taskipfb-hiw-step-desc {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .taskipfb-hiw-heading {
        font-size: 36px;
    }

    .taskipfb-hiw-description {
        font-size: 16px;
    }

    .taskipfb-hiw-header {
        margin-bottom: 60px;
    }

    .taskipfb-hiw-number {
        font-size: 36px;
    }

    .taskipfb-hiw-title {
        font-size: 18px;
    }

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

/* Mobile Responsive - Vertical Stack */
@media (max-width: 768px) {
    .taskipfb-hiw-heading {
        font-size: 28px;
    }

    .taskipfb-hiw-description {
        font-size: 14px;
    }

    .taskipfb-hiw-header {
        margin-bottom: 40px;
    }

    .taskipfb-hiw-label {
        font-size: 12px;
    }

    /* Change to vertical layout */
    .taskipfb-hiw-steps {
        flex-direction: column;
        align-items: stretch;
    }

    .taskipfb-hiw-step {
        margin-bottom: 40px;
    }

    .taskipfb-hiw-step:last-child {
        margin-bottom: 0;
    }

    .taskipfb-hiw-number-wrapper {
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        margin-bottom: 0;
        margin-right: 20px;
    }

    .taskipfb-hiw-step {
        flex-direction: row;
        text-align: left;
    }

    .taskipfb-hiw-number {
        font-size: 32px;
        margin-bottom: 0;
        margin-right: 16px;
    }

    /* Timeline becomes vertical */
    .taskipfb-hiw-timeline-container {
        flex-direction: column;
        height: 100%;
        width: auto;
        margin-left: 10px;
    }

    .taskipfb-hiw-line {
        width: auto;
        height: 100%;
        min-height: 60px;
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
    }

    .taskipfb-hiw-dot {
        margin-bottom: 8px;
    }

    .taskipfb-hiw-title {
        font-size: 18px;
    }

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