/* Donation pages. Builds on colors_and_type.css, home.css (buttons) and pages.css (page shell). */
.dn { max-width: 640px; color: #3C3938; }
.dn-form { display: grid; gap: 22px; }
.dn-block { border: 1px solid #ececec; border-radius: 16px; padding: 20px 22px 22px; margin: 0; background: #fff; }
.dn-block legend { font-family: "Raleway", sans-serif; font-weight: 800; font-size: 1.05rem; color: #111; padding: 0 8px; }
.dn label { display: block; font-family: "Poppins", sans-serif; font-size: 13.5px; font-weight: 500; margin: 14px 0 6px; }
.dn input[type="text"], .dn input[type="email"], .dn textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 10px;
  font: inherit; background: #fff; color: #111;
}
.dn input:focus-visible, .dn textarea:focus-visible, .dn-preset:focus-visible { outline: 3px solid #586c8c; outline-offset: 2px; }
.dn-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; margin-bottom: 6px; }
.dn-preset {
  padding: 14px 10px; border: 2px solid #ececec; border-radius: 12px; background: #fff; cursor: pointer;
  font-family: "Raleway", sans-serif; font-weight: 800; font-size: 1.15rem; color: #111; transition: .2s;
}
.dn-preset:hover { border-color: var(--asuk-accent, #DD7878); }
.dn-preset[aria-pressed="true"] { border-color: #1F2B4B; background: #fdf2f2; color: #8f3f3d; }
.dn .dn-pay, .dn .dn-check { display: flex; gap: 10px; align-items: center; margin: 8px 0; cursor: pointer; }
.dn .dn-check { align-items: flex-start; font-weight: 400; font-size: 14.5px; line-height: 1.5; }
.dn .dn-check input { margin-top: 4px; }
.dn-small { font-size: 13px; color: #666; line-height: 1.55; margin: 10px 0 0; }
.dn-error { color: #b3261e; font-size: 13.5px; margin-top: 6px; }
.dn-note { background: #fdf2f2; border: 1px solid #ececec; border-radius: 12px; padding: 16px 18px; }
.dn-submit { justify-self: start; min-width: 240px; }
.dn-result { font-size: 1.05rem; line-height: 1.65; }
.dn-big { font-family: "Raleway", sans-serif; font-size: 1.35rem; }
@media (max-width: 520px) { .dn-submit { width: 100%; } .dn-block { padding: 16px; } }

/* Our pledge, above the form */
.dn-pledge { max-width: 640px; margin-bottom: 30px; color: #3C3938; }
.dn-pledge h2 { font-family: "Raleway", sans-serif; font-weight: 800; font-size: 1.4rem; color: #111; margin: 0 0 12px; }
.dn-pledge ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; line-height: 1.6; }
.dn-thanks { background: #fdf2f2; border-radius: 12px; padding: 14px 18px; margin: 0; line-height: 1.6; }

/* Thank-you page (a paid donation) */
.dn-done { max-width: 1040px; display: grid; gap: 44px; color: #3C3938; }
.dn-done h2 { font-family: "Raleway", sans-serif; font-weight: 800; font-size: 1.45rem; line-height: 1.25; color: #111; margin: 0 0 14px; text-wrap: balance; }
.dn-letter-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.dn-letter p { font-size: 1.05rem; line-height: 1.75; margin: 0 0 16px; max-width: 62ch; }
.dn-signoff { margin-top: 24px !important; font-family: "Raleway", sans-serif; font-size: 1.05rem; color: #555; }
.dn-signoff strong { color: #1F2B4B; font-weight: 800; }
.dn-side { display: grid; gap: 16px; }
.dn-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; display: block; box-shadow: 0 10px 30px rgba(31, 43, 75, .12); }
.dn-receipt { border: 1px solid #ececec; border-radius: 16px; padding: 18px 20px; background: #fff; }
.dn-receipt__lead { margin: 0 0 12px; font-family: "Raleway", sans-serif; font-weight: 800; color: #111; }
.dn-receipt dl { margin: 0; display: grid; gap: 9px; }
.dn-receipt dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; border-bottom: 1px solid #f2f2f2; padding-bottom: 9px; }
.dn-receipt dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dn-receipt dt { font-family: "Poppins", sans-serif; font-size: 13px; color: #666; }
.dn-receipt dd { margin: 0; font-weight: 600; font-size: 14.5px; color: #111; overflow-wrap: anywhere; }

.dn-figures { background: #1F2B4B; color: #fff; border-radius: 20px; padding: 28px 30px; }
.dn-figures__intro { margin: 0 0 16px; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 1.05rem; color: #f3c9c9; }
.dn-figures ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 28px; }
.dn-figures strong { display: block; font-family: "Raleway", sans-serif; font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.dn-figures span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: #d6dbe8; }

.dn-impact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dn-impact li { background: #fff; border: 1px solid #f1e3e3; border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.dn-impact li img { width: 56px; height: 56px; }
.dn-impact h3 { margin: 4px 0 0; font-family: "Raleway", sans-serif; font-weight: 800; font-size: 1.05rem; color: #8f3f3d; }
.dn-impact li p { margin: 0; font-size: 15px; line-height: 1.6; }

.dn-next { background: #fdf2f2; border-radius: 20px; padding: 26px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.dn-next > div { flex: 1 1 340px; min-width: 0; }
.dn-next h2 { margin-bottom: 6px; }
.dn-next p { margin: 0; line-height: 1.6; }
.dn-next__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .dn-letter-grid { grid-template-columns: 1fr; gap: 24px; }
  .dn-done { gap: 32px; }
}
@media (max-width: 520px) {
  .dn-figures, .dn-next { padding: 22px 20px; }
  .dn-next__actions .btn { width: 100%; text-align: center; }
}
