
form {
    display: flex;
    flex-direction: column;
    font-size: var(--medium);
}

.form-row {
    flex: 1 0 100%;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 10px 0;
}

.form-row > *:first-child {
    flex: 1 0 auto;
    max-width: 300px;
}

.form-row > *:nth-child(2) {
    flex: 1 0 auto;
    max-width: 400px;
    position: relative;
}

.form-row.checkbox {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.form-row.checkbox > * {
    padding: 0;
    flex:0 1 auto;
    max-width: none;

}

.form-row input {
    padding: 5px;
}


.form-row div > input {
    width: 100%;
}

input + i {
    position: absolute;
    right: 10px;
    top:50%;
    transform: translateY(-50%);
}


input[type=radio] {
    display: none;
}

input[type=radio] + label {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem;
    color: #fff;
    background-color: #C8C8C8;
    border: 1px solid transparent;
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    margin: 0px 5px;
}

input[type=radio] + label > i {
    font-size: 2rem;
}

input[type=radio]:hover + label, input[type="radio"]:checked + label, .days__selector input[type="radio"]:checked ~ label {
    background-color: #2A81CB;
    border-color: #3274A3;
    cursor: pointer;
}

input[type=radio]:hover + label {
    transform: scale(1.2);
}

input[type="radio"]:disabled + label {
    background-color: #dc143c ;
    border-color: #b23849; 
    cursor: none;
}

.days__selector {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.days__selector > * {
    margin-right: 10px;
}


input.statut-libre[type=radio]:hover + label, input.statut-libre[type=radio]:checked + label {
    background-color: #2AAD27;
    border-color: #1d791b;
}
input.statut-reserve[type=radio]:hover + label, input.statut-reserve[type=radio]:checked + label  {
    background-color: #dc143c ;
    border-color: #b23849; 
}
input.statut-indisponible[type=radio]:hover + label,input.statut-indisponible[type=radio]:checked + label  {
    background-color: #7B7B7B;
    border-color: #484848;
}

input[type="submit"] {
    align-self: flex-start;
    margin: 30px 0 60px 0;
}


input[type="checkbox"]{
    font-size: 15px;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    width: 3.5em;
    height: 1.5em;
    background: #ddd;
    border-radius: 3em;
    position: relative;
    cursor: pointer;
    outline: none;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

input[type="checkbox"]:after{
    position: absolute;
    content: "";
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: #fff;
    -webkit-box-shadow: 0 0 .25em rgba(0,0,0,.3);
            box-shadow: 0 0 .25em rgba(0,0,0,.3);
    -webkit-transform: scale(.7);
            transform: scale(.7);
    left: 0;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    }

input[type="checkbox"]:checked{
    background: #0ebeff;
}

input[type="checkbox"]:checked:after{
    left: calc(100% - 1.5em);
}

.dateSelect input[type=date], .dateSelect button {
    padding: 10px;
    color:white;
    background-color: #0583d2;
    border: none;
}
    
.dateSelect button {
    text-align: left;
    cursor: pointer;
    flex-grow: 1;
}
    
.dateSelect {
    display: flex;
}
    
.nbDays__selector {
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px,1fr));
    grid-row-gap: 20px;
    grid-column-gap: 10px ;
}




