/* ============================= */
/* DONATE PAGE STYLES */
/* ============================= */

.donate-announcement {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--color-border);
}

.donate-announcement .announcement-content p {
  color: var(--color-text-muted);
}

.donate-announcement .announcement-content a {
  color: var(--color-primary);
}


/* ============================= */
/* HERO */
/* ============================= */

.donate-hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(201,179,124,0.10), transparent 24%),
    radial-gradient(circle at bottom left, rgba(255,255,255,0.04), transparent 20%);
}

.donate-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}

.donate-copy h1 {
  max-width: 12ch;
  margin-bottom: 22px;
}

.page-hero-description {
  font-size: 1.08rem;
  max-width: 60ch;
  margin-bottom: 18px;
}

.donate-supporting-text {
  max-width: 60ch;
  margin-bottom: 26px;
}

.donate-trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201,179,124,0.18);
  background: rgba(201,179,124,0.08);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
}

.donate-reasons {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reason-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.reason-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(201,179,124,0.12);
  border: 1px solid rgba(201,179,124,0.20);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
}

.reason-item h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.reason-item p {
  margin: 0;
  font-size: 0.95rem;
}


/* ============================= */
/* DONATION CARD */
/* ============================= */

.donation-panel {
  display: flex;
  justify-content: flex-end;
}

.donation-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,179,124,0.15);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.donation-card-header {
  margin-bottom: 32px;
  text-align: left;
}

.donation-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.donation-card-header h2 {
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.donation-subtitle {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.5;
}


/* ============================= */
/* FORM */
/* ============================= */

.frequency-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 26px;
}

.frequency-option {
  min-height: 46px;
  border-radius: 10px;
  border: 1.5px solid rgba(201,179,124,0.2);
  background: rgba(255,255,255,0.02);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.93rem;
  transition: all 0.2s ease;
}

.frequency-option:hover {
  border-color: rgba(201,179,124,0.35);
  background: rgba(201,179,124,0.05);
  color: var(--color-text);
}

