/* Convert & Count - Lead Capture Pop-up Styles */
.cc-lead-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.cc-lead-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cc-lead-modal {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 34px 30px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.cc-lead-backdrop.active .cc-lead-modal {
  transform: translateY(0) scale(1);
}

/* Dark Theme Support */
[data-theme="dark"] .cc-lead-modal {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

.cc-lead-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.cc-lead-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="dark"] .cc-lead-close {
  background: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .cc-lead-close:hover {
  background: #475569;
  color: #ffffff;
}

.cc-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

[data-theme="dark"] .cc-lead-badge {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
}

.cc-lead-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 10px;
}

[data-theme="dark"] .cc-lead-title {
  color: #ffffff;
}

.cc-lead-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 18px;
}

[data-theme="dark"] .cc-lead-desc {
  color: #cbd5e1;
}

.cc-lead-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-lead-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #334155;
  font-weight: 500;
}

[data-theme="dark"] .cc-lead-perks li {
  color: #cbd5e1;
}

.cc-lead-perks li svg {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
}

.cc-lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-lead-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.95rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.cc-lead-input:focus {
  border-color: #315ce8;
  box-shadow: 0 0 0 3px rgba(49, 92, 232, 0.18);
}

[data-theme="dark"] .cc-lead-input {
  background: #0f172a;
  border-color: #334155;
  color: #ffffff;
}

[data-theme="dark"] .cc-lead-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.cc-lead-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  background: #315ce8;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
  text-decoration: none;
}

.cc-lead-btn:hover {
  background: #2549c7;
}

.cc-lead-btn:active {
  transform: scale(0.985);
}

.cc-lead-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cc-lead-btn.download-cta {
  background: #10b981;
}

.cc-lead-btn.download-cta:hover {
  background: #059669;
}

.cc-lead-dismiss {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: none;
  cursor: pointer;
}

.cc-lead-dismiss:hover {
  color: #64748b;
  text-decoration: underline;
}

[data-theme="dark"] .cc-lead-dismiss:hover {
  color: #cbd5e1;
}

.cc-lead-error {
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 8px;
  display: none;
}

[data-theme="dark"] .cc-lead-error {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* Success Card */
.cc-lead-success {
  display: none;
  text-align: center;
  padding: 10px 0;
}

.cc-lead-success-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #d1fae5;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

[data-theme="dark"] .cc-lead-success-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.cc-lead-success h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #0f172a;
}

[data-theme="dark"] .cc-lead-success h3 {
  color: #ffffff;
}

.cc-lead-success p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 20px;
  line-height: 1.5;
}

[data-theme="dark"] .cc-lead-success p {
  color: #94a3b8;
}

@media (max-width: 520px) {
  .cc-lead-modal {
    padding: 26px 20px;
  }
  .cc-lead-title {
    font-size: 1.25rem;
  }
}
