/* Form styles */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  background: white;
  color: #111827;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Receipt / Itinerary styling */
.receipt {
  background: white;
  padding: 2.5rem;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
}

.receipt-header {
  text-align: center;
  border-bottom: 3px double #333;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.receipt-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #111;
  margin-bottom: 0.25rem;
}

.receipt-subtitle {
  font-size: 0.875rem;
  color: #666;
}

.receipt-section {
  margin-bottom: 1.25rem;
}

.receipt-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.receipt-row {
  display: flex;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}

.receipt-label {
  width: 100px;
  flex-shrink: 0;
  color: #6b7280;
  font-weight: 500;
}

.receipt-value {
  flex: 1;
  color: #111827;
  font-weight: 500;
}

.receipt-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc2626;
  text-align: right;
  padding: 1rem 0;
  border-top: 2px solid #e5e7eb;
  margin-top: 0.5rem;
}

.receipt-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.receipt-badge {
  display: inline-block;
  padding: 0.125rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.badge-pickup {
  background: #dbeafe;
  color: #1e40af;
}

.badge-dropoff {
  background: #dcfce7;
  color: #166534;
}

/* Toast */
#toast .success { background: #16a34a; }
#toast .error { background: #dc2626; }
#toast .info { background: #2563eb; }

/* Print styles */
@media print {
  body * { visibility: hidden; }
  #receipt, #receipt * { visibility: visible; }
  #receipt { position: absolute; left: 0; top: 0; width: 100%; }
}

/* History list item */
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background 0.15s;
}

.history-item:hover {
  background: #f9fafb;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
