/* Najam Ohio Pledge page */
:root {
  --blue: #0B1B8F;
  --blue-dark: #07126b;
  --blue-deep: #050d52;
  --yellow: #FFD500;
  --red: #E10600;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.16);
  --radius: 16px;
  --error: #ffb4a8;
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--white);
  background-color: var(--blue);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(40, 70, 220, 0.35), transparent 70%),
    linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 55%, var(--blue-deep) 100%);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.accent { color: var(--yellow); }
.dot { margin: 0 8px; color: var(--faint); }

/* ---------- Header ---------- */
.hero { text-align: center; }

.urgent {
  display: inline-block;
  margin: 0 auto 28px;
  padding: 14px 26px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.urgent-title {
  margin: 0;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--red);
}
.urgent-sub {
  margin: 6px 0 0;
  font-size: clamp(14px, 3.8vw, 16px);
  font-weight: 800;
  color: var(--blue);
}

.logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before, .kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--faint);
  flex: none;
}

.title {
  margin: 0 0 10px;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  text-wrap: balance;
}

.subtitle {
  margin: 0;
  color: var(--yellow);
  font-weight: 700;
  font-size: clamp(16px, 4vw, 18px);
}

/* ---------- Total ---------- */
.total { text-align: center; margin-top: 56px; }

.total-amount {
  font-size: clamp(64px, 20vw, 112px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.total-of {
  margin: 18px 0 6px;
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.total-of strong { color: var(--white); font-weight: 800; }

.total-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Loading shimmer: hides the placeholder text so "$0" never flashes */
.shimmer {
  display: inline-block;
  color: transparent;
  border-radius: 14px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.06) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  min-width: 3.2em;
}
.is-loading .progress-pct,
.is-loading .progress-foot,
.is-loading .tier-people,
.is-loading .ways-foot { opacity: 0; }
.tier-people, .ways-foot { transition: opacity .3s; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Progress ---------- */
.progress { max-width: 760px; margin: 48px auto 0; }

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.progress-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.progress-pct {
  font-size: 14px;
  font-weight: 800;
  color: var(--yellow);
  transition: opacity .3s;
}

.bar {
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 30, 0.35);
  border: 1px solid var(--card-border);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffc700, var(--yellow));
  box-shadow: 0 0 14px rgba(255, 213, 0, 0.45);
  transition: width 1.6s cubic-bezier(.22, 1, .36, 1);
}

.progress-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  transition: opacity .3s;
}
.progress-foot strong { color: var(--white); font-weight: 700; }

/* ---------- Guarantee ---------- */
.guarantee {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-left: 4px solid var(--yellow);
}
.shield {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--yellow);
  background: rgba(255, 213, 0, 0.12);
}
.guarantee-minimum { margin-top: 14px; }
.guarantee-minimum .guarantee-main { margin: 0; }
.guarantee-main { margin: 0 0 4px; font-weight: 700; font-size: 15px; line-height: 1.4; }
.guarantee-note { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Ways ---------- */
.ways { margin-top: 72px; text-align: center; }

.section-title {
  margin: 0 0 28px;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  text-wrap: balance;
}

.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
}

.tier { padding: 28px 20px 26px; }
.tier-people {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: var(--yellow);
}
.tier-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.tier-amount { margin-top: 20px; font-size: 17px; font-weight: 700; }
.tier-note {
  margin: 12px auto 0;
  max-width: 180px;
  font-size: 12px;
  color: var(--muted);
}
.ways-foot { margin: 22px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Gallery marquee ---------- */
.gallery {
  margin: 72px calc(50% - 50vw) 0;
  width: 100vw;
}
.marquee {
  overflow: hidden;
  outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee-track img {
  width: clamp(260px, 44vw, 420px);
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  flex: none;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
/* track holds two identical sets; shift by half (+ half a gap) for a seamless loop */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- Pledge ---------- */
.pledge {
  margin-top: 72px;
  padding: 40px 24px;
  text-align: center;
}
.pledge-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.pledge-name {
  margin: 0 0 8px;
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 800;
  line-height: 1.15;
}
.pledge-phone {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-size: clamp(18px, 4.5vw, 20px);
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-primary { background: var(--yellow); color: var(--blue); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 213, 0, 0.3); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn:disabled { opacity: .75; cursor: progress; transform: none; box-shadow: none; }
.btn-wide { width: 100%; max-width: 500px; }

#waLink { display: flex; margin: 28px auto 0; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 500px;
  margin: 36px auto 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

/* Form */
.form { max-width: 500px; margin: 0 auto; text-align: left; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  font-weight: 600;
  color: var(--white);
  background: rgba(0, 0, 30, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.35); font-weight: 500; }
.field input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.2);
}
.field.has-error input { border-color: var(--error); }

.input-prefix { position: relative; }
.input-prefix span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--yellow);
  pointer-events: none;
}
.input-prefix input { padding-left: 32px; }

.field-error {
  margin: 6px 0 0;
  min-height: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--error);
}
.field-error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form .btn-wide { margin-top: 8px; max-width: none; }

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(11, 27, 143, 0.3);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.is-submitting .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 90, 70, 0.16);
  border: 1px solid rgba(255, 140, 120, 0.4);
  text-align: center;
}

.privacy {
  margin: 14px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--faint);
}

.success { max-width: 460px; margin: 0 auto; }
.success p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.6; }
.check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--blue);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}
.footer a { color: var(--white); font-weight: 600; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .page { padding-top: 36px; }
  .guarantee { padding: 18px; gap: 14px; align-items: flex-start; }
  .pledge { padding: 32px 18px; }
  .btn { letter-spacing: 0.1em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
  .shimmer { animation: none; }
  .spinner { animation-duration: 1.6s; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-track img[aria-hidden="true"] { display: none; }
}
