/* ========================================================
   YENİ TASARIM — BAĞIŞ YAP MODALI (2026-09-29)
   Kaynak: webrev2/quick-donate/quick-donate.css. Eski Bootstrap modallarının
   (#bagisyap, #hedeflibagisyap) yerini alıyor; form id'leri ve alan adları
   aynen korundu — arka uç (ajax_function.php?G=1) değişmedi.
   Mockup yalnızca Arapça (RTL) çizilmişti; burada mantıksal özellikler
   (inline-start/end) ile 4 dilde çalışıyor.
   ======================================================== */

html.qd-no-scroll,
html.qd-no-scroll body {
  overflow: hidden;
}
.qd-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 24px;
  background: rgba(15, 24, 28, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.qd-overlay[hidden] {
  display: none;
}
.qd-overlay:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: qdOverlayIn 0.25s ease;
}
@keyframes qdOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.qd-modal {
  position: relative;
  width: min(560px, 100%);
  max-width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 34px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(6, 20, 19, 0.35);
  color: var(--ink);
  font-size: 16px;
  text-align: start;
  animation: qdModalIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes qdModalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.qd-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.qd-close:hover {
  color: var(--ink);
  background: var(--ivory);
}
.qd-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.qd-header {
  margin: 0 0 10px;
  margin-inline-end: 32px;
  min-width: 0;
}
.qd-title {
  display: block;
  margin: 0;
  max-width: 100%;
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  /* 2026-09-30 (revizeler30-09 md.7): uzun proje adı kesilmek yerine alt satıra iner */
  white-space: normal;
  overflow-wrap: anywhere;
}
.qd-title-project {
  font-weight: 800;
  color: var(--teal);
}
.qd-section {
  margin-top: 18px;
}
.qd-section h3 {
  margin: 0 0 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.qd-donor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.qd-field {
  display: block;
  min-width: 0;
  margin: 0;
  font-weight: 400;
}
.qd-field--wide {
  grid-column: 1 / -1;
}
.qd-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.qd-label em {
  color: var(--gold);
  font-style: normal;
}
.qd-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Girdi kutuları */
.qd-input-icon,
.qd-overlay .donate-input,
.qd-select {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.qd-input-icon:focus-within,
.qd-overlay .donate-input:focus-within,
.qd-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 122, 0.12);
}
.qd-overlay .has-error {
  border-color: #d9534f !important;
}
.qd-input-icon > svg {
  width: 16px;
  height: 16px;
  margin-inline-start: 12px;
  color: var(--muted);
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qd-input-icon input,
.qd-overlay .donate-input input {
  flex: 1;
  min-width: 0;
  height: auto;
  border: 0;
  background: transparent;
  padding: 11px;
  font: inherit;
  font-size: 0.83rem;
  color: var(--ink);
  outline: none;
  box-shadow: none;
}
.qd-input-icon input::placeholder,
.qd-overlay .donate-input input::placeholder {
  color: #b3bdbb;
  font-weight: 400;
  opacity: 1;
}
.qd-overlay .donate-input {
  align-items: stretch;
  overflow: hidden;
}
.qd-overlay .donate-input > span {
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  background: var(--ivory);
  border-inline-end: 1px solid var(--line);
}
.qd-overlay .donate-input input {
  font-weight: 700;
}
.qd-select {
  width: 100%;
  padding: 11px;
  font: inherit;
  font-size: 0.83rem;
  color: var(--ink);
  outline: none;
  appearance: auto;
}

/* Telefon: ülke seçici her dilde SOLDA, numara LTR (iletişim/hesabım ile aynı kural) */
.qd-phone-field {
  direction: ltr;
  overflow: visible;
}
.qd-phone-field .country-select {
  order: 1;
  flex: none;
  align-self: stretch;
  border-right: 1px solid var(--line);
}
.qd-phone-field .country-select-btn {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--ivory);
  border: 0;
  border-radius: 10px 0 0 10px;
  font-size: 0.78rem;
  font-weight: 500; /* 2026-10-01 md.8: diğer formlardaki ülke koduyla aynı (700 → 500) */
}
.qd-phone-field .qd-tel-number {
  order: 2;
  direction: ltr;
  text-align: left;
}
.qd-phone-field .country-select-panel {
  width: 270px;
  z-index: 10001;
}

/* Adet satırı: adet × birim = toplam */
.qd-qty-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.qd-qty-row .qd-input-icon {
  width: 110px;
  flex: none;
}
.qd-qty-row .qd-input-icon input {
  text-align: center;
  font-weight: 700;
}
.qd-qty-unit {
  color: var(--muted);
  font-size: 0.82rem;
}
.qd-qty-total {
  margin-inline-start: auto;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--ivory);
  font-size: 0.82rem;
  color: var(--muted);
}
.qd-qty-total strong {
  color: var(--teal);
  font-size: 0.95rem;
}

/* Hedefli bağış seçenekleri */
.qd-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.qd-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
  flex: none;
}
.qd-gift {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--ivory);
}
.qd-gift[hidden] {
  display: none;
}
.qd-gift-persons {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.qd-gift-person {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.qd-gift-person legend {
  width: auto;
  margin: 0;
  padding: 0 6px;
  border: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
}
.qd-gift-person .qd-donor-grid {
  gap: 12px 14px;
}

.qd-footer {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.qd-button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.qd-button:hover {
  transform: translateY(-2px);
}
.qd-button[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
.qd-button-primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 25px rgba(8, 127, 122, 0.25);
}
.qd-button-primary:hover {
  background: var(--teal-dark);
}
.qd-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.qd-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.74rem;
}
.qd-secure svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  .qd-title {
    font-size: 1.05rem;
  }
  .qd-overlay {
    padding: 12px;
  }
  .qd-modal {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .qd-header {
    margin-inline-end: 26px;
  }
  .qd-donor-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .qd-qty-total {
    margin-inline-start: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qd-overlay,
  .qd-modal {
    animation: none !important;
  }
}
/* Bağış Yap modalı bitişi */
