/* ProStore AI Brand Colors */
:root {
  --primary: #7335fc;
  --primary-dark: #5a28c9;
  --accent: #7ee8a0;
  --accent-hover: #6dd991;
  --bg-dark: #0d0d1a;
  --bg-card: #1a1a2e;
  --bg-input: #252540;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b8a;
  --border: #3a3a5c;
  --success: #7ee8a0;
  --gradient-start: #1a1a2e;
  --gradient-end: #0d0d1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-primary);
}

.container {
  width: 100%;
  max-width: 440px;
}

.card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 25px 80px rgba(115, 53, 252, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Subtle glow effect */
.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(115, 53, 252, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.logo img {
  height: 40px;
  margin-bottom: 0;
}

.logo h1 {
  display: none; /* Hidden when logo loads */
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(115, 53, 252, 0.2);
  border: 1px solid rgba(115, 53, 252, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
}

.badge-icon {
  font-size: 14px;
}

/* Steps */
.step {
  display: none;
  position: relative;
  z-index: 1;
}

.step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  width: 100%;
  padding: 16px 18px;
  font-size: 16px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(115, 53, 252, 0.15);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 18px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0d0d1a;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(57, 255, 20, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Quiz Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
}

.quiz-option:hover {
  border-color: var(--primary);
  background: rgba(115, 53, 252, 0.1);
  transform: translateX(4px);
}

.quiz-option:active {
  transform: scale(0.98);
}

.quiz-option .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(115, 53, 252, 0.15);
  border-radius: 12px;
  font-size: 22px;
}

.quiz-option .icon .material-symbols-outlined {
  font-size: 26px;
  color: var(--primary);
}

/* Thank You */
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(126, 232, 160, 0.15);
  border-radius: 50%;
  font-size: 40px;
}

.success-icon .material-symbols-outlined {
  font-size: 48px;
  color: var(--accent);
}

.thanks-note {
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 20px;
  padding: 16px;
  background: rgba(126, 232, 160, 0.1);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  text-align: left;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.thanks-note .note-icon {
  font-size: 24px;
  color: var(--accent);
}

/* Loading */
.loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  border-radius: 20px;
}

.loading.hidden {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 12px;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

/* Progress indicator */
.progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
}

.progress-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

.progress-dot.completed {
  background: var(--accent);
}

/* Responsive */
@media (max-width: 480px) {
  .card {
    padding: 32px 24px;
    border-radius: 16px;
  }
  
  h2 {
    font-size: 22px;
  }
  
  .quiz-option {
    padding: 16px;
  }
  
  .quiz-option .icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* WhatsApp Connect Screen */
.whatsapp-message-preview {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 16px;
  padding: 16px;
  margin: 20px 0;
  position: relative;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.message-header .material-symbols-outlined {
  font-size: 18px;
  color: #25D366;
}

.message-content {
  background: var(--bg-input);
  border-radius: 12px;
  padding: 16px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--border);
  color: var(--text-primary);
}

.copy-btn.copied {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25D366;
  color: #25D366;
}

.copy-btn .material-symbols-outlined {
  font-size: 18px;
}

/* WhatsApp Button */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:active {
  transform: translateY(-1px);
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

.thanks-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}

/* Success icon animation */
#step-thanks .success-icon .material-symbols-outlined {
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Manual Alternative */
.manual-alternative {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.manual-alternative p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.phone-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.phone-number:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.phone-number .copy-icon {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.phone-number:hover .copy-icon {
  opacity: 1;
}

.phone-number .copied-msg {
  display: none;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(5px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  85% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-5px); }
}
