/* Donations Phase 2 - Visual Presentation Styling */

:root {
  --emerald-dark: #08241a;
  --emerald-main: #0e3d2e;
  --emerald-subtle: #144d3b;
  --emerald-light: #e8f0ec;
  --gold-primary: #c49826;
  --gold-accent: #d4af37;
  --gold-soft: #f4e8c1;
  --gold-bg: #fffbf0;
  --ivory-bg: #FAF8F5;
  --surface-card: #ffffff;
  --surface-warm: #FAF7F2;
  --text-primary: #1a2e26;
  --text-muted: #52685e;
  --border-light: #E6E0D4;
  --border-emerald: #b8d1c6;
  --border-gold: rgba(196, 152, 38, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(11, 51, 38, 0.04);
  --shadow-md: 0 6px 20px rgba(11, 51, 38, 0.07);
}

body {
  background: var(--ivory-bg) !important;
  color: var(--text-primary) !important;
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
  margin: 0;
}

/* Container */
.don-shell {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.don-main-padding {
  padding: 24px 0 56px;
}

/* ==========================================================================
   Hero Section (Unified in site-hero-phase2.css)
   ========================================================================== */

/* ==========================================================================
   Trust Strip
   ========================================================================== */
.don-trust-strip {
  margin: 24px 0 32px;
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .don-trust-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.don-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 4px 8px;
}

.don-trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-light);
}

@media (max-width: 768px) {
  .don-trust-item::after {
    display: none;
  }
}

.don-trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.don-trust-text {
  display: flex;
  flex-direction: column;
}

.don-trust-title {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--emerald-dark);
  margin-bottom: 2px;
}

.don-trust-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Main 2-Column Grid (Form + Payment Info)
   ========================================================================== */
.don-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .don-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Base */
.don-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.don-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--emerald-dark);
  font-size: 1.15rem;
  font-weight: 800;
}

.don-card-subtitle {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* ==========================================================================
   Form Styling (Right Column)
   ========================================================================== */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-weight: 750;
  color: var(--emerald-dark);
  font-size: 0.88rem;
  margin-bottom: 5px;
}

.input-field {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  background: #ffffff !important;
  font: inherit !important;
  font-size: 0.90rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  border-color: var(--gold-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(196, 152, 38, 0.18) !important;
}

textarea.input-field {
  resize: vertical;
  min-height: 80px;
}

.amount-input-wrap {
  position: relative;
  background: var(--gold-bg);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gold-primary);
  margin-bottom: 16px;
}

.amount-input-wrap label {
  color: var(--emerald-dark);
  font-weight: 800;
  font-size: 0.94rem;
  margin-bottom: 6px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 550px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

.form-section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  color: var(--emerald-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.btn-primary-don {
  width: 100%;
  min-height: 46px;
  border-radius: var(--radius-sm);
  background: var(--emerald-main);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.96rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(11, 51, 38, 0.15);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-don:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 51, 38, 0.2);
}

.form-trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.80rem;
}

/* ==========================================================================
   Payment Method & Bank Details (Left Column)
   ========================================================================== */
.payment-tabs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-tab-btn {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 750;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.payment-tab-btn.active {
  border-color: var(--gold-primary);
  background: var(--gold-bg);
  color: var(--emerald-dark);
  font-weight: 800;
}

.payment-tab-btn:hover:not(.active) {
  border-color: var(--border-emerald);
  background: var(--surface-warm);
}

/* Hide actual radio select visually but keep accessible for form post */
.django-payment-radios {
  display: none;
}

/* Bank Account Container */
.bank-info-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bank-section-title {
  margin: 0 0 2px;
  color: var(--emerald-dark);
  font-size: 0.96rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bank-section-sub {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.bank-card-item {
  position: relative;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
  border: 1px solid var(--border-light);
}

.bank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(230, 224, 212, 0.8);
}

.bank-card-title {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--emerald-dark);
  margin: 0;
}

.btn-copy-clip {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
}

.btn-copy-clip:hover {
  background: var(--gold-soft);
  color: #5c4509;
  border-color: var(--gold-primary);
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.84rem;
}

.bank-row:last-child {
  margin-bottom: 0;
}

.bank-row span {
  color: var(--text-muted);
}

.bank-row strong {
  color: var(--emerald-dark);
  font-family: monospace, Tahoma, sans-serif;
}

.bank-notice-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--gold-bg);
  border: 1px solid var(--gold-primary);
  color: var(--emerald-dark);
  font-size: 0.82rem;
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Online Payment Message */
.online-payment-box {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-dark);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ==========================================================================
   Bottom Religious / Hospitality Closing Banner
   ========================================================================== */
.don-closing-strip {
  margin-top: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
}

@media (max-width: 768px) {
  .don-closing-strip {
    grid-template-columns: 1fr;
  }
}

.don-closing-right {
  padding: 18px 24px;
  background: var(--surface-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left: 1px solid var(--border-light);
}

.don-closing-right h2 {
  margin: 0;
  color: var(--emerald-dark);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
}

.don-closing-left {
  padding: 18px 24px;
  background: var(--emerald-main);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.don-closing-left p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--gold-soft);
}
