/* ==========================================================================
   JARI TALENTA — FIND AGENT DIRECTORY STYLESHEET
   ========================================================================== */

:root {
  --primary-navy: #002558;
  --primary-navy-dark: #00122B;
  --primary-navy-light: #003780;
  --secondary-cyan: #00AEEF;
  --secondary-cyan-light: #4CD1FF;
  --accent-gold: #D29C23;
  --accent-gold-light: #E9AF2B;
  --accent-red: #E63946;
  --white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-warm-light: #FDFBF7;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --border-light: rgba(0, 37, 88, 0.08);
  --border-radius-lg: 20px;
  --border-radius-md: 14px;
  --border-radius-sm: 8px;
  --box-shadow-subtle: 0 4px 20px -2px rgba(0, 37, 88, 0.04);
  --box-shadow-hover: 0 16px 36px -8px rgba(0, 37, 88, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.find-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.find-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.find-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-navy);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.find-back-btn:hover {
  background: #E2E8F0;
  color: var(--primary-navy-dark);
}

.find-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-agent-promo {
  background: #E8F4FC;
  color: #0077B6;
  border: 1px solid rgba(0, 174, 239, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-agent-promo:hover {
  background: #0077B6;
  color: var(--white);
}

@media (max-width: 480px) {
  .find-header-inner {
    padding: 8px 14px;
  }
  .find-back-btn {
    font-size: 0.8rem;
    padding: 5px 10px;
    gap: 5px;
  }
  .btn-agent-promo {
    font-size: 0.78rem;
    padding: 5px 10px;
    gap: 4px;
  }
}

/* Hero Section */
.find-hero {
  background: linear-gradient(135deg, #002558 0%, #00122B 100%);
  color: var(--white);
  padding: 50px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.find-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.18) 0%, rgba(0, 37, 88, 0) 70%);
  pointer-events: none;
}

.find-hero-inner {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.find-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(210, 156, 35, 0.15);
  border: 1px solid rgba(210, 156, 35, 0.35);
  color: #F6C042;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.find-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--white);
}

.find-hero h1 span {
  color: var(--accent-gold);
}

.find-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto;
}

/* Search Box Container */
.find-search-wrapper {
  max-width: 1040px;
  margin: -40px auto 40px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.find-search-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 28px 32px;
  box-shadow: 0 20px 45px -10px rgba(0, 37, 88, 0.15);
  border: 1px solid var(--border-light);
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  height: 50px;
  padding: 0 40px 0 16px;
  border-radius: var(--border-radius-md);
  border: 1.5px solid #CBD5E1;
  background-color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--secondary-cyan);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.form-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748B;
}

.btn-search {
  height: 50px;
  padding: 0 32px;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, #D29C23 0%, #B88212 100%);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(210, 156, 35, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(210, 156, 35, 0.5);
  background: #E9AF2B;
  color: #FFFFFF;
}

/* Quick Filter Chips */
.quick-chips-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
}

.quick-chips-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  margin-right: 4px;
}

.quick-chip {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quick-chip:hover {
  background: #E2E8F0;
  color: var(--primary-navy);
}

.quick-chip.active {
  background: #002558;
  color: var(--white);
  border-color: #002558;
}

/* Main Content Area */
.find-main-content {
  max-width: 1140px;
  margin: 0 auto 80px;
  padding: 0 24px;
  flex-grow: 1;
  width: 100%;
}

.results-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
}

.results-count-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.results-count-title span {
  color: var(--accent-gold);
}

.results-region-tag {
  background: #EFF6FF;
  color: #1E40AF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
}

/* Agent Cards Grid */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.agent-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--box-shadow-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(0, 174, 239, 0.3);
}

.agent-card.is-featured {
  border-top: 4px solid var(--accent-gold);
}

.agent-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.agent-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.agent-meta {
  flex-grow: 1;
}

.agent-badge-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #D29C23;
  background: rgba(210, 156, 35, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.agent-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.3;
}

.agent-location-row {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #64748B;
  font-size: 0.82rem;
  margin-top: 4px;
}

.agent-stats-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #F8FAFC;
  border-radius: var(--border-radius-sm);
  margin-bottom: 14px;
  font-size: 0.82rem;
}

.agent-stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.stat-star {
  color: #F59E0B;
}

.agent-services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.service-tag {
  background: #F1F5F9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.agent-card-actions {
  margin-top: auto;
}

.btn-contact-wa {
  width: 100%;
  padding: 12px 18px;
  background: #25D366;
  color: var(--white);
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-contact-wa:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* ==========================================
   EMPTY STATE: EMPATHETIC NOTICE + OPPORTUNITY CARD
   ========================================== */
.find-opportunity-section {
  margin-top: 40px;
}

.empty-state-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.empty-notice-card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--border-radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--box-shadow-subtle);
}

.empty-emot-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFF7ED;
  border: 2px solid #FFEDD5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.empty-emot-icon {
  font-size: 2rem;
  line-height: 1;
}

.empty-notice-content {
  flex-grow: 1;
}

.empty-notice-badge {
  display: inline-block;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 50px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty-notice-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0;
  line-height: 1.3;
}

.empty-notice-title span {
  color: #D29C23;
}

.empty-notice-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.4;
}

.empty-territory-card {
  background: linear-gradient(145deg, #051A3A 0%, #00122B 100%);
  border: 1.5px solid rgba(210, 156, 35, 0.35);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  color: var(--white);
  box-shadow: 0 20px 45px -10px rgba(0, 18, 43, 0.4);
  position: relative;
  overflow: hidden;
}

.empty-territory-card::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(210, 156, 35, 0.15) 0%, rgba(0, 37, 88, 0) 70%);
  pointer-events: none;
}

.empty-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(210, 156, 35, 0.18);
  border: 1px solid rgba(210, 156, 35, 0.4);
  color: #F6C042;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.empty-territory-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--white);
}

.empty-territory-card h2 span {
  color: var(--accent-gold);
}

.empty-lead-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.territory-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.territory-benefit-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(8px);
}

.benefit-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(210, 156, 35, 0.2);
  color: #F6C042;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.territory-benefit-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.territory-benefit-item p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.territory-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-gold-lg {
  padding: 14px 28px;
  background: linear-gradient(135deg, #D29C23 0%, #B88212 100%);
  color: #00122B;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(210, 156, 35, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-gold-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(210, 156, 35, 0.6);
  background: #E9AF2B;
  color: #00122B;
}

.btn-outline-white {
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
}

/* Footer */
.find-footer {
  background: #00122B;
  color: rgba(255, 255, 255, 0.7);
  padding: 30px 24px;
  margin-top: auto;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .find-hero h1 {
    font-size: 1.7rem;
  }

  .find-search-card {
    padding: 20px 18px;
  }

  .search-form-grid {
    grid-template-columns: 1fr;
  }

  .btn-search {
    width: 100%;
  }

  .agents-grid {
    grid-template-columns: 1fr;
  }

  .empty-territory-card {
    padding: 24px 18px;
  }

  .empty-territory-card h2 {
    font-size: 1.35rem;
  }

  .territory-benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .territory-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .btn-gold-lg, .btn-outline-white {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 16px;
    font-size: 0.92rem;
    white-space: normal;
  }
}
