:root {
    --primary-color: #84bed6;
}

/* Global Stylings */
label {
    display: block;
    margin-bottom: 0.5rem;
}

input {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

/* Progressbar */
.progressbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    counter-reset: step;
    margin: 2rem 0 4rem;
}

.progressbar::before,
.progress {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #dcdcdc;
    z-index: -1;
}

.progress {
    background-color: var(--primary-color);
    width: 0%;
    transition: 0.3s;
}

.progress-step {
    width: 2.1875rem;
    height: 2.1875rem;
    background-color: #dcdcdc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-step::before {
    counter-increment: step;
    content: counter(step);
}

.progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: calc(100% + 0.5rem);
    font-size: 0.85rem;
    color: #666;
    width: max-content;
}

.progress-step-active {
    background-color: var(--primary-color);
    color: #f3f3f3;
}

/* Form */
.form {
    display: grid;
    gap: 1.2rem;
    margin: 0 auto;
    padding: 1.5rem;
    max-width: 50%;
    padding-bottom:20px ;
}

.form-step {
    display: none;
    transform-origin: top;
    animation: animate 0.5s;
}
.form-step p{
    text-align: center;
}

.form-step-active {
    display: grid;
    gap: 6rem;

}
.form-legal-responsible{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items:center;
    column-gap: 5rem;
    row-gap: 2.5rem;
}
.form-children span{
    font-family: Inter, serif;
    font-size: 20px;
    line-height: 116%;
    Vertical-align: Top
}

.form-children-elements{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-item:center;
    column-gap: 5rem;
    row-gap: 2.5rem;
}
.form-children-container{
    display: grid;
    gap: 5rem;
}

.input-group {
    margin: 2rem 0;
}

@keyframes animate {
    from {
        transform: scale(1, 0);
        opacity: 0;
    }
    to {
        transform: scale(1, 1);
        opacity: 1;
    }
}

/* Button */
.btns-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.btn {
    padding: 0.75rem;
    display: flex;
    text-decoration: none;
    background-color: var(--primary-color);
    color: #f3f3f3;
    text-align: center;
    justify-content: center;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: 0.3s;
}
.btn:hover {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--primary-color);
}
.btn-retour{
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-prev{
    display: flex;
    align-items: center;
    justify-content: center;
    place-items: center center;
}
.level-in-year-none{
    display: none;
}

/*errors*/
.lastname-error, .name-error, .tel-error,
.mail-error,.number-error, .child-name-error, .child-last-name-error ,
.child-age-min-error, .child-age-max-error, .level-error , .child-age-error {
    display: none;
    color: red;
    font-size: 12px;
    position: absolute;
    margin-top: 82px;
}