.progress-circular {
    --progress: 0;
    --size: 150px;
    --half-size: calc(var(--size) / 2);
    --stroke-width: 10px;
    --radius: calc((var(--size) - var(--stroke-width)) / 2);
    --circumference: calc(var(--radius) * pi * 2);
    --dash: calc((var(--progress) * var(--circumference)) / 100);
}

.progress-circular circle {
    cx: var(--half-size);
    cy: var(--half-size);
    r: var(--radius);
    stroke-width: var(--stroke-width);
    fill: none;
    stroke-linecap: round;
}

.progress-circular circle.bg {
    stroke: #eee;
}

.progress-circular circle.fg {
    transform: rotate(-90deg);
    transform-origin: var(--half-size) var(--half-size);
    stroke-dasharray: var(--dash) calc(var(--circumference) - var(--dash));
    transition: stroke-dasharray 0.3s linear 0s;
    stroke: #1abc9c;
}

@property --progress {
    syntax: "<number>";
    inherits: false;
    initial-value: 0;
}

.progress-steps {
    background-color: #ffffff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
    margin-left: calc(var(--bs-gutter-x) - var(--bs-gutter-x) * 1.5);
    margin-right: calc(var(--bs-gutter-x) - var(--bs-gutter-x) * 1.5);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .progress-steps {
        border-radius: var(--bs-border-radius);
        margin-left: 0;
        margin-right: 0;
        padding: 30px;
    }
}

@media (min-width: 1200px) {
    .progress-steps {
        transform: scale(0.85);
    }
}

.progress-steps-container {
    padding-top: 18px;
    padding-bottom: 18px;
}

@media (min-width: 768px) {
    .progress-steps-container {
        border: 2px solid #dfdfdf;
        border-radius: var(--bs-border-radius);
        padding: 0.75rem 30px;
    }
}

.progress-steps-horizontal {
    box-sizing: border-box;
    display: flex;
    font-size: 0;
    color: rgba(0 ,0, 0, 0.85);
    text-align: initial;
    line-height: 1.5715;
    width: 100%;
    margin-top: .5rem;
}

@media (min-width: 768px) {
    .progress-steps-horizontal {
        margin-top: 0;
        padding-top: 5rem;
    }
}

.progress-steps-item {
    flex: 1 1 12%;
    display: block;
    position: relative;
    color: var(--bs-body-color);
    overflow: visible;
}

@media (min-width: 768px) {
    .progress-steps-item {
        flex: 1 1 0%;
    }
}

.progress-steps-item:first-child {
    flex-basis: 10%;
}

@media (min-width: 768px) {
    .progress-steps-item:first-child {
        flex-basis: 0;
    }
}

.progress-steps-item-container {
    text-align: center;
}

@media (min-width: 768px) {
    .progress-steps-item-container {
        text-align: left;
    }
}

