/* AVIDE Donate: form + transparency listing. Navy/gold accents, theme-agnostic. */

.avide-donate { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border: 1px solid #d9dee8; border-radius: 10px; background: #f7f9fc; }
.avide-donate input[type="text"],
.avide-donate input[type="email"],
.avide-donate input[type="tel"],
.avide-donate input[type="url"],
.avide-donate input[type="number"],
.avide-donate textarea { width: 100%; max-width: 30rem; padding: 0.45rem 0.6rem; border: 1px solid #b9c2d4; border-radius: 4px; }
.avide-donate p { margin: 0.6rem 0; }
.avide-donate fieldset { margin: 0.9rem 0; padding: 0.7rem 1rem; border: 1px solid #d9dee8; border-radius: 6px; background: #fff; }
.avide-donate fieldset legend { font-weight: 600; padding: 0 0.4rem; }
.avide-donate fieldset label { display: block; margin: 0.35rem 0; }
.avide-donate-btn { display: inline-block; padding: 0.6rem 1.6rem; border: 0; border-radius: 4px; background: var(--brand-highlight, #c9a227); color: #131f3a; font-weight: 700; cursor: pointer; }
.avide-donate-btn:hover { filter: brightness(1.06); }
.avide-donate-btn--secondary { background: #fff; color: #1b2a4a; border: 1px solid #1b2a4a; margin-left: 0.5rem; }
.avide-donate-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.avide-donate-quickbtn { padding: 0.3rem 0.9rem; border: 1px solid #b9c2d4; border-radius: 999px; background: #fff; cursor: pointer; }
.avide-donate-quickbtn:hover { border-color: #1b2a4a; }
.avide-donate-note { font-size: 0.88em; color: #4a5568; }
.avide-donate-notice { padding: 0.6rem 0.9rem; border-radius: 4px; background: #e6f4e6; border: 1px solid #9ec89e; }
.avide-donate-notice.is-err { background: #fbeaea; border-color: #d6a0a0; }
.avide-donate-hp { position: absolute !important; left: -9999px !important; }

/* Transparency listing */
.avide-donate-listing__month { margin: 1.25rem 0; }
.avide-donate-listing__month h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid #1b2a4a; padding-bottom: 0.3rem; }
.avide-donate-listing__sum { font-size: 0.85em; font-weight: 600; color: #4a5568; }
.avide-donate-listing__month ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.avide-donate-listing__month li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid #e4e8f0; }
.avide-donate-listing__amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.avide-donate-listing__quarters { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1.25rem 0; padding: 0.8rem 1rem; border-radius: 8px; background: #f2f5fa; border: 1px solid #dfe5ef; }

/* Two-column layout for the short contact fields, same pattern as
   avide-services: mobile-first one column so a 320px screen never gains a
   horizontal scroll, a second column above 40em, and a fixed count of two
   rather than auto-fit, which would reach three columns on a wide screen.
   The grid overrides the 30rem input cap so each control fills its column. */
.avide-donate-grid { display: grid; grid-template-columns: 1fr; gap: 0.4rem 1.25rem; }
@media (min-width: 40em) { .avide-donate-grid { grid-template-columns: 1fr 1fr; } }
.avide-donate-grid p { margin: 0.35rem 0; }
.avide-donate-grid input { max-width: 100%; }

/* Phone: reclaim the card padding and give the controls a 44px touch target
   (WCAG 2.5.8; the 16px font also stops iOS zooming in on focus). */
@media (max-width: 480px) {
  .avide-donate { padding: 1rem 0.9rem; }
  .avide-donate input[type="text"],
  .avide-donate input[type="email"],
  .avide-donate input[type="tel"],
  .avide-donate input[type="url"],
  .avide-donate input[type="number"],
  .avide-donate textarea { font-size: 1rem; min-height: 44px; }
  .avide-donate textarea { min-height: 6rem; }
  .avide-donate-btn { width: 100%; min-height: 44px; }
  .avide-donate-btn--secondary { margin: 0.5rem 0 0; }
}
