@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700&display=swap');

.donation-form-wrap {
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Progress dots */
.df-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.75rem;
}
.df-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C8DEE4;
  transition: background 0.25s;
  display: inline-block;
}
.df-dot.active { background: #5BA8B8; }

/* Steps */
.df-step { display: none; }
.df-step.active { display: block; }

/* Titles */
.df-title {
  font-size: 32px;
  font-weight: 300;
  color: #5BA8B8;
  text-align: center;
  margin-bottom: 1.75rem;
  letter-spacing: 1px;
}
.df-section-title {
  font-size: 24px;
  font-weight: 300;
  color: #5BA8B8;
  text-align: center;
  margin: 1.5rem 0 1rem;
  letter-spacing: 1px;
}

/* Amount buttons */
.df-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.df-amount-btn {
  border: 1.5px solid #5BA8B8;
  background: #fff;
  color: #5BA8B8;
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.df-amount-btn:hover  { background: #EAF5F8; }
.df-amount-btn.selected { background: #C8DEE4; }

/* Bit button */
.df-btn-bit {
  width: 100%;
  border: 1.5px solid #5BA8B8;
  background: #fff;
  color: #333;
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
  transition: background 0.15s;
}
.df-btn-bit:hover { background: #EAF5F8; }
.df-bit-logo {
  font-weight: 700;
  font-size: 18px;
  font-style: italic;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

/* Tax note */
.df-tax-note {
  text-align: center;
  font-size: 13px;
  color: #aaa;
  margin: 12px 0 4px;
}

/* Primary button */
.df-btn-primary {
  width: 100%;
  background: #5BA8B8;
  color: #fff;
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 14px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.15s;
}
.df-btn-primary:hover    { background: #4A95A5; }
.df-btn-primary:disabled { background: #9ECBD5; cursor: not-allowed; }

/* Amount display */
.df-amount-display {
  border: 1.5px solid #C8DEE4;
  background: #EAF5F8;
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  direction: ltr;
}
.df-currency { font-size: 16px; color: #666; }

/* Fields */
.df-field { margin-bottom: 12px; }
.df-label {
  font-size: 14px;
  color: #5BA8B8;
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
  text-align: right;
}
.df-input, .df-select {
  width: 100%;
  border: 1.5px solid #C8DEE4;
  background: #fff;
  color: #333;
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  border-radius: 8px;
  outline: none;
  text-align: right;
  direction: rtl;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.df-input:focus, .df-select:focus { border-color: #5BA8B8; }
.df-input.error, .df-select.error { border-color: #e25555; }
.df-input[dir="ltr"] { text-align: left; direction: ltr; }

/* Select wrapper */
.df-select-wrap { position: relative; }
.df-select-wrap::after {
  content: '▾';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #5BA8B8;
  pointer-events: none;
  font-size: 13px;
}
.df-select { appearance: none; -webkit-appearance: none; }

/* Radio rows */
.df-radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 15px;
  color: #333;
}
.df-radio-row input[type="radio"] {
  accent-color: #5BA8B8;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Two-column row */
.df-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Consent */
.df-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
  margin-top: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.df-consent-row input { accent-color: #5BA8B8; margin-top: 3px; flex-shrink: 0; }

/* Payment method buttons */
.df-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1rem 0;
}
.df-method-btn {
  border: 1.5px solid #5BA8B8;
  background: #fff;
  color: #333;
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.df-method-btn:hover    { background: #EAF5F8; }
.df-method-btn.selected { background: #C8DEE4; }

/* Security logos */
.df-security-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.df-sec-badge {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #555;
}

/* Bit instructions */
.df-bit-instructions {
  text-align: center;
  font-size: 15px;
  color: #555;
  padding: 1.5rem 1rem;
  background: #EAF5F8;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Messages */
.df-msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}
.df-msg.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.df-msg.error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.df-msg.info    { background: #EAF5F8; color: #5BA8B8; border: 1px solid #C8DEE4; }

/* Custom amount */
#df-custom-amount { text-align: left; direction: ltr; }

/* Error label */
.df-error-msg {
  color: #e25555;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

@media (max-width: 480px) {
  .df-row          { grid-template-columns: 1fr; }
  .df-amounts      { grid-template-columns: 1fr 1fr; }
  .df-methods      { grid-template-columns: 1fr 1fr; }
  .df-title        { font-size: 26px; }
  .df-section-title{ font-size: 20px; }
}

/* ─── SUCCESS SCREEN ────────────────────────────────────── */
.df-success-screen {
  text-align: center;
  padding: 2rem 1rem 3rem;
  direction: rtl;
}

.df-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #5BA8B8;
  color: #fff;
  font-size: 36px;
  line-height: 72px;
  margin: 0 auto 1.5rem;
  animation: df-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes df-pop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.df-success-title {
  font-size: 30px;
  font-weight: 300;
  color: #5BA8B8;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.df-success-sub {
  font-size: 16px;
  color: #444;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.df-success-details {
  background: #EAF5F8;
  border: 1.5px solid #C8DEE4;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0 auto 1.25rem;
  max-width: 380px;
  text-align: right;
}

.df-success-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  font-size: 14px;
  color: #333;
  border-bottom: 0.5px solid #C8DEE4;
}

.df-success-row:last-child { border-bottom: none; }

.df-success-lbl {
  color: #5BA8B8;
  font-weight: 500;
  flex-shrink: 0;
  margin-left: 12px;
}

.df-success-note {
  font-size: 13px;
  color: #999;
  margin-top: 0.25rem;
}

/* ─── BACK BUTTON + NAV ROW ─────────────────────────────── */
.df-nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.5rem;
}

.df-btn-next {
  flex: 1;
  margin-top: 0;
}

.df-btn-back {
  flex-shrink: 0;
  background: none;
  border: 1.5px solid #C8DEE4;
  color: #5BA8B8;
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 18px;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.df-btn-back:hover {
  background: #EAF5F8;
  border-color: #5BA8B8;
}

.df-btn-back:active {
  transform: scale(0.98);
}

/* ─── BIT SVG IN BUTTONS ────────────────────────────────── */
.df-btn-bit svg,
.df-method-btn--bit svg {
  height: 1.1em;
  width: auto;
  vertical-align: middle;
  display: inline-block;
  margin-right: 4px;
  fill: currentColor;
}

.df-btn-bit {
  color: #2b6679;
}

.df-method-btn--bit {
  color: #2b6679;
}

.df-method-btn--bit.selected {
  background: #C8DEE4;
  color: #2b6679;
}
