/* ── NOVI UPIT PAGE ─────────────────────────────────────── */

.upit-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

/* ── STEPPER ──────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step__circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  transition: all 0.3s;
}

.step__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  font-family: var(--font-mono);
  transition: color 0.3s;
}

.step.active .step__circle {
  background: var(--amber);
  border-color: var(--amber);
  color: white;
}

.step.active .step__label { color: var(--amber); }

.step.done .step__circle {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.step.done .step__circle::after { content: '✓'; }
.step.done .step__circle span { display: none; }
.step.done .step__label { color: var(--green); }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 22px;
  transition: background 0.3s;
}

.step-line.done { background: var(--green); }

/* ── STEP PANELS ──────────────────────────── */
.step-panel {
  display: none;
  flex-direction: column;
  gap: 28px;
  animation: panelIn 0.3s ease;
}

.step-panel.active { display: flex; }

@keyframes panelIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-panel__header { display: flex; flex-direction: column; gap: 6px; }

.step-panel__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.step-panel__sub { font-size: 15px; color: var(--ink-soft); }

/* ── CATEGORY PICKER ──────────────────────── */
.cat-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
}

.cp-item:hover { border-color: var(--amber); background: var(--amber-light); transform: translateY(-2px); }

.cp-item.selected {
  border-color: var(--amber);
  background: var(--amber-light);
  box-shadow: 0 0 0 3px rgba(232,136,10,0.12);
}

.cp-emoji { font-size: 26px; flex-shrink: 0; }
.cp-name  { font-weight: 600; font-size: 14px; color: var(--ink); flex: 1; }
.cp-count { font-size: 11px; color: var(--ink-muted); font-family: var(--font-mono); }

/* ── DETAILS FORM ─────────────────────────── */
.details-form { display: flex; flex-direction: column; gap: 20px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-hint {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
  text-align: right;
  font-family: var(--font-mono);
}

.req { color: var(--amber); }

/* Photo upload */
.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px;
  background: var(--cream);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}

.photo-upload:hover { border-color: var(--amber); background: var(--amber-light); }

.pu-icon { font-size: 32px; opacity: 0.6; }
.pu-text { font-weight: 600; font-size: 14px; color: var(--ink-mid); }
.pu-hint { font-size: 12px; color: var(--ink-muted); }

.photo-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.photo-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  background: var(--cream-dark);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  position: relative;
  overflow: hidden;
}

.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

.photo-thumb-remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: rgba(26,24,20,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── AVAILABILITY PICKER ──────────────────── */
.availability-picker { display: flex; gap: 8px; flex-wrap: wrap; }

.avpbtn {
  padding: 8px 14px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}

.avpbtn:hover { border-color: var(--amber); }
.avpbtn.active { background: var(--amber-light); border-color: var(--amber); color: var(--amber-dark); }

/* ── STEP ACTIONS ─────────────────────────── */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── REVIEW CARD ──────────────────────────── */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rc-row { display: flex; flex-direction: column; gap: 4px; }
.rc-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-family: var(--font-mono); }
.rc-value { font-size: 15px; color: var(--ink); font-weight: 500; }
.rc-divider { height: 1px; background: var(--border); }

.publish-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--green-light);
  border: 1px solid rgba(26,122,94,0.2);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 13px;
  color: var(--green);
  line-height: 1.5;
}

/* ── SUCCESS ──────────────────────────────── */
.success-icon  { font-size: 64px; }
.success-title { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--ink); }
.success-sub   { font-size: 16px; color: var(--ink-soft); line-height: 1.7; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── SIDEBAR ──────────────────────────────── */
.upit-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
}

.tip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.tip-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.tip-text  { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

.similar-requests {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.sr-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.sr-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: var(--cream); }
.sr-name  { font-size: 13px; font-weight: 600; color: var(--ink); }
.sr-meta  { font-size: 11px; color: var(--ink-muted); font-family: var(--font-mono); }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
  .upit-layout { grid-template-columns: 1fr; }
  .upit-sidebar { display: none; }
  .cat-picker { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .stepper .step__label { display: none; }
}
