/* =========================
   DONATE PAGE — SPLIT PANEL
========================= */
.donate-page {
  min-height: 100vh;
  background: #f7f8f5;
}

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

/* =========================
   LEFT: STORY PANEL
========================= */
.donate-story {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.donate-story-image {
  position: absolute;
  inset: 0;
}

.donate-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.donate-story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 28, 18, 0.82) 0%,
    rgba(26, 58, 42, 0.72) 60%,
    rgba(10, 28, 18, 0.88) 100%
  );
}

.donate-story-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 3rem 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
}

.donate-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1.75rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.donate-story-content h2 {
  color: #fff;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  hyphens: none;
  word-break: normal;
}

.donate-story-content > p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 380px;
}

/* Impact list */
.donate-impact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.donate-impact-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
}

.donate-impact-amount {
  font-size: 1rem;
  font-weight: 700;
  color: #C8A04A;
  white-space: nowrap;
  font-family: Inter, sans-serif;
}

.donate-impact-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

/* NGO badge */
.donate-reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: Inter, sans-serif;
}

.donate-reg-badge .ti {
  font-size: 0.95rem;
  color: #C8A04A;
}

/* =========================
   RIGHT: FORM PANEL
========================= */
.donate-form-panel {
  background: #fff;
  padding: 3.5rem 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Secure badge */
.donate-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
  font-family: Inter, sans-serif;
  letter-spacing: 0.03em;
}

.donate-secure-badge .ti {
  font-size: 0.95rem;
  color: #1A3A2A;
}

/* Frequency toggle */
.donate-frequency {
  display: flex;
  gap: 0.5rem;
  background: #f0f2ee;
  border-radius: 10px;
  padding: 4px;
}

.freq-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: Inter, sans-serif;
}

.freq-btn.active {
  background: #fff;
  color: #1A3A2A;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.freq-heart {
  font-size: 0.85rem;
  color: #e05252;
}

/* Amount buttons */
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.amount-btn {
  padding: 0.7rem 0.5rem;
  border: 2px solid #e0e4dc;
  border-radius: 10px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1A3A2A;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  font-family: Inter, sans-serif;
}

.amount-btn:hover {
  border-color: #1A3A2A;
  background: rgba(26, 58, 42, 0.04);
}

.amount-btn.active {
  border-color: #1A3A2A;
  background: #1A3A2A;
  color: #fff;
}

/* Custom amount */
.donate-custom {
  display: flex;
  align-items: center;
  border: 2px solid #e0e4dc;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.donate-custom:focus-within {
  border-color: #1A3A2A;
}

.donate-currency {
  padding: 0 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.4);
  background: #f7f8f5;
  border-right: 2px solid #e0e4dc;
  line-height: 1;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: Inter, sans-serif;
  white-space: nowrap;
  align-self: stretch;
}

.donate-custom-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: Inter, sans-serif;
  color: #1A3A2A;
  background: transparent;
}

.donate-custom-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

/* Impact message */
.donate-impact-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(26, 58, 42, 0.05);
  border: 1px solid rgba(26, 58, 42, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  color: #1A3A2A;
  line-height: 1.5;
  font-family: Inter, sans-serif;
}

.donate-impact-msg .ti {
  font-size: 1rem;
  color: #e05252;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Payment method label */
.donate-method-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.45);
  font-family: Inter, sans-serif;
  margin-bottom: -0.75rem;
}

/* Payment methods */
.donate-methods {
  display: flex;
  gap: 0.5rem;
}

.method-btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  border: 2px solid #e0e4dc;
  border-radius: 10px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: Inter, sans-serif;
}

.method-btn .ti {
  font-size: 1rem;
}

.method-btn:hover {
  border-color: #1A3A2A;
  color: #1A3A2A;
}

.method-btn.active {
  border-color: #1A3A2A;
  background: rgba(26, 58, 42, 0.06);
  color: #1A3A2A;
}

/* Payment detail panels */
.payment-detail {
  display: none;
  background: #f7f8f5;
  border: 1px solid #e0e4dc;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.payment-detail.active {
  display: block;
}

.payment-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.payment-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.payment-info-label {
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.45);
  font-family: Inter, sans-serif;
}

.payment-info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1A3A2A;
  font-family: Inter, sans-serif;
}

.payment-bank-note {
  font-size: 0.84rem;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  font-family: Inter, sans-serif;
}

.payment-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1A3A2A;
  text-decoration: none;
  font-family: Inter, sans-serif;
  transition: opacity 0.2s;
}

.payment-contact-link:hover {
  opacity: 0.7;
}

.payment-contact-link .ti {
  font-size: 0.95rem;
}

/* Donor name field */
.donate-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.donate-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.5);
  font-family: Inter, sans-serif;
}

.donate-input {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e4dc;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: Inter, sans-serif;
  color: #1A3A2A;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.donate-input:focus {
  border-color: #1A3A2A;
}

.donate-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

/* Submit button */
.donate-submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #1A3A2A;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: Inter, sans-serif;
  transition: background 0.2s, transform 0.15s;
}

.donate-submit-btn:hover {
  background: #122a1e;
  transform: translateY(-1px);
}

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

.donate-submit-btn .ti {
  font-size: 1.05rem;
}

/* Footer note */
.donate-footer-note {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.35);
  line-height: 1.55;
  text-align: center;
  font-family: Inter, sans-serif;
  margin-top: -0.5rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .donate-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .donate-story {
    min-height: 380px;
  }

  .donate-story-content {
    padding: 2.5rem 1.75rem 2rem;
    min-height: 380px;
    justify-content: flex-end;
  }

  .donate-story-content h2 {
    font-size: 1.6rem;
  }

  .donate-form-panel {
    padding: 2rem 1.5rem 3rem;
  }
}

@media (max-width: 480px) {
  .donate-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .donate-methods {
    flex-wrap: wrap;
  }

  .method-btn {
    flex: 1 1 calc(33% - 0.5rem);
  }

  .donate-story {
    min-height: 320px;
  }

  .donate-story-content {
    padding: 2rem 1.25rem 1.5rem;
    min-height: 320px;
  }

  .donate-form-panel {
    padding: 1.5rem 1.1rem 2.5rem;
    gap: 1.1rem;
  }
}
