/* Formulaire de contact : case de consentement */
#contact_form input[type=checkbox].consent-input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 2px 12px 0 0;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    background: #fff;
    opacity: 1;
}

#contact_form input[type=checkbox].consent-input:checked {
    background: var(--primary-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

#contact_form input[type=checkbox].consent-input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

#contact_form input[type=checkbox].consent-input.error_input {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .25);
}

#contact_form .consent-label {
    flex: 1;
    min-width: 0;
    white-space: normal;
    margin: 0;
    cursor: pointer;
    line-height: 1.5;
}

#contact_form .consent-label a {
    color: var(--primary-color);
    text-decoration: underline;
}


/* En-tête : logo de la clinique avec de l'air autour (hauteur ajustable) */
header div#logo a img.logo-main,
header div#logo a img.logo-scroll,
header div#logo a img.logo-mobile {
    height: 60px;
    width: auto;
    max-width: none;
}


/* Thème : le template définit ces variables sur « * » ; on les redéfinit ici (feuille chargée en dernier) */
* {
    --bg-dark-1: #1E517B; /* footer et survol des boutons : bleu primaire assombri */
    --bg-light: #EAF3FA;  /* fonds clairs : bleu très pâle */
}


/* Formulaire de demande de rendez-vous */
#booking_form .form-label { font-weight: 600; margin-bottom: 4px; display: block; }
#booking_form .form-hint { font-size: 14px; margin-top: 4px; }
#booking_form .field-msg { display: none; color: #dc3545; font-size: 14px; margin-top: 4px; }

#booking_form .choice-group { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 4px 0; }
#booking_form .choice-group.error_input { outline: 2px solid #dc3545; outline-offset: 4px; border-radius: 6px; }
#booking_form .choice-item { display: flex; align-items: center; margin: 0; cursor: pointer; }

#booking_form input[type=radio].choice-input,
#booking_form input[type=checkbox].consent-input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 2px 10px 0 0;
    padding: 0 !important;
    border: 2px solid var(--primary-color);
    background: #fff;
    opacity: 1;
    cursor: pointer;
}
#booking_form input[type=radio].choice-input { border-radius: 50%; margin-top: 0; }
#booking_form input[type=checkbox].consent-input { border-radius: 4px; }
#booking_form input[type=radio].choice-input:checked { background: radial-gradient(circle, var(--primary-color) 0 45%, #fff 50%); }
#booking_form input[type=checkbox].consent-input:checked {
    background: var(--primary-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
#booking_form input.choice-input:focus-visible,
#booking_form input.consent-input:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
#booking_form input[type=checkbox].consent-input.error_input { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220, 53, 69, .25); }
#booking_form .consent-label { margin: 0; cursor: pointer; line-height: 1.5; }
#booking_form .consent-label a { color: var(--primary-color); text-decoration: underline; }