/* =============================================================================
   Can and a Coin — "pay in your club's collection" page
   Same look as the Can and a Coin welcome pages: large, high-contrast type for
   readers who prefer it. Self-contained, so it can be dropped onto the Feed
   The Hungry site without depending on anything else.
   ============================================================================= */

:root {
  --navy:    #1A2B4A;
  --navy-2:  #243D69;
  --royal:   #17458F;
  --gold:    #F7A81B;
  --gold-lt: #FFF4DC;
  --teal:    #0F6E56;
  --teal-lt: #E3F4EE;
  --red:     #A4231A;
  --red-lt:  #FDECEA;
  --ink:     #17202C;
  --muted:   #465263;
  --line:    #CFD6DF;
  --paper:   #FFFFFF;
  --cream:   #FBF8F2;
  --radius:  0.6rem;
  --font:    'Atkinson Hyperlegible', Verdana, Tahoma, Arial, sans-serif;
}

html { font-size: 20px; -webkit-text-size-adjust: 100%; }
@media (max-width: 600px) { html { font-size: 18px; } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); line-height: 1.6; color: var(--ink); background: var(--cream); overflow-wrap: break-word; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 0.6em; }
h2 { font-size: 1.3rem; }
p, ul { margin: 0 0 1em; }
a { color: var(--royal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: var(--navy); padding: 0.6rem 1rem; font-weight: 700; border-radius: var(--radius); z-index: 10; }
.skip-link:focus { top: 1rem; }

.wrap { max-width: 62rem; margin: 0 auto; padding-inline: 1.25rem; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header { background: var(--navy); }
.site-header .wrap { padding-block: 0.8rem; }
.logos { display: inline-flex; align-items: center; gap: 1rem; flex-wrap: wrap; text-decoration: none; }
.logos .cc { height: 3.2rem; width: auto; display: block; }
.logos .partners { height: 2rem; width: auto; display: block; }
.logos .divider { width: 1px; height: 2.4rem; background: rgba(255,255,255,.3); }
@media (max-width: 600px) { .logos .divider { display: none; } .logos .partners { height: 1.6rem; } }

/* ── Page heading ─────────────────────────────────────────────────────────── */
.page-head { background: var(--navy-2); color: #fff; padding-block: 2rem 2.2rem; }
.page-head .eyebrow { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; margin-bottom: 0.4rem; }
.page-head h1 { color: #fff; font-size: 2.4rem; margin-bottom: 0.3rem; }
.page-head .lede { font-size: 1.2rem; line-height: 1.5; max-width: 42rem; color: rgba(255,255,255,.92); margin: 0; }
@media (max-width: 600px) { .page-head h1 { font-size: 2rem; } .page-head .lede { font-size: 1.1rem; } }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.section { padding-block: 2.5rem 3rem; }
.form-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: minmax(0, 1fr); } }

/* ── Form ─────────────────────────────────────────────────────────────────── */
.form-card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.field { margin-bottom: 1.3rem; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.3rem; padding: 0; }
.field .hint, .sub-label { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.4rem; }
.sub-label { font-weight: 700; color: var(--ink); margin-top: 0.8rem; }
.field input[type=text], .field input[type=email] {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff;
  border: 2px solid #8A96A6; border-radius: 0.45rem; padding: 0.65rem 0.8rem; min-height: 3rem;
}
.field input:focus { border-color: var(--navy); outline: 4px solid var(--gold); outline-offset: 1px; }
.req { color: var(--red); font-weight: 700; }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 600px) { .two-up { grid-template-columns: minmax(0, 1fr); } }

.amount-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.amount-btn { font: inherit; font-size: 1.15rem; font-weight: 700; color: var(--navy); background: #fff; border: 3px solid var(--navy); border-radius: var(--radius); padding: 0.6rem 1.3rem; min-height: 3.2rem; cursor: pointer; }
.amount-btn:hover { background: #EEF2F8; }
.amount-btn.on { background: var(--navy); color: #fff; }
.amount-input { display: flex; align-items: center; gap: 0.5rem; }
.amount-input span { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.amount-input input { max-width: 12rem; font-size: 1.2rem !important; font-variant-numeric: tabular-nums; }

.cf-turnstile { margin: 1.2rem 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.4rem; width: 100%; padding: 0.7rem 1.4rem; border: 3px solid transparent; border-radius: var(--radius); font: inherit; font-size: 1.15rem; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: #FFC24D; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

.small { font-size: 0.9rem; color: var(--muted); margin: 1rem 0 0; }

/* ── Messages ─────────────────────────────────────────────────────────────── */
.messages { background: var(--red-lt); border: 2px solid var(--red); color: var(--red); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 700; }
.messages p { margin: 0; }
.messages a { color: var(--red); }
.notice { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-size: 0.95rem; }
.notice.warn { background: #FFF3BF; border: 2px dashed #C99A00; color: #5C4400; }
.notice code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; }

.payload-preview { background: var(--navy); color: #E8EDF5; border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1.2rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8rem; line-height: 1.5; overflow-x: auto; }

/* ── Side panel ───────────────────────────────────────────────────────────── */
.help-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.5rem; }
.help-card h2 { color: #fff; font-size: 1.15rem; margin-top: 1.2rem; }
.help-card h2:first-child { margin-top: 0; }
.help-card a { color: #fff; }
.help-card ul { padding-left: 1.2rem; }
.help-card li { margin-bottom: 0.5rem; }
.help-card p:last-child { margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.9); padding-block: 1.8rem; font-size: 0.9rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 0.4rem; }
