/* PPC Wizard — Ylopo-style progressive lead capture */

.ppc-wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 1rem;
}
.ppc-wizard-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ppc-wizard-card {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s;
}
.ppc-wizard-overlay.active .ppc-wizard-card {
  transform: translateY(0);
}

/* Progress bar */
.ppc-wizard-progress {
  height: 6px;
  background: #e5e7eb;
  position: relative;
}
.ppc-wizard-progress__fill {
  height: 100%;
  background: #4a8c5c;
  border-radius: 0 3px 3px 0;
  transition: width 0.4s ease;
  min-width: 4%;
}

/* Step percentage */
.ppc-wizard-pct {
  text-align: center;
  padding: 1.25rem 1.5rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a8c5c;
  font-family: var(--font-body, system-ui, sans-serif);
}

/* Content area */
.ppc-wizard-body {
  padding: 0.75rem 2rem 1.75rem;
  text-align: center;
}

.ppc-wizard-title {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2a3a;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.ppc-wizard-subtitle {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
  font-weight: 400;
}

.ppc-wizard-count {
  font-size: 1.6rem;
  font-weight: 800;
  color: #4a8c5c;
}

/* Option buttons */
.ppc-wizard-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ppc-wizard-option {
  display: block;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.ppc-wizard-option:hover {
  border-color: #4a8c5c;
  background: #f0fdf4;
  color: #1a2a3a;
}
.ppc-wizard-option:active {
  transform: scale(0.98);
}

/* Text input steps (email, name, phone) */
.ppc-wizard-input-group {
  margin-bottom: 1rem;
}

.ppc-wizard-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 1rem;
  color: #1a2a3a;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.ppc-wizard-input:focus {
  border-color: #4a8c5c;
}
.ppc-wizard-input::placeholder {
  color: #9ca3af;
}
.ppc-wizard-input.error {
  border-color: #ef4444;
}

.ppc-wizard-submit {
  display: block;
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  background: #4a8c5c;
  color: #fff;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.ppc-wizard-submit:hover {
  background: #3d7a4e;
}
.ppc-wizard-submit:active {
  transform: scale(0.98);
}
.ppc-wizard-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.ppc-wizard-hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0.75rem 0 0;
}

/* Login link */
.ppc-wizard-login {
  text-align: center;
  padding: 0 2rem 1.25rem;
}
.ppc-wizard-login a {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ppc-wizard-login a:hover {
  color: #374151;
}

/* Step label (Step 1 of 3) */
.ppc-wizard-step-label {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

/* Error message */
.ppc-wizard-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin: 0.4rem 0 0;
  display: none;
}
.ppc-wizard-error.visible {
  display: block;
}

/* Responsive */
@media (max-width: 640px) {
  .ppc-wizard-card {
    max-width: 100%;
    border-radius: 8px;
  }
  .ppc-wizard-body {
    padding: 0.75rem 1.25rem 1.5rem;
  }
  .ppc-wizard-title {
    font-size: 1.2rem;
  }
  .ppc-wizard-option {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}
