/* grantintake — Hope Town Ohio client intake form
   Palette sampled from the Hope Town logo: orange #F09018, grey #6C6C6C. */

:root {
  --orange: #f09018;
  --orange-dark: #d67d0b;
  --orange-tint: #fdf2e4;
  --grey: #6c6c6c;
  --ink: #2c3137;
  --muted: #7e848b;
  --line: #e6e3df;
  --bg: #faf7f3;
  --card: #ffffff;
  --error: #b3261e;
  --error-bg: #fbeae8;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 40px 18px 64px;
}

/* ── Header ─────────────────────────────────────────────── */

.masthead { text-align: center; margin-bottom: 26px; }

.logo { width: 230px; max-width: 70%; height: auto; }

.masthead h1 {
  margin: 18px 0 6px;
  font-size: 1.72rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.lede {
  margin: 0 auto;
  max-width: 30rem;
  color: var(--grey);
  font-size: 1.02rem;
}

/* ── Card ───────────────────────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 30px 34px;
  box-shadow: 0 6px 24px rgba(44, 49, 55, 0.06);
}

@media (max-width: 520px) {
  .card { padding: 22px 18px 26px; border-radius: 14px; }
  .wrap { padding-top: 26px; }
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 16px;
}

/* Divider that introduces the optional section */
.divider {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 34px 0 4px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.divider .eyebrow { color: var(--grey); margin: 0; }

.divider .opt {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  padding: 1px 9px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.section-note {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Fields ─────────────────────────────────────────────── */

.field { margin-bottom: 19px; }
.field:last-child { margin-bottom: 0; }

label, .label-text {
  display: block;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 6px;
}

label .req { color: var(--orange); margin-left: 1px; }

.hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }

input[type="text"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.12s, box-shadow 0.12s;
}

input[type="text"]::placeholder, textarea::placeholder { color: #b3b8bd; }

input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240, 144, 24, 0.18);
}

textarea { resize: vertical; min-height: 52px; }

/* City + State pair */
.row2 { display: flex; gap: 12px; }
.row2 .city { flex: 1 1 62%; }
.row2 .state { flex: 1 1 38%; }

@media (max-width: 420px) { .row2 { flex-wrap: wrap; } .row2 > span { flex: 1 1 100%; } }

label.sub { font-weight: 500; font-size: 0.82rem; color: var(--muted); margin-bottom: 3px; }

/* Optional detail fields, two-up on wider screens */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

/* ── Error ──────────────────────────────────────────────── */

.error-banner {
  background: var(--error-bg);
  border: 1px solid #eebbb6;
  color: var(--error);
  border-radius: 11px;
  padding: 11px 15px;
  margin-bottom: 20px;
  font-size: 0.94rem;
  font-weight: 500;
}

/* Honeypot — off-screen, still in the DOM for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Actions ────────────────────────────────────────────── */

.actions { margin-top: 28px; text-align: center; }

button[type="submit"] {
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 40px;
  font: inherit;
  font-weight: 700;
  font-size: 1.06rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(240, 144, 24, 0.32);
  transition: background 0.12s, transform 0.05s;
}

button[type="submit"]:hover { background: var(--orange-dark); }
button[type="submit"]:active { transform: translateY(1px); }

.reassure { color: var(--muted); font-size: 0.9rem; margin: 14px auto 0; max-width: 28rem; }

/* ── Thanks page ────────────────────────────────────────── */

.thanks-card { text-align: left; }
.thanks-card .check {
  width: 54px; height: 54px; margin: 0 auto 6px; display: block;
}
.thanks-card h1 { text-align: center; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 22px 0 4px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 16px 44px;
  color: var(--ink);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px;
  background: var(--orange-tint); color: var(--orange-dark);
  border-radius: 50%; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 13px; top: 30px; bottom: 4px;
  width: 2px; background: var(--line);
}

/* ── Footer ─────────────────────────────────────────────── */

.foot { margin-top: 28px; text-align: center; color: var(--muted); font-size: 0.85rem; }
.foot a, .thanks-card a { color: var(--orange-dark); }
