/* Onboarding wizard layout. Glassmorphism panel styling, modern inputs,
   and animated progress markers that align with the dark-forest branding. */

.wizard-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, rgba(7, 13, 11, 0) 80%),
              var(--bg);
  background-image: var(--wallpaper);
  position: relative;
}

.wizard-card {
  background: rgba(15, 26, 23, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(52, 211, 153, 0.05);
  padding: 40px;
  position: relative;
  z-index: 5;
  animation: wizard-card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wizard-card-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wizard-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.wizard-brand .logo-mark {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.3));
}

.wizard-subtitle {
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

/* Progress indicator */

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.wizard-progress .dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-progress .bar {
  width: 36px;
  height: 2px;
  background: var(--border);
  transition: background 0.3s ease;
}

.wizard-progress .dot.is-active {
  background: var(--brand-bright);
  border-color: var(--brand-bright);
  color: #030712;
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}

.wizard-progress .dot.is-done {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-bright);
}

/* Step panels */

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
  animation: wizard-fade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wizard-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  transition: all 0.25s ease;
}

.field input::placeholder {
  color: var(--ink-faint);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.field select option {
  background: #0c1512;
  color: #fff;
}

.field .hint {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 6px;
}

.field .field-error {
  font-size: 12.5px;
  color: var(--err);
  margin-top: 6px;
  display: none;
}

.field.has-error input,
.field.has-error select {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field.has-error .field-error {
  display: block;
}

.wizard-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.wizard-actions .btn {
  flex: 1;
}

.wizard-actions .btn-secondary {
  flex: 0 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.wizard-banner {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}

.wizard-banner.is-visible {
  display: block;
  animation: wizard-fade 0.25s ease;
}

.wizard-banner.is-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.wizard-banner.is-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

/* Step 3 — Setup method */

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.choice-card:focus-within {
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
}

.choice-radio {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--brand-bright);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.choice-radio:checked {
  border-color: var(--brand-bright);
}

.choice-radio:checked::after {
  transform: scale(1);
}

.choice-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.choice-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.choice-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.choice-card.is-selected {
  border-color: var(--brand-bright);
  background: rgba(52, 211, 153, 0.06);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

.choice-card.is-selected .choice-radio {
  border-color: var(--brand-bright);
}

.choice-card.is-selected .choice-radio::after {
  transform: scale(1);
}

/* Step 4 — Import your data */

.import-intro {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 24px;
}

.field input[type="file"] {
  padding: 10px 14px;
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #030712;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.field input[type="file"]::file-selector-button:hover {
  background: var(--brand-bright);
}

/* Step 5 — Activate Your Business */

.activate-card {
  border: 2px solid var(--brand);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 26, 23, 0.5) 100%);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 24px;
}

.activate-card .plan-name {
  font-weight: 800;
  color: var(--brand-bright);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.activate-card .plan-price {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 16px;
}

.activate-card .plan-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.activate-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activate-card li {
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.activate-card li::before {
  content: "✓";
  color: var(--brand-bright);
  font-weight: 800;
}

.payment-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-faint);
  font-size: 13.5px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.01);
}

.payment-placeholder .badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

/* Success view */

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
  border: 2px solid var(--brand-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
  animation: success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes success-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 40%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-summary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 24px 0;
}

.success-summary .row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.success-summary .row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.success-summary .row:first-child {
  padding-top: 0;
}

.success-summary .row span:first-child {
  color: var(--ink-soft);
}

.success-summary .row span:last-child {
  font-weight: 600;
  color: #fff;
}

.success-next {
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.wizard-foot {
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 24px;
}

.wizard-foot a {
  color: var(--brand-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wizard-foot a:hover {
  color: #fff;
}

@media (max-width: 480px) {
  .wizard-wrap {
    padding: 24px 12px;
  }

  .wizard-card {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .wizard-progress .dot {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .wizard-progress .bar {
    width: 24px;
  }
}

@media (hover: none) {
  .wizard-card {
    animation-duration: 0.3s;
  }
}
