/* =========================================================
   Prismica Help Foundation — Appeal page
   Palette taken from the logo: navy + green + gold.
   ========================================================= */

:root {
  --navy-900: #0B2545;
  --navy-800: #0E2B52;
  --navy-700: #13396B;
  --navy-600: #1A4B87;

  --green-800: #14532A;
  --green-700: #1B6B37;
  --green-600: #2E8B3D;
  --green-500: #3FA34D;
  --green-50:  #EAF6EC;

  --gold-600: #C9861F;
  --gold-500: #E8A33D;
  --gold-200: #F6DFB4;
  --gold-50:  #FDF6E7;

  --red-500: #D9463C;

  --cream:   #FBF6EC;
  --cream-2: #FFFDF8;
  --white:   #FFFFFF;

  --ink:   #16202E;
  --body:  #4A5768;
  --muted: #7B8899;
  --line:  #E6E3DA;

  --radius:    16px;
  --radius-lg: 22px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06);
  --shadow:    0 8px 26px rgba(11, 37, 69, .10);
  --shadow-lg: 0 18px 48px rgba(11, 37, 69, .16);

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- loading screen ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(150deg, var(--navy-800) 0%, var(--navy-600) 65%, var(--green-700) 150%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 24px;
  text-align: center;
  /* JS na cholleo 4 second por nijei sore jabe — page kokhono atke thakbe na */
  animation: splashFail .45s ease 4s forwards;
}
.splash.is-gone {
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}
@keyframes splashFail {
  to { opacity: 0; visibility: hidden; }
}

.splash__logo {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  margin-bottom: 18px;
  animation: splashPulse 1.6s ease-in-out infinite;
}
.splash__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

.splash__name {
  margin: 0;
  color: #fff; font-weight: 800; font-size: 1.1rem;
  letter-spacing: -.02em;
}
.splash__tag {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .72); font-size: .84rem; font-weight: 600;
}

.splash__bar {
  display: block;
  width: 150px; height: 4px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.splash__bar i {
  display: block; height: 100%; width: 40%;
  border-radius: var(--pill);
  background: var(--gold-500);
  animation: splashSlide 1.1s ease-in-out infinite;
}
@keyframes splashSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

@media (prefers-reduced-motion: reduce) {
  .splash__logo, .splash__bar i { animation: none; }
}

img { max-width: 100%; display: block; height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 800; line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0 0 .9em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }

.shell { width: 100%; max-width: 620px; margin-inline: auto; padding-inline: 14px; }

/* ---------- header ---------- */
.hdr {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 60%, var(--green-700) 140%);
  color: #fff;
  padding: 12px 0;
}
.hdr__in { display: flex; align-items: center; gap: 12px; }
.hdr__logo {
  width: 54px; height: 54px; flex: none;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}
.hdr__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.hdr__txt { flex: 1; min-width: 0; display: block; }
.hdr__name {
  display: block;
  font-size: clamp(.98rem, 4.2vw, 1.22rem); font-weight: 800; color: #fff;
  line-height: 1.2; letter-spacing: -.02em;
}
.hdr__dept {
  display: block;
  font-size: .74rem; color: rgba(255, 255, 255, .78); font-weight: 600;
  line-height: 1.35;
}
.hdr__pill {
  flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold-500); color: #3C2708;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  padding: 7px 13px; border-radius: var(--pill);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

/* ---------- campaign strip ---------- */
.strip {
  background: var(--gold-50);
  border-bottom: 1px solid var(--gold-200);
  padding: 11px 0;
  text-align: center;
}
.strip p {
  margin: 0; font-size: .88rem; font-weight: 700; color: var(--navy-800);
}

/* ---------- main card ---------- */
.main { padding: 16px 0 26px; }

.card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 16px 22px;
  overflow: hidden;
}
@media (min-width: 480px) { .card { padding: 26px 24px 28px; } }

.eyebrow {
  display: block; text-align: center;
  font-size: .8rem; font-weight: 800; letter-spacing: .06em;
  color: var(--green-700);
  margin-bottom: 10px;
}
.eyebrow b { color: var(--red-500); }

.appeal-h1 {
  text-align: center;
  font-size: clamp(1.28rem, 5.4vw, 1.75rem);
  color: var(--navy-800);
  margin-bottom: 18px;
  text-wrap: balance;
}

