/* =============================================================================
   Trademark Seva — Search Card widget CSS  (tmseva-search.css)
   Scoped to .tmh-search-card so it works standalone anywhere on the page.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

/* ── Variables ──────────────────────────────────────────────────────────────── */
.tmh-search-card {
  --sc-blue:     #2456D8;
  --sc-green:    #15A05A;
  --sc-ink:      #16203A;
  --sc-ink-soft: #5A6379;
  --sc-line:     #E4E7F0;
  --sc-red:      #E5484D;

  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(22,32,58,.04), 0 4px 14px rgba(22,32,58,.06);
  padding: 20px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  line-height: 1.5;
  color: var(--sc-ink);
  box-sizing: border-box;
}
.tmh-search-card *,
.tmh-search-card *::before,
.tmh-search-card *::after { box-sizing: border-box; }

/* ── Field group ────────────────────────────────────────────────────────────── */
.tmh-search-card .tmh-field { margin-bottom: 13px; }

.tmh-search-card .tmh-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-ink);
  margin: 0 0 7px;
}
.tmh-search-card .tmh-field label small {
  display: inline;
  font-weight: 400;
  color: var(--sc-ink-soft);
  font-size: 12px;
}

/* ── Inputs ─────────────────────────────────────────────────────────────────── */
.tmh-search-card .tmh-field input[type="text"],
.tmh-search-card .tmh-field textarea {
  width: 100%;
  border: 1.5px solid var(--sc-line);
  border-radius: 11px;
  background: #FBFCFE;
  font: 500 15px 'Hanken Grotesk', system-ui, sans-serif;
  color: var(--sc-ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  display: block;
}
.tmh-search-card .tmh-field input[type="text"]:focus,
.tmh-search-card .tmh-field textarea:focus {
  border-color: var(--sc-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36,86,216,.13);
}
.tmh-search-card .tmh-field textarea { resize: vertical; min-height: 72px; }

/* ── Error states ───────────────────────────────────────────────────────────── */
.tmh-search-card .tmh-inp-error {
  border-color: var(--sc-red) !important;
  box-shadow: 0 0 0 3px rgba(229,72,77,.12) !important;
}
.tmh-search-card .tmh-field-msg {
  font-size: 11.5px;
  color: var(--sc-red);
  margin-top: 4px;
  display: none;
}
.tmh-search-card .tmh-field-msg.visible { display: block; }

/* ── Character counter ──────────────────────────────────────────────────────── */
.tmh-search-card .tmh-field-foot {
  text-align: right;
  font-size: 11px;
  color: #A6AFC6;
  margin-top: 4px;
}

/* ── Submit button ──────────────────────────────────────────────────────────── */
.tmh-search-card .tmh-btn-grn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--sc-green);
  color: #fff;
  border: none;
  border-radius: 11px;
  font: 600 15px 'Hanken Grotesk', system-ui, sans-serif;
  cursor: pointer;
  padding: 14px 22px;
  transition: background .15s;
  text-decoration: none;
  -webkit-appearance: none;
}
.tmh-search-card .tmh-btn-grn:hover,
.tmh-search-card .tmh-btn-grn:focus { background: #128a4d; color: #fff; }
.tmh-search-card .tmh-btn-grn svg { width: 17px; height: 17px; flex-shrink: 0; }
.tmh-search-card .tmh-btn-grn:disabled { opacity: .7; cursor: default; pointer-events: none; }

/* Spinner inside the busy button */
@keyframes tmh-spin {
  to { transform: rotate(360deg); }
}
.tmh-spinner {
  display: inline-block;
  width: 17px;
  height: 17px;
  vertical-align: middle;
  margin-right: 4px;
  animation: tmh-spin 0.75s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .tmh-spinner { animation: none; }
}

/* ── Safety note ────────────────────────────────────────────────────────────── */
.tmh-search-card .tmh-safety {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  color: var(--sc-ink-soft);
  margin-top: 11px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.tmh-search-card .tmh-safety svg { width: 14px; height: 14px; color: var(--sc-green); flex-shrink: 0; }
