.filter-form {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.field label {
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 7px;
}

input,
select,
textarea {
  min-height: 42px;
  border-radius: 10px;
}

.filter-actions {
  justify-content: flex-end;
}

.form-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.form-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-section h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  color: #0f3d66;
}

.form-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.field-full {
  grid-column: 1 / -1;
}

.checkbox-field label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.checkbox-field input[type='checkbox'] {
  width: auto;
  min-height: auto;
}

@media (max-width: 720px) {
  .filter-actions {
    justify-content: stretch;
  }

  .filter-actions .btn,
  .filter-actions button {
    width: 100%;
  }
}
