/* =============================================
   Oss Ulu Donaties - Frontend Styles
   Diyanet Blue Theme — #163060 / #2563eb
   ============================================= */

.oud-donation-wrapper {
  max-width: 680px;
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ─── Alerts ──────────────────────────────── */
.oud-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  border-left: 4px solid;
}
.oud-alert-success { background: #dbeafe; border-color: #2563eb; color: #1e3a8a; }
.oud-alert-error   { background: #f8d7da; border-color: #dc3545; color: #721c24; }
.oud-alert-icon    { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

/* ─── Form Header ─────────────────────────── */
.oud-form-header {
  text-align: center;
  margin-bottom: 0;
  padding: 28px 24px 24px;
  background: linear-gradient(135deg, #163060, #2563eb);
  border-radius: 12px 12px 0 0;
  color: #fff;
}

/* ─── Title row: icon + title side by side ──── */
.oud-form-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.oud-form-icon { font-size: 2.5rem; margin-bottom: 0; line-height: 1; }

.oud-form-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.oud-form-description {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ─── Donation form inner padding ─────────── */
.oud-donation-form {
  padding: 24px 24px 8px;
}
.oud-confirm-panel { margin: 0; }

/* ─── Form Sections ───────────────────────── */
.oud-form-section {
  margin-bottom: 28px;
}

.oud-section-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #163060;
  margin-bottom: 14px;
}

/* ─── Amount Grid ─────────────────────────── */
.oud-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.oud-amount-btn {
  padding: 12px 10px;
  background: #fff;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-size: 0.79rem;
  font-weight: 700;
  color: #2c2c2c;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.oud-amount-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}
.oud-amount-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.oud-amount-custom {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}

/* ─── Custom Amount Input ─────────────────── */
.oud-custom-amount-wrapper {
  margin-top: 10px;
}

.oud-input-prefix-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #2563eb;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f6ff;
}

.oud-input-prefix {
  background: #2563eb;
  color: #fff;
  padding: 12px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.oud-custom-input {
  flex: 1;
  border: none !important;
  padding: 12px 16px !important;
  font-size: 1.1rem !important;
  background: transparent !important;
  outline: none;
  font-family: inherit;
}
.oud-custom-input:focus { box-shadow: none; }

/* ─── Standard Input ──────────────────────── */
.oud-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #2c2c2c;
  transition: border-color 0.2s;
  background: #fff;
  box-sizing: border-box;
}
.oud-input:focus {
  outline: none;
  border-color: #2563eb;
}

textarea.oud-input { resize: vertical; min-height: 90px; }

/* ─── Form Row (2-col) ────────────────────── */
.oud-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.oud-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

/* ─── Checkbox ────────────────────────────── */
.oud-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
}
.oud-checkbox-label input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

/* ─── Submit ──────────────────────────────── */
.oud-submit-section { text-align: center; padding-bottom: 8px; }

.oud-submit-btn {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, #163060, #2563eb);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.oud-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,99,235,0.5);
}
.oud-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.oud-secure-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 520px) {
  .oud-amount-grid  { grid-template-columns: 1fr 1fr; }
  .oud-form-row     { grid-template-columns: 1fr; }
  .oud-form-header  { padding: 24px 16px; }
  .oud-form-title   { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════
   DONATIE PLUGIN — Mobile responsive
   ═══════════════════════════════════════════ */
@media (max-width: 680px) {
  .oud-donation-wrapper {
    padding: 0;
  }
  /* Form inner padding smaller on mobile */
  .oud-donation-form {
    padding: 16px 16px 8px;
  }
  .oud-form-header {
    padding: 20px 16px 14px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
  }
  .oud-form-title-row { gap: 8px; margin-bottom: 8px; }
  .oud-form-icon { font-size: 2rem; }
  .oud-form-title { font-size: 1.1rem; }
  .oud-form-description { font-size: 0.85rem; }

  /* Bedragknoppen: 3 per rij, grote touch targets */
  .oud-amount-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .oud-amount-btn {
    padding: 13px 4px;
    font-size: 0.88rem;
    min-height: 50px;
    border-radius: 8px;
  }

  /* Eigen bedrag invoer */
  .oud-custom-amount-wrapper { margin-top: 8px; }
  .oud-custom-input { font-size: 1.1rem; padding: 13px 14px; }

  /* Formulier velden */
  .oud-form-row { grid-template-columns: 1fr; gap: 12px; }
  .oud-input {
    font-size: 1rem;
    padding: 13px 14px;
    border-radius: 8px;
  }
  .oud-section-label { font-size: 0.75rem; }

  /* Verzendknop */
  .oud-submit-btn {
    padding: 16px 20px;
    font-size: 1rem;
    min-height: 56px;
    border-radius: 10px;
  }
  .oud-secure-note { font-size: 0.75rem; margin-top: 10px; }

  /* Succes/fout berichten */
  .oud-notice { font-size: 0.9rem; padding: 14px 16px; }
}

@media (max-width: 400px) {
  /* Bedragknoppen 2 per rij op heel kleine schermen */
  .oud-amount-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Sidebar layout verbergen op mobiel */
@media (max-width: 900px) {
  .doneren-layout {
    grid-template-columns: 1fr !important;
  }
  .doneren-sidebar {
    display: none;
  }
}

/* ── Step numbers ─────────────────────────────────────── */
.oud-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ── Category grid ───────────────────────────────────────── */
.oud-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.oud-category-btn {
  padding: 7px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  color: #444;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.oud-category-btn.active,
.oud-category-btn:hover {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

/* ── Payment methods grid ─────────────────────────────────── */
.oud-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.oud-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
  color: #333;
}
.oud-method-btn img {
  width: 40px;
  height: 26px;
  object-fit: contain;
}
.oud-method-btn.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #163060;
  font-weight: 600;
}
.oud-method-btn:hover:not(.active) {
  border-color: #aaa;
  background: #fafafa;
}

/* ── Transaction cost row ─────────────────────────────────── */
.oud-transaction-cost-row {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
}
.oud-cost-label {
  font-size: 0.85rem;
  color: #555;
  align-items: flex-start;
  gap: 8px;
}
.oud-total-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #333;
}
.oud-total-display strong {
  font-size: 1.1rem;
  color: #2563eb;
}

/* ── Result screens (success / cancel / failed / expired / pending) ── */
.oud-result-screen {
  text-align: center;
  padding: 48px 24px;
}
.oud-result-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}
.oud-result-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #163060;
}
.oud-result-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 16px;
}
.oud-result-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  color: #2563eb;
  margin: 16px 0 28px;
  direction: rtl;
}
/* Failed/expired/pending screen accent colors */
.oud-result-failed  .oud-result-title { color: #c0392b; }
.oud-result-expired .oud-result-title { color: #e67e22; }
.oud-result-pending .oud-result-title { color: #2563eb; }

.oud-btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #2563eb;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.oud-btn-primary:hover { background: #1a4dcc; }
.oud-btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  border: 2px solid #2563eb;
  color: #2563eb;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.oud-btn-secondary:hover { background: #2563eb; color: #fff; }

/* ── Success screen: extra ruimte boven 'Nog een donatie doen' knop (SCRUM-30) */
.oud-result-success .oud-btn-secondary {
  margin-top: 24px;
}

/* ── Recent donations list ────────────────────────────────── */
.oud-recent-donations {
  width: 100%;
}
.oud-recent-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #163060;
  margin-bottom: 12px;
}
.oud-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oud-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  animation: oudFadeIn 0.4s ease;
}
.oud-recent-item.oud-recent-empty {
  color: #999;
  font-style: italic;
  justify-content: center;
}
.oud-recent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #163060, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  text-transform: uppercase;
}
.oud-recent-info {
  flex: 1;
  min-width: 0;
}
.oud-recent-info strong {
  display: block;
  font-size: 0.9rem;
  color: #163060;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oud-recent-cat {
  font-size: 0.75rem;
  color: #888;
}
.oud-recent-right {
  text-align: right;
  flex-shrink: 0;
}
.oud-recent-amount {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #2563eb;
}
.oud-recent-time {
  display: block;
  font-size: 0.72rem;
  color: #aaa;
}
@keyframes oudFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .oud-methods-grid { grid-template-columns: repeat(2, 1fr); }
  .oud-recent-cat { display: none; }
}

