/* ---------- RADIO BUTTONS CSS ---------- */
.radio-button[type="radio"]:checked,
.radio-button[type="radio"]:not(:checked){
    position: absolute;
    left: 0;
    width: 0;
    height: 0;
    visibility: hidden;
}

.radio-button:checked + label,
.radio-button:not(:checked) + label{
    position: relative;
    display: inline-block;
    padding: 1rem;
    width: 150px;
    letter-spacing: 0.1rem;
    /*margin: 0rem 0.4rem 0.5rem 0.4rem;*/
    text-align: center;
    border-radius: 0.4rem;
    overflow: hidden;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    -webkit-transition: all 300ms linear;
    transition: all 100ms linear;
}

.radio-button.smaller:checked + label.smaller,
.radio-button.smaller:not(:checked) + label.smaller{
    padding: 0.5rem 1rem;
    letter-spacing: 0.1rem;
    border-radius: 0.4rem;
    align-self: center;
    text-transform: capitalize;
}

.radio-button:checked + label:not(:last-child),
.radio-button:not(:checked) + label:not(:last-child){
    margin-right: 0.4rem;
}


.radio-button-label-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

@media (max-width: 420px) {
    .radio-button-label-wrapper {
        display: flex;
        flex-direction: column;
    }
    .radio-button:checked + label,
    .radio-button:not(:checked) + label{
        width: 100%;
    }

    .radio-button:checked + label:not(:last-child),
    .radio-button:not(:checked) + label:not(:last-child){
        margin-bottom: 0.4rem;
        margin-right: 0;
    }
}

.radio-button:not(:checked) + label {
    background: #f4f2f2;
    color: #5d5d5e;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}
.radio-button:checked + label {
    background-color: transparent;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    z-index: 0;
}
.radio-button:not(:checked) + label:hover {
    /*box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;*/
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.radio-button:checked + label:hover{
    opacity: 0.75;
}

.radio-button:checked + label::before,
.radio-button:not(:checked) + label::before{
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.2rem;
    background-image: linear-gradient(315deg, #493aff, #00c3ff);
    z-index: -1;
}

.radio-button-group-label {
    font-weight: 500;
    color: #2b335e;
    margin-bottom: 0.5rem;
}
/* Erreur highlight */
.radio-buttons-group.error div:nth-child(2) label.radio-button-label {
    /*box-shadow: rgba(227, 224, 224, 0.5) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;*/
    /*color: #ac0d0d;*/
    background: linear-gradient(315deg, #ffb8b8, #fee);
}