/* webform.css - Stile elegante e pulito */

/* Sezioni principali */
.webform-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fbff;
  border-radius: 8px;
  border: 1px solid #e3f0fc;
}

.webform-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a3a5d;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1a3a5d;
}

/* Sottosezioni */
.fieldset-legend {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  display: block;
}

.radios--wrapper {
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Radio buttons */
.form-check {
}

.form-check-input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #1a3a5d;
}

.form-check-label {
  font-size: 0.95rem;
  color: #444;
  margin-left: 0.5rem;
}

/* Descrizioni */
.webform-element-description {
  color: #333;
  font-size: 0.75rem;
  /* font-style: italic; */
  margin-top: 1rem;
  padding: 0.5rem;
  background: #f0f7ff;
  border-radius: 4px;
}

/* Bottoni */
.form-actions {
  margin-top: 2rem;
  text-align: right;
}
/* Nasconde i messaggi di draft salvato automaticamente */
.alert-wrapper .alert-success:has-text("Submission saved"),
.alert-wrapper .alert:has-text("Submission saved"),
.alert:has-text("You may return to this form later"),
div[data-drupal-messages] .alert-success {
  display: none !important;
}

/* Selettore più specifico per Bootstrap alerts */
.alert-wrapper .alert.alert-success[data-drupal-selector="messages"] {
  display: none !important;
}

/* Nasconde tutto il wrapper se contiene solo messaggi di draft */
.alert-wrapper:has(.alert:only-child) .alert:has-text("Submission saved") {
  display: none !important;
}
