/* =================================================================
   TRANSFORM GLOBAL FAITH MINISTRIES — GIVING PAGE
   Design tokens
   ================================================================= */
:root {
  /* Color */
  --navy-950: #0A1E38;   /* deepest — hero background base   */
  --navy-900: #0F2A4A;   /* primary deep blue                */
  --navy-700: #1B3A5F;   /* secondary panels / hover          */
  --ink: #16213A;        /* body text                         */
  --ink-soft: #4A5670;   /* secondary text                    */
  --gold-600: #B8871F;   /* deep gold — text on light bg      */
  --gold-500: #C9A227;   /* primary gold accent               */
  --gold-300: #E4C868;   /* light gold — highlights            */
  --paper: #FFFFFF;
  --mist: #F5F7FA;       /* light gray background section     */
  --line: #E3E7EE;       /* hairline border                   */
  --success: #2F7A4D;
  --error: #C4432B;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shape / motion */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 24px rgba(15, 42, 74, 0.08);
  --shadow-lift: 0 14px 36px rgba(15, 42, 74, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950);
  box-shadow: var(--shadow-lift);
}
.btn--gold:hover:not(:disabled) { box-shadow: 0 18px 40px rgba(201, 162, 39, 0.35); transform: translateY(-1px); }

.btn--primary {
  background: var(--navy-900);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover:not(:disabled) { background: var(--navy-700); }

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--navy-900); color: var(--navy-900); }

.btn--wide { width: 100%; padding: 17px 28px; position: relative; }

.btn__spinner { display: none; }
.btn.is-loading .btn__label { visibility: hidden; }
.btn.is-loading .btn__spinner {
  display: block;
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 20px;
  margin-left: -10px; margin-top: -10px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =================================================================
   STICKY MOBILE GIVE BUTTON
   ================================================================= */
.sticky-give {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translate(-50%, 120%);
  z-index: 90;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950);
  border: none;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-lift);
  transition: transform 0.35s var(--ease);
  display: none;
}
.sticky-give.is-visible { transform: translate(-50%, 0); }
@media (max-width: 760px) {
  .sticky-give { display: block; }
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(201, 162, 39, 0.16), transparent 70%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-700) 100%);
  overflow: hidden;
  padding: 0 24px;
}
.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  max-width: 160vw;
  background: radial-gradient(circle, rgba(228, 200, 104, 0.18) 0%, transparent 62%);
  pointer-events: none;
}
.hero__nav {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 0;
}
.hero__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.hero__brand-mark {
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--gold-500);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: auto;
  text-align: center;
  padding: 40px 0 90px;
}
.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-300);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  color: var(--paper);
  letter-spacing: -0.5px;
}
.hero__subtext {
  margin-top: 22px;
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero__cta { margin-top: 38px; padding: 17px 34px; font-size: 16px; }
.hero__scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  z-index: 2;
}
.hero__scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--gold-300);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* =================================================================
   FLOW LAYOUT + SIGNATURE "GIVING PATH"
   ================================================================= */
.flow {
  background: var(--mist);
  padding: 72px 24px 100px;
}
.flow__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .flow__inner { grid-template-columns: 1fr; }
}

/* Desktop vertical path */
.path--desktop {
  position: sticky;
  top: 40px;
  display: flex;
  gap: 18px;
}
@media (max-width: 900px) {
  .path--desktop { display: none; }
}
.path--desktop .path__line {
  position: relative;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 6px;
}
.path--desktop .path__line-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4%;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-300));
  border-radius: 2px;
  transition: height 0.5s var(--ease);
}
.path__nodes {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 68px;
}
.path__nodes li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: -27px;
}
.path__node {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--line);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.path__nodes li.is-active .path__node,
.path__nodes li.is-done .path__node {
  border-color: var(--gold-500);
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}
.path__node-label {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.path__nodes li.is-active .path__node-label { color: var(--navy-900); font-weight: 700; }

/* Mobile horizontal path */
.path--mobile { display: none; }
@media (max-width: 900px) {
  .path--mobile {
    display: block;
    max-width: 1080px;
    margin: 0 auto 40px;
  }
  .path__track {
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
  }
  .path__fill {
    height: 100%;
    width: 4%;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    transition: width 0.5s var(--ease);
  }
  .path__labels {
    list-style: none;
    display: flex;
    justify-content: space-between;
    margin: 10px 0 0;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
  }
  .path__labels li.is-active { color: var(--navy-900); }
}

.flow__panels { min-width: 0; }

/* =================================================================
   PANELS (shared)
   ================================================================= */
.panel {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-soft);
  animation: panelIn 0.45s var(--ease);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 560px) { .panel { padding: 28px 20px; } }

.panel__eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-600);
}
.panel__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  color: var(--navy-950);
  margin-top: 8px;
}
.panel__intro {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.panel__error {
  color: var(--error);
  font-size: 14px;
  margin-top: 16px;
  font-weight: 500;
}
.panel__actions {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}
.panel__actions--split { justify-content: space-between; }

/* =================================================================
   STEP 1 — CATEGORY CARDS
   ================================================================= */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover { border-color: var(--gold-500); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.card__title {
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-950);
}
.card__desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.card__check {
  position: absolute;
  top: 18px; right: 18px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
}
.card.is-selected {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, rgba(201,162,39,0.05), rgba(201,162,39,0.01));
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.card.is-selected .card__icon { background: var(--gold-500); color: var(--navy-950); }
.card.is-selected .card__check {
  border-color: var(--gold-500);
  background: var(--gold-500);
}
.card.is-selected .card__check::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 6px;
  border-left: 2px solid var(--navy-950);
  border-bottom: 2px solid var(--navy-950);
  transform: translate(-50%, -60%) rotate(-45deg);
}