/* ── Bağış türü — Radio group ─────────────────────────────── */
.oud-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.oud-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #2c2c2c;
  font-weight: 500;
}
.oud-radio-label input[type=radio] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Ek seçenekler — Extra options ───────────────────────── */
.oud-extra-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.oud-extra-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.oud-extra-option:has(input:checked) {
  border-color: #2563eb;
  background: #f0f6ff;
}
.oud-extra-option input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.oud-extra-option-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.oud-extra-option-body strong {
  font-size: 0.92rem;
  color: #1e293b;
  font-weight: 600;
}
.oud-extra-option-body span {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.4;
}

/* ── Required asterisk ───────────────────────────────────── */
.oud-required {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}

/* ── Optioneel label ─────────────────────────────────────── */
.oud-optional {
  font-weight: 400;
  font-size: 0.82em;
  color: #9ca3af;
  font-family: inherit;
  font-style: normal;
  letter-spacing: 0;
}

/* ── Confirmation panel ───────────────────────────────────── */
.oud-confirm-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  overflow: hidden;
  animation: oudFadeIn 0.3s ease;
}

.oud-confirm-header {
  text-align: center;
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, #163060, #2563eb);
  color: #fff;
}
.oud-confirm-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.oud-confirm-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.oud-confirm-subtitle {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  margin: 0;
}

