/* TAR Vendor Directory — stylesheet */

.tar-directory-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Hero ---- */
.tar-directory-hero {
  text-align: center;
  padding: 48px 20px 36px;
}
.tar-directory-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}
.tar-hero-subtitle {
  font-size: 1.1rem;
  color: #475569;
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.tar-cta-btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.tar-cta-btn:hover { background: #1d4ed8; color: #fff; }

/* ---- Vertical nav ---- */
.tar-vertical-nav {
  margin: 0 0 28px;
  border-bottom: 2px solid #e2e8f0;
}
.tar-vertical-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}
.tar-vertical-nav li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tar-vertical-nav li a:hover,
.tar-vertical-nav li.active a {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* ---- Vendor grid ---- */
.tar-vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 8px 0 40px;
}

.tar-vendor-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tar-vendor-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.tar-vendor-featured {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 60%);
}

.tar-badge-featured {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}
.tar-vendor-card .tar-badge-featured {
  position: absolute;
  top: 14px;
  right: 14px;
}

.tar-vendor-logo img {
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 2px;
}
.tar-vendor-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}
.tar-vendor-name a { color: inherit; text-decoration: none; }
.tar-vendor-name a:hover { color: #2563eb; }

.tar-badge-vertical {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
}
a.tar-badge-vertical:hover { background: #e2e8f0; }

.tar-vendor-excerpt {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.tar-vendor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ---- Buttons ---- */
.tar-btn {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
  text-align: center;
}
.tar-btn-primary { background: #2563eb; color: #fff; }
.tar-btn-primary:hover { background: #1d4ed8; color: #fff; }
.tar-btn-secondary {
  background: transparent;
  color: #2563eb;
  border: 1.5px solid #2563eb;
}
.tar-btn-secondary:hover { background: #eff6ff; }
.tar-btn-lg { padding: 12px 22px; font-size: 1rem; }
.tar-btn-xl { padding: 16px 32px; font-size: 1.05rem; }
.tar-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.tar-empty { color: #64748b; padding: 40px 0; text-align: center; }

/* ---- Promo section ---- */
.tar-directory-promo {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}
.tar-directory-promo h2 { font-size: 1.6rem; color: #0f172a; margin-bottom: 10px; }
.tar-directory-promo > p { color: #475569; margin-bottom: 32px; }

.tar-promo-tiers {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tar-promo-tier {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  width: 240px;
  text-align: left;
}
.tar-promo-featured {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #2563eb20;
}
.tar-promo-tier h3 { font-size: 1.1rem; margin: 0 0 8px; color: #0f172a; }
.tar-price { font-size: 2rem; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.tar-price span { font-size: 1rem; font-weight: 400; color: #64748b; }
.tar-promo-tier ul { list-style: none; padding: 0; margin: 0 0 20px; }
.tar-promo-tier ul li {
  font-size: 0.875rem;
  color: #475569;
  padding: 4px 0 4px 18px;
  position: relative;
}
.tar-promo-tier ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}
.tar-recommended-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ---- Single vendor ---- */
.tar-single-wrap { padding-top: 20px; }
.tar-breadcrumb {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tar-breadcrumb a { color: #2563eb; text-decoration: none; }
.tar-breadcrumb a:hover { text-decoration: underline; }
.tar-breadcrumb span { color: #94a3b8; }

.tar-vendor-single { margin-bottom: 48px; }

.tar-single-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tar-single-logo img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.tar-single-title-block { flex: 1; min-width: 200px; }
.tar-single-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tar-single-verticals { display: flex; gap: 6px; flex-wrap: wrap; }
.tar-single-cta-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

.tar-single-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 680px) {
  .tar-single-body { grid-template-columns: 1fr; }
}
.tar-single-description h2,
.tar-single-features h2 { font-size: 1.2rem; color: #0f172a; margin-bottom: 12px; }
.tar-single-description p,
.tar-single-description ul { color: #334155; line-height: 1.7; }

.tar-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tar-feature-list li {
  padding: 7px 0 7px 20px;
  position: relative;
  color: #334155;
  font-size: 0.95rem;
  border-bottom: 1px solid #f1f5f9;
}
.tar-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.tar-single-footer-cta {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  margin: 0 0 40px;
}
.tar-single-footer-cta p { color: #0369a1; font-size: 1.1rem; font-weight: 600; margin: 0; }

.tar-single-related { margin-top: 40px; }
.tar-single-related h3 { font-size: 1.2rem; color: #0f172a; margin-bottom: 16px; }
.tar-related-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---- Form ---- */
.tar-form-wrap { max-width: 740px; margin: 0 auto; padding: 20px 0 60px; }

.tar-form-intro { margin-bottom: 24px; }
.tar-form-intro h2 { font-size: 1.6rem; color: #0f172a; margin-bottom: 8px; }
.tar-form-intro p { color: #475569; }

.tar-tier-selector {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tar-tier-option {
  position: relative;
  flex: 1;
  min-width: 200px;
  cursor: pointer;
}
.tar-tier-option input[type="radio"] { display: none; }
.tar-tier-card {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.tar-tier-option.selected .tar-tier-card,
.tar-tier-option input:checked ~ .tar-tier-card {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #2563eb20;
}
.tar-tier-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.tar-tier-card ul { list-style: none; padding: 0; margin: 10px 0 0; }
.tar-tier-card ul li {
  font-size: 0.85rem;
  color: #475569;
  padding: 3px 0 3px 16px;
  position: relative;
}
.tar-tier-card ul li::before { content: '✓'; position: absolute; left: 0; color: #22c55e; font-weight: 700; }

.tar-tier-option .tar-recommended-badge { top: -10px; left: 50%; transform: translateX(-50%); }

.tar-form-section { margin-bottom: 28px; }
.tar-form-section h3 {
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.tar-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .tar-form-row { grid-template-columns: 1fr; } }

.tar-form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 4px; }
.tar-form-field-full { margin-bottom: 16px; }
.tar-form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}
.tar-form-field label .required { color: #ef4444; }
.tar-form-field label .note { font-size: 0.8rem; font-weight: 400; color: #6b7280; }
.tar-form-field input,
.tar-form-field select,
.tar-form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
  font-family: inherit;
}
.tar-form-field input:focus,
.tar-form-field select:focus,
.tar-form-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #2563eb15;
}
.tar-field-hint { font-size: 0.8rem; color: #6b7280; margin: 2px 0 0; }

.tar-form-submit-row { margin-top: 28px; }
.tar-form-legal {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 12px;
  line-height: 1.5;
}
.tar-form-legal a { color: #2563eb; }

/* ---- Notices ---- */
.tar-notice {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.tar-notice-warn { background: #fefce8; border: 1px solid #fde047; color: #713f12; }
.tar-notice-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.tar-notice-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .tar-directory-hero h1 { font-size: 1.7rem; }
  .tar-vendor-grid { grid-template-columns: 1fr; }
  .tar-promo-tiers { flex-direction: column; align-items: center; }
  .tar-promo-tier { width: 100%; max-width: 320px; }
  .tar-single-header { flex-direction: column; }
  .tar-single-cta-block { flex-direction: row; flex-wrap: wrap; }
}
