/* Nasconde il pulsante Update del campo delle notti agendo sul nome univoco del Form API */
input[name="webform-computed-number_of_nights-button"],
input[name="upload_a_pdf_file_with_proof_of_studentship_upload_button"],
input[name="pdf_fellowship_reasons_upload_button"]
{
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}
/* ==========================================================================
   CSS UNIVERSALE PER RADIO BUTTONS BOOTSTRAP 5 / DRUPAL 10
   ========================================================================== */

/* 1. STATO DI BASE UNIVERSALE: Tutti i pallini radio nascono bianchi con bordo grigio */
.webform-submission-form .js-webform-radios input.form-check-input[type="radio"] {
  background-color: #ffffff !important; 
  background-image: none !important;
  border: 1px solid #dee2e6 !important; 
  border-radius: 50% !important; 
  width: 1.15em !important;
  height: 1.15em !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* 2. GESTIONE SELEZIONE DINAMICA: Il radio selezionato diventa blu con il pallino bianco */
.webform-submission-form .js-webform-radios input.form-check-input[type="radio"]:checked {
  background-color: #0d6efd !important; 
  border-color: #0d6efd !important;      
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://w3.org' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

/* 3. SPEGNIMENTO AUTOMATICO DI SICUREZZA PER TUTTO IL GRUPPO: 
      Se un elemento nello stesso blocco è attivo, spegne forzatamente gli altri radio non cliccati */
.webform-submission-form .js-webform-radios:has(input.form-check-input[type="radio"]:checked) input.form-check-input[type="radio"]:not(:checked) {
  background-color: #ffffff !important;
  border-color: #dee2e6 !important;
  background-image: none !important;
}