.frequency-option.active {
  background: rgba(201,179,124,0.14);
  border-color: rgba(201,179,124,0.45);
  color: var(--color-primary);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.amount-option {
  background: rgba(255,255,255,0.02);
  border: 1.5px solid rgba(201,179,124,0.15);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.amount-option:hover {
  border-color: rgba(201,179,124,0.3);
  background: rgba(201,179,124,0.07);
  transform: translateY(-1px);
}

.amount-option.active {
  border-color: rgba(201,179,124,0.5);
  background: rgba(201,179,124,0.12);
}

.amount-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.amount-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.custom-amount-section {
  margin-bottom: 18px;
}

.input-with-prefix {
  position: relative;
}

.input-with-prefix span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.input-with-prefix input {
  width: 100%;
  padding: 12px 14px 12px 32px;
  border: 1.5px solid rgba(201,179,124,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: var(--color-text);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.input-with-prefix input:focus {
  outline: none;
  border-color: rgba(201,179,124,0.4);
  background: rgba(255,255,255,0.03);
}

.input-with-prefix input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.donation-note-box {
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: rgba(201,179,124,0.06);
  border: 1px solid rgba(201,179,124,0.15);
}

.donation-note-title {
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.93rem;
  margin-bottom: 6px;
}

.donation-note-box p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}

.donor-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-row {
  margin-bottom: 12px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(201,179,124,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(201,179,124,0.4);
  background: rgba(255,255,255,0.03);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-row textarea {
  resize: vertical;
}

.optional {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.payment-section {
  margin-top: 4px;
  margin-bottom: 16px;
}

.card-element {
  padding: 12px 14px;
  border: 1.5px solid rgba(201,179,124,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  transition: all 0.2s ease;
}

.card-element.StripeElement--focus {
  border-color: rgba(201,179,124,0.45);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 0 3px rgba(201,179,124,0.08);
}

.card-element.StripeElement--invalid {
  border-color: #ff8b8b;
}

.card-errors {
  color: #ff8b8b;
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
}

.donate-submit-btn {
  width: 100%;
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  min-height: 52px;
  font-size: 1rem;
  text-align: center;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, var(--color-primary), rgba(201,179,124,0.8));
  border: none;
  color: var(--color-bg);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.donate-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,179,124,0.3);
}

.donate-submit-btn:active {
  transform: translateY(0);
}

.donate-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.donation-guarantee {
  margin-top: 0;
  text-align: center;
}

.donation-guarantee p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}


/* ============================= */
/* SECTION STYLES */
/* ============================= */

.donation-impact-section .info-card,
.giving-card {
  min-height: 100%;
}

.giving-card {
  text-align: center;
}

.giving-amount {
  display: block;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.trust-section .split-content p + p {
  margin-top: 14px;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-item h3 {
  margin-bottom: 10px;
}

.faq-item p {
  color: var(--color-text-muted);
}

.cta-section {
  padding-top: 40px;
}

.cta-box {
  background:
    linear-gradient(180deg, rgba(20,41,63,0.96), rgba(15,31,47,0.96)),
    radial-gradient(circle at top right, rgba(201,179,124,0.12), transparent 35%);
}


/* ============================= */
/* BUTTON SPINNER */
/* ============================= */

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ============================= */
/* FEE COVERAGE SECTION */
/* ============================= */

.fee-coverage-section {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(201,179,124,0.05);
  border: 1px solid rgba(201,179,124,0.15);
}

.fee-coverage-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.fee-checkbox-input {
  display: none;
}

.checkbox-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(201,179,124,0.4);
  background: transparent;
  color: transparent;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
  margin-top: 2px;
  flex-shrink: 0;
}

.fee-checkbox-input:checked + .checkbox-label .checkbox-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
}

.checkbox-text {
  flex: 1;
  color: var(--color-text);
  font-size: 0.93rem;
  line-height: 1.3;
  font-weight: 500;
}

.fee-coverage-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  margin-bottom: 0;
}


/* ============================= */
/* FEE BREAKDOWN */
/* ============================= */

.fee-breakdown {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(201,179,124,0.12);
  background: rgba(201,179,124,0.04);
  display: none;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.breakdown-row:last-child {
  margin-bottom: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(201,179,124,0.12);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 6px;
}

.breakdown-label {
  color: var(--color-text-muted);
}

.breakdown-amount {
  color: var(--color-text);
  font-weight: 600;
}


/* ============================= */
/* PAYMENT METHODS */
/* ============================= */

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.payment-method-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  border: 1.5px solid rgba(201,179,124,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.88rem;
}

.payment-method-option:hover {
  border-color: rgba(201,179,124,0.35);
  background: rgba(201,179,124,0.07);
  color: var(--color-text);
  transform: translateY(-1px);
}

.payment-method-option.active {
  border-color: rgba(201,179,124,0.5);
  background: rgba(201,179,124,0.12);
  color: var(--color-primary);
}

.method-icon {
  font-size: 22px;
}


/* ============================= */
/* APPLE PAY CONTAINER */
/* ============================= */

.apple-pay-container {
  position: relative;
  margin-bottom: 16px;
}

.apple-pay-button {
  width: 100%;
  height: 50px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  gap: 10px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.apple-pay-button:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.apple-pay-button:active {
  transform: translateY(0);
}

.apple-pay-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ============================= */
/* CARD PAYMENT METHOD */
/* ============================= */

.card-payment-method {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1.5px solid rgba(201,179,124,0.15);
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
}

.card-element {
  padding: 12px 14px;
  border: 1.5px solid rgba(201,179,124,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  transition: all 0.2s ease;
}

.card-element.StripeElement--focus {
  border-color: rgba(201,179,124,0.45);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 0 3px rgba(201,179,124,0.08);
}

.card-element.StripeElement--invalid {
  border-color: #ff8b8b;
}

.card-errors {
  color: #ff8b8b;
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
}


/* ============================= */
/* SUCCESS MODAL */
/* ============================= */

.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.success-modal.show {
  opacity: 1;
}

.success-modal-content {
  background: linear-gradient(135deg, rgba(20,41,63,0.98) 0%, rgba(15,31,47,0.98) 100%);
  border: 1px solid rgba(201,179,124,0.2);
  border-radius: 20px;
  padding: 44px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 0.98);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.celebration-graphic {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
}

.success-badge {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark {
  width: 100%;
  height: 100%;
  color: var(--color-primary);
}

.checkmark-circle {
  animation: drawCircle 0.5s ease-in-out forwards;
}

.checkmark-path {
  animation: drawCheckmark 0.4s ease-in-out 0.15s forwards;
  stroke-dasharray: 47;
  stroke-dashoffset: 47;
}

@keyframes drawCircle {
  from {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    opacity: 0;
  }
  to {
    stroke-dasharray: 157;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes drawCheckmark {
  from {
    stroke-dasharray: 47;
    stroke-dashoffset: 47;
  }
  to {
    stroke-dasharray: 47;
    stroke-dashoffset: 0;
  }
}

.confetti-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
}

.confetti:nth-child(1) {
  width: 6px;
  height: 6px;
  left: 20%;
  top: 50%;
  background: rgba(201, 179, 124, 0.8);
  animation: confettiFall 2.5s ease-in forwards;
}

.confetti:nth-child(2) {
  width: 8px;
  height: 8px;
  left: 80%;
  top: 50%;
  background: rgba(255, 200, 100, 0.8);
  animation: confettiFall 2.8s ease-in 0.1s forwards;
}

.confetti:nth-child(3) {
  width: 6px;
  height: 6px;
  left: 35%;
  top: 50%;
  background: rgba(201, 179, 124, 0.7);
  animation: confettiFall 2.3s ease-in 0.2s forwards;
}

.confetti:nth-child(4) {
  width: 7px;
  height: 7px;
  left: 65%;
  top: 50%;
  background: rgba(255, 200, 100, 0.75);
  animation: confettiFall 2.6s ease-in 0.15s forwards;
}

.confetti:nth-child(5) {
  width: 6px;
  height: 6px;
  left: 10%;
  top: 50%;
  background: rgba(201, 179, 124, 0.85);
  animation: confettiFall 2.4s ease-in 0.25s forwards;
}

.confetti:nth-child(6) {
  width: 8px;
  height: 8px;
  left: 90%;
  top: 50%;
  background: rgba(255, 200, 100, 0.8);
  animation: confettiFall 2.7s ease-in 0.05s forwards;
}

.confetti:nth-child(7) {
  width: 5px;
  height: 5px;
  left: 45%;
  top: 50%;
  background: rgba(201, 179, 124, 0.75);
  animation: confettiFall 2.5s ease-in 0.3s forwards;
}

.confetti:nth-child(8) {
  width: 7px;
  height: 7px;
  left: 75%;
  top: 50%;
  background: rgba(255, 200, 100, 0.85);
  animation: confettiFall 2.6s ease-in 0.1s forwards;
}

@keyframes confettiFall {
  from {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    opacity: 0;
    transform: translate(var(--tx), 180px) rotate(360deg);
  }
}

.confetti:nth-child(1) { --tx: -80px; }
.confetti:nth-child(2) { --tx: 80px; }
.confetti:nth-child(3) { --tx: -50px; }
.confetti:nth-child(4) { --tx: 50px; }
.confetti:nth-child(5) { --tx: -120px; }
.confetti:nth-child(6) { --tx: 120px; }
.confetti:nth-child(7) { --tx: -30px; }
.confetti:nth-child(8) { --tx: 30px; }

.success-content h2 {
  color: var(--color-primary);
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.success-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 10px 0 8px;
}

.success-email {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 16px;
}

.success-message {
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
  font-size: 0.9rem;
}

.success-close-btn {
  width: 100%;
  padding: 12px 16px;
}
/* ============================= */

@media (max-width: 1000px) {
  .donate-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .donation-panel {
    justify-content: flex-start;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .donate-hero {
    padding-top: 90px;
    padding-bottom: 70px;
  }

  .donor-info-grid {
    grid-template-columns: 1fr;
  }

  .frequency-toggle,
  .amount-grid {
    grid-template-columns: 1fr;
  }

  .donation-card {
    padding: 24px;
  }
}

/* ============================= */
/* PAYMENT SECTION */
/* ============================= */

.payment-section {
  margin-top: 8px;
  margin-bottom: 16px;
}

.apple-pay-method {
  margin-bottom: 16px;
}

.apple-pay-button {
  width: 100%;
  min-height: 54px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: #000;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-pay-button:hover {
  background: #111;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.apple-pay-button:active {
  transform: translateY(0);
}

.apple-pay-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.apple-pay-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  display: block;
}

.payment-divider {
  position: relative;
  text-align: center;
  margin: 16px 0 18px;
}

.payment-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: rgba(201,179,124,0.15);
  transform: translateY(-50%);
}

.payment-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: rgb(15,31,47);
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.card-payment-method {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1.5px solid rgba(201,179,124,0.15);
  border-radius: 10px;
  padding: 16px;
}

.card-element {
  padding: 12px 14px;
  border: 1.5px solid rgba(201,179,124,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  transition: all 0.2s ease;
}

.card-element.StripeElement--focus {
  border-color: rgba(201,179,124,0.45);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 0 3px rgba(201,179,124,0.08);
}

.card-element.StripeElement--invalid {
  border-color: #ff8b8b;
}