/* ============================================================
   Hero "Find Your Perfect Space" enquiry wizard — Spacekart theme
   (white card, navy text, gold accents), matching the existing
   .hero-card visual language already used in this hero slot.
   ============================================================ */

.hero-wizard {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-width: 0;
  align-self: flex-end;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  padding: var(--space-6);
}

.hero-wizard-head h3 {
  margin: 0 0 4px;
  color: var(--brand-primary);
}
.hero-wizard-head .muted {
  margin: 0 0 var(--space-5);
  font-size: 13.5px;
}

.hero-wizard-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-muted);
  text-transform: uppercase;
}
.hero-wizard-progress-meta [data-wizard-percent] {
  color: var(--brand-gold);
}
.hero-wizard-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--brand-line);
  overflow: hidden;
  margin-bottom: var(--space-6);
}
.hero-wizard-progress-fill {
  height: 100%;
  width: 16.6667%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-gold) 0%, #d99a1f 100%);
  transition: width 0.5s var(--ease-in);
}

/* ---- Steps ---- */
.wizard-step {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-in), transform 0.4s var(--ease-in);
}
.wizard-step.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.wizard-question {
  margin: 0 0 var(--space-4);
  font-size: 16px;
  color: var(--brand-ink);
}

/* ---- Tiles (step 1) ---- */
.wizard-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.wizard-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  border: 1.5px solid var(--brand-line);
  border-radius: var(--radius);
  background: white;
  color: var(--brand-ink);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wizard-tile-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-fill);
  color: var(--brand-primary);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.wizard-tile:hover { border-color: var(--brand-soft); }
.wizard-tile.is-selected {
  border-color: var(--brand-gold);
  background: var(--brand-gold-soft);
  box-shadow: var(--shadow-glow);
}
.wizard-tile.is-selected .wizard-tile-icon {
  background: var(--brand-gold);
  color: white;
}

/* ---- Pills (steps 2, 3, 5) ---- */
.wizard-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.wizard-pill {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--brand-line);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--brand-ink);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.wizard-pill:hover { border-color: var(--brand-soft); }
.wizard-pill.is-selected {
  border-color: var(--brand-gold);
  background: var(--brand-gold-soft);
  color: var(--brand-primary);
}

/* ---- Plan list (step 4) ---- */
.wizard-plan-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.wizard-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1.5px solid var(--brand-line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wizard-plan:hover { border-color: var(--brand-soft); }
.wizard-plan.is-selected {
  border-color: var(--brand-gold);
  background: var(--brand-gold-soft);
  box-shadow: var(--shadow-glow);
}
.wizard-plan-name {
  font-weight: 700;
  color: var(--brand-ink);
  font-size: 14px;
}
.wizard-plan-price {
  font-weight: 800;
  color: var(--brand-primary);
  font-size: 15px;
  white-space: nowrap;
}
.wizard-plan-price small {
  font-weight: 500;
  font-size: 11px;
  color: var(--brand-muted);
}

/* ---- Contact step ---- */
.wizard-field-label {
  display: block;
  margin: var(--space-4) 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
.wizard-step[data-step="6"] .wizard-field-label:first-of-type { margin-top: 0; }
.wizard-input {
  width: 100%;
  padding: 11px var(--space-4);
  border: 1.5px solid var(--brand-line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
  color: var(--brand-ink);
  background: white;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wizard-input:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.15);
}
.wizard-phone-row {
  display: flex;
}
.wizard-phone-prefix {
  display: grid;
  place-items: center;
  padding: 0 var(--space-3);
  border: 1.5px solid var(--brand-line);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--brand-fill);
  color: var(--brand-muted);
  font-size: 14px;
  font-weight: 600;
}
.wizard-phone-row .wizard-input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.wizard-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-4) 0;
}
.wizard-summary-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-fill);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 600;
}

.wizard-status {
  min-height: 18px;
  margin: var(--space-2) 0 0;
  font-size: 13px;
  color: var(--brand-primary);
}
.wizard-status.is-error { color: #B3261E; }

.wizard-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: var(--space-3) 0 0;
  font-size: 11.5px;
  color: var(--brand-muted);
}

/* ---- Actions row ---- */
.wizard-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--brand-line);
}
.wizard-actions--single { justify-content: flex-end; }
.wizard-back { flex: 0 0 auto; }
.wizard-continue,
.wizard-submit { flex: 1; justify-content: center; }
.wizard-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---- Success state ---- */
.hero-wizard .wizard-success {
  text-align: center;
  padding: var(--space-7) var(--space-4);
  color: var(--brand-primary);
}
.wizard-success h4 {
  margin: var(--space-3) 0 4px;
  color: var(--brand-ink);
}
.wizard-success p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 13.5px;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-wizard { max-width: 460px; align-self: center; }
}
@media (max-width: 640px) {
  .hero-wizard { padding: var(--space-5); max-width: 100%; }
  .wizard-tile-grid,
  .wizard-pill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-step,
  .hero-wizard-progress-fill {
    transition: none;
  }
}
