/* form[name="human_design"] label, form[name="human_design_business"] label, form[name="human_design_transit"] label, form[name="human_design_composite"] label, form[name="human_design_composite"] legend, form[name="transit"] label {
    display: none;
} */

#human_design_gender, #human_design_business_gender, #birth_time_range_gender, #human_design_transit_gender, #human_design_composite_gender1, #human_design_composite_gender2, #human_design_penta_gender1, #human_design_penta_gender2, #human_design_penta_gender3, #human_design_penta_gender4, #human_design_penta_gender5 {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin-bottom: 1rem !important;
    width: -webkit-fill-available;
}

#birth_time_range_gender {
    margin-bottom: 0!important;
}

#human_design_composite_gender1, #human_design_composite_gender2, #human_design_penta_gender1, #human_design_penta_gender2, #human_design_penta_gender3, #human_design_penta_gender4, #human_design_penta_gender5 {
    margin-bottom: 0!important;
}

#human_design_gender .form-check, #human_design_business_gender .form-check, #birth_time_range_gender .form-check, #human_design_transit_gender .form-check, #human_design_composite_gender1 .form-check, #human_design_composite_gender2 .form-check, #human_design_penta_gender1 .form-check, #human_design_penta_gender2 .form-check, #human_design_penta_gender3 .form-check, #human_design_penta_gender4 .form-check, #human_design_penta_gender5 .form-check {
    position: relative;
    flex: 1 1 auto;
    cursor: pointer;
    border: 1px solid #dee2e6;
    height: 40px;
    width: auto;
    align-content: center;
    padding: 0;
    text-align: center;
}

#human_design_gender .form-check input[type="radio"], #human_design_business_gender .form-check input[type="radio"], #birth_time_range_gender .form-check input[type="radio"], #human_design_transit_gender .form-check input[type="radio"], #human_design_composite_gender1 .form-check input[type="radio"], #human_design_composite_gender2 .form-check input[type="radio"], #human_design_penta_gender1 .form-check input[type="radio"], #human_design_penta_gender2 .form-check input[type="radio"], #human_design_penta_gender3 .form-check input[type="radio"], #human_design_penta_gender4 .form-check input[type="radio"], #human_design_penta_gender5 .form-check input[type="radio"] {
    visibility: hidden;
}

#human_design_gender .form-check label, #human_design_business_gender .form-check label, #birth_time_range_gender .form-check label, #human_design_transit_gender .form-check label, #human_design_composite_gender1 .form-check label, #human_design_composite_gender2 .form-check label, #human_design_penta_gender1 .form-check label, #human_design_penta_gender2 .form-check label, #human_design_penta_gender3 .form-check label, #human_design_penta_gender4 .form-check label, #human_design_penta_gender5 .form-check label {
    display: block;
    color: #495057;
}

/* Ajoute un style au .form-check qui contient un input coché */
#human_design_gender .form-check:has(input[type="radio"]:checked), #human_design_business_gender .form-check:has(input[type="radio"]:checked), #birth_time_range_gender .form-check:has(input[type="radio"]:checked), #human_design_transit_gender .form-check:has(input[type="radio"]:checked), #human_design_composite_gender1 .form-check:has(input[type="radio"]:checked), #human_design_composite_gender2 .form-check:has(input[type="radio"]:checked), #human_design_penta_gender1 .form-check:has(input[type="radio"]:checked), #human_design_penta_gender2 .form-check:has(input[type="radio"]:checked), #human_design_penta_gender3 .form-check:has(input[type="radio"]:checked), #human_design_penta_gender4 .form-check:has(input[type="radio"]:checked), #human_design_penta_gender5 .form-check:has(input[type="radio"]:checked) {
    /* background-color: #0d6efd; */
    border-color: #0d6efd;
}

