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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

main {
  width: 100%;
  max-width: 600px;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.8rem;
  color: #e2b714;
  letter-spacing: 1px;
}

.tagline {
  margin-top: 0.4rem;
  font-size: 1.1rem;
  color: #888;
  font-style: italic;
}

/* Search form */
#search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#postcode-input {
  padding: 0.9rem 1rem;
  font-size: 1.1rem;
  border: 2px solid #333;
  border-radius: 8px;
  background: #16213e;
  color: #e0e0e0;
  outline: none;
  transition: border-color 0.2s;
}

#postcode-input:focus {
  border-color: #e2b714;
}

#search-btn {
  padding: 0.9rem;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: #e2b714;
  color: #1a1a2e;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#search-btn:hover:not(:disabled) {
  background: #f0c932;
  transform: scale(1.02);
}

#search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Results */
#results {
  margin-top: 1.5rem;
}

.result-card {
  background: #16213e;
  border: 2px solid #e2b714;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 18px rgba(226, 183, 20, 0.15);
}

.result-card .biz-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.result-card .rating-badge {
  display: inline-block;
  background: #d32f2f;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.result-card .detail {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: #bbb;
}

.result-card .detail strong {
  color: #e0e0e0;
}

.error-msg {
  background: rgba(211, 47, 47, 0.15);
  border: 1px solid #d32f2f;
  color: #ff6b6b;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
}

.no-results {
  text-align: center;
  color: #888;
  font-size: 1.05rem;
  padding: 1rem;
}

/* Footer / disclaimer */
footer {
  margin-top: 3rem;
  text-align: center;
}

.disclaimer {
  font-size: 0.75rem;
  color: #555;
  line-height: 1.6;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  #search-btn {
    font-size: 1.05rem;
  }
}
