

/* labels */

form .form-item label {
 text-transform: none !important; 
}

label[for^="edit"] {
  display: inline;
}
/*
label {
  width: 100%;
}
*/
textarea,input.form-text, input.form-email{
  color: inherit !important;
  width:100%
}

input.form-autocomplete{
  background-image: none !important;
  transition: none !important;
  background-position: unset !important;
}
.form-item-datacad div.description{
  width: 172px;
}


/* views-exposed-form */

.views-exposed-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* separació entre camps */
  align-items: flex-end; 
  margin-bottom: 20px;
}

.views-exposed-form input,
.views-exposed-form select {
  width: 100%; /* l'input dins l'espai ocupa tot */
}

.views-exposed-form  .form-item , 
.views-exposed-form .form-actions {  
  flex: 1 1 0; /* ocupa espai igual, s'adapta */
  min-width: 150px; /* per evitar que petin en mòbil */
}

.views-exposed-form .form-actions {
  flex: 0 0 auto;
}

.views-exposed-form .form-item label {
  display: block;  
}

.views-exposed-form input.button[type="submit"] {
 padding:15px 35px;
 margin:0px
}


/* centro els botons de filtre */

nav.portfolio-filter ul.nav {
  display: flex;
  justify-content: center;
}

/* Webforms */
.webform-submission-form {
  background-color: #f3f3f3;
  padding: 50px;
  border-radius: 10px;
}

.webform-submission-form input, .webform-submission-form .form-textarea{
  border-radius: 10px;
}

.webform-submission-form .form-actions{
  float: none;
}

.webform-submission-form .form-actions .webform-button--submit{
  margin: 0px;
}

.webform-submission-form .form-item label{
  margin: 5px
}

.webform-type-radios input, .webform-type-checkboxes input {
  width: auto !important;
}

.webform-type-radios .js-form-type-radio, .webform-type-checkboxes .js-form-type-checkbox {
  margin: 0px;
}

.webform-type-radios legend, .webform-type-checkboxes legend {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
  font-family: var(--convis-heading-font-family);}

.form-required::after {
  content: " *";
  color:#dc3545;
}


option:disabled {
  color: #dc3545;              
  background-color: #f5f5f5;   
  font-style: italic;          
  font-size: smaller;
}