:root {
  --donation-navy: #062b5c;
  --donation-red: var(--hudhuur-color-accent, #c52d23);
  --donation-yellow: #ffe84a;
  --donation-ink: #10213a;
  --donation-muted: #637083;
  --donation-line: #dce2ea;
  --donation-surface: #f5f6f8;
  --donation-white: #fff;
  --donation-success: #0b7a53;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.hudhuur-donation-flow {
  margin: 0;
  min-width: 320px;
  color: var(--donation-ink);
  background: var(--donation-surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

.hudhuur-donation-flow a {
  color: inherit;
}

.hudhuur-donation-flow__topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--donation-line);
  backdrop-filter: blur(14px);
}

.hudhuur-donation-flow__topbar-inner {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100% - 32px, 760px);
  min-height: 68px;
  margin: 0 auto;
}

.hudhuur-donation-flow__back {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.hudhuur-donation-flow__back:hover,
.hudhuur-donation-flow__back:focus-visible {
  background: #eef2f7;
  transform: translateX(-2px);
}

.hudhuur-donation-flow__brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hudhuur-donation-flow__brand img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.hudhuur-donation-flow__brand span {
  display: grid;
  min-width: 0;
}

.hudhuur-donation-flow__brand strong,
.hudhuur-donation-flow__brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hudhuur-donation-flow__brand strong {
  font-size: 0.82rem;
}

.hudhuur-donation-flow__brand small,
.hudhuur-donation-flow__secure {
  color: var(--donation-muted);
  font-size: 0.7rem;
}

.hudhuur-donation-flow__secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--donation-success);
  font-weight: 800;
}

.hudhuur-donation-flow__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100% - 32px, 640px);
  margin: 24px auto 0;
}

.hudhuur-donation-flow__steps span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #596579;
}

.hudhuur-donation-flow__steps span::before {
  position: absolute;
  z-index: -1;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--donation-line);
}

.hudhuur-donation-flow__steps span:first-child::before {
  display: none;
}

.hudhuur-donation-flow__steps b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--donation-line);
  border-radius: 50%;
  background: var(--donation-white);
  font-size: 0.72rem;
}

.hudhuur-donation-flow__steps small {
  font-size: 0.68rem;
  font-weight: 750;
}

.hudhuur-donation-flow__steps .is-active {
  color: var(--donation-navy);
}

.hudhuur-donation-flow__steps .is-active b {
  border-color: var(--donation-navy);
}

.hudhuur-donation-flow__steps .is-complete b,
.hudhuur-donation-flow__steps .is-complete::before {
  color: #fff;
  border-color: var(--donation-success);
  background: var(--donation-success);
}

.hudhuur-donation-flow__main {
  width: min(100% - 32px, 760px);
  margin: 28px auto 112px;
}

.hudhuur-donation-campaign,
.hudhuur-donation-flow__panel {
  overflow: hidden;
  border-radius: 8px;
  background: var(--donation-white);
  box-shadow: 0 18px 50px rgba(6, 43, 92, 0.11);
}

.hudhuur-donation-campaign__media {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: var(--donation-navy);
}

.hudhuur-donation-campaign__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hudhuur-donation-campaign__media > span {
  color: var(--donation-yellow);
  font-size: 4rem;
}

.hudhuur-donation-campaign__body,
.hudhuur-donation-flow__panel {
  padding: clamp(24px, 5vw, 42px);
}

.hudhuur-donation-flow__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--donation-red);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hudhuur-donation-flow h1,
.hudhuur-donation-flow h2,
.hudhuur-donation-flow p {
  margin-top: 0;
}

.hudhuur-donation-flow h1,
.hudhuur-donation-flow h2 {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  color: var(--donation-navy);
}

.hudhuur-donation-flow h1 {
  max-width: 22ch;
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.hudhuur-donation-flow h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hudhuur-donation-campaign__summary,
.hudhuur-donation-flow__panel > p,
.hudhuur-donation-flow__section > p {
  color: var(--donation-muted);
}

.hudhuur-donation-campaign__progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  margin: 26px 0 32px;
}

.hudhuur-donation-campaign__progress div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}

.hudhuur-donation-campaign__progress strong {
  color: var(--donation-navy);
  font-size: 1.35rem;
}

.hudhuur-donation-campaign__progress div span,
.hudhuur-donation-campaign__progress small {
  color: var(--donation-muted);
  font-size: 0.78rem;
}

.hudhuur-donation-campaign__progress > b {
  align-self: end;
  color: var(--donation-navy);
}

.hudhuur-donation-campaign__progress progress {
  width: 100%;
  height: 9px;
  grid-column: 1 / -1;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e8edf3;
}