.progress-steps-item-tail::after {
    content: "";
    display: inline-block;
    background-color: initial;
    background-image: linear-gradient(90deg, #dfdfdf 50% ,hsla(0, 0%, 100%, 0) 0);
    background-position: bottom;
    background-size: 15px 15px;
    background-repeat: repeat-x;
    border-radius: 20px;
    width: 100%;
    height: 0.25rem;
    transition: background .3s;
    margin-left: 12px;
}

@media (min-width: 768px) {
    .progress-steps-item-tail::after {
        background-size: 35px 15px;
        width: calc(100% - 20px);
        height: 0.5rem;
    }
}

.progress-steps-item-progress .progress-steps-item-tail::after {
    background-color: rgba(215, 215, 215, 1);
    background-image: none;
}

.progress-steps-item-complete .progress-steps-item-tail::after {
    background-color: var(--bs-secondary);
    background-image: none;
}

.progress-steps-horizontal .progress-steps-item:not(:last-child) > .progress-steps-item-container > .progress-steps-item-tail {
    display: block;
    margin: 0 0 1rem 40%;
}

.progress-steps-item-tail {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .progress-steps-item-tail {
        top: 0.375rem;
    }
}

.progress-steps-horizontal .progress-steps-item:last-child > .progress-steps-item-container > .progress-steps-item-tail {
    display: none;
}

@media (min-width: 768px) {
    .progress-steps-horizontal .progress-steps-item:not(:last-child) > .progress-steps-item-container > .progress-steps-item-tail {
        display: block;
        margin: 0 0 1rem 0.75rem;
    }

    .progress-steps-horizontal .progress-steps-item:last-child > .progress-steps-item-container > .progress-steps-item-tail {
        display: block;
        margin: 0 0 1rem 0.75rem;
    }
}

.progress-steps-item-icon {
    position: relative;
    top: -0.625rem;
    display: inline-block;
    background-color: #b0b0b0;
    border-radius: 32px;
    font-size: 13px;
    line-height: 2.5rem;
    height: 26px;
    width: 26px;
    vertical-align: top;
    transition: background-color .3s, border-color .3s;
    margin: 0.25rem;
}

.progress-steps-item-progress .progress-steps-item-icon {
    width: 2.25rem;
    height: 2.25rem;
    margin: -1px;
}

@media (min-width: 768px) {
    .progress-steps-item-icon,
    .progress-steps-item-progress .progress-steps-item-icon {
        font-size: 17px;
        width: 2.5rem;
        height: 2.5rem;
        margin: 0 8px 0 0;
    }
}

.progress-steps-item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #fff;
    width: 26px;
    height: 26px;
}

.progress-steps-item:not(.progress-steps-item-progress):not(.progress-steps-item-complete) .progress-steps-item-btn {
    cursor: not-allowed !important;
}

.progress-steps-item-progress .progress-steps-item-btn {
    cursor: default !important;
}

@media (min-width: 768px) {
    .progress-steps-item-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.progress-steps-item-complete a.progress-steps-item-btn {
    background-color: var(--bs-secondary);
}

.progress-steps-item-progress .progress-steps-item-btn {
    background-color: #fff;
    border: 3px solid var(--bs-secondary);
    color: var(--bs-secondary);
    width: 2.25rem;
    height: 2.25rem;
}

@media (min-width: 768px) {
    .progress-steps-item-progress .progress-steps-item-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .progress-steps-item-complete a.progress-steps-item-btn:hover {
        background-color: var(--bs-secondary-hover);
        color: #fff;
    }
}

.progress-steps-item-content {
    display: block;
    text-align: center;
    margin-top: -2px;
}

@media (min-width: 768px) {
    .progress-steps-item-content {
        width: 75%;
        margin-top: 8px;
    }
}

.progress-steps-item-title {
    display: flex;
    flex-direction: column-reverse;
    position: relative;
    font-family: var(--bs-font-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
    line-height: 16px;
}

.progress-steps-item-progress .progress-steps-item-title {
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .progress-steps-item-title {
        position: absolute;
        bottom: 100%;
        left: 0;
        font-size: 17px;
        text-align: left;
        line-height: 1.5715;
        margin-bottom: 1.5rem;
    }

    .progress-steps-item-progress .progress-steps-item-title {
        font-size: 17px;
    }
}

@media (min-width: 992px) {
    .progress-steps-item-title,
    .progress-steps-item-progress .progress-steps-item-title {
        font-size: 21px;
    }
}

.progress-steps-item-progress .progress-steps-item-title {
    color: rgba(var(--bs-secondary-rgb), 0.8);
}

.progress-steps-item-complete .progress-steps-item-title {
    color: rgba(var(--bs-secondary-rgb), 1);
}

.progress-steps-item-subtitle {
    display: none;
    font-weight: 400;
    font-size: 1rem;
    color: #6b6b6b;
    line-height: 1.5;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .progress-steps-item-subtitle {
        display: block;
    }
}