/*
 * Form styles
 * This file contains all form-related styling including inputs, selects, buttons, and checkboxes
 */

/* Base input and select styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea,
select {
  appearance: none;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.5;
}

/* Removed fixed height to allow utility classes (py-*) to control input sizing consistently */

/* Textarea specific */
textarea {
  resize: vertical;
  min-height: 60px;
  padding: 0.75rem 1rem;
}

/* Select dropdown arrow */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Reset focus styles */
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Fieldset and legend */
fieldset {
  border-width: 1px;
}

legend {
  padding: 0 0.5rem;
}

/* Checkbox styling */
input[type="checkbox"] {
  cursor: pointer;
}

/* Submit button styling */
input[type="submit"],
button[type="submit"] {
  background-image: linear-gradient(to right, #2563eb, #9333ea);
  border: none;
  cursor: pointer;
  font-weight: 600;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  background-image: linear-gradient(to right, #1d4ed8, #7e22ce);
  transform: scale(1.05);
}

input[type="submit"]:focus,
button[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #111827, 0 0 0 5px rgba(59, 130, 246, 0.5);
}

/* Form labels */
label {
  cursor: pointer;
}

/* Advanced search toggle button */
.advanced-search-toggle {
  background: linear-gradient(to right, #0891b2, #2563eb);
  border: none;
  color: white;
}

.advanced-search-toggle:hover {
  background: linear-gradient(to right, #0e7490, #1d4ed8);
}

.advanced-search-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px #111827, 0 0 0 5px rgba(6, 182, 212, 0.5);
}