/* message box */
.msg {
  position: relative;
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  margin-bottom: 14px;
}
.msg__head {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .95rem; font-weight: 800; color: var(--gold-600);
  margin-bottom: 9px; line-height: 1.35;
}
.msg__head span:first-child { font-size: 1.1rem; line-height: 1; }
.msg__body { font-size: .95rem; color: #5A4A2C; }
.msg__body p { margin: 0 0 .7em; }
.msg__body p:last-child { margin-bottom: 0; }

/* quote box */
.quote {
  background: linear-gradient(140deg, var(--green-700), var(--green-800));
  color: #fff;
  border-radius: var(--radius);
  padding: 17px 18px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.quote p { font-size: 1rem; font-weight: 600; line-height: 1.5; margin: 0 0 6px; }
.quote cite { font-style: normal; font-size: .8rem; color: var(--gold-200); font-weight: 700; }

/* ---------- slider ---------- */
.slider { margin-bottom: 20px; }
.slider__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.slider__track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.3, .8, .35, 1); }
.slider__slide { flex: 0 0 100%; height: 100%; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }

.slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(11, 37, 69, .45); color: #fff;
  display: grid; place-items: center; font-size: 1.2rem; line-height: 1;
  backdrop-filter: blur(4px);
}
.slider__nav--prev { left: 8px; }
.slider__nav--next { right: 8px; }

.slider__dots {
  position: absolute; left: 0; right: 0; bottom: 9px;
  display: flex; justify-content: center; gap: 6px;
}
.slider__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: all .25s ease;
}
.slider__dots button.is-on { background: var(--gold-500); width: 20px; border-radius: var(--pill); }

/* ---------- campaign progress ---------- */
.camp { margin-bottom: 20px; }

.camp__title {
  font-size: clamp(1.35rem, 5.6vw, 1.9rem);
  color: var(--navy-800);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.camp__box {
  background: #F2F6FC;
  border: 1px solid #DCE6F5;
  border-radius: var(--radius);
  padding: 16px 16px 14px;
}

.camp__sum {
  margin: 0 0 12px;
  font-size: clamp(.95rem, 3.6vw, 1.1rem);
  color: #5B7196;
  font-weight: 600;
  line-height: 1.35;
}
.camp__sum b {
  color: var(--navy-800);
  font-size: clamp(1.25rem, 5.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.camp__track {
  height: 11px;
  border-radius: var(--pill);
  background: #E2E9F4;
  overflow: hidden;
  margin-bottom: 12px;
}
.camp__fill {
  height: 100%;
  min-width: 4px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--green-600), var(--gold-500));
  transition: width 1.1s cubic-bezier(.25, .8, .35, 1);
}

.camp__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: clamp(.85rem, 3.4vw, .98rem);
  font-weight: 600;
  color: var(--navy-800);
}
.camp__meta span { display: inline-flex; align-items: center; gap: 7px; }
.camp__meta svg { width: 17px; height: 17px; flex: none; }

/* ---------- donation pop-up ---------- */
.pop {
  position: fixed;
  left: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  max-width: min(310px, calc(100vw - 28px));
  display: flex; align-items: center; gap: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 34px 10px 11px;
  box-shadow: 0 10px 30px rgba(11, 37, 69, .18);
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .3, 1);
  pointer-events: none;
}
.pop.is-on { opacity: 1; transform: none; pointer-events: auto; }

.pop__av {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-50);
  border: 1px solid #CFE7D4;
  color: var(--green-700);
  font-weight: 800; font-size: 1rem;
  text-transform: uppercase;
}
.pop__txt { min-width: 0; line-height: 1.3; }
.pop__line { display: block; font-size: .88rem; color: var(--body); }
.pop__line b { color: var(--navy-800); font-weight: 800; }
.pop__ago { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: 1px; }

.pop__x {
  position: absolute; top: 6px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted); font-size: 1.05rem; line-height: 1;
}
.pop__x:hover { background: var(--cream); color: var(--ink); }

/* ---------- amounts ---------- */
.give__label {
  text-align: center; font-size: .9rem; font-weight: 700; color: var(--navy-800);
  margin-bottom: 12px;
}
.give__label small { display: block; font-size: .76rem; color: var(--muted); font-weight: 600; }

.amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 10px; }
@media (min-width: 420px) { .amounts { grid-template-columns: repeat(4, 1fr); } }

.amount {
  position: relative;
  min-height: 52px;
  border: 1.8px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 800; font-size: 1.02rem; color: var(--navy-800);
  display: grid; place-items: center;
  transition: all .16s ease;
}
.amount:hover { border-color: var(--green-500); }
.amount.is-on {
  border-color: var(--green-600);
  background: var(--green-50);
  color: var(--green-800);
  box-shadow: 0 0 0 3px rgba(46, 139, 61, .15);
}
.amount__tag {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--green-600); color: #fff;
  font-size: .58rem; font-weight: 800; letter-spacing: .06em;
  padding: 2px 8px; border-radius: var(--pill); text-transform: uppercase;
  white-space: nowrap;
}

.custom {
  display: flex; align-items: center; gap: 9px;
  border: 1.8px solid var(--line); border-radius: 12px;
  background: #fff; padding: 2px 14px; margin-bottom: 14px;
}
.custom:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(46, 139, 61, .15); }
.custom span { font-weight: 800; color: var(--navy-800); font-size: 1.05rem; }
.custom input {
  flex: 1; min-width: 0; min-height: 46px;
  border: 0; outline: 0; background: none;
  font: inherit; font-weight: 700; color: var(--ink);
}

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 14px; }
.chips span {
  background: var(--green-50); border: 1px solid #CFE7D4;
  color: var(--green-800);
  font-size: .76rem; font-weight: 700;
  padding: 6px 12px; border-radius: var(--pill);
}

.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 56px;
  padding: 14px 22px;
  border-radius: var(--pill);
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(27, 107, 55, .3);
  transition: transform .16s ease, box-shadow .16s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #3C2708;
  box-shadow: 0 8px 20px rgba(201, 134, 31, .32);
}
.btn__label { white-space: nowrap; }

.payline {
  text-align: center; font-size: .76rem; color: var(--muted);
  font-weight: 600; margin: 12px 0 0;
}

/* ---------- trust ---------- */
.trust {
  margin-top: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-600);
  border-radius: 12px;
  padding: 14px 15px;
}
.trust h2 { font-size: .95rem; color: var(--green-800); margin-bottom: 4px; }
.trust p { font-size: .87rem; margin: 0; color: var(--body); }

/* ---------- footer ---------- */
.foot {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .7);
  padding: 26px 0 22px;
  font-size: .86rem;
}
.foot__top { display: grid; gap: 14px; margin-bottom: 18px; }
.foot b { color: #fff; display: block; font-size: .95rem; margin-bottom: 4px; }
.foot a:hover { color: #fff; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__links a { font-weight: 600; }
.foot__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 14px; font-size: .78rem; text-align: center;
  color: rgba(255, 255, 255, .55);
}



/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 20px);
  background: var(--navy-900); color: #fff;
  padding: 11px 18px; border-radius: var(--pill);
  font-size: .86rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  max-width: calc(100vw - 28px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- inner pages (privacy / terms / refund / contact / thank you) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: rgba(255, 255, 255, .8);
  padding: 30px 0; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.4rem, 5vw, 2rem); margin-bottom: 6px; }
.page-hero p { margin: 0; font-size: .86rem; }

.prose {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  margin-block: 18px;
}
.prose h2 { font-size: 1.1rem; color: var(--navy-800); margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: .93rem; }
.prose ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin: 0 0 16px; }
.prose a { color: var(--green-700); font-weight: 700; text-decoration: underline; }
.prose .box {
  background: var(--gold-50); border: 1px solid var(--gold-200);
  border-radius: 12px; padding: 14px 15px; margin: 16px 0; font-size: .9rem; color: #5A4A2C;
}
.back {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--green-700); font-size: .88rem; margin-bottom: 16px;
}

.ty { text-align: center; }
.ty__mark {
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 16px;
  background: var(--green-50); border: 2px solid #CFE7D4;
  color: var(--green-600); font-size: 2rem;
}

.form-row { display: grid; gap: 10px; margin-bottom: 14px; }
.input {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.8px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; color: var(--ink);
}
.input:focus { outline: 0; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(46, 139, 61, .15); }
textarea.input { min-height: 96px; resize: vertical; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
