.phrd-donate,
.phrd-donate *,
.phrd-donate *::before,
.phrd-donate *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.phrd-donate {
  font-family: Arial, sans-serif;
  background: #f2f4f7;
  color: #2b2b2b;
  line-height: 1.5;
}

/* ── layout ── */
.phrd-donate .donate-wrap {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 16px;
}

/* ── header ── */
.phrd-donate .donate-header {
  text-align: center;
  margin-bottom: 24px;
}

.phrd-donate .donate-header h1 {
  font-size: 26px;
  color: #1f5f8b;
  margin-bottom: 6px;
  font-weight: 700;
}

.phrd-donate .donate-header p {
  font-size: 14px;
  color: #555;
}

/* ── impact strip ── */
.phrd-donate .impact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.phrd-donate .impact-card {
  background: #fff;
  border: 1px solid #d6dce3;
  padding: 12px;
  text-align: center;
}

.phrd-donate .impact-card .num {
  font-size: 20px;
  font-weight: bold;
  color: #1f5f8b;
}

.phrd-donate .impact-card .lbl {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
}

.phrd-donate .impact-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.phrd-donate .impact-card-link:hover {
  border-color: #1f5f8b;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -8px rgba(31,95,139,0.35);
}

.phrd-donate .donate-card {
  background: #fff;
  border: 1px solid #d6dce3;
  padding: 24px;
}

/* ── section label ── */
.phrd-donate .section-lbl {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: bold;
  color: #1f5f8b;
  text-transform: uppercase;
}

/* ── currency tab ── */
.phrd-donate .currency-tabs {
  margin-bottom: 16px;
}

.phrd-donate .tab-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid #cfd6dd;
  background: #f8fafc;
  cursor: pointer;
  font-weight: bold;
}

.phrd-donate .tab-btn.active {
  background: #1f5f8b;
  color: white;
}

.phrd-donate .amount-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.phrd-donate .preset-btn {
  padding: 10px;
  border: 1px solid #cfd6dd;
  background: #f9fbfd;
  cursor: pointer;
  font-weight: bold;
}

.phrd-donate .preset-btn.selected {
  background: #1f5f8b;
  color: white;
}

/* ── input ── */
.phrd-donate .amount-custom {
  position: relative;
  margin-bottom: 10px;
}

.phrd-donate .amount-custom input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1px solid #cfd6dd;
  font-size: 14px;
}

.phrd-donate .currency-symbol {
  position: absolute;
  left: 12px;
  top: 10px;
  color: #666;
}

/* ── form fields ── */
.phrd-donate .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.phrd-donate .field-row.full {
  grid-template-columns: 1fr;
}

.phrd-donate label {
  font-size: 11px;
  color: #555;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.phrd-donate input,
.phrd-donate select,
.phrd-donate textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cfd6dd;
  background: #fff;
  font-size: 14px;
}

.phrd-donate textarea {
  min-height: 80px;
}

/* ── purpose tags ── */
.phrd-donate .purpose-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.phrd-donate .purpose-tag {
  border: 1px solid #cfd6dd;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  background: #f9fbfd;
}

.phrd-donate .purpose-tag.selected {
  background: #1f5f8b;
  color: #fff;
}

/* ── buttons ── */
.phrd-donate .pay-section {
  margin-top: 20px;
}

.phrd-donate .pay-title {
  font-size: 12px;
  text-align: center;
  margin-bottom: 10px;
  color: #666;
}

.phrd-donate .btn-khalti,
.phrd-donate .btn-bank {
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
}

.phrd-donate .btn-khalti {
  background: #5c2d91;
  color: white;
}

.phrd-donate .btn-khalti:disabled {
  background: #a598b8;
  cursor: not-allowed;
}

.phrd-donate .btn-bank {
  background: transparent;
  border: 1px solid #1f5f8b;
  color: #1f5f8b;
}

/* ── bank box ── */
.phrd-donate .bank-box {
  display: none;
  border: 1px solid #d6dce3;
  padding: 12px;
  margin-top: 8px;
  background: #f8fafc;
}

.phrd-donate .bank-box.show {
  display: block;
}

.phrd-donate .bank-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dotted #ccc;
}

.phrd-donate .bank-row:last-child {
  border-bottom: none;
}

.phrd-donate .or-divider {
  text-align: center;
  margin: 10px 0;
  font-size: 12px;
  color: #888;
}

.phrd-donate .error-msg {
  font-size: 12px;
  color: darkred;
  display: none;
}

.phrd-donate .success-msg {
  display: none;
  background: #eaf7ee;
  border: 1px solid #9ad3a5;
  padding: 12px;
  margin-top: 10px;
  text-align: center;
}

.phrd-donate .secure-note {
  font-size: 11px;
  text-align: center;
  margin-top: 12px;
  color: #777;
}

/* ── responsive ── */
@media (max-width: 600px) {
  .phrd-donate .field-row {
    grid-template-columns: 1fr;
  }

  .phrd-donate .impact-strip {
    grid-template-columns: 1fr;
  }
}

/* ── khalti QR modal ── */
.phrd-donate .qr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.phrd-donate .qr-overlay.show {
  display: flex;
}

.phrd-donate .qr-modal {
  background: #fff;
  max-width: 360px;
  width: 100%;
  padding: 20px;
  text-align: center;
  border-radius: 4px;
  position: relative;
}

.phrd-donate .qr-modal h3 {
  color: #5c2d91;
  font-size: 17px;
  margin-bottom: 4px;
}

.phrd-donate .qr-modal p {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}

.phrd-donate .qr-amount {
  font-size: 22px;
  font-weight: bold;
  color: #1f5f8b;
  margin-bottom: 12px;
}

.phrd-donate .qr-modal img {
  width: 100%;
  max-width: 260px;
  border: 1px solid #d6dce3;
  margin-bottom: 12px;
}

.phrd-donate .qr-phone {
  font-size: 14px;
  font-weight: bold;
  color: #2b2b2b;
  margin-bottom: 14px;
}

.phrd-donate .qr-close,
.phrd-donate .qr-done {
  width: 100%;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  margin-top: 6px;
}

.phrd-donate .qr-done {
  background: #5c2d91;
  color: #fff;
}

.phrd-donate .qr-done:disabled {
  background: #a598b8;
  cursor: not-allowed;
}

.phrd-donate .qr-close {
  background: transparent;
  border: 1px solid #cfd6dd;
  color: #555;
}

/* ── bank QR image ── */
.phrd-donate .bank-qr-row {
  justify-content: center;
  padding: 10px 0;
}

.phrd-donate .bank-qr-img {
  width: 10000px;      /* ← change this to resize */
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── bank transfer confirm ── */
.phrd-donate .bank-amount {
  font-size: 18px;
  font-weight: bold;
  color: #1f5f8b;
  text-align: center;
  margin: 10px 0;
}

.phrd-donate .bank-done {
  width: 100%;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background: #1f5f8b;
  color: #fff;
}

.phrd-donate .bank-done:disabled {
  background: #93b3c8;
  cursor: not-allowed;
}