/* ═══════════════════════════════════════════════════════════
   TAN Search Form — [tan_search] shortcode
   Loads on every page where the shortcode appears
   ═══════════════════════════════════════════════════════════ */

:root {
  --tan-navy:    #1B2A4A;
  --tan-red:     #C0392B;
  --tan-accent:  #2E86AB;
  --tan-silver:  #F4F6F8;
  --tan-border:  #D0D5DD;
  --tan-gray:    #4A5568;
  --tan-light:   #718096;
  --tan-white:   #FFFFFF;
  --tan-radius:  10px;
  --tan-shadow:  0 4px 24px rgba(0,0,0,0.12);
}

/* ── Hero style (homepage) ───────────────────────────────── */
.tan-search-form--hero {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.tan-search-form--hero .tan-sf-inner {
  display: flex;
  align-items: stretch;
  background: var(--tan-white);
  border-radius: 12px;
  box-shadow: var(--tan-shadow);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
}

.tan-search-form--hero .tan-sf-field {
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  flex: 1;
  position: relative;
}

.tan-search-form--hero .tan-sf-field--category {
  flex: 1.1;
  border-right: 1px solid var(--tan-border);
}

.tan-search-form--hero .tan-sf-field--location {
  flex: 1.2;
}

.tan-sf-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tan-light);
  margin-bottom: 4px;
}

.tan-sf-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tan-sf-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--tan-light);
}

.tan-sf-select,
.tan-sf-input {
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--tan-navy);
  background: transparent;
  width: 100%;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
}

.tan-sf-select option { color: var(--tan-navy); }

.tan-sf-divider {
  width: 1px;
  background: var(--tan-border);
  margin: 10px 0;
}

.tan-sf-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tan-navy);
  color: var(--tan-white);
  border: none;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  font-family: inherit;
  flex-shrink: 0;
}

.tan-sf-btn svg { width: 16px; height: 16px; }

.tan-sf-btn:hover { background: #C0392B; }

/* ── Compact style (sidebar / inline) ───────────────────── */
.tan-search-form--compact .tan-sf-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tan-search-form--compact .tan-sf-field {
  flex: 1;
  min-width: 140px;
}

.tan-search-form--compact .tan-sf-divider { display: none; }

.tan-search-form--compact .tan-sf-select,
.tan-search-form--compact .tan-sf-input {
  padding: 10px 12px;
  border: 1px solid var(--tan-border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--tan-white);
  width: 100%;
}

.tan-search-form--compact .tan-sf-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .tan-search-form--hero .tan-sf-inner {
    flex-direction: column;
    border-radius: 10px;
  }
  .tan-search-form--hero .tan-sf-field {
    border-right: none;
    border-bottom: 1px solid var(--tan-border);
  }
  .tan-search-form--hero .tan-sf-divider { display: none; }
  .tan-sf-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    border-radius: 0 0 8px 8px;
  }
}
