/* Dyan's For Cats' Sake Sanctuary — public forms */

:root {
  --ink:        #33281f;
  --ink-soft:   #6b5a4a;
  --cream:      #faf5ee;
  --card:       #ffffff;
  --line:       #e4d8c8;
  --amber:      #a9662c;
  --amber-dk:   #8a5121;
  --amber-lt:   #f4e6d5;
  --espresso:   #120d08;
  --danger:     #a3342a;
  --danger-bg:  #fbeceb;
  --ok:         #2f6b44;
  --radius:     10px;
  --shadow:     0 1px 2px rgba(51,40,31,.06), 0 8px 24px rgba(51,40,31,.06);
}

* { box-sizing: border-box; }

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

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

a { color: var(--amber-dk); }

/* ---- header ------------------------------------------------------------- */
.masthead {
  background: var(--espresso);
  text-align: center;
  padding: 26px 16px 20px;
}
.masthead.tall { padding: 46px 16px 34px; }
.masthead .brand { display: inline-block; line-height: 0; }
.masthead img { width: 180px; height: auto; display: block; }
.masthead.tall img { width: 260px; }
.masthead .strap {
  margin: 10px 0 0;
  color: #d9b487;
  font-size: 14px;
  letter-spacing: .06em;
}
.topnav {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.topnav a {
  color: #e9d3b6;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 13px;
  border: 1px solid rgba(233,211,182,.28);
  border-radius: 999px;
}
.topnav a:hover { background: rgba(233,211,182,.12); border-color: rgba(233,211,182,.5); }

@media (max-width: 620px) {
  .masthead.tall img { width: 200px; }
  .topnav a { font-size: 13.5px; padding: 5px 11px; }
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px 64px; }

.page-head { padding: 32px 0 8px; }
.page-head h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.page-head .lede { margin: 0; color: var(--ink-soft); max-width: 62ch; }

/* ---- sections ----------------------------------------------------------- */
.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 8px;
  margin: 22px 0;
}
.section > h2 {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-dk);
}
.section > .section-intro {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ---- grid --------------------------------------------------------------- */
.grid { display: flex; flex-wrap: wrap; gap: 0 18px; }
.field { margin-bottom: 18px; width: 100%; }
.field.half  { width: calc(50% - 9px); }
.field.third { width: calc(33.333% - 12px); }

@media (max-width: 620px) {
  .field.half, .field.third { width: 100%; }
  .page-head h1 { font-size: 25px; }
  .section { padding: 18px 16px 4px; }
}

/* ---- inputs ------------------------------------------------------------- */
.lbl { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
span.lbl { -webkit-user-select: text; user-select: text; }
.req { color: var(--danger); margin-left: 2px; }

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], select, textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(169,102,44,.16);
}
.help { display: block; margin-top: 5px; font-size: 13px; color: var(--ink-soft); }

.money { position: relative; }
.money input { padding-left: 26px; }
.money::before {
  content: "$"; position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%); color: var(--ink-soft);
}

/* ---- choices ------------------------------------------------------------ */
.choices { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.choices.stack { flex-direction: column; gap: 8px; }
.choice {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.45;
}
.choice:hover { border-color: #cbb79c; }
.choice input { margin: 3px 0 0; accent-color: var(--amber); flex: none; }
.choice:has(input:checked) { border-color: var(--amber); background: var(--amber-lt); }
.choices.grid-2 .choice { width: calc(50% - 5px); }
@media (max-width: 620px) { .choices.grid-2 .choice { width: 100%; } }

.consent {
  display: flex; gap: 11px; align-items: flex-start;
  background: #fdfaf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  font-size: 14.5px;
  line-height: 1.5;
  cursor: pointer;
}
.consent:has(input:checked) { border-color: var(--amber); background: var(--amber-lt); }
.consent input { margin: 3px 0 0; accent-color: var(--amber); flex: none; }

.note {
  border-left: 3px solid var(--amber);
  background: #fdf7f0;
  padding: 11px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.note strong { color: var(--ink); display: block; margin-bottom: 2px; }

input[type=file] { font-size: 14px; }

/* ---- errors ------------------------------------------------------------- */
.field.has-error input, .field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.err { display: block; margin-top: 5px; font-size: 13px; color: var(--danger); font-weight: 600; }

.alert {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 20px 0 0;
  font-size: 15px;
}
.alert.bad  { background: var(--danger-bg); border: 1px solid #efc8c4; color: #7d2820; }
.alert.good { background: #eef6f0; border: 1px solid #cbe2d3; color: var(--ok); }

/* ---- actions ------------------------------------------------------------ */
.actions { margin: 26px 0 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 13px 26px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--amber-dk); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--amber-dk); border: 1px solid var(--line); }
.actions .small { color: var(--ink-soft); font-size: 13.5px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- thank you ---------------------------------------------------------- */
.thanks { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
          box-shadow: var(--shadow); padding: 38px 30px; margin-top: 30px; text-align: center; }
.thanks h1 { margin: 0 0 10px; font-size: 27px; }
.thanks p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 12px; }
.thanks .ref { display: inline-block; margin-top: 12px; font-family: ui-monospace, Menlo, Consolas, monospace;
               background: var(--amber-lt); color: var(--amber-dk); border-radius: 6px; padding: 7px 13px; }

/* ---- cat listing -------------------------------------------------------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 26px; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
       overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cat img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--amber-lt); }
.cat .body { padding: 14px 15px 16px; flex: 1; display: flex; flex-direction: column; }
.cat h3 { margin: 0 0 3px; font-size: 18px; }
.cat .meta { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 10px; }
.cat .blurb { font-size: 14px; margin: 0 0 14px; flex: 1; }
.cat .btn { text-align: center; text-decoration: none; padding: 10px 14px; font-size: 14.5px; }

footer.site { text-align: center; color: var(--ink-soft); font-size: 13px; padding: 30px 16px 44px; }
footer.site p { margin: 0 0 6px; }
footer.site a { color: var(--amber-dk); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

/* ---- home page ---------------------------------------------------------- */
.home .intro { text-align: center; padding: 42px 0 6px; max-width: 60ch; margin: 0 auto; }
.home .intro h1 { margin: 0 0 12px; font-size: 31px; line-height: 1.25; }
.home .intro .lede { margin: 0; color: var(--ink-soft); font-size: 17px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 30px 0 10px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tile:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(51,40,31,.07), 0 14px 32px rgba(51,40,31,.10);
}
.tile-eyebrow {
  font-size: 13px; letter-spacing: .02em;
  color: var(--amber-dk); font-weight: 700; margin-bottom: 8px;
}
.tile h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.tile p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.tile-go { color: var(--amber-dk); font-weight: 600; font-size: 14.5px; }

.home .contact {
  text-align: center;
  margin: 34px 0 0;
  padding: 26px 22px;
  background: var(--amber-lt);
  border-radius: var(--radius);
}
.home .contact h2 { margin: 0 0 8px; font-size: 17px; }
.home .contact p { margin: 0 0 8px; }
.home .contact a { color: var(--amber-dk); font-weight: 600; }
.home .contact .fine { margin: 0; font-size: 14px; color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }

.all-forms { text-align: center; margin: 26px 0 0; font-size: 14px; }
.all-forms a { color: var(--ink-soft); }

@media (max-width: 620px) {
  .home .intro h1 { font-size: 25px; }
  .home .intro { padding-top: 30px; }
}

.captcha { margin: 22px 0 0; }
