/* ==========================================================
   Flow For Good – static ads landing page
   No header/footer. Theme tokens live in :root so they can be
   matched 1:1 to the live site (nickwharris.com) stylesheet.
   ========================================================== */

:root {
  /* ---- THEME TOKENS: swap these for the live-site values ---- */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --color-bg: #f3efe6;            /* page background (warm cream) */
  --color-bg-pattern: rgba(120, 100, 60, .035);
  --color-card: #fbf9f4;          /* form card */
  --color-text: #1d2a27;
  --color-muted: #5d6764;
  --color-heading: #0f1a17;
  --color-primary: #181818;       /* buttons, active states, icons */
  --color-primary-dark: #000;
  --color-primary-text: #ffffff;
  --color-border: #d9d6cc;
  --color-input-bg: #f1efe8;
  --color-notice-bg: #dcebe3;
  --color-error: #b3261e;

  --radius-input: 6px;
  --radius-btn: 6px;
  --radius-card: 10px;
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 1px 1px, var(--color-bg-pattern) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.page { padding: 12px; }
.page__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: start;
}

/* ---------- Left column ---------- */
.event { padding: 18px 0 18px 18px;text-align: left;}
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-text);
}
.event__title {
  margin: 0 0 22px;
  font-family: var(--font-heading);
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--color-heading);
}
.event__intro { margin: 0 0 34px; max-width: 520px; color: var(--color-muted); font-size: 17px; }

.facts { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 26px; }
.facts__item { display: grid; grid-template-columns: 34px 1fr; gap: 22px; align-items: start; color: var(--color-text); font-size: 16.5px; }
.facts__item > div { padding-top: 2px; }
.facts__icon { width: 30px; height: 30px; fill: none; stroke: var(--color-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.facts__icon--fill { fill: var(--color-primary); stroke: none; }

.event__photo { margin: 0; border-radius: 4px; overflow: hidden; box-shadow: 0 6px 22px rgba(30, 30, 20, .18); }
.event__photo img { width: 100%; height: auto; aspect-ratio: 720 / 690; object-fit: cover; background: #3a322b; }

/* ---------- Form card ---------- */
.card {
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: 34px 24px 24px;
  box-shadow: 0 2px 18px rgba(40, 40, 30, .08);
}
.card__secure {
  position: absolute; top: 14px; right: 18px;
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted);
}
.card__secure svg, .secure-note svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.step { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.step:first-of-type { margin-top: 8px; }
.step--between { justify-content: space-between; }
.step__left { display: flex; align-items: center; gap: 10px; }
.step__num {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-primary-text);
  font-size: 12.5px; font-weight: 700; flex: none;
}
.step__title { margin: 0; font-family: var(--font-heading); font-size: 15.5px; font-weight: 700; color: var(--color-heading); }
.stripe { font-size: 12px; color: var(--color-muted); }
.stripe strong { color: #635bff; font-size: 17px; font-weight: 800; letter-spacing: -.03em; margin-left: 4px; }
.hint { margin: 0 0 12px; font-size: 13.5px; color: var(--color-muted); }

.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: 1fr 1fr;padding: 0;background: transparent; }
.grid--3 { grid-template-columns: 1.25fr .9fr 1fr;padding: 0;background: transparent; }

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--color-muted);    text-align: left; }
.field input, .field select {
  width: 100%; height: 38px; padding: 0 12px;
  font: inherit; font-size: 14.5px; color: var(--color-text);
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231d2a27' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field input::placeholder { color: #a5a8a2; }
.field input:focus, .field select:focus { background: #fff; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(15, 79, 69, .14); }
.field.has-error input, .field.has-error select { border-color: var(--color-error); }

/* Donation buttons */
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.amount {
  height: 42px; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--color-heading); background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius-btn);
  cursor: pointer; transition: all .15s;
}
.amount:hover { border-color: var(--color-primary); }
.amount.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-text); }
.field--custom { margin-top: -2px; }

/* Checkbox */
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-left: 34px; font-size: 14px; color: var(--color-text); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { width: 18px; height: 18px; margin-top: 2px; border-radius: 4px; background: #fff; border: 1.5px solid var(--color-border); display: grid; place-items: center; }
.check input:checked + .check__box { background: var(--color-primary); border-color: var(--color-primary); }
.check input:checked + .check__box::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(15, 79, 69, .25); }

/* Card brands */
.input-icons { position: relative; }
.input-icons input { padding-right: 150px; }
.brands { position: absolute; right: 10px; top: 37%; transform: translateY(-50%); display: flex; gap: 6px; }
.brand { display: inline-grid; place-items: center; width: 30px; height: 20px; border-radius: 3px; font-style: normal; font-size: 8px; font-weight: 800; color: #fff; }
.brand--visa { background: #fff; color: #1a1f71; border: 1px solid var(--color-border); font-size: 9px; }
.brand--mc { background: radial-gradient(circle at 36% 50%, #eb001b 0 7px, transparent 7.5px), radial-gradient(circle at 64% 50%, #f79e1b 0 7px, transparent 7.5px), #fff; border: 1px solid var(--color-border); }
.brand--amex { background: #2e77bb; }
.brand--disc { background: #fff; color: #333; border: 1px solid var(--color-border); }

/* Summary */
.summary { margin: 22px 0 18px; border-top: 1px solid var(--color-border); padding-top: 12px; }
.summary__head { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; color: var(--color-heading); margin-bottom: 4px; }
.summary__row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--color-muted); padding: 2px 0; }
.summary__row abbr { text-decoration: none; cursor: help; }
.summary__total { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--color-border); font-weight: 700; font-size: 16px; color: var(--color-heading); }

/* Button */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 52px; padding: 0 24px;
  font: inherit; font-size: 15.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--color-primary-text); background: var(--color-primary);
  border: 0; border-radius: var(--radius-btn); cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--color-primary-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.secure-note { /*display: flex;*/ justify-content: center; align-items: center; gap: 6px; margin: 10px 0 18px; font-size: 11.5px; color: var(--color-muted); }

.notice { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: center; padding: 14px 18px; background: var(--color-notice-bg); border-radius: 8px; }
.notice svg { width: 28px; height: 28px; fill: none; stroke: var(--color-primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.notice p { margin: 0; font-size: 13.5px; color: var(--color-text); }

.form-error { margin: 0 0 12px; padding: 10px 12px; font-size: 13.5px; color: var(--color-error); background: #fbeceb; border-radius: 6px; }
.thanks { padding: 60px 10px; text-align: center; }
.thanks h3 { margin: 0 0 8px; font-family: var(--font-heading); font-size: 28px; color: var(--color-heading); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .page__inner { grid-template-columns: 1fr; gap: 24px; }
  .event { padding: 20px 8px 0; }
  .event__photo { max-width: 560px; }
}
@media (max-width: 520px) {
  .grid--2 { grid-template-columns: 1fr; gap: 0; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--3 .field:first-child { grid-column: 1 / -1; }
  .amounts { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 38px 16px 18px; }
  .check { margin-left: 0; }
  .input-icons input { padding-right: 12px; }
  .brands { display: none; }
  .facts__item { gap: 16px; }
}
li.facts__item strong {
    font-weight: 700;
}