/* Error state for inputs - applied only when validation fails */
input.parsley-error,
select.parsley-error,
textarea.parsley-error {
  color: #B94A48 !important;
  /* background-color: #F2DEDE !important; */ /* really ugly IMO */
  border: 4px solid #EED3D7 !important;
  box-sizing: border-box;
  display: inline-block;
  width: 260px; 
  margin-bottom: 5px; 
}

textarea.parsley-error {
  width: inherit;
}
/* Style for error messages dynamically inserted by Parsley */
.parsley-errors-list {
  margin-top: 5px; 
  padding-left: 0;
  list-style-type: none;
  font-size: 13px;
  color: #B94A48; 
  opacity: 1;
  display: block; /* Block ensures error message is displayed below */
  max-width: 300px; /* Match input width to avoid overflow */
  font-family: 'Archivo Narrow', sans-serif;
}

/* Error message item styling */
.parsley-errors-list li {
  margin-top: 2px;
  line-height: 1.4em;
}

/* Error icon before each message */
.parsley-errors-list li::before {
  content: "\f06a";
  font-family: 'Font Awesome 6 Pro';
  font-weight: 900;
  font-size: 10px;
  padding-right: 5px;
  color: #B94A48;
}

/* Ensure labels align correctly and inputs are not full width */
label {
  display: inline-block;
  /* width: 100%; */
}
