/* Donate page — Razorpay-inspired checkout layout */

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

body.donate-page {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: #f4f6fb;
  color: #1a1f36;
}

.donate-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

/* Left panel — Razorpay-style brand strip */
.donate-brand {
  background: linear-gradient(165deg, #528ff0 0%, #3b6fd4 55%, #2f5fbd 100%);
  color: #fff;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
}

.donate-brand-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.donate-brand-tagline {
  margin: 8px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

.donate-summary {
  margin-top: auto;
  padding-top: 48px;
}

.donate-summary-label {
  font-size: 13px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.donate-amount-display {
  margin: 8px 0 0;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
}

.donate-secured {
  margin: 32px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.9;
}

/* Right panel — payment controls */
.donate-main {
  background: #fff;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.donate-back {
  font-size: 14px;
  color: #528ff0;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 28px;
  align-self: flex-start;
}

.donate-back:hover {
  text-decoration: underline;
}

.donate-main h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: #1a1f36;
}

.donate-sub {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.5;
  color: #6b7280;
}

.donate-slider-block {
  margin-bottom: 24px;
}

.donate-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.donate-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    to right,
    #528ff0 0%,
    #528ff0 var(--slider-pct, 0%),
    #e5e7eb var(--slider-pct, 0%),
    #e5e7eb 100%
  );
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.donate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #528ff0;
  box-shadow: 0 2px 8px rgba(82, 143, 240, 0.45);
  cursor: grab;
}

.donate-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #528ff0;
  box-shadow: 0 2px 8px rgba(82, 143, 240, 0.45);
  cursor: grab;
}

.donate-slider-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: #9ca3af;
}

.donate-message {
  min-height: 1.25em;
  margin: 0 0 16px;
  font-size: 14px;
  color: #6b7280;
}

.donate-message.error {
  color: #dc2626;
}

.donate-message.success {
  color: #059669;
}

.donate-pay-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 6px;
  background: #528ff0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.donate-pay-btn:hover:not(:disabled) {
  background: #3b6fd4;
}

.donate-pay-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .donate-shell {
    grid-template-columns: 1fr;
  }

  .donate-brand {
    padding: 24px;
    min-height: auto;
  }

  .donate-summary {
    margin-top: 24px;
    padding-top: 0;
  }

  .donate-amount-display {
    font-size: 32px;
  }

  .donate-main {
    padding: 28px 24px 40px;
    max-width: none;
  }
}
