
body {
  font-family: "Segoe UI", "Roboto", Arial, sans-serif;
  background-color: #f0f3f8;
  color: #1a1a1a;
  margin: 0;
  padding: 40px;
}

.voto-buttons {
  display: flex;
  gap: 4px;
}

/* nasconde i radio originali*/
/* .voto-buttons input[type="radio"] {
  display: none;
} */

.voto-buttons input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


/* stile dei bottoni */
.voto-buttons label {
  width: 28px;
  height: 28px;
  text-align: center;
  padding-top: 3px;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s ease;
}

/* effetto hover */
.voto-buttons label:hover {
  background-color: #f0f0f0;
  border-color: #888;
  color: white;
}

/* bottone selezionato */
.voto-buttons input[type="radio"]:checked + label {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}




form#__vtigerWebForm {
  max-width: 850px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px 45px;
  border-radius: 14px;
  border-top: 8px solid #002b5c; /* blu istituzionale */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* ======= Intestazione ======= */
/* form#__vtigerWebForm::before {
  content: "Domanda per Borsa di Studio";
  display: block;
  text-align: center;
  font-size: 1.6em;
  font-weight: 700;
  color: #002b5c;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
} */

/* ======= Tabella e layout ======= */
form#__vtigerWebForm table {
  width: 100%;
  border-collapse: collapse;
}

form#__vtigerWebForm td {
  width: 70%;
  padding: 12px 10px;
  vertical-align: top;
}

form#__vtigerWebForm label {
  font-weight: 600;
  display: block;
  /* color: #002b5c; */
  margin-bottom: 6px;
  font-size: 15px;
}

/* ======= Campi di input ======= */
form#__vtigerWebForm input[type="text"],
form#__vtigerWebForm input[type="email"],
form#__vtigerWebForm input[type="number"],
form#__vtigerWebForm input[type="date"],
form#__vtigerWebForm select,
form#__vtigerWebForm input[type="file"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #c5c9d0;
  border-radius: 6px;
  background-color: #fdfdfd;
  font-size: 14px;
  transition: all 0.25s ease-in-out;
  box-sizing: border-box;
}

/* ======= Focus sugli input ======= */
form#__vtigerWebForm input:focus,
form#__vtigerWebForm select:focus {
  border-color: #d4af37; /* oro tenue */
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
  outline: none;
  background-color: #fffef8;
}

/* ======= Campi obbligatori ======= */
form#__vtigerWebForm input[required],
form#__vtigerWebForm select[required] {
  border-left: 4px solid #d9534f;
  background-color: #fffafa;
}

/* ======= Pulsante di invio ======= */
form#__vtigerWebForm input[type="submit"] {
  background-color: #002b5c;
  color: white;
  border: none;
  padding: 14px 35px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin: 30px auto 0;
  transition: all 0.3s ease-in-out;
  letter-spacing: 0.5px;
}

form#__vtigerWebForm input[type="submit"]:hover {
  background-color: #d4af37;
  color: #002b5c;
}

/* ======= File input migliorato ======= */
form#__vtigerWebForm input[type="file"] {
  background-color: #fafafa;
  border-style: dashed;
  border-color: #c5c9d0;
  padding: 8px;
  cursor: pointer;
}

form#__vtigerWebForm input[type="file"]:hover {
  border-color: #d4af37;
}

/* ======= Sezione note o messaggi ======= */
form#__vtigerWebForm small,
form#__vtigerWebForm td span.note {
  color: #6c757d;
  font-size: 12px;
}

/* ======= Responsive design ======= */
@media (max-width: 768px) {
  form#__vtigerWebForm {
    padding: 25px 20px;
  }

  form#__vtigerWebForm td {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  form#__vtigerWebForm label {
    margin-top: 12px;
  }

  form#__vtigerWebForm input[type="submit"] {
    width: 100%;
  }
}
