/* ToolVerse browser-tools — shared branded form fields.
 * Isolated to the /tools/ pilot collection. Loaded after guides.css so
 * .tv-field wins over generic .tool-grid input rules. No global styles here.
 */
input.tv-field,
textarea.tv-field,
select.tv-field {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #d9f3ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.6;
  background:
    linear-gradient(135deg, #0a1930 0%, #101c3d 52%, #1b1547 100%) padding-box,
    linear-gradient(135deg, rgba(103, 232, 249, 0.38), rgba(167, 139, 250, 0.38)) border-box;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(103, 232, 249, 0.06);
}

textarea.tv-field {
  min-height: 120px;
  resize: vertical;
}

input.tv-field::placeholder,
textarea.tv-field::placeholder {
  color: #7ea7cf;
  opacity: 1;
}

input.tv-field:focus,
textarea.tv-field:focus,
select.tv-field:focus {
  outline: 3px solid rgba(103, 232, 249, 0.55);
  outline-offset: 2px;
  background:
    linear-gradient(135deg, #0c1e38 0%, #13224a 52%, #211b56 100%) padding-box,
    linear-gradient(135deg, rgba(103, 232, 249, 0.8), rgba(167, 139, 250, 0.8)) border-box;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(103, 232, 249, 0.12);
}

input.tv-field:disabled,
textarea.tv-field:disabled,
select.tv-field:disabled {
  opacity: 0.6;
}

@media (max-width: 800px) {
  input.tv-field,
  textarea.tv-field,
  select.tv-field {
    font-size: 16px; /* prevent iOS auto-zoom on focus */
  }
}

/* Tools hub — "Find a tool" search field.
 * Pill shape with an inline search icon, scoped to the hub search input
 * only (#tools-search-input). Does not affect .tv-field or tool pages.
 */
.tools-search-wrap {
  position: relative;
}

.tools-search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #7ea7cf;
  pointer-events: none;
}

input.tools-search-field {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 18px 12px 44px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #d9f3ff;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

input.tools-search-field::placeholder {
  color: #7ea7cf;
  opacity: 1;
}

input.tools-search-field:focus {
  outline: none;
  border-color: rgba(103, 232, 249, 0.85);
  box-shadow:
    0 0 0 3px rgba(103, 232, 249, 0.35),
    inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 800px) {
  input.tools-search-field {
    font-size: 16px; /* prevent iOS auto-zoom on focus */
  }
}
