/* ── Lookup Form Card ──────────────────────────────────────────────── */
.track-form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem 2.5rem;
}

.track-form-card .form-field {
  margin-bottom: 1.25rem;
}

.track-form-card .form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.track-form-card .form-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font);
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color 150ms ease-out;
  outline: none;
}

.track-form-card .form-field input:focus {
  border-color: var(--navy-mid);
}

.btn-full {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

/* ── Error ─────────────────────────────────────────────────────────── */
.track-error {
  background: var(--red-bg);
  color: var(--red);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--red);
}

/* ── Result Card ───────────────────────────────────────────────────── */
.track-result-card {
  max-width: 520px;
  margin: 2rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 2rem;
  animation: fade-result 300ms ease-out;
}

@keyframes fade-result {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.result-row:last-of-type {
  border-bottom: none;
}

.result-row-header {
  padding: 0 0 1rem 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}

.result-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.result-col-right {
  text-align: right;
}

.result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.result-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.result-ref {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-mid);
  letter-spacing: 0.03em;
}

.result-help {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-mid);
  text-align: center;
}

.result-help a {
  color: var(--navy-mid);
  font-weight: 500;
}

/* ── Badge Colours ─────────────────────────────────────────────────── */
.badge.status-new      { background: #e3f2fd; color: #1565c0; }
.badge.status-review   { background: #fff3e0; color: #e65100; }
.badge.status-scheduled { background: #f3e5f5; color: #7b1fa2; }
.badge.status-resolved { background: #e8f5e9; color: #2e7d32; }
.badge.status-closed   { background: #f5f5f5; color: #616161; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .track-form-card { padding: 1.5rem 1rem; }
  .track-result-card { padding: 1.25rem 1rem; }
}