:root {
  --bg: #f8f9fc;
  --card: rgba(255, 255, 255, 0.60);
  --card-border: rgba(0, 0, 0, 0.08);
  --muted: #6b7280;
  --text: #111827;
  --accent: #2563eb;           /* change to #ED1A26 if you prefer red */
  --good: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --maxw: 980px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

/* Use Montserrat as the primary font */
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400; /* default regular */
}

/* Optional: headings bolder */
h1, h2, h3, .brandTitle h1 {
  font-weight: 600; /* semi-bold for titles */
}

/* Optional: make buttons and badges use medium weight */
button, .badge, .kv .k {
  font-weight: 500;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(248, 249, 252, 0.92), rgba(241, 245, 249, 0.85)),
    url('http://webhook.citisprint.co.za/citisprint_bg.png') center/cover no-repeat;
  background-blend-mode: overlay;
}

.stripe {
  display: none;
}

/* Page container */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 14px 40px;
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brandLogo {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.brandTitle {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brandTitle h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.3px;
  font-weight: 800;
  color: var(--text);
}

.brandTitle p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 10px;
}

.input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.input label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.input input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 14px;
}

button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
  transition: transform 120ms ease, filter 120ms ease;
  min-height: 48px;
}

button:hover { transform: translateY(-1px); filter: brightness(1.05); }
button:active { transform: translateY(0); filter: brightness(0.95); }

/* ────────────────────────────────────────────────
   CARDS – MOBILE-FIRST: stacked by default
───────────────────────────────────────────────── */

.grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.cardHeader {
  padding: 14px 16px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-wrap: wrap;
}

.cardHeader h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 800;
  color: #374151;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  color: #374151;
  font-size: 12px;
  white-space: nowrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156,163,175,0.12);
}

.cardBody {
  padding: 12px 16px 16px;
}

.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.k {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.v {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.stepLeft {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.stepIcon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
}

.stepLine {
  width: 2px;
  height: 28px;
  background: #e5e7eb;
  border-radius: 999px;
}

.stepRight {
  flex: 1;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 10px 12px;
}

.stepTitle {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.stepTitle strong {
  font-size: 13px;
  letter-spacing: 0.1px;
  color: var(--text);
}

.stepTitle span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.stepNote {
  margin-top: 4px;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.35;
}

.step.current .stepIcon {
  background: #6b7280;                    /* lighter medium grey for the dot */
  border-color: #4b5563;                  /* darker edge for definition */
  box-shadow: 0 0 0 4px rgba(107, 114, 128, 0.18);  /* softer glow */
}

.step.current .stepRight {
  background: rgba(107, 114, 128, 0.10);  /* very light grey tint for the panel */
  border-color: rgba(107, 114, 128, 0.30); /* visible but not harsh border */
}

/* Optional: if you want the progress bar fill itself to be a solid lighter grey */
.timeline .step.current .stepRight {
  /* background: #6b7280 !important; */   /* ← uncomment only if you want strong solid fill */
  /* color: white; */                      /* and white text if solid dark fill is used */
}

/* PIN card */
.pinBox {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pinBig {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 8px;
  text-align: center;
  padding: 18px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  color: #111827;
  user-select: text;
  min-height: 80px;
}

.pinHelp {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.miniActions {
  display: flex;
  gap: 10px;
}

.ghostBtn {
  background: rgba(255,255,255,0.80);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 14px;
  min-height: 48px;
}

.error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.22);
  color: #991b1b;
  font-size: 12px;
  display: none;
}

/* ────────────────────────────────────────────────
   RESPONSIVE – side-by-side only on larger screens
───────────────────────────────────────────────── */

@media (min-width: 768px) {
  .grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;    /* PIN narrower (left), Tracking wider (right) */
    gap: 24px;
    margin-top: 20px;
  }

  .wrap {
    padding: 28px 20px 48px;
  }

  .kv {
    grid-template-columns: 140px 1fr;
  }

  .pinBig {
    font-size: 42px;
    letter-spacing: 8px;
  }

  /* Optional: give the tracking card (now on the right) a little extra breathing room at bottom */
  .card:nth-child(2) {
    padding-bottom: 8px;
  }
}

/* Extra adjustments for very small screens */
@media (max-width: 380px) {
  .wrap {
    padding: 12px 10px 28px;
  }
  .brandLogo {
    width: 140px;
  }
  .pinBig {
    font-size: 34px;
    letter-spacing: 10px;
  }
  .toolbar button,
  .ghostBtn {
    font-size: 14px;
    padding: 12px 16px;
  }
}