/* ════════════════════════════════════════════════════════════
   RETURNS HUB — Customer Wizard CSS
   Mobile-first, Strain Store black + neon green (#00FF85)
   ════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #00FF85;
  --pink-dark: #00CC6A;
  --pink-light: #0d1f14;
  --bg: #0a0a0a;
  --card: #111111;
  --text: #e5e5e5;
  --muted: #8a8a8a;
  --border: #1f1f1f;
  --green: #00FF85;
  --green-bg: #0d1f14;
  --orange: #fbbf24;
  --red: #f87171;
  --info: #fbbf24;
  --info-bg: #2a1f08;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 80px;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────── */
.hdr {
  padding: 24px 0 16px;
  text-align: center;
  border-bottom: 2px solid var(--pink-light);
  margin-bottom: 24px;
}
.hdr-logo {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hdr-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--pink);
  margin-top: 4px;
}

/* ── Progress steps ─────────────────────────────────────── */
.steps {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding: 4px 0;
  scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.step {
  flex: 1 0 auto;
  font-size: 11px;
  color: var(--muted);
  padding: 8px 6px;
  text-align: center;
  border-bottom: 3px solid var(--border);
  white-space: nowrap;
  font-weight: 500;
}
.step span {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: white;
  font-weight: 700;
  margin-right: 4px;
  font-size: 11px;
}
.step.active {
  color: var(--pink);
  border-bottom-color: var(--pink);
}
.step.active span {
  background: var(--pink);
}
.step.done span {
  background: var(--green);
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}
.card h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text);
}
.card h3 {
  font-size: 16px;
  margin: 16px 0 8px;
  color: var(--text);
}
.muted { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.hidden { display: none !important; }

/* ── Inputs ─────────────────────────────────────────────── */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 12px;
  font-family: inherit;
  transition: border 0.15s;
}
input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--pink);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.1s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--pink); color: white; }
.btn-primary:hover { background: var(--pink-dark); }
.btn-text {
  background: transparent;
  color: var(--muted);
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
}

/* ── Order meta (Korak 2) ───────────────────────────────── */
.order-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--pink-light);
  border-radius: 10px;
  margin-bottom: 16px;
}
.order-meta > div { font-size: 13px; }
.order-meta b { display: block; color: var(--text); font-size: 14px; margin-top: 2px; }

/* ── Item list (Korak 2) ────────────────────────────────── */
.items { margin: 16px 0; }
.item {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}
.item.selected {
  border-color: var(--pink);
  background: var(--pink-light);
}
.item-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  margin-right: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: white;
  font-weight: 700;
}
.item.selected .item-check { background: var(--pink); border-color: var(--pink); }
.item-info { flex: 1; min-width: 0; }
.item-name { font-weight: 600; font-size: 15px; }
.item-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.item-price { font-weight: 700; color: var(--pink); white-space: nowrap; margin-left: 12px; }

/* ── Type switcher (Korak 3) ────────────────────────────── */
.type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 24px;
}
.type-btn {
  padding: 18px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all 0.15s;
}
.type-btn .big { font-size: 16px; font-weight: 700; color: var(--text); }
.type-btn .small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.type-btn.active {
  border-color: var(--pink);
  background: var(--pink-light);
}
.type-btn.active .big { color: var(--pink); }
.type-exchange.active { box-shadow: 0 0 0 3px rgba(232,67,127,0.15); }

/* ── Exchange picker ────────────────────────────────────── */
.exchange-results {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 12px 0;
}
.exchange-results:empty { display: none; }
.product {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.product:last-child { border-bottom: none; }
.product:hover { background: var(--pink-light); }
.product-img {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: 6px;
  margin-right: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.product-info { flex: 1; min-width: 0; }
.product-title { font-weight: 600; font-size: 14px; }
.product-variants { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.variant-pill {
  display: inline-block;
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.variant-pill:hover { background: var(--pink-light); border-color: var(--pink); }
.variant-pill.unavailable { opacity: 0.4; cursor: not-allowed; }

.exchange-chosen { margin-top: 12px; }
.chosen-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: var(--pink-light);
  border-radius: 8px;
  margin-bottom: 8px;
}
.chosen-item .x {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 8px;
}
.chosen-item .price-diff {
  font-size: 12px;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.diff-pos { background: #2a1010; color: var(--red); }
.diff-neg { background: #0d1f14; color: var(--green); }

/* ── Refund box ─────────────────────────────────────────── */
.refund-box { padding: 14px; background: var(--pink-light); border-radius: 10px; margin-bottom: 12px; }

/* ── Breakdown ──────────────────────────────────────────── */
.breakdown {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
  margin: 16px 0;
  font-size: 14px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
.breakdown-row.total {
  border-top: 2px solid var(--pink);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--pink);
}
.breakdown-note { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ── Reason groups (Korak 4) ────────────────────────────── */
.reason-group {
  margin-bottom: 20px;
  padding: 14px;
  background: var(--bg);
  border-radius: 10px;
}
.reason-group h3 { margin-top: 0; color: var(--pink); }
.rad {
  display: flex;
  align-items: center;
  padding: 10px 4px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.rad:last-child { border-bottom: none; }
.rad input { margin-right: 10px; transform: scale(1.2); }
.rad span { flex: 1; font-size: 15px; }
.rad input:checked + span { font-weight: 600; color: var(--pink); }

/* ── Photo box ──────────────────────────────────────────── */
.photo-box {
  margin-top: 20px;
  padding: 14px;
  background: var(--bg);
  border-radius: 10px;
}
.photo-box.required {
  background: #2a1f08;
  border: 2px solid var(--orange);
}
.photo-box.required h3::after {
  content: " *";
  color: var(--red);
}
.photo-preview img {
  max-width: 100%;
  max-height: 200px;
  margin-top: 8px;
  border-radius: 8px;
}

/* ── Instructions (Korak 5) ─────────────────────────────── */
.instruction {
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}
#instOurFault { background: var(--green-bg); }
#instCustomer { background: var(--info-bg); }
.instruction ol { margin-left: 20px; margin-top: 8px; }
.instruction li { margin: 6px 0; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.badge-good { background: var(--green); color: white; }
.badge-info { background: var(--orange); color: white; }

/* ── Confirmation ───────────────────────────────────────── */
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--green);
  color: white;
  font-size: 36px;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-box {
  display: flex;
  margin: 16px 0;
  padding: 8px;
  background: var(--bg);
  border-radius: 8px;
}
.link-box input { border: none; background: transparent; padding: 6px; flex: 1; margin: 0; font-size: 13px; }

/* ── Misc ───────────────────────────────────────────────── */
.error { color: var(--red); padding: 10px; background: #2a1010; border-radius: 8px; margin: 8px 0; font-size: 14px; }
.warn { color: #fbbf24; padding: 10px; background: #2a1f08; border-radius: 8px; margin: 8px 0; font-size: 14px; border: 1px solid #fbbf24; }
.ftr { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (min-width: 600px) {
  .card { padding: 32px; }
  .step { font-size: 12px; }
}
