/* ============================ WIZARD NAV ============================ */
.wizard-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 5vw;
  background: rgba(22, 17, 28, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(247, 239, 227, 0.07);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.nav-note {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--sunset);
  color: #221008;
  font-size: 16px;
  transform: rotate(-8deg);
}
.progress {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: var(--ink-3);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: var(--sunset);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-label { font-size: 13px; color: var(--cream-dim); white-space: nowrap; }

/* ============================== LAYOUT ============================== */
.wizard {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 140px;
}
.step-panel { display: none; }
.step-panel.active { display: block; animation: panel-in 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.wizard h1 { font-size: clamp(34px, 5vw, 52px); margin: 12px 0 14px; }
.wizard h1 em { font-style: italic; font-weight: 800; }
.step-intro { color: var(--cream-dim); max-width: 36em; margin-bottom: 34px; }

/* ============================== FIELDS ============================== */
.field { margin: 34px 0; }
.field > label {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.field > label em { color: var(--amber); font-style: italic; }
.hint { font-size: 14px; color: var(--cream-dim); margin-bottom: 12px; }

.text-input {
  width: 100%;
  background: var(--ink-2);
  border: 1.5px solid rgba(247, 239, 227, 0.14);
  border-radius: 13px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 15px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.text-input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 182, 72, 0.12);
}
.text-input::placeholder { color: rgba(207, 196, 180, 0.45); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  pointer-events: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: var(--ink-2);
  border: 1.5px solid rgba(247, 239, 227, 0.14);
  border-radius: 13px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 15px 18px;
  cursor: pointer;
}
select:focus { outline: none; border-color: var(--amber); }
#eventOther { margin-top: 12px; }

/* chips (must-include) */
.chip-input-row { display: flex; gap: 10px; }
.btn-add { padding: 12px 22px; font-size: 15px; white-space: nowrap; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.must-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 90, 60, 0.12);
  border: 1.5px solid rgba(255, 122, 60, 0.5);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  animation: chip-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes chip-pop { from { transform: scale(0.6); opacity: 0; } }
.must-chip button {
  background: none;
  border: none;
  color: var(--peach);
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

/* style chips */
.style-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.style-chip {
  background: var(--ink-2);
  border: 1.5px solid rgba(247, 239, 227, 0.16);
  color: var(--cream);
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.style-chip:hover { border-color: var(--amber); transform: translateY(-2px); }
.style-chip.on {
  background: var(--sunset);
  color: #221008;
  border-color: transparent;
  box-shadow: 0 8px 22px -8px rgba(255, 90, 60, 0.6);
}

/* mood slider */
.mood-row { display: flex; align-items: center; gap: 18px; }
.mood-end { font-size: 14px; color: var(--cream-dim); white-space: nowrap; }
input[type='range'] {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f86c9, var(--peach), var(--coral));
  cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream);
  border: 4px solid var(--coral);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s;
}
input[type='range']::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type='range']::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cream);
  border: 4px solid var(--coral);
}
.mood-readout {
  margin-top: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--amber);
  min-height: 1.6em;
}

/* radio cards */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-card input { position: absolute; opacity: 0; }
.radio-face {
  display: block;
  background: var(--ink-2);
  border: 1.5px solid rgba(247, 239, 227, 0.14);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.5;
}
.radio-face small { font-weight: 400; color: var(--cream-dim); font-size: 14px; }
.radio-card input:checked + .radio-face {
  border-color: var(--amber);
  background: rgba(255, 182, 72, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 182, 72, 0.1);
}
@media (max-width: 560px) { .radio-cards { grid-template-columns: 1fr; } }

/* ============================= RECORDER ============================= */
.recorder-card {
  background: var(--ink-2);
  border: 1px solid rgba(247, 239, 227, 0.1);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.prompt-box {
  background: rgba(53, 199, 180, 0.07);
  border: 1px solid rgba(53, 199, 180, 0.25);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 32px;
}
.prompt-label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.prompt-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  margin-top: 6px;
  transition: opacity 0.4s;
}

