form{
    display: flex;
    text-align: left;
    flex-direction: column;
    gap:20px;
    width:90%;
    max-width: 800px;
    margin:10px auto;
    background-color:var(--light-gray);
    padding:40px 30px;
    height:fit-content;
    grid-area: form;
    border-radius:10px; 
}

form .sideBySide{
    display: flex;
    flex-direction: row;
    gap:15px;
    justify-content: space-between;
}


form .sideBySide .elements{
    display: flex;
    flex-direction: column;
    gap:20px;
    width:100%;
}

label{
    margin-bottom:-15px;
}

input, select, textarea, #creditCardContainer{
        font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    min-height:30px;
    background-color: white;
    border-radius: 3px;
    padding:10px;
}

input::placeholder{
    opacity: 0.5;
}

select{
    height:50px;
}

span.error-message{
    color:var(--error-color);
    margin-top:-10px;
}


input:read-only:not([type="checkbox"]) {
    background-color: var(--readonly-color);
    color: var(--primary-color);
    cursor: not-allowed;
}

#product-details-container input, #product-details-container select{
    width: 100%;
    min-height:30px;
    background-color: white;
    border:1px solid var(--secondary-color);
    border-radius: 3px;
    padding:10px;
}

@media screen and (max-width: 1040px) {
    form{
        width:100%;
        max-width:unset;
    }

form .sideBySide{
    display: flex;
    flex-direction: column;
    gap:15px;
    justify-content: space-between;
}

}

#userInfosForm{
    max-width: unset;
}



