/* ============================================================
   YSPI Donations — ported from YSPI_Donation.dc.html, pixel-faithful.
   All motion preserved; dc-runtime scaffolding removed. UK English.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #2A2A33;
  --paper: #F4F0E9;
  --accent: #2B2A68;          /* brand purple */
  --accent-red: #E0322C;      /* CTA red */
  --line: #E0DAD0;
}

html, body { margin: 0; }
body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }

/* The mockup references a "Pro light" weight via fa-light; the free kit renders
   it through the solid face (weight 900), exactly as the mockup itself did. */
.fa-light, .fal {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  display: inline-block; font-style: normal; font-variant: normal;
  line-height: 1; text-rendering: auto; -webkit-font-smoothing: antialiased;
}

/* ---------- keyframes (all from the original design) ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes slideInL { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { 0% { transform: scale(1.05) translate(0,0); } 100% { transform: scale(1.16) translate(-1.5%,-2%); } }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-32px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-34px,28px); } }
@keyframes floatUp { 0% { transform: translateY(20px); opacity: 0; } 20% { opacity: .7; } 80% { opacity: .7; } 100% { transform: translateY(-120px); opacity: 0; } }
@keyframes sheen { 0% { left: -60%; } 55%,100% { left: 140%; } }
@keyframes popIn { 0% { transform: scale(.86); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes bobY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; width: 100%; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; background: #16153B;
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 32%;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,rgba(20,19,52,0.92) 0%,rgba(22,21,58,0.8) 38%,rgba(26,25,66,0.58) 68%,rgba(30,28,74,0.46) 100%);
}
.hero__blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__blob--violet {
  width: 300px; height: 300px; top: -80px; left: 30%; filter: blur(12px);
  background: radial-gradient(circle,rgba(108,105,220,0.4),transparent 70%);
  animation: drift1 16s ease-in-out infinite;
}
.hero__blob--gold {
  width: 240px; height: 240px; bottom: -60px; left: 5%; filter: blur(14px);
  background: radial-gradient(circle,rgba(255,196,120,0.22),transparent 70%);
  animation: drift2 19s ease-in-out infinite;
}
.hero__particle { position: absolute; border-radius: 50%; }
.hero__particle--1 { left: 12%; bottom: 18%; width: 7px; height: 7px; background: rgba(159,231,196,0.6); animation: floatUp 9s ease-in-out infinite; }
.hero__particle--2 { left: 26%; bottom: 10%; width: 5px; height: 5px; background: rgba(183,182,230,0.6); animation: floatUp 11s ease-in-out infinite 2s; }
.hero__particle--3 { left: 40%; bottom: 24%; width: 6px; height: 6px; background: rgba(255,205,122,0.55); animation: floatUp 10s ease-in-out infinite 4s; }
.hero__particle--4 { left: 8%; bottom: 32%; width: 4px; height: 4px; background: rgba(255,255,255,0.5); animation: floatUp 12s ease-in-out infinite 1s; }

.hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: 1220px;
  margin: 0 auto; padding: 24px 28px 40px; flex: 1; display: flex; flex-direction: column;
}
.hero__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: auto;
}
.hero__logo { height: 56px; width: auto; display: block; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  font-weight: 700;
}
.chip--secure-hero {
  gap: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 15px; font-size: 13px; color: #9FE7C4; backdrop-filter: blur(6px);
}
.chip--secure-hero i { font-size: 13px; }

.hero__grid {
  display: grid; grid-template-columns: 1.15fr 460px; gap: 48px;
  align-items: center; padding: 46px 0;
}
.hero__copy { color: #fff; animation: heroIn .7s ease both; }
.tagline {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px; padding: 7px 15px; font-size: 12.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: #FFCD7A; margin-bottom: 22px;
}
.tagline i { font-size: 13px; }
.hero__title {
  font-size: clamp(34px,5vw,58px); line-height: 1.06; font-weight: 900;
  letter-spacing: -0.025em; margin: 0 0 20px;
}
.hero__lead { font-size: 18px; line-height: 1.55; color: #D7D6EC; margin: 0 0 30px; max-width: 46ch; }
.trust { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; color: #EDECFB; }
.trust i { font-size: 17px; }

/* ============================================================
   DONATION CARD
   ============================================================ */
