:root {
  --ink: #2b2118;          /* deep espresso — primary text & header */
  --ink-light: #4a392a;    /* lighter espresso for hover states */
  --accent: #b5502e;       /* terracotta/rust — buttons, highlights */
  --accent-dark: #8f3f22;
  --accent-tint: #fbeee6;  /* pale terracotta wash for selected/callout backgrounds */
  --cream: #f9f2e7;        /* warm ivory page background */
  --card: #fffaf3;         /* warm off-white for cards/inputs */
  --grey-text: #6e5f4e;    /* warm grey-brown for secondary text */
  --border: #e6d9c6;       /* warm border colour */
  --error: #b3261e;
  --radius: 10px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--ink);
  padding: 18px 0;
}

.site-header .brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

main {
  padding: 40px 20px 80px;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: var(--ink);
}

h2 {
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.intro {
  color: var(--grey-text);
  margin: 0 0 28px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}

legend {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  margin-bottom: 16px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field small {
  display: block;
  color: var(--grey-text);
  font-size: 0.8rem;
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--card);
  color: var(--ink);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* Honeypot field — kept in the DOM and tab-reachable-free, but invisible to
   real visitors. Bots that blindly fill every input still populate it. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.radio-group {
  display: grid;
  gap: 10px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  background: var(--card);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.radio-card input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.turnstile-wrap {
  margin: 4px 0 20px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-primary:disabled {
  background: #d8b6a4;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--ink);
  color: #fff;
  margin-top: 16px;
}

.btn-secondary:hover { background: var(--ink-light); }

.btn-secondary:disabled {
  background: #a99884;
  cursor: not-allowed;
}

.error {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* Result screen */
.screen[hidden] { display: none; }

.valuation-figure {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-dark);
  margin: 0 0 20px;
}

.caveats {
  margin-bottom: 20px;
}

.caveats p {
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--grey-text);
  margin: 0 0 10px;
}

.breakdown {
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--card);
}

.breakdown summary {
  cursor: pointer;
  font-weight: 600;
}

.breakdown ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.breakdown li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.breakdown li:first-child { border-top: none; }

.breakdown li .amount {
  font-weight: 700;
  white-space: nowrap;
}

.feedback-block {
  margin-bottom: 32px;
}

#feedback-thanks {
  color: var(--accent-dark);
  font-weight: 600;
  margin-top: 12px;
}

.next-steps p {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--grey-text);
}

.site-footer {
  padding: 24px 0 40px;
  color: var(--grey-text);
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .valuation-figure { font-size: 2.1rem; }
  main { padding: 28px 16px 60px; }
}
