/*! Hope Foundation – donate page (donate.html). Loaded after style.css and hope-brand.css.
 * Colours from the logo: teal #007480, dark teal #0c3a3f, leaf green #80bc40, lime #a4cc38. */
.hope-donate-page {
  --hd-teal: #007480;
  --hd-teal-dark: #0c3a3f;
  --hd-leaf: #80bc40;
  --hd-lime: #a4cc38;
  --hd-cream: #f7f4ef;
  --hd-line: #e4e0d8;
  --hd-text: var(--donatm-body-color, #676666);
  color: var(--hd-text);
  font-family: var(--donatm-font-sans-serif);
  font-size: 16px;
  line-height: 1.75;
}
.hope-donate-page *,
.hope-donate-page *::before,
.hope-donate-page *::after { box-sizing: border-box; }
.hd-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hd-section { padding: 90px 0; }
.hd-center { text-align: center; margin-top: 40px; }

/* headings */
.hd-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--hd-leaf); font-weight: 600; font-size: 16px; margin-bottom: 10px;
}
.hd-tagline::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.hd-tagline--light { color: var(--hd-lime); }
.hd-title {
  font-family: var(--donatm-heading-font-family); font-weight: 700;
  color: var(--hd-teal-dark); font-size: 42px; line-height: 1.2; margin: 0 0 20px;
}
.hd-title--light { color: #fff; }
.hd-lead { font-size: 19px; line-height: 1.6; color: var(--hd-teal-dark); font-weight: 500; }
.hd-lead strong, .hd-why strong { color: var(--hd-teal); }
.hd-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.hd-head p { margin: 0; }

/* hero */
.hd-hero { position: relative; overflow: hidden; background: var(--hd-teal-dark); color: #fff; }
.hd-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hd-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 58, 63, 0.95) 0%, rgba(12, 58, 63, 0.78) 45%, rgba(0, 116, 128, 0.35) 100%); }
.hd-hero__inner { position: relative; padding-top: 110px; padding-bottom: 110px; }
.hd-breadcrumb { display: flex; gap: 10px; font-size: 15px; margin-bottom: 14px; color: rgba(255, 255, 255, 0.8); }
.hd-breadcrumb a { color: var(--hd-lime); }
.hd-hero__title { font-family: var(--donatm-heading-font-family); font-weight: 700; font-size: 64px; line-height: 1.1; color: #fff; margin: 0 0 18px; }
.hd-hero__lead { font-size: 20px; line-height: 1.6; max-width: 600px; margin: 0 0 32px; color: rgba(255, 255, 255, 0.92); }

/* why + stats */
.hd-why__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hd-stats { display: grid; gap: 18px; }
.hd-stat {
  background: #fff; border: 1px solid var(--hd-line); border-radius: 20px; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: 0 10px 30px rgba(12, 58, 63, 0.06);
}
.hd-stat__label { font-size: 15px; font-weight: 600; color: var(--hd-text); }
.hd-stat__value { font-family: var(--donatm-heading-font-family); font-weight: 700; font-size: 34px; line-height: 1.2; color: var(--hd-teal); }
.hd-stat__value.is-pending { font-size: 22px; color: #9aa7a8; }
.hd-stat__note { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.hd-stat--accent { background: var(--hd-teal); border-color: var(--hd-teal); }
.hd-stat--accent .hd-stat__label { color: rgba(255, 255, 255, 0.85); }
.hd-stat--accent .hd-stat__value { color: #fff; }

/* donate online */
.hd-online { padding-top: 0; }
.hd-online__card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
  background: var(--hd-teal-dark) linear-gradient(120deg, var(--hd-teal-dark) 0%, var(--hd-teal) 100%);
  color: rgba(255, 255, 255, 0.9); border-radius: 30px; padding: 60px;
  box-shadow: 0 24px 60px rgba(12, 58, 63, 0.25);
}
.hd-online__text p { font-size: 18px; margin: 0 0 18px; }
.hd-online__action { min-width: 0; }

.hope-donate-page .btn-theme { white-space: nowrap; }
.btn-theme.hd-pay-online {
  font-size: 22px; line-height: 26px; padding: 8px 44px 8px 8px; border-radius: 44px;
  background: var(--hd-leaf); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  animation: hd-pulse 2.4s ease-in-out infinite;
}
.btn-theme.hd-pay-online:before { width: 56px; height: 56px; font-size: 24px; margin-right: 14px; color: var(--hd-leaf); }
.btn-theme.hd-pay-online:hover, .btn-theme.hd-pay-online:focus { background: #6fa634; animation: none; }
@keyframes hd-pulse {
  0%, 100% { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(164, 204, 56, 0.6); }
  50% { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25), 0 0 0 14px rgba(164, 204, 56, 0); }
}
@media (prefers-reduced-motion: reduce) { .btn-theme.hd-pay-online { animation: none; } }

/* online donation form (white panel inside the teal card) */
.hd-pay {
  background: #fff; color: var(--hd-text); border-radius: 24px; padding: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.hd-pay[hidden] { display: none; }
.hd-pay__amounts { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.hd-pay__label { display: block; font-size: 14px; font-weight: 700; color: var(--hd-teal-dark); margin-bottom: 8px; padding: 0; }
.hd-pay__label em { color: #c0392b; font-style: normal; }
.hd-pay__label small { font-weight: 500; color: #8a8f8f; font-size: 13px; }
.hd-pay__chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hd-chip { position: relative; margin: 0; cursor: pointer; }
.hd-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hd-chip span {
  display: block; text-align: center; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--hd-line);
  font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--hd-teal-dark); background: #fff;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.hd-chip:hover span { border-color: var(--hd-leaf); }
.hd-chip input:checked + span { border-color: var(--hd-teal); background: var(--hd-teal); color: #fff; }
.hd-chip input:focus-visible + span { outline: 3px solid var(--hd-lime); outline-offset: 2px; }
.hd-field { display: block; margin: 0 0 14px; }
.hd-field[hidden] { display: none; }
.hd-field input {
  width: 100%; height: 48px; padding: 0 16px; border: 1px solid #d9d5cc; border-radius: 12px; background: #fbfaf8;
  font: inherit; font-size: 16px; color: var(--hd-teal-dark); transition: border-color 0.2s, box-shadow 0.2s;
}
.hd-field input:focus { outline: none; border-color: var(--hd-teal); box-shadow: 0 0 0 3px rgba(0, 116, 128, 0.15); background: #fff; }
.hd-field input[aria-invalid="true"] { border-color: #c0392b; }
.hd-pay__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hd-pay__purpose { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #eef6e4; color: var(--hd-teal-dark); font-size: 14px; font-weight: 600; line-height: 1.5; }
.hd-pay__purpose[hidden] { display: none; }
.hd-pay__purpose button { margin-left: 8px; border: 0; background: none; color: var(--hd-teal); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; }
.hd-pay .btn-theme.hd-pay-online { width: 100%; justify-content: flex-start; margin-top: 6px; border: 0; cursor: pointer; font-family: inherit; }
.hd-pay .btn-theme.hd-pay-online[disabled] { opacity: 0.7; cursor: progress; animation: none; }
.hd-pay__status { margin: 12px 0 0; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--hd-teal); min-height: 0; }
.hd-pay__status:empty { display: none; }
.hd-pay__status.is-error { color: #c0392b; }
.hd-pay__secure { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #8a8f8f; text-align: center; }
.hd-pay__thanks { text-align: center; outline: none; }
.hd-pay__tick { display: block; position: relative; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--hd-leaf); }
.hd-pay__tick::after { content: ""; position: absolute; left: 24px; top: 15px; width: 14px; height: 26px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.hd-pay__thanks-title { font-family: var(--donatm-heading-font-family); font-weight: 700; font-size: 28px; color: var(--hd-teal-dark); margin: 0 0 10px; }
.hd-pay__thanks p { margin: 0 0 10px; }
.hd-pay__thanks strong { color: var(--hd-teal); }
.hd-pay__ref { font-size: 14px; }
.hd-pay__ref span { font-weight: 700; color: var(--hd-teal-dark); word-break: break-all; }
.hd-pay__small { font-size: 13px; line-height: 1.6; color: #8a8f8f; }
.hd-pay__again { margin-top: 6px; border: 0; background: #e8f3f2; color: var(--hd-teal); font: inherit; font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 22px; cursor: pointer; }
.hd-pay__again:hover { background: var(--hd-teal); color: #fff; }
.hd-item__give {
  margin-top: 16px; border: 2px solid var(--hd-teal); background: #fff; color: var(--hd-teal); font: inherit; font-weight: 700;
  font-size: 14px; padding: 8px 18px; border-radius: 22px; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.hd-item__give:hover, .hd-item__give:focus-visible { background: var(--hd-teal); color: #fff; }

/* check list */
.hd-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hd-checks li { position: relative; padding-left: 34px; font-weight: 600; line-height: 1.5; }
.hd-checks li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--hd-leaf); }
.hd-checks li::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hd-checks--light li { color: #fff; }

/* other ways */
.hd-ways { background: var(--hd-cream); }
.hd-ways__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hd-card { background: #fff; border: 1px solid var(--hd-line); border-radius: 20px; padding: 32px; }
.hd-card--soft { background: var(--hd-cream); border-color: transparent; }
.hd-card__title { font-family: var(--donatm-heading-font-family); font-weight: 700; font-size: 24px; color: var(--hd-teal-dark); margin: 0; }
.hd-card__sub { margin: 2px 0 20px; font-size: 15px; }
.hd-details { margin: 0; display: grid; gap: 14px; }
.hd-details > div { display: grid; gap: 2px; }
.hd-details dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #8a8f8f; }
.hd-details dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 19px; font-weight: 700; color: var(--hd-teal-dark); letter-spacing: 0.02em; word-break: break-all; }
.hd-details--plain dd { font-size: 17px; }
.hd-details--plain { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; margin: 18px 0; }
.hd-details a { color: var(--hd-teal); }
.hd-copy {
  flex: none; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0; cursor: pointer;
  color: var(--hd-teal); background: #e8f3f2; border: 0; border-radius: 20px; padding: 6px 14px; line-height: 1.4;
  transition: background 0.2s, color 0.2s;
}
.hd-copy:hover, .hd-copy:focus-visible { background: var(--hd-teal); color: #fff; }
.hd-copy.is-copied { background: var(--hd-leaf); color: #fff; }
.hd-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed #c9d6d5; border-radius: 16px; color: #8a9a9a; font-size: 14px; font-weight: 600; line-height: 1.4;
  background: repeating-linear-gradient(45deg, #fafcfc 0 10px, #f1f6f6 10px 20px);
}
.hd-placeholder--qr { width: 160px; height: 160px; margin-top: 22px; }

/* sponsor */
.hd-sponsor__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hd-item { border: 1px solid var(--hd-line); border-radius: 20px; padding: 28px; background: #fff; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.hd-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12, 58, 63, 0.1); border-color: var(--hd-leaf); }
.hd-item__price { display: block; font-family: var(--donatm-heading-font-family); font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--hd-teal); }
.hd-item__title { font-family: var(--donatm-heading-font-family); font-weight: 700; font-size: 20px; color: var(--hd-teal-dark); margin: 10px 0 4px; line-height: 1.3; }
.hd-item__need { margin: 0; font-size: 15px; color: var(--hd-leaf); font-weight: 600; }

/* info */
.hd-info { padding-top: 0; }
.hd-info__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hd-address { margin: 0; font-size: 15px; line-height: 1.7; }

/* responsive */
@media (max-width: 1024px) {
  .hd-section { padding: 70px 0; }
  .hd-title { font-size: 34px; }
  .hd-hero__title { font-size: 52px; }
  .hd-why__grid { grid-template-columns: 1fr; gap: 36px; }
  .hd-stats { grid-template-columns: 1fr; max-width: 560px; }
  .hd-details--plain { grid-template-columns: 1fr; }
  .hd-online__card { grid-template-columns: 1fr; padding: 44px; text-align: left; }
  .hd-ways__grid, .hd-sponsor__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hd-section { padding: 56px 0; }
  .hd-online { padding-top: 0; }
  .hd-title { font-size: 28px; }
  .hd-lead { font-size: 17px; }
  .hd-hero__inner { padding-top: 70px; padding-bottom: 70px; }
  .hd-hero__title { font-size: 40px; }
  .hd-hero__lead { font-size: 17px; }
  .hd-stats, .hd-ways__grid, .hd-sponsor__grid, .hd-info__grid { grid-template-columns: 1fr; }
  .hd-online__card { padding: 32px 24px; border-radius: 24px; }
  .btn-theme.hd-pay-online { font-size: 19px; padding-right: 32px; }
  .btn-theme.hd-pay-online:before { width: 48px; height: 48px; }
  .hd-card, .hd-item { padding: 24px; }
  .hd-pay { padding: 22px 18px; border-radius: 20px; }
  .hd-pay__row { grid-template-columns: 1fr; }
  .hd-pay__chips { gap: 8px; }
  .hd-chip span { font-size: 15px; padding: 9px 4px; }
  .hd-details--plain { grid-template-columns: 1fr; }
}
