:root {
  --bg: #0b1220;
  --card: #111b2e;
  --text: #e8eefc;
  --muted: #b6c2e2;
  --line: rgba(255,255,255,.12);
  --accent: #ff6a00; /* Hammer & Grind orange */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 10% 10%, #18284a 0%, var(--bg) 55%);
  color: var(--text);
}

.container { max-width: 860px; margin: 0 auto; padding: 24px; }

.header { margin-bottom: 16px; text-align: center; }

.logo {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

h1 { margin: 0 0 6px; font-size: 28px; }
.sub { margin: 0; color: var(--muted); }

.card {
  background: rgba(17,27,46,.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  backdrop-filter: blur(6px);
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.field input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: none;
}

.field input:focus { border-color: rgba(255,255,255,.35); }

.actions { display: flex; gap: 10px; margin-top: 12px; }

.btn {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  border: none;
  color: white;
  font-weight: 600;
}

.error { margin: 10px 0 0; color: #ffb4b4; min-height: 20px; }

.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,.04);
}

.result span { color: var(--muted); font-size: 13px; }
.result strong { display: block; font-size: 18px; margin-top: 4px; }

/* Dynamic result states (applied after Calculate) */
.result.bad {
  border: 2px solid rgba(255, 80, 80, 0.9);
  background: rgba(255, 80, 80, 0.12);
}
.result.bad strong { color: rgba(255, 120, 120, 1); }

.result.good {
  border: 2px solid rgba(80, 220, 140, 0.9);
  background: rgba(80, 220, 140, 0.12);
}
.result.good strong { color: rgba(120, 255, 190, 1); }

/* CTA is hidden until JS shows it */
#ctaBox {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

#ctaBox h3 { margin: 0 0 6px; }
#ctaBox p { margin: 0 0 12px; color: var(--muted); }
#ctaBox .btn {
  display: inline-block;
  margin-top: 10px;
}
.hint, .footer { color: var(--muted); }
.footer { margin-top: 18px; text-align: center; }

@media (max-width: 640px) {
  .grid, .results { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
}
/* --- Money box detail line --- */
.money-detail {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

/* --- Lead capture form inside the CTA --- */
.lead-form {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.lead-form .field span { margin-bottom: 4px; }

.lead-form .btn.primary {
  margin-top: 2px;
  width: 100%;
  font-size: 15px;
  padding: 13px 14px;
}

/* Honeypot: hidden from people, visible to bots that fill everything in */
.hidden-field { position: absolute; left: -5000px; }

.cta-or {
  margin: 22px 0 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Book a Call: the field-label blue, so it reads as the calm second option
   next to the orange primary rather than competing with it. */
#ctaBox .btn:not(.primary) {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--muted);
  border: none;
  color: var(--bg);
  font-weight: 600;
  padding: 13px 14px;
}

#ctaBox .btn:not(.primary):hover { background: #c9d3ee; }

/* Belt and braces: the money fields are text inputs, but if any of them is ever
   switched back to type="number" the spinner arrows still stay gone. */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
