/* Plett.Web — elderly-first, mobile-first. Brand colours (--brand, --brand-dark,
   --accent, --bg) are injected per-church by _Layout.cshtml from config/branding.
   High contrast, large type (18px base), big tap targets (>=64px). No frameworks. */

:root {
  --surface:   #ffffff;
  --text:      #1a1a1a;
  --text-soft: #4a4a4a;
  --line:      #ddd6c8;
  --radius:    14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px 40px;
}

/* ── Header (landing) ─────────────────────────────────── */
.header { text-align: center; padding: 32px 0 20px; }
.logo {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.logo-img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 14px; display: block; }
.church-name { font-size: 23px; font-weight: 800; color: var(--brand-dark); }
.church-sub  { font-size: 16px; color: var(--text-soft); margin-top: 2px; }

/* ── Big buttons ──────────────────────────────────────── */
.menu { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }

.big-btn {
  display: flex; align-items: center; gap: 18px;
  width: 100%;
  min-height: 72px;
  padding: 16px 22px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 21px; font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  transition: transform .08s ease, border-color .12s ease;
}
.big-btn:active { transform: scale(.98); }
.big-btn .ico {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.big-btn.accent .ico { background: var(--accent); }
.big-btn .sub { display: block; font-size: 15px; font-weight: 500; color: var(--text-soft); }

/* ── Home "What's on" strip ───────────────────────────── */
.home-events { margin-top: 28px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title { font-size: 18px; font-weight: 800; color: var(--brand-dark); }
.see-all { font-size: 16px; font-weight: 700; color: var(--brand); text-decoration: none; }
.see-all:active { opacity: .7; }

/* Mobile-first: cards stack vertically, full-width, filling the screen. */
.event-strip { display: flex; flex-direction: column; gap: 12px; }

.event-mini {
  width: 100%;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.event-mini:active { transform: scale(.99); }

/* Wider screens: lay the three events out horizontally (3 across), using more width. */
@media (min-width: 700px) {
  .home-events { width: min(92vw, 1080px); margin-left: 50%; transform: translateX(-50%); }
  .event-strip { flex-direction: row; align-items: stretch; }
  .event-mini { flex: 1 1 0; min-width: 0; }
}
.mini-title { font-size: 17px; font-weight: 800; color: var(--brand-dark); line-height: 1.2; }
.mini-when { font-size: 14px; color: var(--text-soft); }
.mini-cost { font-size: 15px; font-weight: 800; margin-top: 2px; }
.mini-cost.free { color: var(--brand); }

/* Calm, distinct empty / error state (used on home strip and Events page) */
.strip-note {
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  color: var(--text-soft);
  font-size: 16px;
}

/* ── Sub-page top bar ─────────────────────────────────── */
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--brand-dark);
  font-size: 26px; text-decoration: none;
}
.title { font-size: 24px; font-weight: 800; color: var(--brand-dark); }
.lead  { font-size: 19px; color: var(--text-soft); margin: 6px 0 18px; }

/* ── Amount picker ────────────────────────────────────── */
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.amount {
  min-height: 72px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-size: 26px; font-weight: 800; color: var(--brand-dark);
  cursor: pointer;
}
.amount.selected { border-color: var(--brand); background: #e7f0ef; }
.amount.other { font-size: 20px; grid-column: span 2; color: var(--text-soft); font-weight: 700; }

/* ── Primary CTA ──────────────────────────────────────── */
.cta {
  display: block; width: 100%;
  min-height: 68px;
  margin-top: 8px;
  background: var(--brand);
  color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 22px; font-weight: 800;
  text-align: center; text-decoration: none;
  line-height: 68px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(31,111,107,.35);
}
.cta:active { transform: scale(.99); }
.cta[disabled] { background: #aab4b3; box-shadow: none; cursor: default; }
.cta.gold { background: var(--accent); box-shadow: 0 4px 12px rgba(200,136,31,.35); }

.pay-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 15px;
  color: var(--text-soft);
}
.pay-error {
  margin-top: 14px;
  text-align: center;
  font-size: 16px;
  color: var(--cb-red, #c0392b);
}

/* ── Other ways to give (secondary) ───────────────────── */
.other-give { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.other-head {
  font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 10px;
}
.other-link {
  display: block; text-decoration: none; color: var(--text);
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; font-size: 16px;
}
.other-link .other-cta { display: block; color: var(--brand); font-weight: 700; margin-top: 4px; }
.other-link:active { transform: scale(.99); }

/* ── Bank details (manual EFT) ────────────────────────── */
.bank-card {
  background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 6px 18px;
}
.bank-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.bank-row:last-child { border-bottom: none; }
.bank-label { color: var(--text-soft); font-size: 15px; }
.bank-value { font-weight: 800; font-size: 16px; text-align: right; }
.ref-box {
  margin-top: 16px; background: #e7f0ef; border-radius: var(--radius);
  padding: 16px; text-align: center;
}
.ref-label { font-size: 14px; color: var(--text-soft); }
.ref-value { font-size: 26px; font-weight: 800; color: var(--brand-dark); letter-spacing: 1px; }
.eft-done {
  display: none; margin-top: 16px; background: #e7f0ef;
  border-radius: var(--radius); padding: 16px; text-align: center;
  color: var(--brand-dark); font-weight: 700; font-size: 16px;
}

/* ── Forms ────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.field .optional { font-weight: 500; color: #888; }
.field input, .field select {
  width: 100%;
  min-height: 60px;
  padding: 0 16px;
  font-size: 19px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.interests { display: flex; flex-direction: column; gap: 10px; }
.interests label {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 14px;
  background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
  font-weight: 600;
}
.interests input { width: 26px; height: 26px; }

/* ── Event cards ──────────────────────────────────────── */
.event {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.event h3 { font-size: 21px; color: var(--brand-dark); margin-bottom: 6px; }
.event .when { font-size: 17px; color: var(--text-soft); margin-bottom: 4px; }
.event .badge {
  display: inline-block; font-size: 14px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; margin-left: 6px;
  background: #e7f0ef; color: var(--brand-dark);
}
.event .cost { font-size: 19px; font-weight: 800; margin: 10px 0; }
.event .cost.free { color: var(--brand); }

/* ── Thank you / Error ────────────────────────────────── */
.thanks { text-align: center; padding-top: 16vh; }
.check {
  width: 110px; height: 110px; margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.thanks h1 { font-size: 30px; color: var(--brand-dark); margin-bottom: 10px; }
.thanks p { font-size: 20px; color: var(--text-soft); margin-bottom: 28px; }