.hudhuur-donation-campaign__progress progress::-webkit-progress-bar {
  border-radius: inherit;
  background: #e8edf3;
}

.hudhuur-donation-campaign__progress progress::-webkit-progress-value {
  border-radius: inherit;
  background: var(--donation-red);
}

.hudhuur-donation-campaign__progress progress::-moz-progress-bar {
  border-radius: inherit;
  background: var(--donation-red);
}

.hudhuur-donation-campaign__story {
  padding-top: 28px;
  border-top: 1px solid var(--donation-line);
}

.hudhuur-donation-campaign__story > p {
  color: #3c4a5f;
}

.hudhuur-donation-campaign__assurance {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--donation-line);
}

.hudhuur-donation-campaign__assurance > i {
  color: var(--donation-success);
  font-size: 1.4rem;
}

.hudhuur-donation-campaign__assurance span {
  display: grid;
}

.hudhuur-donation-campaign__assurance small {
  color: var(--donation-muted);
}

.hudhuur-donation-flow__sticky-action {
  position: fixed;
  z-index: 25;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--donation-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.hudhuur-donation-flow__primary {
  width: min(100%, 680px);
  min-height: 50px;
  border: 0 !important;
  background: var(--donation-red) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(255, 68, 56, 0.24);
  font-weight: 850 !important;
}

.hudhuur-donation-flow__panel form > .hudhuur-donation-flow__primary {
  width: 100%;
  margin-top: 24px;
}

.hudhuur-donation-flow__amount-options,
.hudhuur-donation-flow__support-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 22px;
}

.hudhuur-donation-flow__amount-options button,
.hudhuur-donation-flow__support-options span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--donation-line);
  border-radius: 6px;
  background: #fff;
  color: var(--donation-navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.hudhuur-donation-flow__amount-options button:hover,
.hudhuur-donation-flow__amount-options button:focus-visible,
.hudhuur-donation-flow__amount-options button.is-active,
.hudhuur-donation-flow__support-options input:checked + span {
  border-color: var(--donation-navy);
  background: #edf3fa;
  transform: translateY(-1px);
}

.hudhuur-donation-flow__field {
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hudhuur-donation-flow__field input,
.hudhuur-donation-flow__field textarea,
.hudhuur-donation-flow__money-input {
  width: 100%;
  border: 1px solid #bdc7d4;
  border-radius: 6px;
  background: #fff;
  color: var(--donation-ink);
  font: inherit;
}

.hudhuur-donation-flow__field input,
.hudhuur-donation-flow__field textarea {
  min-height: 48px;
  padding: 12px 14px;
}

.hudhuur-donation-flow__field textarea {
  resize: vertical;
}

.hudhuur-donation-flow__field input:focus,
.hudhuur-donation-flow__field textarea:focus,
.hudhuur-donation-flow__money-input:focus-within {
  border-color: var(--donation-navy);
  outline: 3px solid rgba(39, 90, 168, 0.17);
}

.hudhuur-donation-flow__field > small {
  color: var(--donation-muted);
  font-weight: 500;
}

.hudhuur-donation-flow__money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}

.hudhuur-donation-flow__money-input b {
  padding-left: 14px;
  color: var(--donation-navy);
}

.hudhuur-donation-flow__money-input input {
  border: 0;
  outline: 0 !important;
}

.hudhuur-donation-flow__section {
  min-width: 0;
  margin: 28px 0 0;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--donation-line);
}

.hudhuur-donation-flow__section legend {
  padding: 0;
  color: var(--donation-navy);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.hudhuur-donation-flow__section legend small,
.hudhuur-donation-flow__field span small {
  color: var(--donation-muted);
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 700;
}

.hudhuur-donation-flow__support-options label,
.hudhuur-donation-flow__channel-options label {
  position: relative;
  cursor: pointer;
}

.hudhuur-donation-flow__support-options input,
.hudhuur-donation-flow__channel-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hudhuur-donation-flow__channel-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.hudhuur-donation-flow__channel-options label > span {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1px 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--donation-line);
  border-radius: 6px;
}

.hudhuur-donation-flow__channel-options i {
  display: grid;
  width: 38px;
  height: 38px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 50%;
  color: var(--donation-navy);
  background: #edf3fa;
}

.hudhuur-donation-flow__channel-options small {
  color: var(--donation-muted);
}

.hudhuur-donation-flow__channel-options input:checked + span {
  border-color: var(--donation-navy);
  box-shadow: inset 4px 0 0 var(--donation-yellow);
}

.hudhuur-donation-flow__field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.hudhuur-donation-flow__field--full {
  grid-column: 1 / -1;
}

