/* ==============================================================================
   ELECTION MANAGER - SERVICE PROVIDERS MARKETPLACE & CAMPAIGN CRM ERP STYLES
   LinkedIn for Elections | Campaign CRM | Pan-India Election Calendar
   ============================================================================== */

/* --- MARKETPLACE DIRECTORY --- */
.marketplace-container {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.marketplace-hero-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.marketplace-hero-text h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.marketplace-hero-text p {
  color: #94a3b8;
  font-size: 14.5px;
  max-width: 650px;
  line-height: 1.5;
}

.marketplace-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-marketplace-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
}

.btn-marketplace-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-marketplace-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-marketplace-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Filter Controls */
.directory-filters-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.filter-search-box input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 13.5px;
  outline: none;
  color: #0f172a;
}

.filter-search-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.filter-select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 13.5px;
  color: #1e293b;
  background-color: #ffffff;
  cursor: pointer;
  outline: none;
  min-width: 160px;
}

.filter-select:focus {
  border-color: #2563eb;
}

/* Category Quick Filter Pills */
.category-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.category-pill {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.category-pill:hover, .category-pill.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Provider Cards Grid */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.provider-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  position: relative;
}

.provider-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #93c5fd;
}

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

.provider-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.provider-header-meta {
  flex: 1;
}

.provider-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.provider-name {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
}

.badge-verified {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-type {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-type.agency {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-type.individual {
  background: #fdf4ff;
  color: #a21caf;
  border: 1px solid #f0abfc;
}

.provider-category-tag {
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 3px;
}

.provider-location-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.provider-rating {
  color: #d97706;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.provider-tagline {
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 12px;
}

.provider-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.skill-tag {
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 500;
}

.provider-past-elections {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #475569;
  margin-bottom: 14px;
}

.provider-past-elections strong {
  color: #0f172a;
}

.provider-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.provider-pricing {
  font-size: 12.5px;
  color: #64748b;
}

.provider-pricing strong {
  color: #0f172a;
  font-size: 13.5px;
}

.provider-actions {
  display: flex;
  gap: 8px;
}

.btn-card-sm {
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: 0.15s;
}

.btn-card-outline {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.btn-card-outline:hover {
  background: #eff6ff;
}

.btn-card-solid {
  background: #2563eb;
  color: #ffffff;
}

.btn-card-solid:hover {
  background: #1d4ed8;
}

/* --- CAMPAIGN CRM & ERP STYLES --- */
.crm-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 16px 0;
}

.crm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.crm-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.crm-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--kpi-accent, #2563eb);
}

.crm-kpi-val {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  display: block;
}

.crm-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 4px;
}

.crm-kpi-sub {
  font-size: 11.5px;
  color: #10b981;
  font-weight: 600;
  margin-top: 4px;
}

/* Kanban Board Columns */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

.kanban-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 480px;
}

.kanban-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.kanban-col-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-count-badge {
  background: #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.kanban-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crm-task-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s, border-color 0.15s;
  cursor: grab;
}

.crm-task-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.task-priority-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.priority-urgent {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.priority-high {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fdba74;
}

.priority-medium {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.priority-low {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.task-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 8px 0 6px 0;
  line-height: 1.35;
}

.task-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 10px;
}

.task-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #64748b;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.task-due-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-assignee {
  font-weight: 600;
  color: #1e293b;
}

.task-status-selector {
  margin-top: 8px;
  width: 100%;
  padding: 5px 8px;
  font-size: 11.5px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

/* --- PAN-INDIA ELECTION CALENDAR & ARCHIVE --- */
.calendar-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.calendar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, border-color 0.2s;
}

.calendar-card:hover {
  transform: translateX(4px);
  border-color: #2563eb;
}

.calendar-state-info {
  display: flex;
  gap: 18px;
  align-items: center;
}

.calendar-badge-year {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 16px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  text-align: center;
  min-width: 80px;
}

.calendar-badge-year small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #3b82f6;
  text-transform: uppercase;
}

.calendar-details h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.calendar-details p {
  font-size: 13px;
  color: #64748b;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.calendar-key-seats {
  margin-top: 6px;
  font-size: 12px;
  color: #475569;
}

.calendar-key-seats strong {
  color: #1e293b;
}

.calendar-actions-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-poll-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Modal Form Styles */
.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-full-col {
  grid-column: 1 / -1;
}

.dummy-accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.dummy-account-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.dummy-account-card:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.dummy-acc-role {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 2px;
}

.dummy-acc-user {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.dummy-acc-creds {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

/* --- LEAD CAPTURE & DEMO REQUEST STYLES --- */
.demo-success-banner {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.demo-error-banner {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.lead-section-wrapper {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 26, 0.98) 100%);
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  padding: 80px 20px;
}

.lead-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  max-width: 760px;
  margin: 0 auto;
}

.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .lead-form-grid {
    grid-template-columns: 1fr;
  }
}

.trust-badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}
