/* CSS Variables are loaded from dynamic-styles.php */

/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: var(--form-primary-color);
}

header {
    background-color: var(--form-secondary-color);
    color: black;
    padding: 5px;
    text-align: center;
}

main {
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

fieldset {
    border: 1px solid var(--form-secondary-color);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 5px;
    /* Bordures arrondies (optionnel) */
}

legend {
    font-weight: bold;
    padding: 0 10px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

input,
select,
textarea {
    /*width: 100%;*/
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.fwe {
    /*full-width-element*/
    width: 100%;
}

.btn-prev-page,
.btn-next-page {
    background-color: var(--form-secondary-color);
    /* Couleur bleu moyen */
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-cancel {
    background-color: red;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-submit {
    background-color: var(--form-secondary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}


.required {
    color: red;
}

button[type="submit"] {
    background-color: var(--form-secondary-color);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button[type="submit"]:hover {
    background-color: #a4ac0e;
    /* plus clair au survol */
    color: black;
}

footer {
    text-align: center;
    padding: 1px;
    background-color: var(--form-secondary-color);
    color: black;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.radio-group-horizontal label {
    display: inline;
    /* Garde le contenu du label en ligne */
    font-weight: normal;
    /* Pour éviter que le texte soit en gras */
    margin: 5px;
    /* Espacement entre les boutons et les autres éléments */
}


/* Un style qui permet de formatter le texte d'un champ en majuscules */
.uppercase-input {
    text-transform: uppercase;
}

.lowercase-input {
    text-transform: lowercase;
}

/* Select2 custom styles */
#etablissement_origine {
    margin-bottom: 25px;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px;
}

.select2-dropdown {
    border: 1px solid #ccc;
    border-radius: 5px;
}

.select2-results__option--highlighted {
    background-color: var(--form-secondary-color) !important;
}