/* Change la couleur du label à l'intérieur du .form-check coché */
#human_design_gender .form-check:has(input[type="radio"]:checked) label, #human_design_business_gender .form-check:has(input[type="radio"]:checked) label, #birth_time_range_gender .form-check:has(input[type="radio"]:checked) label, #human_design_transit_gender .form-check:has(input[type="radio"]:checked) label, #human_design_composite_gender1 .form-check:has(input[type="radio"]:checked) label, #human_design_composite_gender2 .form-check:has(input[type="radio"]:checked) label, #human_design_penta_gender1 .form-check:has(input[type="radio"]:checked) label, #human_design_penta_gender2 .form-check:has(input[type="radio"]:checked) label, #human_design_penta_gender3 .form-check:has(input[type="radio"]:checked) label, #human_design_penta_gender4 .form-check:has(input[type="radio"]:checked) label, #human_design_penta_gender5 .form-check:has(input[type="radio"]:checked) label {
    color: #0d6efd; /* Texte blanc */
}

#human_design_gender .form-check:first-child, #human_design_business_gender .form-check:first-child, #birth_time_range_gender .form-check:first-child, #human_design_transit_gender .form-check:first-child, #human_design_composite_gender1 .form-check:first-child, #human_design_composite_gender2 .form-check:first-child, #human_design_penta_gender1 .form-check:first-child, #human_design_penta_gender2 .form-check:first-child, #human_design_penta_gender3 .form-check:first-child, #human_design_penta_gender4 .form-check:first-child, #human_design_penta_gender5 .form-check:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.325rem;
    border-bottom-left-radius: 0.325rem;
}

#human_design_gender .form-check:last-child, #human_design_business_gender .form-check:last-child, #birth_time_range_gender .form-check:last-child, #human_design_transit_gender .form-check:last-child,  #human_design_composite_gender1 .form-check:last-child, #human_design_composite_gender2 .form-check:last-child, #human_design_penta_gender1 .form-check:last-child, #human_design_penta_gender2 .form-check:last-child, #human_design_penta_gender3 .form-check:last-child, #human_design_penta_gender4 .form-check:last-child, #human_design_penta_gender5 .form-check:last-child {
    border-top-right-radius: 0.325rem;
    border-bottom-right-radius: 0.325rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#human_design_birthDate, #human_design_birthTime, #human_design_business_birthDate, #human_design_business_birthTime, #birth_time_range_birthDate, #human_design_transit_birthDate, #human_design_transit_birthTime, #human_design_composite_birthDate1, #human_design_composite_birthTime1, #human_design_composite_birthDate2, #human_design_composite_birthTime2, #transit_transitDate, #transit_transitTime {
    color: #495057;
}

/* #autocomplete-results-generator {
    border: 1px solid #ccc;
    background: white;
    list-style: none;
    margin: -32px 0 0 30px;
    padding: 0;
    position: absolute;
    z-index: 9999!important;
} */

#autocomplete-results-generator, #autocomplete-results-generator-composite1, #autocomplete-results-generator-composite2,#autocomplete-results-generator-penta1, #autocomplete-results-generator-penta2, #autocomplete-results-generator-penta3, #autocomplete-results-generator-penta4, #autocomplete-results-generator-penta5 {
    /* border: 1px solid #ccc; */
    background: white;
    list-style: none;
    margin: -16px 0 0 0px;
    padding: 0;
    /* position: absolute; */
    z-index: 9999!important;
}

/* @media screen and (max-width: 768px) {
    #autocomplete-results-generator {
        margin: -32px 0 0 16px;
    }
} */

/* Force le scroll sur la modal quand elle est en mode scrollable */
.modal-dialog-scrollable .modal-content {
    max-height: 90vh; /* Limite la hauteur à 90% de l'écran */
    display: flex;
    flex-direction: column;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto !important;
    flex: 1 1 auto;
}

/* Optionnel : Assurez-vous que le formulaire ne bloque pas le flexbox */
.modal-dialog-scrollable form {
    display: contents;
}

.form-switch .form-check {
    display: flex;
    align-items: center;
}

.form-switch .form-check input {
    margin-right: 8px;
}

.nav-tabs .nav-link.active {
    color : #0d6efd!important;
}

.nav-tabs .nav-link {
    color : #000000!important;
}