/* ── Summary rows ─────────────────────────────────────────── */
.oud-confirm-rows {
  padding: 8px 0;
}
.oud-confirm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.92rem;
}
.oud-confirm-row:last-child { border-bottom: none; }

.oud-confirm-row-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.oud-confirm-row-label {
  flex: 1;
  color: #555;
  font-weight: 500;
}
.oud-confirm-row-value {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
}

/* Total row highlighted */
.oud-confirm-row--total {
  background: #eff6ff;
  border-top: 2px solid #2563eb;
  border-bottom: 2px solid #2563eb;
  padding-top: 14px;
  padding-bottom: 14px;
}
.oud-confirm-row--total .oud-confirm-row-label {
  color: #163060;
  font-weight: 700;
  font-size: 1rem;
}
.oud-confirm-row--total .oud-confirm-row-value {
  color: #2563eb;
  font-size: 1.15rem;
  font-weight: 800;
}

/* ── Action buttons ───────────────────────────────────────── */
.oud-confirm-actions {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  background: #f8f9fa;
  border-top: 1px solid #e8e8e8;
}
.oud-confirm-back {
  flex: 1;
  padding: 13px 16px;
  background: #fff;
  border: 2px solid #d0d0d0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.oud-confirm-back:hover {
  border-color: #2563eb;
  color: #2563eb;
}
.oud-confirm-pay {
  flex: 2;
  padding: 13px 20px;
  background: linear-gradient(135deg, #163060, #2563eb);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.oud-confirm-pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}
.oud-confirm-pay:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 480px) {
  .oud-confirm-actions { flex-direction: column; }
  .oud-confirm-row { padding: 10px 16px; }
  .oud-confirm-header { padding: 20px 16px 16px; }
}

/* ── Donor fields section on confirmation screen ─────────── */
.oud-confirm-donor-section {
  border-top: 2px solid #e8e8e8;
  padding: 20px 24px 4px;
}
.oud-confirm-donor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #163060;
  margin-bottom: 16px;
}
.oud-confirm-donor-body .oud-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: block;
}
.oud-confirm-donor-body {
  padding-bottom: 8px;
}

/* ── Toon meer toggle button ─────────────────────────────── */
.oud-methods-toggle {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 9px 14px;
  background: none;
  border: 1.5px dashed #c0c0c0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.oud-methods-toggle:hover {
  border-color: #2563eb;
  background: #f0f6ff;
}

/* Secondary methods grid uses same styles but smaller gap on mobile */
.oud-methods-secondary {
  border-top: 1.5px dashed #e0e0e0;
  padding-top: 10px;
}
