/* ===============================
   BASE (Desktop ≥ md)
================================ */
.tracking-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.tracking-line,
.tracking-line-progress {
    position: absolute;
    top: 24px;
    left: 7%;
    right: 7%;
    height: 4px;
}

.tracking-line {
    background: #dee2e6;
    z-index: 1;
}

.tracking-line-progress {
    background: #28a745;
    width: 0;
    z-index: 2;
    transition: width .4s ease;
}

.tracking-step,
.tracking-space {
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 3;
}

.tracking-step.completed:not([data-step="1"]) {
    cursor: pointer;
}

.tracking-space {
    width: 200%;
}

.circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #adb5bd;
    color: #fff;
    padding: 8px 0;
    margin: 0 auto;
    text-align: center;
}

.completed .circle {
    background: #28a745;
}

#documents-summary {
    font-size: 0.95rem;
}

.document-item .card {
    background-color: #f6f3e9;
}

.document-item strong {
    font-size: 1.1rem;
}

.document-item small {
    font-size: 1.05rem;
}


.document-item.pending .text-warning {
    color: #ab49cc !important;
    animation: pulse 1s infinite;
}

.tracking-step.active .circle {
    background-color: #FF5B00;
    animation: pulse 1s infinite;
}

.tracking-step.selected .circle{
    background-color: #5bb36b;
    animation: pulse 1s infinite;
}

.tracking-step.selected p{
    font-size: 1.25rem;
    font-family: SansProBd;
}

.document-item.ok .text-success {
    color: #5bb36b !important;
    animation: none;
}

.document-item.ok .card {
    border-left: 5px solid #28a745;
}

.link-certified {
    font-size: 2rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* ===============================
   RESPONSIVE (Bootstrap < md)
================================ */
@media (max-width: 767.98px) {

    .tracking-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .tracking-line, .tracking-line-progress {
        top: 24px;
        left: 22px;
        right: auto;
        width: 4px;
        height: 66%;
    }

    .tracking-line-progress {
        height: 0;
    }

    .circle {
        padding: 8px;
    }

    .tracking-step,
    .tracking-space {
        width: 100%;
        text-align: left;
        margin-bottom: 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .tracking-space {
        display: none;
    }

    .tracking-step > p {
        width: 88%;
        text-align: left;
        vertical-align: middle;
        margin: 0;
        padding: 0 10px;
    }

    .circle {
        margin: 0;
    }
}
