/* SPLM Donate page — standalone styles (scoped, SPLM brand) */

.donate-section {
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 72px);
  background: var(--soft);
}

.donate-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* —— Impact column —— */
.donate-aside {
  padding: clamp(8px, 2vw, 16px) 0;
}

.donate-aside .section-kicker {
  display: inline-block;
  margin-bottom: 12px;
}

.donate-aside__title {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--history-cover);
  max-width: 22ch;
}

.donate-aside__lead {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
  color: #444;
  max-width: 48ch;
}

.donate-aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.donate-aside__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  box-shadow: 0 6px 18px rgba(22, 22, 22, 0.05);
}

.donate-aside__list-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(176, 0, 0, 0.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.donate-aside__list strong {
  color: var(--ink);
}

/* —— Checkout card —— */
.donate-checkout {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3.5vw, 32px);
  box-shadow: var(--shadow);
}

.donate-checkout button {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  margin: 0;
  cursor: pointer;
}

.donate-checkout input {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.donate-card__head {
  text-align: center;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.donate-card__title {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--history-cover);
}

.donate-card__sub {
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36ch;
}

/* Segmented toggles (frequency + currency) */
.donate-segment {
  display: flex;
  width: 100%;
  padding: 5px;
  gap: 6px;
  background: #f3efe8;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-sizing: border-box;
}

.donate-segment__btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #555;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.donate-segment--freq .donate-segment__btn {
  flex-direction: row;
  gap: 8px;
  min-height: 48px;
}

.donate-segment__btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.donate-segment__btn.is-active {
  background: #fff;
  border-color: rgba(176, 0, 0, 0.2);
  color: var(--red);
  box-shadow: 0 4px 14px rgba(22, 22, 22, 0.08);
}

.donate-segment__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.donate-segment__btn.is-active .donate-segment__icon {
  opacity: 1;
  stroke: var(--red);
}

.donate-segment__main {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.donate-segment__sub {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted);
}

.donate-segment__btn.is-active .donate-segment__sub {
  color: #8a4a4a;
}

/* Blocks & labels */
.donate-block {
  margin: 0 0 20px;
}

.donate-block__label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.donate-block--amount .donate-block__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.donate-block--amount .donate-block__label {
  margin: 0;
}

.donate-amount-selected {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(176, 0, 0, 0.08);
  border: 1px solid rgba(176, 0, 0, 0.15);
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
}

.donate-amount-selected.is-empty {
  background: #f3efe8;
  border-color: var(--line);
  color: var(--muted);
  font-weight: 700;
}

.donate-amount-custom {
  display: flex;
  min-height: 48px;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.donate-amount-custom.is-active {
  border-color: var(--red);
  background: rgba(176, 0, 0, 0.06);
  box-shadow: 0 0 0 3px rgba(176, 0, 0, 0.08);
}

.donate-amount-custom-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  outline: none;
}

.donate-amount-custom-input::placeholder {
  color: #999;
  font-weight: 700;
}

.donate-amount-custom.is-active .donate-amount-custom-input {
  color: var(--red);
}

.donate-amount-custom-input:focus {
  outline: none;
}

/* Amount tiles */
.donate-amount-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.donate-amount-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 800;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.donate-amount-tile:hover:not(:disabled) {
  border-color: rgba(176, 0, 0, 0.35);
  transform: translateY(-1px);
}

.donate-amount-tile.is-active {
  border-color: var(--red);
  background: rgba(176, 0, 0, 0.06);
  color: var(--red);
}

.donate-amount-tile.is-active::after {
  content: "\2665";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(176, 0, 0, 0.35);
  pointer-events: none;
}

/* Fields */
.donate-donor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 4px;
}

.donate-field {
  display: block;
  margin: 0 0 16px;
}

.donate-donor-grid .donate-field {
  margin-bottom: 16px;
}

.donate-field__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.donate-optional {
  font-weight: 500;
  color: var(--muted);
}

.donate-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  min-height: 46px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.donate-input-wrap:focus-within {
  border-color: rgba(176, 0, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(176, 0, 0, 0.1);
}

.donate-input-wrap svg {
  flex-shrink: 0;
  color: #999;
  width: 18px;
  height: 18px;
}

.donate-input-wrap--message svg.donate-input-icon--end {
  margin-left: auto;
}

.donate-input-prefix {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  padding-right: 8px;
  border-right: 1px solid var(--line);
  margin-right: 2px;
}

.donate-input-wrap input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}

.donate-input-wrap input::placeholder {
  color: #aaa;
  font-weight: 500;
}

/* Payment method cards */
.donate-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.donate-pay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 16px 10px 14px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.donate-pay-card:hover:not(:disabled) {
  border-color: rgba(176, 0, 0, 0.3);
}

.donate-pay-card.is-active {
  border-color: var(--red);
  background: rgba(176, 0, 0, 0.04);
  box-shadow: 0 6px 20px rgba(176, 0, 0, 0.1);
}

.donate-pay-card:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.donate-pay-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--soft);
  color: #555;
  margin-bottom: 4px;
}

.donate-pay-card.is-active .donate-pay-card__icon {
  background: rgba(176, 0, 0, 0.1);
  color: var(--red);
}

.donate-pay-card__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.donate-pay-card__desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.donate-panel {
  margin: 14px 0 0;
}

.donate-form {
  margin: 0;
  padding: 0;
}

/* Secure banner */
.donate-secure-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(176, 0, 0, 0.06);
  border: 1px solid rgba(176, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #555;
  line-height: 1.45;
}

.donate-secure-banner svg {
  flex-shrink: 0;
  color: var(--red);
}

/* CTA */
.donate-cta-zone {
  margin: 0 0 12px;
}

.donate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(176, 0, 0, 0.25);
  transition: background 0.18s ease, transform 0.18s ease;
}

.donate-cta:hover:not(:disabled) {
  background: var(--dark-red);
  transform: translateY(-1px);
}

.donate-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.donate-cta svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.donate-paypal-mount {
  min-height: 48px;
}

.donate-cta-zone .donate-paypal-mount:not([hidden]) + .donate-cta,
.donate-cta-zone:has(.donate-paypal-mount:not([hidden])) .donate-cta {
  display: none;
}

.donate-trust-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #999;
}

.donate-trust-footer svg {
  color: var(--red);
  opacity: 0.7;
}

.donate-legal {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  color: #888;
}

.donate-legal a {
  color: var(--red);
  text-decoration: underline;
}

/* Status & notices */
.donate-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  background: var(--cream);
  border: 1px solid var(--line);
  color: #555;
}

.donate-notice a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

.donate-notice[hidden] {
  display: none;
}

.donate-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  background: rgba(176, 0, 0, 0.06);
  color: var(--ink);
  border: 1px solid rgba(176, 0, 0, 0.12);
}

.donate-status--error {
  background: rgba(176, 0, 0, 0.08);
  color: var(--red);
  border-color: rgba(176, 0, 0, 0.2);
}

.donate-status:empty {
  display: none;
}

.donate-unavailable {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 10px 0;
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .donate-page {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .donate-aside__title {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .donate-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donate-donor-grid,
  .donate-pay-grid {
    grid-template-columns: 1fr;
  }

  .donate-segment__btn {
    min-height: 48px;
    padding: 8px 10px;
  }

  .donate-checkout {
    padding: 20px 16px 24px;
  }
}
