/* ReturnFlow — Self-Service Return Portal
   Polish & component-level styling on top of Tailwind.
   Brand: Post Partner of Austrian Mail Service */

:root {
  --post-primary: #0078c8;
  --post-primary-dark: #005fa0;
  --post-accent: #ffdc00;
  --post-red: #d20019;
  --post-sky: #008ce6;
  --post-green: #2d8700;
  --post-ink: #0d1b2a;
  --post-paper: #f5f7fa;
  --post-line: #e3e8ef;
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Selection */
::selection { background: rgba(0, 120, 200, 0.18); color: var(--post-ink); }

/* ---------------- Buttons ---------------- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 80ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--post-primary);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(0, 120, 200, 0.55);
}
.btn-primary:hover { background: var(--post-primary-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: #fff;
  color: var(--post-ink);
  border: 1px solid var(--post-line);
}
.btn-ghost:hover { border-color: var(--post-primary); color: var(--post-primary); }

/* ---------------- Steps progress ---------------- */
.step-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--post-line);
  color: var(--post-ink);
  opacity: 0.55;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 200ms ease;
}
.step-pill .dot {
  height: 1.6rem;
  width: 1.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--post-paper);
  color: var(--post-ink);
  border: 1px solid var(--post-line);
  transition: all 200ms ease;
}
.step-pill.is-active,
.step-pill.is-done {
  opacity: 1;
  border-color: var(--post-primary);
  background: rgba(0, 120, 200, 0.05);
  color: var(--post-ink);
}
.step-pill.is-active .dot,
.step-pill.is-done .dot {
  background: var(--post-primary);
  color: #fff;
  border-color: var(--post-primary);
}
.step-pill .label {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .step-pill .label { display: none; }
  .step-pill { justify-content: center; padding: 0.4rem; }
  .step-pill.is-active .label { display: inline; }
}

/* ---------------- Wizard panes ---------------- */
.pane { display: none; }
.pane.is-active { display: block; animation: fadeUp 220ms ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- Retailer list ---------------- */
#retailer-list li {
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 120ms ease;
}
#retailer-list li:hover,
#retailer-list li.is-focused {
  background: var(--post-paper);
}
#retailer-list li .initial {
  height: 1.7rem;
  width: 1.7rem;
  border-radius: 0.5rem;
  background: var(--post-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------------- Drop-off cards ---------------- */
.dropoff {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--post-line);
  border-radius: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}
.dropoff:hover {
  border-color: var(--post-primary);
  box-shadow: 0 8px 24px -12px rgba(0, 120, 200, 0.35);
  transform: translateY(-1px);
}
.dropoff .pin {
  height: 2.4rem;
  width: 2.4rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dropoff.is-e-locker .pin { background: rgba(0, 140, 230, 0.12); color: var(--post-sky); }
.dropoff.is-branch    .pin { background: rgba(0, 120, 200, 0.12); color: var(--post-primary); }
.dropoff.is-partner   .pin { background: rgba(255, 220, 0, 0.25); color: #8a7400; }
.dropoff .meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--post-ink);
  opacity: 0.7;
  flex-wrap: wrap;
}
.dropoff .meta .chip {
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  background: var(--post-paper);
  font-weight: 600;
}
.dropoff .meta .chip.is-open { background: rgba(45, 135, 0, 0.12); color: var(--post-green); }
.dropoff .meta .chip.is-247  { background: rgba(0, 140, 230, 0.12); color: var(--post-sky); }
.dropoff .meta .chip.is-closed { background: rgba(210, 0, 25, 0.10); color: var(--post-red); }
.dropoff h5 { font-weight: 700; color: var(--post-ink); font-size: 0.97rem; }
.dropoff p  { font-size: 0.8rem; color: var(--post-ink); opacity: 0.7; margin-top: 0.15rem; }
.dropoff .right {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}
.dropoff .walk {
  font-weight: 800;
  color: var(--post-ink);
  font-size: 0.95rem;
}
.dropoff .walk small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--post-ink); opacity: 0.6; }

/* ---------------- QR ---------------- */
#qr-code svg { display: block; width: 168px; height: 168px; }

/* ---------------- Print styles ---------------- */
@media print {
  header, footer, #how, #network, .bg-post-paper, .btn-ghost, .btn-primary, button, [data-prev], [data-next] { display: none !important; }
  body { background: #fff; }
  .pane.is-active { display: block !important; }
  [data-pane]:not([data-pane="3"]) { display: none !important; }
  section { padding: 0 !important; }
}

/* ---------------- Subtle improvements ---------------- */
input::placeholder { color: rgba(13, 27, 42, 0.4); }

.quick:focus { outline: none; }

/* tighten on small screens */
@media (max-width: 640px) {
  .btn-primary, .btn-ghost { height: 2.5rem; padding: 0 1rem; font-size: 0.85rem; }
}
