﻿.fl-progress-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 50px;
}

.fl-progress-steps {
    display: flex;
    align-items: center;
    position: relative;
}

.fl-progress-step {
    cursor: default;
    flex-shrink: 0;
    position: relative;
}

.fl-progress-line-segment {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 80px;
    height: 1px;
    background-color: var(--col-flint);
    opacity:.75;
    transition: background-color 0.3s ease;
}

    .fl-progress-line-segment.completed {
        background-color: var(--col-basalt);
    }

    .fl-progress-line-segment.active {
        background: linear-gradient(to right, var(--col-basalt) 0%, var(--col-basalt) 50%, var(--col-flint) 50%, var(--col-flint) 100%);
    }

    .fl-progress-line-segment.pending {
        background-color: var(--col-flint);
    }

.fl-progress-step.pending > .fl-step-label {
    top: 40px;
}

.fl-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 2px solid var(--col-basalt);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
    overflow: visible;
}

.fl-step-label {
    font-size: 12px;
    text-align: center;
    color: var(--col-flint);
    font-weight: 400;
    line-height: 1.2;
    word-wrap: break-word;
    font-family: var(--font-primary);
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 140px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    
}

/* Step States */
    .fl-progress-step.pending .fl-step-circle {
    background-color: transparent;
    border: solid 1px var(--col-flint);
    color: #FFF;
}

.fl-progress-step.active .fl-step-circle {
    background-color: var(--col-lapis);
    border: solid 1px var(--col-lapis);
    color: white;
    width: 22px;
    height: 22px;
}

    /* Ping effect localized */
    .fl-progress-step.active .fl-step-circle::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(1);
        background: rgb(var(--col-lapis-rgb) / 0.25);
        animation: progress-ping 1.6s ease-out infinite;
        pointer-events: none;
    }

.fl-progress-step.active .fl-step-label {
    color: var(--col-lapis);
    font-weight: 700;
    text-transform: capitalize;
}

.fl-progress-step.completed .fl-step-circle {
    background-color: var(--col-mid-grey);
    border: solid 1px var(--col-basalt);
    color: var(--col-basalt);
}

    /* Tick via CSS */
    .fl-progress-step.completed .fl-step-circle::after {
        content: '\2713';
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 700;
        color: var(--col-basalt);
    }

.fl-progress-step.completed .fl-step-label {
    color: var(--col-basalt);
    font-weight: 600;
}

@keyframes progress-ping {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    60% {
        transform: translate(-50%, -50%) scale(1.9);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.1);
        opacity: 0.2;
    }
}
