.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 2;
}

/* The Connector Line */
.stepper-item::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #e0e0e0;
    top: 25px; /* Center of the 50px circle */
    left: 50%; /* Start from the middle of current item */
    z-index: 1;
}

/* Remove the line from the last item */
.stepper-item:last-child::after {
    display: none;
}

/* Fill the line if the step is completed */
.stepper-item.completed::after {
    background-color: #4B49AC;
}

.step-counter {
    position: relative;
    z-index: 5; /* Keep circle above the line */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stepper-item.completed .step-counter {
    background-color: #4B49AC;
    color: #fff;
    border-color: #4B49AC;
}

.stepper-item.active .step-counter {
    border: 2px solid #4B49AC;
    color: #4B49AC;
}

.step-name {
    font-size: 0.85rem;
    color: #888;
}

.stepper-item.completed .step-name, .stepper-item.active .step-name {
    color: #4B49AC;
    font-weight: 500;
}


/* Hide the default Django 'Clear' text and checkbox inside the widget */
/* This ensures only the file input button shows up */
input[type="file"] + label, 
input[name$="-clear"] {
    /* If Django renders its default clear inside the {{ field }}, this hides it */
}

/* Optional: Style the file input to look better with Bootstrap */
input[type="file"] {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}