.rec-stage { display: flex; align-items: center; gap: 26px; }
.rec-btn {
  width: 92px; height: 92px;
  border-radius: 50%;
  border: none;
  background: var(--sunset);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 36px -10px rgba(255, 90, 60, 0.65);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.rec-btn:hover { transform: scale(1.06); }
.rec-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #221008;
  transition: all 0.3s;
}
.rec-btn.recording { animation: rec-pulse 1.4s ease-in-out infinite; }
.rec-btn.recording .rec-dot { border-radius: 7px; width: 26px; height: 26px; }
@keyframes rec-pulse {
  0%, 100% { box-shadow: 0 14px 36px -10px rgba(255, 90, 60, 0.65), 0 0 0 0 rgba(255, 90, 60, 0.45); }
  50% { box-shadow: 0 14px 36px -10px rgba(255, 90, 60, 0.65), 0 0 0 22px rgba(255, 90, 60, 0); }
}
.rec-meta { display: flex; flex-direction: column; gap: 4px; }
.rec-status { font-weight: 700; font-size: 18px; }
.rec-timer { font-variant-numeric: tabular-nums; color: var(--cream-dim); font-size: 15px; }

.rec-result { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rec-result audio { flex: 1; min-width: 240px; height: 44px; }
.btn-small { padding: 10px 20px; font-size: 14px; }

.rec-alt { margin-top: 26px; font-size: 15px; color: var(--cream-dim); }
.link-btn { color: var(--teal); text-decoration: underline; cursor: pointer; font-weight: 600; }
.upload-name { color: var(--amber); margin-left: 8px; }

.story-alt { margin-top: 22px; }
.story-label { display: block; font-size: 15px; color: var(--cream-dim); margin-bottom: 10px; }
.story-input { resize: vertical; min-height: 120px; line-height: 1.5; }
.story-count { display: block; margin-top: 6px; font-size: 13px; color: var(--amber); min-height: 1em; }

/* ============================= DROPZONE ============================= */
.dropzone {
  border: 2px dashed rgba(255, 182, 72, 0.4);
  border-radius: 22px;
  background: rgba(255, 182, 72, 0.03);
  padding: 56px 24px;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
}
.dropzone.dragover {
  border-color: var(--coral);
  background: rgba(255, 90, 60, 0.08);
  transform: scale(1.01);
}
.dz-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dz-icon { font-size: 44px; }
.dz-inner .hint { margin: 0; }

.media-tally { margin: 22px 0 12px; font-weight: 700; color: var(--amber); min-height: 1.5em; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.media-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-3);
  animation: chip-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item .vid-badge {
  position: absolute;
  bottom: 6px; left: 6px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 6px;
  font-size: 11px;
  padding: 2px 7px;
}
.media-item .rm {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.media-item .rm:hover { background: var(--coral); }

/* ============================== REVIEW ============================== */
.review-card {
  background: var(--ink-2);
  border: 1px solid rgba(247, 239, 227, 0.1);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 30px 0;
  display: grid;
  gap: 14px;
}
.review-row { display: flex; gap: 14px; font-size: 16px; }
.review-row .k { color: var(--cream-dim); min-width: 130px; flex-shrink: 0; }
.review-row .v { font-weight: 600; }
.review-row .v .warn { color: var(--coral); font-weight: 700; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid .field { margin: 10px 0; }
.field-grid label { font-size: 17px !important; font-family: var(--font-body) !important; font-weight: 600; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }

.pay-note {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(53, 199, 180, 0.08);
  border: 1px solid rgba(53, 199, 180, 0.25);
  font-size: 15px;
  color: var(--cream-dim);
}
.pay-note strong { color: var(--teal); }

.upload-progress { margin-top: 26px; display: flex; align-items: center; gap: 16px; }
.upload-bar { flex: 1; height: 12px; border-radius: 999px; background: var(--ink-3); overflow: hidden; }
.upload-fill { height: 100%; width: 0%; background: var(--sunset); border-radius: 999px; transition: width 0.2s; }
#uploadPct { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--amber); min-width: 46px; }

/* ============================== FOOTER ============================== */
.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  gap: 14px;
}
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }

.error-toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: #2a0d05;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 16px 40px -10px rgba(255, 90, 60, 0.7);
  z-index: 100;
  animation: chip-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 88vw;
  text-align: center;
}

/* ============================== SUCCESS ============================== */
.success-panel .success-inner {
  text-align: center;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.success-icon { font-size: 74px; animation: success-bounce 1s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes success-bounce {
  0% { transform: scale(0) rotate(-30deg); }
  100% { transform: scale(1) rotate(0); }
}
.success-inner p { color: var(--cream-dim); max-width: 30em; }

.hidden { display: none !important; }
