/* === Base Form === */
.custom-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  height: 200px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
@media (max-width: 768px) {
    .custom-filter-form{display: none}
}


/* === Labels and Inputs === */
.custom-filter-form label {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.25rem;
  display: block;
}

/* === Fancy Select === */
.custom-filter-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  color: #333;
  transition: all 0.25s ease;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #888 50%),
    linear-gradient(135deg, #888 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) center, calc(100% - 1rem) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  margin-bottom: 1rem;
  width:100%
}

/* Hover and Focus */
.custom-filter-form select:hover {
  border-color: #d1d5db;
  background-color: #f3f4f6;
}

.custom-filter-form select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* === Optional Search Input === */
.custom-filter-form input[type="text"] {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: #f9fafb;
  transition: all 0.25s ease;
}

.custom-filter-form input[type="text"]:focus {
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* === Submit Button === */
.custom-filter-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  width:100%
}

.custom-filter-form button:hover {
    background: color-mix(in srgb, var(--primary) 80%, black);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

/* === Smooth Appearance === */
.custom-filter-form select,
.custom-filter-form input,
.custom-filter-form button {
  transition: all 0.2s ease;
}
.custom-filter-form br {
  display: none;
}
.custom-filter-form p {
  margin:0;
}
.custom-filter-form p.read-more { 
  position: absolute; 
  bottom: 0; 
  left: 0;
  width: 100%; 
  text-align: center; 
  margin: 0; 
  padding: 30px 0; 
  /* "transparent" only works here because == rgba(0,0,0,0) */
  background-image: linear-gradient(to bottom, transparent, black);
  color: white;
}
.custom-filter-form p.read-more a {
    color:white
}
