:root {
  --cvg-lead-primary: #dc2626;
  --cvg-lead-dark: #0f172a;
  --cvg-lead-light: #f8fafc;
  --cvg-lead-border: #e2e8f0;
  --cvg-lead-text: #0f172a;
  --cvg-lead-muted: #64748b;
}

.cvg-lead-bar {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--cvg-lead-dark);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cvg-lead-bar strong {
  font-weight: 700;
}

.cvg-lead-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cvg-lead-bar input {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  min-width: 220px;
}

.cvg-lead-bar button {
  background: var(--cvg-lead-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.cvg-lead-bar .cvg-lead-close {
  margin-left: auto;
  font-size: 1.2rem;
  cursor: pointer;
  color: #cbd5f5;
}

.cvg-sticky-cta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
  background: var(--cvg-lead-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.cvg-lead-card {
  background: var(--cvg-lead-light);
  border: 1px solid var(--cvg-lead-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 960px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.cvg-lead-card h3 {
  margin-bottom: 0.5rem;
  color: var(--cvg-lead-text);
}

.cvg-lead-card p {
  margin-bottom: 1rem;
  color: var(--cvg-lead-muted);
}

.cvg-lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.cvg-lead-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cvg-lead-field input,
.cvg-lead-field textarea,
.cvg-lead-field select {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--cvg-lead-border);
  font-family: inherit;
}

.cvg-lead-submit {
  background: var(--cvg-lead-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.cvg-lead-footer {
  background: var(--cvg-lead-dark);
  color: #e2e8f0;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  margin-top: 2rem;
}

.cvg-lead-footer h3 {
  color: #fff;
}

.cvg-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  padding: 1.5rem;
}

.cvg-lead-modal.open {
  display: flex;
}

.cvg-lead-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  max-width: 640px;
  width: 100%;
  position: relative;
}

.cvg-lead-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.cvg-lead-note {
  font-size: 0.85rem;
  color: var(--cvg-lead-muted);
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .cvg-lead-bar {
    position: relative;
  }

  .cvg-lead-bar input {
    min-width: 100%;
  }

  .cvg-sticky-cta {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
    text-align: center;
  }
}