/* ---------- CADASTRO DE CRIADORA — WIZARD ---------- */
/* Deliberately outside the normal site chrome (no header.php/footer.php):
   full-screen, one question per step, matching the reference app's
   progress-bar + back-chevron pattern, in our own dark/purple system. */

body.wizard-page {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: var(--bg);
}
body.wizard-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(60% 45% at 50% 0%, rgba(168, 85, 247, 0.16), transparent 70%);
  pointer-events: none;
}

.wizard-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--border-accent);
  border-right: 1px solid var(--border-accent);
}

.wizard-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
}
.wizard-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, background 0.2s;
}
.wizard-back:hover { border-color: rgba(168, 85, 247, 0.5); background: var(--surface); }
.wizard-topbar-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}
.wizard-topbar-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.5px;
}

.wizard-progress {
  height: 3px;
  background: var(--surface-2);
}
.wizard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  transition: width 0.35s ease;
}

.wizard-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 40px;
}
.wizard-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-soft);
  margin-bottom: 8px;
}
.wizard-question {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.wizard-question--sub { font-size: 16px; margin-top: 8px; }
.wizard-subtext {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}
.wizard-form .wizard-question + .form-row,
.wizard-form .wizard-subtext + .form-row { margin-top: 4px; }

.wizard-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wizard-handle {
  display: flex;
  align-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wizard-handle:focus-within {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
.wizard-handle span {
  padding: 13px 0 13px 16px;
  font-size: 14px;
  color: var(--text-faint);
  white-space: nowrap;
}
.wizard-handle input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 2px !important;
}
.wizard-handle input:focus { outline: none; }

.wizard-submit { margin-top: auto; padding-top: 8px; }

/* ---------- UPLOADS ---------- */
.upload-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.upload-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.upload-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 2px dashed rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}
.upload-avatar:hover { border-color: var(--accent); }
.upload-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
}
.upload-avatar-icon svg { width: 20px; height: 20px; }
.upload-avatar img:not([hidden]) + .upload-avatar-icon,
.upload-avatar:has(img:not([hidden])) .upload-avatar-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  box-shadow: 0 0 0 3px var(--bg);
}

.upload-box--cover { width: 100%; }
.upload-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 14px;
  background: var(--surface-2);
  border: 2px dashed rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}
.upload-cover:hover { border-color: var(--accent); }
.upload-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-cover-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.upload-cover-icon svg { width: 20px; height: 20px; }

.upload-hint { font-size: 12px; color: var(--text-faint); }

.upload-flat {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px dashed rgba(168, 85, 247, 0.35);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
  transition: border-color 0.2s;
}
.upload-flat:hover { border-color: var(--accent); }
.upload-flat svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* ---------- PRICE PREVIEW (step 5) ---------- */
.wizard-price-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-accent);
}
.wizard-price-preview > div { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.wizard-price-preview span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
}
.wizard-price-preview strong { font-size: 16px; color: var(--accent-soft); }
.wizard-price-preview small { font-size: 11px; color: var(--text-faint); text-decoration: line-through; }

/* ---------- SPECIALTIES (step 6) ---------- */
.specialty-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.specialty-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.specialty-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.3) inset;
}
.specialty-card input { position: absolute; left: -9999px; opacity: 0; }
.specialty-icon {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
}
.specialty-icon svg { width: 18px; height: 18px; }
.specialty-title { font-size: 14px; font-weight: 600; align-self: end; }
.specialty-tag {
  grid-column: 2;
  justify-self: start;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-soft);
  background: rgba(168, 85, 247, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 2px;
}
.specialty-desc {
  grid-column: 2;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* ---------- SELFIE RULES (step 8) ---------- */
.wizard-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  margin-bottom: 4px;
}
.wizard-rules li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.wizard-rules svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

@media (min-width: 640px) {
  .wizard-shell { box-shadow: 0 0 80px rgba(168, 85, 247, 0.08); }
  .wizard-body { padding: 36px 40px 48px; }
  .wizard-topbar { padding: 20px 40px; }
  .wizard-question { font-size: 28px; }
}
