/* Prospective families: the public "Interested?" form (/interest), its thank-you page, and the
   leaders' list (/admin/interest). Colours, radii and shadows come from the tokens in site.css. */

/* ---- public form ---- */
.interest-head { padding-bottom: clamp(1rem, 3vw, 1.5rem); }
.interest-head h1 { font-size: clamp(2rem, 6vw, 3rem); }
.interest-lede { margin: .5rem 0 0; max-width: 38rem; font-size: 1.1rem; color: var(--text-muted); }
.interest-wrap { max-width: 38rem; padding-block: var(--sp-5) var(--sp-7); }
.interest-card { box-shadow: var(--shadow-1); }
.interest-card .card-body { padding: clamp(1rem, 4vw, 1.75rem); }
.interest-group { margin: 0 0 var(--sp-5); padding: 0; border: 0; min-width: 0; }
.interest-group legend { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); color: var(--text); width: 100%; }
.interest-card .form-label { font-weight: 600; }
.interest-card .form-control, .interest-card .form-select { min-height: var(--tap); font-size: 1rem; }
.interest-card .req { color: var(--accent-text); }
.interest-card .opt { font-weight: 400; color: var(--text-subtle); font-size: .9em; }

/* Troop choice: three big tap targets, the whole tile is the label. */
.interest-troops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.interest-troops > .form-label, .interest-troops > .invalid-feedback { grid-column: 1 / -1; }
.interest-choice { display: flex; align-items: flex-start; gap: .5rem; min-height: var(--tap); padding: .6rem .65rem; margin: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer; }
.interest-choice input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; flex: none; accent-color: var(--primary); cursor: pointer; }
.interest-choice strong { display: block; line-height: 1.2; }
.interest-choice .sub { display: block; font-size: var(--fs-sm, .875rem); color: var(--text-muted); }
.interest-choice:has(input:checked) { border-color: var(--primary-text); background: var(--surface-hover); box-shadow: inset 0 0 0 1px var(--primary-text); }
.interest-choice:has(input:focus-visible) { box-shadow: var(--focus-ring); }
@media (max-width: 420px) {
  .interest-troops { grid-template-columns: 1fr; }
  .interest-choice .sub { display: inline; margin-left: .35rem; }
  .interest-choice strong { display: inline; }
}

.interest-invite { display: flex; align-items: center; gap: .6rem; min-height: var(--tap); padding-left: 0; margin: 0; }
.interest-invite .form-check-input { width: 1.4rem; height: 1.4rem; margin: 0; float: none; flex: none; }
.interest-invite .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.interest-submit { min-height: 3.25rem; }
.interest-privacy { margin: var(--sp-3) 0 0; font-size: var(--fs-sm, .875rem); color: var(--text-muted); text-align: center; }

/* Honeypot: off-screen for people (and screen readers: aria-hidden), still in the form for bots. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- thank-you ---- */
.interest-thanks { text-align: center; }
.interest-thanks h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: var(--sp-3) 0; text-wrap: balance; }
.interest-done { font-size: 3rem; color: var(--success-fg); }
.interest-meet { font-size: 1.05rem; color: var(--text); }
.interest-meet i { color: var(--icon); margin-right: .25rem; }
.interest-next { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-4); }
@media (max-width: 420px) { .interest-next .btn { width: 100%; } }

/* ---- home page and Join page links ---- */
.interest-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3);
  margin: 0 0 var(--sp-5); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); }
.interest-callout p { margin: 0; font-weight: 500; }

/* ---- leaders' list ---- */
.lead-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin: var(--sp-3) 0; }
.lead-filters .form-select { width: auto; min-width: 9rem; }
.lead-list { display: grid; gap: var(--sp-3); }
.lead-card { padding: var(--sp-3) var(--sp-4); }
.lead-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem var(--sp-3); }
.lead-name { font-size: 1.1rem; font-weight: 600; margin: 0; }
.lead-meta { font-size: var(--fs-sm, .875rem); color: var(--text-muted); }
.lead-contact { display: flex; flex-wrap: wrap; gap: .25rem var(--sp-4); margin-top: var(--sp-2); }
.lead-contact a { overflow-wrap: anywhere; }
.lead-contact i { color: var(--icon); margin-right: .25rem; }
.lead-facts { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.lead-msg { margin: var(--sp-2) 0 0; padding: .5rem .75rem; border-left: 3px solid var(--line-strong); background: var(--surface-tint);
  white-space: pre-line; overflow-wrap: anywhere; }
.lead-dupe { display: flex; flex-wrap: wrap; gap: .25rem var(--sp-3); margin-top: var(--sp-2); padding: .35rem .6rem;
  border-radius: var(--radius-xs); background: var(--warning-bg); color: var(--warning-fg); font-size: var(--fs-sm, .875rem); }
.lead-dupe a { color: inherit; text-decoration: underline; }
.lead-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-3); }
.lead-status { display: flex; gap: var(--sp-2); align-items: center; }
.lead-status .form-select { width: auto; }
.lead-note-add { display: flex; gap: var(--sp-2); flex: 1 1 16rem; }
.lead-notes { margin-top: var(--sp-2); }
.lead-note { font-size: var(--fs-sm, .875rem); padding: .2rem 0; }
.lead-note i { color: var(--text-subtle); margin-right: .3rem; }
.lead-note .by { color: var(--text-muted); }
.lead-notify textarea { font-family: var(--font-body); }
.lead-notify .bad { color: var(--danger-fg); }
@media (max-width: 575.98px) {
  .lead-card { padding: var(--sp-3); }
  .lead-status, .lead-note-add { flex: 1 1 100%; }
  .lead-status .form-select { flex: 1; }
}
