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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f0f4f8;
  color: #1a1a2e;
  min-height: 100vh;
  padding: 2.5rem 1rem 4rem;
}

.container {
  max-width: 700px;
  margin: 0 auto;
}

/* Header */

header {
  margin-bottom: 1.75rem;
}

h1 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #00539f;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.subtitle {
  font-size: 0.9rem;
  color: #5a6a7e;
}

/* Search input */

.search-wrap {
  position: relative;
}

#search-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a2e;
  background: #fff;
  border: 2px solid #c8d3df;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

#search-input:focus {
  border-color: #00539f;
  box-shadow: 0 0 0 3px rgba(0, 83, 159, 0.12);
}

#search-input::placeholder {
  color: #a0aab6;
}

/* Cancel button shown by browsers in type="search" inputs — keep visible */
#search-input::-webkit-search-cancel-button {
  opacity: 0.5;
  cursor: pointer;
}

/* Status line */

.status {
  font-size: 0.82rem;
  color: #7a8898;
  margin: 0.65rem 0 0.4rem;
  min-height: 1.1em;
}

/* Results list */

.results-list {
  list-style: none;
}

.result-card {
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  cursor: default;
  transition: box-shadow 0.12s, border-color 0.12s;
}

.result-card:hover {
  border-color: #b0bfd0;
  box-shadow: 0 2px 10px rgba(0, 83, 159, 0.1);
}

.result-name {
  font-weight: 600;
  font-size: 0.98rem;
  color: #1a1a2e;
  margin-bottom: 0.45rem;
}

.result-details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.billing-group {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.billing-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a9aac;
}

.billing-number {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: #00539f;
  letter-spacing: 0.04em;
}

.city {
  font-size: 0.85rem;
  color: #6a7a8e;
  white-space: nowrap;
}

/* Empty state message */

.empty-message {
  font-size: 0.9rem;
  color: #8a9aac;
  padding: 0.5rem 0;
}

/* Footer */

footer {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: #a0aab6;
  text-align: center;
}
