/* search form */
.tyre-search {
    background: #fff;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 40px 0 -40px 0;
    font-family: "Inter", sans-serif;
}

.tyre-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  align-items: center;
}

/* Styles des selects */
.tyre-grid select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.tyre-grid select:hover {
  border-color: #999;
}

/* Checkbox styling */
.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
}

/* Bouton principal */
.btn-search {
  background-color: #f9b000;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  padding: 11px 18px;
  cursor: pointer;
}

.btn-search:hover {
  background-color: #e5a000;
}

/* load search spinner */ 
.tyre-spinner {
  display: none;
  text-align: center;
  margin-top: 10px;
  color: #555;
  font-size: 14px;
}
.tyre-spinner .spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #ddd;
  border-top-color: #0073aa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 6px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.tyre-search.loading {
  opacity: 0.7;
  pointer-events: none;
}
.tyre-search.loading select,
.tyre-search.loading button {
  cursor: not-allowed;
}
/* Grid layout */
.tyre-search select,
.tyre-search button {
  padding: 10px;
  font-size: 14px;
}
.tyre-search button {
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
  .tyre-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .btn-search {
    grid-column: span 2;
  }
}