/* =================================================================
   STEP 2 — PAYMENT METHOD
   ================================================================= */
.paytabs {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  border-bottom: 1.5px solid var(--line);
  overflow-x: auto;
}
.paytab {
  background: none;
  border: none;
  padding: 12px 6px;
  margin-right: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.paytab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1.5px;
  height: 2.5px;
  background: transparent;
  border-radius: 2px;
  transition: background 0.2s var(--ease);
}
.paytab.is-active { color: var(--navy-950); }
.paytab.is-active::after { background: var(--gold-500); }

.paygroup { display: none; margin-top: 24px; }
.paygroup.is-active { display: block; animation: panelIn 0.35s var(--ease); }

.payoptions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.payoption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.payoption:hover { transform: translateY(-2px); border-color: var(--gold-500); }
.payoption.is-selected {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, rgba(201,162,39,0.06), transparent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.payoption__logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 12.5px;
  color: #fff;
  flex-shrink: 0;
}
.payoption__logo--paymaya { background: #1F8A5C; }
.payoption__logo--paypal { background: #1E3A72; }
.payoption__logo--wise { background: #3C8C6B; }
.payoption__logo--bank { background: var(--navy-900); }
.payoption__logo--gcash { background: #0074E4; }
.payoption__logo--gotyme { background: #7C3AED; }
.payoption__name { font-weight: 600; font-size: 14.5px; color: var(--navy-950); }

.paydetail {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--mist);
  animation: panelIn 0.3s var(--ease);
}
.paydetail__title {
  font-weight: 700;
  color: var(--navy-950);
  font-size: 15px;
  margin-bottom: 12px;
}
.paydetail__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.paydetail__row:last-of-type { border-bottom: none; }
.paydetail__row strong { color: var(--navy-950); font-weight: 700; letter-spacing: 0.3px; }
.paydetail__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.paydetail__qrwrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.paydetail__qr {
  width: 96px; height: 96px;
  border-radius: 10px;
  background: repeating-conic-gradient(var(--navy-900) 0% 25%, #fff 0% 50%) 0 0/16px 16px;
  border: 1.5px solid var(--line);
  color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

/* =================================================================
   STEP 3 — FORM
   ================================================================= */
.form { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--row {
  flex-direction: row;
  gap: 18px;
}
.field--row .field { flex: 1; }
@media (max-width: 560px) { .field--row { flex-direction: column; } }

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-950);
}
.field__optional { color: var(--ink-soft); font-weight: 400; }
.field__required { color: var(--error); }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.1);
}
.field input[readonly] {
  background: var(--mist);
  color: var(--ink-soft);
  cursor: not-allowed;
}
.field textarea { resize: vertical; min-height: 100px; }

.field__amount { display: flex; gap: 10px; }
.field__amount select { max-width: 110px; flex-shrink: 0; }

.field.has-error input,
.field.has-error textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: 13px; margin-top: -2px; }

.upload {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  background: var(--mist);
  transition: border-color 0.2s var(--ease);
}
.upload:hover { border-color: var(--gold-500); }
.upload input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.upload__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.upload.has-file { border-color: var(--success); background: rgba(47, 122, 77, 0.06); }
.upload.has-file .upload__inner { color: var(--success); font-weight: 600; }

/* =================================================================
   STEP 4 — REVIEW
   ================================================================= */
.review {
  margin-top: 30px;
  background: var(--mist);
  border-radius: var(--radius-md);
  padding: 8px 24px;
}
.review__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.review__row:last-child { border-bottom: none; }
.review__row span { color: var(--ink-soft); }
.review__row strong { color: var(--navy-950); font-weight: 700; text-align: right; }
.review__row--amount strong { color: var(--gold-600); font-size: 20px; font-family: var(--font-display); }

/* =================================================================
   STEP 5 — SUCCESS
   ================================================================= */
.panel--success { text-align: center; }
.success { max-width: 460px; margin: 0 auto; padding: 20px 0; }
.success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(180deg, #E9F5EC, #DAF0E1);
  color: var(--success);
  margin-bottom: 22px;
  animation: pop 0.5s var(--ease);
}
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.success__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  color: var(--navy-950);
}
.success__text {
  margin-top: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 15.5px;
}
.success__ref {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--mist);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
}
.success__ref span { color: var(--ink-soft); }
.success__ref strong { color: var(--navy-950); letter-spacing: 1px; }
.success__actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 32px;
}
.footer__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--gold-300);
}
.footer__help-title {
  margin-top: 34px;
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}
.footer__contacts {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,0.18);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer__contact:hover { border-color: var(--gold-500); color: var(--gold-300); }
.footer__scripture {
  margin-top: 40px;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
}
.footer__copy {
  margin-top: 20px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
}
