/* Steps Process Widget */

.tae-sp-header {
    text-align: center;
    margin-bottom: 56px;
}

.tae-sp-title {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.tae-sp-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5a677f;
    margin: 0;
}

.tae-sp-steps {
    display: grid;
    grid-template-columns: repeat(var(--step-count, 3), 1fr);
    gap: 40px;
    position: relative;
}

/* Connector line — desktop only */
.tae-sp-connector {
    display: none;
    position: absolute;
    top: 32px; /* half of default number box size */
    left: calc(100% / (var(--step-count, 3) * 2));
    width: calc(100% - (100% / (var(--step-count, 3))));
    height: 2px;
    background-color: #d1d5db;
    z-index: 0;
}

.tae-sp-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.tae-sp-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: #1271b6;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(18, 113, 182, 0.25);
    transition: transform 0.3s ease;
}

.tae-sp-step:hover .tae-sp-number {
    transform: rotate(6deg);
}

.tae-sp-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.tae-sp-step-desc {
    font-size: 0.85rem;
    color: #5a677f;
    line-height: 1.7;
    margin: 0;
    padding: 0 8px;
}

@media (min-width: 1024px) {
    .tae-sp-connector {
        display: block;
    }
}

@media (max-width: 1023px) {
    .tae-sp-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tae-sp-step {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }

    .tae-sp-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .tae-sp-step-desc {
        padding: 0;
    }
}
