/* =============================================================
   Zuke Signup Wizard — wizard.css
   signup.zuke.co.za
   ============================================================= */

:root {
  --orange:        #ff8b00;
  --orange-dark:   #e07a00;
  --orange-light:  #fff8f0;
  --dark:          #0f1117;
  --dark-mid:      #1a1d27;
  --dark-light:    #2a2d3e;
  --gray-50:       #f9fafb;
  --gray-100:      #f3f4f6;
  --gray-200:      #e5e7eb;
  --gray-300:      #d1d5db;
  --gray-400:      #9ca3af;
  --gray-500:      #6b7280;
  --gray-700:      #374151;
  --gray-900:      #111827;
  --green:         #10b981;
  --red:           #ef4444;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:        10px;
  --ease:          0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ────────────────────────────────────────────────── */
#wizard-app {
  display: flex;
  min-height: 100vh;
}

/* ── Left Panel ────────────────────────────────────────────── */
.wizard-left {
  width: 400px;
  min-width: 400px;
  background: var(--dark);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.left-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px 48px;
}

.wizard-logo {
  display: block;
  margin-bottom: 56px;
  text-decoration: none;
  flex-shrink: 0;
}

.wizard-logo img {
  height: 30px;
  width: auto;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.5px;
}

.left-content { flex: 1; }

.left-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.left-headline {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 36px;
  transition: opacity 0.3s ease;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.benefit-check {
  color: var(--orange);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  flex-shrink: 0;
}

.left-testimonial {
  margin-top: auto;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.testimonial-quote {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}

.testimonial-author {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 18px;
}

.trusted-line {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.trusted-line strong { color: var(--orange); }

/* ── Right Panel ───────────────────────────────────────────── */
.wizard-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 100vh;
}

/* Progress bar */
.progress-bar-wrap {
  height: 3px;
  background: var(--gray-100);
  flex-shrink: 0;
}

.progress-bar {
  height: 100%;
  background: var(--orange);
  transition: width 0.5s ease;
}

/* Step container */
.step-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 80px;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Bottom nav */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 80px;
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}

.step-dots {
  display: flex;
  gap: 6px;
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: all 0.3s ease;
}

.step-dot.active {
  width: 20px;
  border-radius: 3px;
  background: var(--orange);
}

.step-dot.done {
  background: var(--orange);
  opacity: 0.35;
}

/* ── Step content ──────────────────────────────────────────── */
.step-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.step-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.step-subtitle {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.55;
  margin-bottom: 36px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,139,0,0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 24px;
  background: #fff;
  color: var(--gray-700);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--ease);
  margin-bottom: 12px;
}

.btn-google:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-back {
  font-family: var(--font);
  font-size: 13px;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: color var(--ease);
}

.btn-back:hover { color: var(--gray-700); }

.btn-next {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: color var(--ease);
}

.btn-next:hover:not(:disabled) { color: var(--orange-dark); }
.btn-next:disabled { opacity: 0.35; cursor: not-allowed; }

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  color: var(--gray-300);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select {
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-900);
  background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,139,0,0.1);
}

.form-group input::placeholder { color: var(--gray-300); }

/* ── Type / Profile type cards ─────────────────────────────── */
.type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.type-card {
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 18px 14px;
  cursor: pointer;
  text-align: center;
  transition: all var(--ease);
  user-select: none;
}

.type-card:hover { border-color: var(--orange); background: var(--orange-light); }
.type-card.selected { border-color: var(--orange); background: var(--orange-light); }

.type-card-icon { font-size: 28px; margin-bottom: 8px; }
.type-card-title { font-size: 13px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.type-card-desc { font-size: 11px; color: var(--gray-400); line-height: 1.4; }

/* ── Plan cards ────────────────────────────────────────────── */
.billing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--gray-500);
}

.toggle-track {
  width: 44px;
  height: 24px;
  background: var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background var(--ease);
  flex-shrink: 0;
}

.toggle-track.on { background: var(--orange); }

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform var(--ease);
}

.toggle-track.on .toggle-thumb { transform: translateX(20px); }

.toggle-label-active { font-weight: 600; color: var(--gray-900); }

.save-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 4px;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.plan-card {
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all var(--ease);
  position: relative;
  user-select: none;
}

.plan-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,139,0,0.1);
}

.plan-card.selected {
  border-color: var(--orange);
  background: var(--orange-light);
  box-shadow: 0 4px 12px rgba(255,139,0,0.12);
}

.plan-badge {
  position: absolute;
  top: -9px;
  right: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-name { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.plan-monthly { font-size: 20px; font-weight: 800; color: var(--orange); }
.plan-monthly span { font-size: 12px; font-weight: 400; color: var(--gray-400); }
.plan-total { font-size: 11px; color: var(--gray-400); margin-bottom: 8px; }
.plan-desc { font-size: 11px; color: var(--gray-400); line-height: 1.4; }

.promo-link {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
}

.promo-link a {
  color: var(--orange);
  font-weight: 500;
  text-decoration: none;
}

.promo-link a:hover { text-decoration: underline; }

/* ── Promo code ─────────────────────────────────────────────── */
.promo-box {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}

.promo-box label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.promo-input-row {
  display: flex;
  gap: 10px;
}

.promo-input-row input {
  flex: 1;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  outline: none;
  text-transform: uppercase;
  transition: border-color var(--ease);
  background: #fff;
}

.promo-input-row input:focus { border-color: var(--orange); }

.btn-apply {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease);
}

.btn-apply:hover:not(:disabled) { background: var(--dark-light); }
.btn-apply:disabled { opacity: 0.5; cursor: not-allowed; }

.promo-status {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  min-height: 18px;
}

.promo-status.success { color: var(--green); }
.promo-status.error { color: var(--red); }
/* ── Intro offer banner ──────────────────────────────────────── */
.intro-offer-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #fff8f0, #fff3e0);
  border: 1.5px solid var(--orange);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-offer-badge {
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.intro-offer-text {
  flex: 1;
}

.intro-offer-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.intro-offer-sub {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* Strikethrough price */
.price-strike {
  font-size: 16px;
  color: var(--gray-400);
  text-decoration: line-through;
  font-weight: 500;
  margin-bottom: 2px;
}

.price-discounted {
  font-size: 36px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -1px;
  line-height: 1;
}

.price-then {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}

.price-asterisk {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 16px;
  line-height: 1.5;
  font-style: italic;
}
/* ── Payment summary ────────────────────────────────────────── */
.payment-summary {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.payment-summary-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.payment-summary-amount {
  font-size: 34px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.payment-summary-period {
  font-size: 13px;
  color: var(--gray-400);
}

/* ── Success screen ─────────────────────────────────────────── */
.success-screen { text-align: center; }

.success-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: block;
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.success-subtitle {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.success-plan-badge {
  display: inline-block;
  background: var(--orange-light);
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

/* ── Auth helper text ───────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--gray-400);
}

.auth-footer a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

/* ── Loading ────────────────────────────────────────────────── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gray-400);
  font-size: 14px;
  min-height: 280px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--gray-100);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--gray-900);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.error { background: var(--red); }
.toast.success { background: var(--green); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .wizard-left { display: none; }

  .step-container {
    padding: 40px 32px;
    justify-content: flex-start;
    padding-top: 48px;
  }

  .step-nav { padding: 18px 32px; }
  .plan-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .step-container { padding: 32px 20px; }
  .step-nav { padding: 14px 20px; }
  .step-title { font-size: 24px; }
  .type-cards { grid-template-columns: 1fr; }
}
