/* ==========================================================================
   CivicAI How It Works Process Section
   ========================================================================== */

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
}

.step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand-blue-border);
}

.step-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.step-number-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--color-brand-blue-light);
  color: var(--color-brand-blue);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-brand-blue-border);
}

.step-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-800);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary-950);
  line-height: 1.3;
}

.step-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.step-footer-tip {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: var(--color-emerald-700);
  background-color: var(--color-emerald-50);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
}
/* =====================================================
   Dark Mode — How It Works Icon Contrast
   ===================================================== */

[data-theme="dark"] .step-icon-wrapper {
  background: #1e293b !important;
  color: #60a5fa !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .step-icon-wrapper svg {
  color: #60a5fa !important;
  stroke: #60a5fa !important;
}

[data-theme="dark"] .step-card:nth-child(3) .step-icon-wrapper {
  color: #34d399 !important;
}

[data-theme="dark"] .step-card:nth-child(3) .step-icon-wrapper svg {
  color: #34d399 !important;
  stroke: #34d399 !important;
}

[data-theme="dark"] .step-card:nth-child(4) .step-icon-wrapper {
  color: #fbbf24 !important;
}

[data-theme="dark"] .step-card:nth-child(4) .step-icon-wrapper svg {
  color: #fbbf24 !important;
  stroke: #fbbf24 !important;
}
