﻿/* Progress Bar Container */
#progressbar {
    margin: 20px 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    counter-reset: step;
    list-style: none;
    flex-wrap: wrap;
    position: relative;
}

    /* Line connecting steps */
    #progressbar::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 10%;
        width: 80%;
        height: 4px;
        background-color: #B2BEB5; /* Muted green for inactive */
        z-index: 0;
        transition: background-color 0.3s ease;
    }

    /* Steps */
    #progressbar li {
        position: relative;
        width: 20%;
        text-align: center;
        font-size: 14px;
        padding: 10px 0;
        color: #003D14;
        transition: all 0.3s ease-in-out;
    }

        /* Step Circles */
        #progressbar li::before {
            content: counter(step);
            counter-increment: step;
            width: 40px;
            height: 40px;
            line-height: 40px;
            display: inline-block;
            background: #A3C86D; /* Light green for inactive */
            color: #003D14;
            border-radius: 50%;
            margin-bottom: 10px;
            font-size: 16px;
            font-weight: bold;
            z-index: 1;
            transition: all 0.3s ease;
        }

        /* Active Step */
        #progressbar li.active {
            color: #ffffff;
        }

            #progressbar li.active::before {
                background: #005D28; /* Dark green */
                color: #ffffff;
            }

            #progressbar li.active small {
                color: #005D28;
            }

        /* Completed Steps */
        #progressbar li.completed::before {
            background: #FFC107; /* Gold */
            color: #003D14;
        }

        #progressbar li.completed {
            color: #003D14;
        }

            #progressbar li.completed::after {
                content: "\2713"; /* Check mark */
                color: green;
                font-size: 18px;
                position: absolute;
                right: -10px;
                top: 10px;
            }

        /* Hover Effect */
        #progressbar li:hover::before {
            background-color: #6BBF59;
        }

        /* Step Labels */
        #progressbar li small {
            display: block;
            font-size: 12px;
            margin-top: 5px;
            text-align: center;
            font-weight: bold;
            color: #555;
            text-transform: uppercase;
        }

        /* Active Progress Line for steps after the current one */
        #progressbar li.active ~ li::before {
            background-color: #A3C86D; /* future steps */
        }

/* Media Query for small screens */
@media screen and (max-width: 768px) {
    #progressbar {
        flex-direction: column;
        align-items: center;
    }

        #progressbar::before {
            width: 4px;
            height: 100%;
            top: 10%;
            left: 50%;
        }

        #progressbar li {
            margin-bottom: 20px;
            min-width: auto;
        }

            #progressbar li::before {
                width: 30px;
                height: 30px;
                line-height: 30px;
                font-size: 14px;
            }

            #progressbar li small {
                font-size: 10px;
            }
}

/* Progress Bar line container */
.progress {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.pbar {
    height: 100%;
    background-color: #4caf50;
    width: 0%;
    transition: width 0.4s ease-in-out;
}

/* Buttons */
.action-button {
    width: 100px;
    background: green;
    font-weight: bold;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 0 10px 5px;
    float: right;
}

    .action-button:hover, .action-button:focus {
        background-color: #311B92;
    }

.action-button-pre {
    width: 100px;
    background: #616161;
    font-weight: bold;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px 10px 0;
    float: right;
}

    .action-button-pre:hover, .action-button-pre:focus {
        background-color: #000;
    }

/* Confirmation checkbox */
.confirmation-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#confirmationCheckbox {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.highlighted-confirmation {
    font-size: 14px;
    color: #333;
    font-weight: normal;
    cursor: pointer;
}

    .highlighted-confirmation:hover {
        text-decoration: underline;
    }

/* Step titles */
.steps {
    font-size: 15px;
    margin-bottom: 1px;
    font-weight: normal;
    text-align: right;
}