.hudhuur-donation-flow__signed-in,
.hudhuur-donation-flow__alert,
.hudhuur-donation-flow__uat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 6px;
  background: #edf7f3;
  color: var(--donation-success);
  font-size: 0.78rem;
  font-weight: 700;
}

.hudhuur-donation-flow__alert {
  margin-top: 18px;
  background: #fff0ef;
  color: #a9221a;
}

.hudhuur-donation-flow__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  color: #3c4a5f;
  font-size: 0.78rem;
  cursor: pointer;
}

.hudhuur-donation-flow__check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--donation-navy);
}

.hudhuur-donation-flow__error {
  display: block;
  margin-top: 5px;
  color: #b1261e !important;
  font-size: 0.72rem;
  font-weight: 700 !important;
}

.hudhuur-donation-flow__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 2px solid var(--donation-navy);
}

.hudhuur-donation-flow__total strong {
  color: var(--donation-navy);
  font-size: 1.35rem;
}

.hudhuur-donation-flow__uat {
  margin-bottom: 28px;
  background: #fff9cc;
  color: #705d00;
}

.hudhuur-donation-flow__uat span {
  display: grid;
}

.hudhuur-donation-flow__uat small {
  font-weight: 550;
}

.hudhuur-donation-flow__success {
  display: grid;
  justify-items: center;
  padding: 12px 0 28px;
  text-align: center;
}

.hudhuur-donation-flow__success > i {
  margin-bottom: 14px;
  color: var(--donation-success);
  font-size: 3.2rem;
}

.hudhuur-donation-flow__success p {
  max-width: 48ch;
  color: var(--donation-muted);
}

.hudhuur-donation-flow__receipt,
.hudhuur-donation-flow__bank {
  margin: 24px 0;
}

.hudhuur-donation-flow__receipt > div,
.hudhuur-donation-flow__bank > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--donation-line);
}

.hudhuur-donation-flow__receipt dt,
.hudhuur-donation-flow__bank dt {
  color: var(--donation-muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.hudhuur-donation-flow__receipt dd,
.hudhuur-donation-flow__bank dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
  text-align: right;
}

.hudhuur-donation-flow__receipt .is-total {
  border-bottom: 2px solid var(--donation-navy);
  color: var(--donation-navy);
  font-size: 1.1rem;
}

.hudhuur-donation-flow__payment-instruction {
  margin: 30px 0;
  padding: 24px;
  border-radius: 8px;
  background: var(--donation-navy);
  color: #fff;
}

.hudhuur-donation-flow__payment-instruction .hudhuur-donation-flow__eyebrow {
  color: var(--donation-yellow);
}

.hudhuur-donation-flow__payment-instruction p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.hudhuur-donation-flow__bank > div {
  border-color: rgba(255, 255, 255, 0.2);
}

.hudhuur-donation-flow__bank dt {
  color: rgba(255, 255, 255, 0.7);
}

.hudhuur-donation-flow__qris-mock {
  position: relative;
  display: grid;
  width: 180px;
  aspect-ratio: 1;
  margin: 20px auto;
  place-items: center;
  border: 12px solid #fff;
  border-radius: 6px;
  background: #fff;
  color: #050505;
}

.hudhuur-donation-flow__qris-mock i {
  font-size: 9rem;
  line-height: 1;
}

.hudhuur-donation-flow__qris-mock b {
  position: absolute;
  padding: 4px 8px;
  color: #fff;
  background: var(--donation-red);
  font-size: 0.8rem;
}

.hudhuur-donation-flow__secondary {
  display: block;
  margin-top: 18px;
  padding: 12px;
  color: var(--donation-navy);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 620px) {
  .hudhuur-donation-flow__topbar-inner,
  .hudhuur-donation-flow__steps,
  .hudhuur-donation-flow__main {
    width: min(100% - 24px, 760px);
  }

  .hudhuur-donation-flow__secure span {
    display: none;
  }

  .hudhuur-donation-flow__main {
    margin-top: 18px;
  }

  .hudhuur-donation-campaign__body,
  .hudhuur-donation-flow__panel {
    padding: 22px 18px;
  }

  .hudhuur-donation-flow__field-grid {
    grid-template-columns: 1fr;
  }

  .hudhuur-donation-flow__field--full {
    grid-column: auto;
  }

  .hudhuur-donation-flow__receipt > div,
  .hudhuur-donation-flow__bank > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hudhuur-donation-flow__receipt dd,
  .hudhuur-donation-flow__bank dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hudhuur-donation-flow *,
  .hudhuur-donation-flow *::before,
  .hudhuur-donation-flow *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
