/* Partner / giving page.
   Relies on /styles.css for the design tokens, body, buttons, nav and footer. */

/* ---------- Hero ---------- */
.pt-hero { padding: 60px 0 34px; text-align: center; }
.pt-eyebrow { color: var(--mauve); font-size: 13px; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; margin: 0 0 18px; }
.pt-hero h1 { font-size: clamp(42px, 6vw, 76px); margin: 0 auto 18px; max-width: 15ch; letter-spacing: -.045em; line-height: .98; }
.pt-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 2.4vw, 27px);
  color: var(--green);
  max-width: 26ch; margin: 0 auto 30px; line-height: 1.2;
}

/* ---------- Sections ---------- */
.pt-section { padding: 46px 0; }
.pt-section h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px; letter-spacing: -.035em; text-align: center; }
.pt-copy { color: var(--soft-ink); font-size: clamp(16px, 1.9vw, 18px); line-height: 1.6; max-width: 60ch; margin: 0 auto; text-align: center; }
.pt-copy + .pt-copy { margin-top: 14px; }

/* ---------- Giving form ---------- */
.give-wrap { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(243, 239, 231, .7)); }
.give-card {
  max-width: 760px; margin: 0 auto;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 30px clamp(14px, 3vw, 30px) 28px;
}
.give-card h2 { font-size: clamp(25px, 3vw, 32px); margin: 0 0 6px; }
/* Tight: the embedded form opens with its own title + logo directly below. */
.give-card .sub { text-align: center; color: var(--muted); font-size: 15px; max-width: 46ch; margin: 0 auto 8px; }

/* The ministryforms embed drops its <iframe id="mb-formbuilder-container">
   in as the next sibling of its own <script> tag, then drives the height by
   postMessage (it starts life at height:95%, which would otherwise collapse
   to nothing in a normal auto-height container). So: set a min-height floor
   here and NEVER set `height` — that would fight the resize messages. */
.give-embed { min-height: 520px; }
.give-embed #mb-formbuilder-container {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  background: transparent;
}

/* Placeholder shown until the third-party iframe lands, and the fallback it
   turns into if the embed never arrives (blocked script, extension, outage). */
.give-status { text-align: center; color: var(--muted); font-size: 15px; padding: 40px 10px; margin: 0; }
.give-status .spin {
  display: block; width: 26px; height: 26px; margin: 0 auto 16px;
  border: 3px solid rgba(32, 36, 42, .14);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: pt-spin .8s linear infinite;
}
@keyframes pt-spin { to { transform: rotate(360deg); } }
.give-status a { color: var(--green); font-weight: 700; text-decoration: underline; }

.give-fine { text-align: center; color: var(--muted); font-size: 13.5px; margin: 22px auto 0; max-width: 48ch; }
.give-fine strong { color: var(--soft-ink); font-weight: 700; }

/* Legal / entity line — donors need to see who receives the gift. */
.pt-entity { text-align: center; color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .give-status .spin { animation: none; }
}
