/**
 * TMU Elementor Process Steps Widget Styles
 * Exact match to TMU 6-Step Framework Design System
 * Desktop: Horizontal 6-column grid
 * Mobile: Vertical Timeline layout (Numbers on left connected by line, Cards on right)
 */

.tmu-process-steps-grid {
    display: grid;
    grid-template-columns: repeat(var(--tmu-steps-cols, 6), minmax(0, 1fr));
    gap: var(--tmu-steps-col-gap, 18px);
    row-gap: var(--tmu-steps-row-gap, 24px);
    width: 100%;
    box-sizing: border-box;
}

/* Tablet Layout */
@media (max-width: 1200px) and (min-width: 768px) {
    .tmu-process-steps-grid {
        grid-template-columns: repeat(var(--tmu-steps-cols-tablet, 3), minmax(0, 1fr));
    }
}

/* -------------------------------------------------------------
 * Desktop / Tablet Step Column & Item (Above 768px)
 * ------------------------------------------------------------- */
.tmu-step-item {
    display: flex;
    flex-direction: column;
    align-items: var(--tmu-step-align, flex-start);
    box-sizing: border-box;
    position: relative;
}

.tmu-step-badge-wrap {
    margin-bottom: var(--tmu-step-badge-gap, 18px);
    display: flex;
    justify-content: var(--tmu-step-align-badge, flex-start);
    width: 100%;
}

.tmu-step-badge {
    width: var(--tmu-badge-size, 46px);
    height: var(--tmu-badge-size, 46px);
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #111827;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Highlighted Badge (Step 6 / Gold State in Screenshot) */
.tmu-step-badge.is-highlighted {
    background-color: #df9724;
    border-color: #df9724;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(223, 151, 36, 0.35);
}

/* Hover Interaction on Badge */
.tmu-step-item:hover .tmu-step-badge:not(.is-highlighted) {
    border-color: #072769;
    color: #072769;
    transform: scale(1.05);
}

.tmu-step-item:hover .tmu-step-badge.is-highlighted {
    transform: scale(1.05);
}

/* -------------------------------------------------------------
 * Step Card Box
 * ------------------------------------------------------------- */
.tmu-step-card {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

/* Hover Lift & Soft Shadow */
.tmu-step-item:hover .tmu-step-card {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -6px rgba(7, 39, 105, 0.07), 0 2px 6px rgba(0, 0, 0, 0.02);
    border-color: #cbd5e1;
}

/* Step Title */
.tmu-step-title {
    font-family: var(--tmu-font-heading, 'Bricolage Grotesque', sans-serif);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111827;
    margin: 0 0 10px 0;
    transition: color 0.2s ease;
}

.tmu-step-item:hover .tmu-step-title {
    color: #072769;
}

/* Step Description */
.tmu-step-desc {
    font-family: var(--tmu-font-body, 'Bricolage Grotesque', sans-serif);
    font-size: 13.5px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
    flex-grow: 1;
}

/* =============================================================
 * MOBILE TIMELINE SYSTEM (Left Number Badges with Line, Right Cards)
 * ============================================================= */
@media (max-width: 767px) {
    .tmu-process-steps-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: relative;
    }

    .tmu-step-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        position: relative;
        width: 100%;
    }

    /* Vertical connector line connecting circles on left */
    .tmu-step-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: calc(var(--tmu-badge-size, 46px) / 2);
        left: calc(var(--tmu-badge-size, 46px) / 2 - 1px);
        bottom: -20px;
        width: 2px;
        background: #e5e7eb;
        z-index: 1;
    }

    /* Badge container on the left */
    .tmu-step-badge-wrap {
        width: auto;
        margin-bottom: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }

    .tmu-step-badge {
        position: relative;
        z-index: 2;
        margin: 0;
    }

    /* Card container on the right */
    .tmu-step-card {
        flex: 1;
        width: 100%;
        margin-top: 0;
    }
}
