/* Layout */
.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: end;
}

/* Field groups */
.filter-form > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Labels */
.filter-form label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

/* Inputs & select */
.filter-form input,
.filter-form select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* Focus state */
.filter-form input:focus,
.filter-form select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* Buttons wrapper */
.filter-form > div:last-child {
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

/* Submit button */
.filter-form button {
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-form button:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

/* Reset link */
.filter-form a {
  font-size: 14px;
  color: #777;
  text-decoration: none;
  transition: color 0.2s ease;
}

.filter-form a:hover {
  color: #000;
}

/* Mobile */
@media (max-width: 600px) {
  .filter-form {
    grid-template-columns: 1fr;
  }

  .filter-form > div:last-child {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-form button {
    width: 100%;
  }
}
