/* Wrapper */
.gsam-search-bar {
  width: 100%;
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Long rounded bar */
.gsam-search-fields {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

.gsam-search-fields input,
.gsam-search-fields select {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: none;
  outline: none;
  font-size: 15px;
  border-radius: 999px;
  background: #f6f7fb;
  transition: background .2s, box-shadow .2s;
}

.gsam-search-fields input:focus,
.gsam-search-fields select:focus {
  background: #eef5ff;
  box-shadow: inset 0 0 0 2px #d6e8ff;
}

/* Radios compact */
.gsam-radio-group {
  display: flex;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
  padding: 0 6px;
}
.gsam-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
}

.gsam-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, #0066ff, #00c2ff);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .06s ease, box-shadow .2s;
}
.gsam-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(0,102,255,0.25); }

/* Dynamic type panel */
.gsam-typewrap {
  margin: 12px auto 0;
  max-width: 900px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 12px;
}
.gsam-typewrap input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  outline: none;
  background: #f9fafb;
}
.gsam-catlist {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.gsam-catitem, .gsam-chosen {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f2f7ff;
  border: 1px solid #e0ecff;
  cursor: pointer;
  text-align: center;
  transition: background .15s;
}
.gsam-catitem:hover { background: #e8f1ff; }

/* Results */
.gsam-results { margin-top: 18px; }
.gsam-item {
  background: #fff;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #eef0f4;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.gsam-item h4 { margin: 0 0 6px; font-size: 18px; color: #0a58ff; }
.gsam-item p { margin: 0 0 4px; color: #333; font-size: 14px; }
.gsam-download {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0a58ff;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}
.gsam-hint, .gsam-empty { color: #666; padding: 10px; }

/* Responsive */
@media (max-width: 820px) {
  .gsam-search-fields { flex-wrap: wrap; border-radius: 20px; }
  .gsam-radio-group { width: 100%; justify-content: center; }
  .gsam-btn { width: 100%; }
}