.card {
  background: #fff; border-radius: 20px; padding: 26px 26px 24px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4); animation: heroIn .7s ease .12s both;
}
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card__title { font-size: 18px; font-weight: 900; margin: 0; color: var(--accent); }
.chip--secure {
  gap: 6px; font-size: 11.5px; font-weight: 800; color: #1E9E6A;
  background: #EAF7F0; padding: 5px 10px;
}
.chip--secure i { font-size: 11px; }

/* step indicator */
.steps { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.steps__item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: #B6B4BE; }
.steps__item--1 { color: var(--accent); }
.steps__dot {
  width: 25px; height: 25px; border-radius: 50%; background: #ECE7DE; color: #B6B4BE;
  display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.steps__dot i { font-size: 11px; }
.steps__item--1 .steps__dot { background: var(--accent); color: #fff; }
.steps__bar { flex: 1; height: 3px; background: #ECE7DE; border-radius: 3px; position: relative; overflow: hidden; }
.steps__fill {
  position: absolute; top: 0; left: 0; bottom: 0; width: 6%;
  background: var(--accent); border-radius: 3px;
  transition: width .55s cubic-bezier(.4,0,.2,1);
}
/* step 2 active state */
.card[data-step="2"] .steps__item--2 { color: var(--accent); }
.card[data-step="2"] .steps__item--2 .steps__dot { background: var(--accent); color: #fff; }
.card[data-step="2"] .steps__fill { width: 100%; }

/* show/hide steps */
.step--1 { display: block; animation: slideInL .3s ease; }
.step--2 { display: none; animation: slideIn .3s ease; }
.card[data-step="2"] .step--1 { display: none; }
.card[data-step="2"] .step--2 { display: block; }

/* amount grid */
.amounts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; }
.amt {
  position: relative; border-radius: 13px; cursor: pointer; font-family: inherit;
  font-size: 17px; font-weight: 800; padding: 15px 8px; color: var(--ink);
  border: 1.5px solid var(--line); background: #fff;
  transition: transform .15s, box-shadow .2s, border-color .2s, background .2s, color .2s;
}
.amt:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(43,42,104,0.1); }
.amt.is-active {
  border: 2px solid var(--accent); background: var(--accent); color: #fff;
  box-shadow: 0 8px 22px rgba(43,42,104,0.3); animation: popIn .26s ease;
}
.amt.is-active:hover { transform: none; }
.amt__check {
  position: absolute; top: 7px; right: 7px; width: 15px; height: 15px; border-radius: 50%;
  background: rgba(255,255,255,0.22); display: none; align-items: center; justify-content: center;
  color: #fff; font-size: 8px;
}
.amt.is-active .amt__check { display: flex; }

/* custom amount */
.custom-wrap {
  display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 15px;
  margin-bottom: 14px; border: 1.5px solid var(--line); background: #fff; transition: all .18s;
}
.custom-wrap.is-active { border: 2px solid var(--accent); box-shadow: 0 8px 22px rgba(43,42,104,0.14); }
.custom-wrap__euro { font-size: 17px; font-weight: 800; color: #9A98A2; }
.custom-wrap__input {
  border: none; outline: none; font-family: inherit; font-size: 16px; font-weight: 800;
  color: var(--ink); width: 100%; background: transparent;
}

/* impact card */
.impact {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg,#F1EFFA,#F6F2EC); border: 1px solid #E4DFF2;
  border-radius: 13px; padding: 12px 14px;
}
.impact__icon {
  flex: none; width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--accent);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 7px rgba(43,42,104,0.1);
}
.impact__icon i { font-size: 17px; }
.impact__body { min-width: 0; }
.impact__label { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #9795C2; margin-bottom: 1px; }
.impact__text { font-size: 14.5px; font-weight: 800; color: var(--accent); line-height: 1.25; }

/* buttons */
.btn {
  position: relative; overflow: hidden; width: 100%; border: none; border-radius: 13px;
  padding: 15px; font-family: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn--primary { background: var(--accent-red); color: #fff; box-shadow: 0 8px 22px rgba(224,50,44,0.3); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(224,50,44,0.42); }
.btn--primary:disabled, .btn--primary.is-disabled {
  background: #E6E1D8; color: #A9A6AE; cursor: not-allowed; box-shadow: none; transform: none;
}
.btn__label { position: relative; display: inline-flex; align-items: center; gap: 9px; }
.btn__label i { font-size: 14px; }
.sheen {
  position: absolute; top: 0; left: -60%; width: 38%; height: 100%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,0.36),transparent);
  transform: skewX(-20deg); animation: sheen 3.4s ease-in-out infinite; pointer-events: none;
}
.note { text-align: center; font-size: 12px; color: #A7A5AF; margin: 12px 0 0; }

/* pay button states */
.btn--pay { background: #EFB9B6; box-shadow: none; }
.btn--pay.can-pay { background: var(--accent-red); box-shadow: 0 8px 22px rgba(224,50,44,0.3); }
.btn--pay.can-pay:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(224,50,44,0.42); }
.btn--pay.is-busy { background: #C9837F; cursor: wait; }
.btn__label--busy { display: none; }
.btn--pay.is-busy .btn__label--idle { display: none; }
.btn--pay.is-busy .btn__label--busy { display: inline-flex; }
.spin { animation: spin .7s linear infinite; }

/* step 2 */
.back {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: none;
  cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 800; color: #7A7986;
  padding: 0; margin-bottom: 14px;
}
.summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg,#F4F1FB,#F6F2EC); border: 1px solid #E4DFF2;
  border-radius: 13px; padding: 13px 16px; margin-bottom: 18px; animation: fadeUp .35s ease;
}
.summary__left { display: flex; align-items: center; gap: 11px; }
.summary__icon {
  width: 36px; height: 36px; border-radius: 10px; background: #fff; display: flex;
  align-items: center; justify-content: center; color: var(--accent); box-shadow: 0 2px 8px rgba(43,42,104,0.08);
}
.summary__icon i { font-size: 15px; }
.summary__impact { font-size: 11.5px; color: #7A7986; font-weight: 700; }
.summary__amount { font-size: 19px; font-weight: 900; color: var(--accent); }
.summary__edit { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 800; color: var(--accent-red); }

.field-row { display: flex; gap: 11px; flex-wrap: wrap; margin-bottom: 12px; }
.field { flex: 1 1 130px; display: block; }
.field--block { display: block; margin-bottom: 12px; }
.field__label { display: block; font-size: 12.5px; font-weight: 700; color: #4A4954; margin-bottom: 5px; }
.field__hint { color: #9A98A2; font-weight: 500; }
.field__wrap { position: relative; display: block; }
.field__icon { font-size: 14px; color: #B6B4BE; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.field input {
  border: 1.5px solid var(--line); border-radius: 11px; padding: 12px 13px 12px 38px;
  font-family: inherit; font-size: 15px; width: 100%; outline: none; background: #fff; transition: all .18s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,42,104,0.13); }
.field input.has-error { border-color: var(--accent-red); }

.consent {
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer; margin-bottom: 16px;
  padding: 12px 14px; border-radius: 12px; background: #FAF8F4; border: 1.5px solid #EAE4DA; transition: all .2s;
}
.consent input { margin-top: 1px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; cursor: pointer; }
.consent span { font-size: 13px; line-height: 1.5; color: #4A4954; }
.consent a { color: var(--accent); font-weight: 800; }
.consent.is-checked { background: #F0F8F3; border-color: #BFE3CE; }
.consent.has-error { background: #FDEEED; border-color: #F3B6B3; }

.form-error { color: var(--accent-red); font-size: 12.5px; font-weight: 700; margin: 0 0 12px; text-align: center; }

.paymethods {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; color: #9A98A2; font-size: 25px;
}
.paymethods__badge {
  font-size: 11px; font-weight: 800; color: #5C5B66; background: #F6F2EC; border: 1px solid #E6E1D8;
  border-radius: 6px; padding: 5px 9px; letter-spacing: .01em;
}

.hero__more {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  color: rgba(255,255,255,0.6); font-size: 12.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; margin-top: auto;
}
.bob { animation: bobY 1.8s ease-in-out infinite; }

/* ============================================================
   BELOW HERO
   ============================================================ */
.below { max-width: 1120px; margin: 0 auto; padding: 64px 28px 56px; }
.alt-give { margin-bottom: 46px; }
.section-title { font-size: 27px; font-weight: 900; color: var(--accent); margin: 0 0 6px; letter-spacing: -0.01em; }
.section-sub { font-size: 15px; color: #7A7986; margin: 0 0 26px; }
.alt-give__cards { display: flex; flex-wrap: wrap; gap: 18px; }
.alt-card { flex: 1 1 320px; min-width: 300px; background: #fff; border: 1px solid #ECE7DE; border-radius: 18px; padding: 26px 28px; }
.alt-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.alt-card__icon { width: 44px; height: 44px; border-radius: 12px; background: #F1EFFA; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.alt-card__icon i { font-size: 19px; }
.alt-card__head h3 { font-size: 17px; font-weight: 900; margin: 0; color: var(--accent); }
.alt-card__rows { font-size: 13.5px; line-height: 1.9; color: #5C5B66; }
.alt-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #F1ECE3; padding-bottom: 6px; margin-bottom: 6px; }
.alt-row--last { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.alt-row span { color: #9A98A2; font-weight: 600; }
.alt-row strong { color: #3A3A44; }
.accent-red { color: var(--accent-red) !important; }
.alt-card__p { font-size: 13.5px; line-height: 1.7; color: #5C5B66; margin: 0 0 8px; }
.alt-card__p strong { color: #3A3A44; }
.alt-card__addr { font-size: 13.5px; line-height: 1.6; color: #3A3A44; font-weight: 700; margin: 0; }

.contact { background: var(--accent); border-radius: 20px; padding: 38px 40px; color: #fff; overflow: hidden; position: relative; }
.contact__blob { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle,rgba(108,105,220,0.4),transparent 70%); top: -90px; right: -40px; filter: blur(10px); }
.contact__inner { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; justify-content: space-between; }
.contact__main { flex: 1 1 360px; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #A9A8D8; margin-bottom: 10px; }
.contact__title { font-size: 26px; font-weight: 900; margin: 0 0 22px; letter-spacing: -0.01em; }
.contact__list { display: flex; flex-direction: column; gap: 16px; }
.contact__item { display: flex; gap: 14px; align-items: flex-start; }
.contact__icon { flex: none; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.contact__icon i { font-size: 17px; }
.contact__k { font-size: 12px; color: #A9A8D8; font-weight: 700; }
.contact__v { font-size: 15px; font-weight: 600; line-height: 1.5; }
.contact__v--link { color: #fff; text-decoration: none; }
.contact__aside { flex: 0 1 340px; }
.crisis { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 20px 22px; }
.crisis__head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.crisis__head i { font-size: 17px; }
.crisis__head h3 { font-size: 14.5px; font-weight: 800; margin: 0; color: #fff; letter-spacing: .01em; }
.crisis__box { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); border-radius: 11px; padding: 12px 14px; margin-bottom: 13px; }
.crisis__eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #9FE7C4; margin-bottom: 3px; }
.crisis__big { font-size: 15.5px; font-weight: 900; color: #fff; line-height: 1.15; }
.crisis__p { font-size: 12.5px; line-height: 1.6; color: #CFCEEC; margin: 0 0 12px; }
.crisis__p a { color: #fff; font-weight: 700; }
.crisis__emerg { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 11px; font-size: 12px; line-height: 1.6; color: #B7B6E6; }
.crisis__emerg strong { color: #fff; }

.foot { text-align: center; margin-top: 34px; font-size: 12.5px; color: #9A98A2; line-height: 1.8; }
.foot strong { color: #6B6A75; }
.foot a { color: #6B6A75; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .card { max-width: 460px; }
}

/* ============================================================
   ACCESSIBILITY — honour reduced-motion (improvement over mockup)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__photo { animation: none; transform: scale(1.05); }
}
