/* ============================================
   TAMMKREIZ SEARCH FORM STYLES
   Design moderne et élégant
   ============================================ */

.tk-search-form {
  background: var(--tk-white);
  border-radius: var(--tk-radius-xl);
  box-shadow: var(--tk-shadow-lg);
  overflow: hidden;
  border: 1px solid var(--tk-gray-100);
}

/* Header */
.tk-search-form-header {
  display: flex;
  align-items: center;
  gap: var(--tk-space-4);
  padding: var(--tk-space-5);
  background: linear-gradient(135deg, var(--tk-orange) 0%, var(--tk-orange-dark) 100%);
  color: var(--tk-white);
}

.tk-search-form-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--tk-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--tk-font-size-xl);
  flex-shrink: 0;
}

.tk-search-form-title {
  font-family: var(--tk-font-heading);
  font-size: var(--tk-font-size-xl);
  font-weight: var(--tk-font-weight-bold);
  margin: 0;
}

.tk-search-form-subtitle {
  font-size: var(--tk-font-size-sm);
  opacity: 0.9;
  margin: 0;
}

/* Alert */
.tk-search-alert {
  margin: var(--tk-space-4);
  border-radius: var(--tk-radius-lg);
}

/* Active Filters */
.tk-active-filters {
  padding: var(--tk-space-4) var(--tk-space-5);
  background: var(--tk-gray-50);
  border-bottom: 1px solid var(--tk-gray-100);
}

.tk-active-filters-label {
  display: flex;
  align-items: center;
  font-size: var(--tk-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tk-gray-500);
  margin-bottom: var(--tk-space-3);
}

.tk-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tk-space-2);
}

.tk-filter-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--tk-space-1) var(--tk-space-3);
  border-radius: var(--tk-radius-pill);
  font-size: var(--tk-font-size-sm);
  font-weight: var(--tk-font-weight-semibold);
  gap: var(--tk-space-2);
}

.tk-filter-badge-blue {
  background: rgba(95, 195, 231, 0.15);
  color: var(--tk-blue-dark);
}

.tk-filter-badge-green {
  background: rgba(139, 195, 74, 0.15);
  color: var(--tk-green-dark);
}

.tk-filter-badge-orange {
  background: rgba(243, 156, 18, 0.15);
  color: var(--tk-orange-dark);
}

.tk-filter-remove {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: all var(--tk-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--tk-radius-full);
}

.tk-filter-remove:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

/* Form Fields */
.tk-search-fields {
  padding: var(--tk-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--tk-space-4);
}

.tk-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--tk-space-2);
}

.tk-form-label {
  display: flex;
  align-items: center;
  font-size: var(--tk-font-size-sm);
  font-weight: var(--tk-font-weight-semibold);
  color: var(--tk-gray-700);
}

.tk-form-select,
.tk-form-input {
  padding: var(--tk-space-3) var(--tk-space-4);
  border: 2px solid var(--tk-gray-200);
  border-radius: var(--tk-radius-lg);
  font-size: var(--tk-font-size-base);
  transition: all var(--tk-transition-fast);
  background: var(--tk-white);
}

.tk-form-select:focus,
.tk-form-input:focus {
  border-color: var(--tk-orange);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
  outline: none;
}

/* Async Select custom styles */
.tk-async-select .tk-select__control {
  border: 2px solid var(--tk-gray-200);
  border-radius: var(--tk-radius-lg);
  min-height: 48px;
  box-shadow: none;
  transition: all var(--tk-transition-fast);
}

.tk-async-select .tk-select__control:hover {
  border-color: var(--tk-gray-300);
}

.tk-async-select .tk-select__control--is-focused {
  border-color: var(--tk-orange) !important;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15) !important;
}

.tk-async-select .tk-select__placeholder {
  color: var(--tk-gray-400);
}

.tk-async-select .tk-select__menu {
  border-radius: var(--tk-radius-lg);
  box-shadow: var(--tk-shadow-lg);
  border: 1px solid var(--tk-gray-100);
  overflow: hidden;
}

.tk-async-select .tk-select__option {
  padding: var(--tk-space-3) var(--tk-space-4);
  transition: all var(--tk-transition-fast);
}

.tk-async-select .tk-select__option--is-focused {
  background: rgba(243, 156, 18, 0.1);
}

.tk-async-select .tk-select__option--is-selected {
  background: var(--tk-orange);
}

/* Date Range */
.tk-date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tk-space-4);
  padding: var(--tk-space-4);
  background: var(--tk-gray-50);
  border-radius: var(--tk-radius-lg);
  border: 1px dashed var(--tk-gray-200);
}

/* Submit Button */
.tk-btn-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--tk-space-4);
  background: linear-gradient(135deg, var(--tk-orange) 0%, var(--tk-orange-dark) 100%);
  color: var(--tk-white);
  font-size: var(--tk-font-size-lg);
  font-weight: var(--tk-font-weight-bold);
  border: none;
  border-radius: var(--tk-radius-lg);
  cursor: pointer;
  transition: all var(--tk-transition-fast);
  box-shadow: var(--tk-shadow-colored-orange);
}

.tk-btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(243, 156, 18, 0.4);
}

.tk-btn-search:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .tk-search-form-header {
    flex-direction: column;
    text-align: center;
    gap: var(--tk-space-3);
  }

  .tk-date-range {
    grid-template-columns: 1fr;
  }

  .tk-filters-list {
    justify-content: center;
  }
}

