/* styles/css.css */

/*–– Variables ––*/
:root {
  --primary: #FFD100;
  --primary-dark: #e6c900;
  --text: #333;
  --bg: #f8f8f8;
  --border: #ddd;
}

/*–– Global reset & base ––*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

/*–– Utility classes ––*/
.container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }

/*–– Header bar ––*/
.header {
  background: var(--primary);
  padding: 1rem 0;
}
.header .container h1 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
}

/*–– Headings ––*/
h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/*–– Forms ––*/
form {
  background: #fff;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
form div {
  margin-bottom: 1rem;
}
label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
}
input[type="text"],
input[type="postcode"],
input[type="email"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
fieldset {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
legend {
  padding: 0 0.5rem;
  font-weight: bold;
}
input[type="checkbox"] {
  margin-right: 0.5rem;
}

/*–– Buttons & links ––*/
button,
button.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
}
button:hover,
button.btn:hover {
  background: var(--primary-dark);
}
a.link-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
a.link-button:hover {
  background: var(--primary);
  color: #fff;
}

/*–– Tables ––*/
.table-responsive {
  overflow-x: auto;
  margin-bottom: 1rem;
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.results-table th,
.results-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.results-table th {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
}

/*–– Errors ––*/
p.error {
  color: #d9534f;
  font-weight: bold;
  margin-bottom: 1rem;
}
