/* Mobile-first, one column, large tap targets. No build step. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --green: #2c5f2d;
  --green-dark: #224a23;
  --green-tint: #e8f0e8;
  --green-wash: #f3f7f3;
  --ink: #17201a;
  --ink-2: #3d4841;
  --muted: #66716a;
  --line: #d9e0db;
  --line-strong: #b8c2bb;
  --bg: #f4f6f4;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 32, 26, 0.05), 0 4px 16px rgba(23, 32, 26, 0.06);
}

body {
  margin: 0;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main { max-width: 34rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }

/* Header */
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px;
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px #fff;
}
.property-card {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.eyebrow { margin: 0 0 0.35rem; font-size: 0.85rem; opacity: 0.85; }
h1 { margin: 0; font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.01em; }
#prop-rent {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}
#prop-rent:empty { display: none; }

h2 { font-size: 1.2rem; margin: 0 0 1rem; letter-spacing: -0.01em; }

/* Cards */
.criteria, .screen {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

/* Criteria */
.criteria-list { list-style: none; padding: 0; margin: 0; }
.criteria-list > li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.criteria-list > li:first-child { padding-top: 0; border-top: 0; }
.criteria-list > li:last-child { padding-bottom: 0; }
.criteria-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--green-tint);
  color: var(--green);
}
.criteria-icon svg { width: 1.4rem; height: 1.4rem; }
.criteria h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.15rem 0 0.4rem;
  font-size: 1.02rem;
}
.criteria .tag {
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
}
.criteria-list ul { list-style: none; padding: 0; margin: 0; }
.criteria-list ul li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.criteria-list ul li:last-child { margin-bottom: 0; }
.criteria-list ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--green);
}
.criteria strong { color: var(--ink); }

/* Step progress */
.progress { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.9rem; }
.progress-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.progress-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--green-tint); overflow: hidden; }
.progress-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--green); }

/* Fields */
label { display: block; margin: 1rem 0 0.35rem; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.screen h2 + label { margin-top: 0; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="number"], input[type="file"], textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="date"] { -webkit-appearance: none; appearance: none; }
input:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(44, 95, 45, 0.18);
}
textarea { min-height: 110px; line-height: 1.45; resize: vertical; }
input[type="file"] { padding: 0.55rem; background: var(--green-wash); border-style: dashed; font-size: 0.95rem; }
input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 600;
}

/* Checkbox rows as tappable cards */
label.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1rem 0 0;
  padding: 0.85rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}
label.check:has(input:checked) { border-color: var(--green); background: var(--green-wash); color: var(--ink); }
label.check input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0.05rem 0 0; accent-color: var(--green); }

#landlord-fields, #mortgage-field { margin-top: 0.25rem; }

.note { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--muted); }
.cf-turnstile { margin: 1.1rem 0 0; }

/* Buttons */
.nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
button {
  flex: 1;
  min-height: 52px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
button:hover { background: var(--green-dark); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(44, 95, 45, 0.25); }
button.secondary { flex: 0 0 34%; color: var(--green); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
button.secondary:hover { background: var(--green-wash); }
button:disabled { opacity: 0.6; cursor: default; }

/* Messages */
.notice { margin: 0 0 1rem; padding: 0.9rem 1rem; border-radius: 12px; background: #fff7e0; color: #5c4400; }
.notice.error { background: #fdeeee; color: #8a2424; }
.notice.ok { background: var(--green-tint); color: var(--green-dark); font-weight: 600; }

/* Honeypot: off-screen, not display:none (bots skip display:none fields). */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
