/* Campos de formulario reutilizables (mismo aspecto que el buscador del hero): <div class="field"><label>…</label><input|select></div> */
.field label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  font-weight: var(--font-weight-semibold);
}

.field select,
.field input {
  display: block;
  width: 100%;
  height: var(--button-height);
  padding: 0 1.4rem;
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-white);
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  padding-right: 4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b2a10' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.4rem center;
}

.field input[type="date"] {
  position: relative;
  padding-right: 4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b2a10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.4rem center;
  cursor: pointer;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.field input[type="date"]::-webkit-datetime-edit {
  padding: 0;
}

.field input[type="date"]:invalid::-webkit-datetime-edit {
  color: rgba(0, 0, 0, 0.55);
}

.field select:focus-visible,
.field input:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: none;
}
