/* ============================================================
   donate.css  —  Donate Page Specific Styles
   NGO Theme · Jeevika Trust
   Depends on: variables.css, global.css, header-footer.css
   ============================================================ */

/* ── WRAPPER ── */
.page-wrap {
  width: 100%;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════════════════════════════ */
.left-panel {
  background: var(--color-white);
  padding: clamp(28px, 6vw, 52px) clamp(20px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100vh;
}

/* Headings */
.form-heading {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  max-width: 540px;
  line-height: 1.4;
}
.form-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Amount tiles ── */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.amt-btn {
  border: 1.5px solid var(--border, #e0d8d0);
  background: #fff;
  border-radius: 10px;
  padding: 12px 6px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  white-space: nowrap;
}
.amt-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.amt-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light, #fff0e8);
  color: var(--color-primary);
}

/* ── Custom amount ── */
.custom-wrap {
  position: relative;
  margin-bottom: 16px;
}
.custom-wrap .rupee {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}
.custom-input {
  width: 100%;
  border-radius: 10px;
  padding: 13px 16px 13px 30px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s;
  border: 1px solid #eaeaea;
  background: #f7f7f7;
  color: #7f7f7f;
}
.custom-input:focus        { border-color: var(--color-primary); }
.custom-input::placeholder { color: #c0b8b0; }

/* ── Field group (label + input together) ── */
.field-group { display: flex; flex-direction: column; }

/* ── Two-column row ── */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0; /* each field-input carries its own mb */
}

/* ── Labels ── */
.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #262524e0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── Inputs / Selects / Textarea ── */
.field-input {
  width: 100%;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s;
  margin-bottom: 16px;
  border: 1px solid #eaeaea;
  background: #f7f7f7;
  color: #7f7f7f;
}
.field-input:focus        { border-color: var(--color-primary); }
.field-input::placeholder { color: #c0b8b0; }

/* City — constrained on large screens */
.field-input--city { max-width: 220px; }

select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A6F68' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea.field-input {
  resize: vertical;
  min-height: 80px;
}

/* ── Donate button ── */
.donate-btn {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s, transform 0.1s;
  margin-bottom: 16px;
}
.donate-btn:hover        { background: var(--color-primary-dark); transform: translateY(-1px); }
.donate-btn:active       { transform: translateY(0); }
.donate-btn:focus-visible {
  outline: 3px solid var(--color-secondary, #fe941a);
  outline-offset: 2px;
}

/* ── Trust bar ── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-item svg { color: #22c55e; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════════════════════════════ */
.right-panel {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Mobile: right panel shows as a banner strip ABOVE the form */
@media (max-width: 991px) {

  .right-panel {
    min-height: 340px;
  }
  
  .testimonial {
    display: none; /* hide on small screens to keep panel compact */
  }
  .deco-circle { display: none; }
}

.right-panel img.ngo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Dark scrim so text is readable */
.right-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

/* Testimonial */
.testimonial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 20px 22px;
}
.testimonial-text {
  font-size: clamp(0.82rem, 1.4vw, 0.88rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.author-name { font-size: 0.82rem; color: #fff; font-weight: 600; }
.author-role { font-size: 0.73rem; color: rgba(255,255,255,0.45); }

/* Decorative circles */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.deco-circle.c1 {
  width: 320px;
  height: 320px;
  border: 1px solid rgba(232,98,42,0.12);
  bottom: -80px;
  right: -80px;
}
.deco-circle.c2 {
  width: 180px;
  height: 180px;
  border: 1px solid rgba(232,98,42,0.18);
  bottom: 20px;
  right: 20px;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════════════════════ */

/* ── Small phones (≤ 400px) ── */
@media (max-width: 400px) {
  .amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .field-input--city {
    max-width: 100%;
  }
  .trust-bar {
    gap: 10px;
  }
}

/* ── Phones (401px – 575px) ── */
@media (min-width: 401px) and (max-width: 575px) {
  .amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .field-input--city {
    max-width: 100%;
  }
}

/* ── Large phones / portrait tablets (576px – 991px) ── */
@media (min-width: 576px) and (max-width: 991px) {
  .amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .left-panel {
    min-height: unset;
  }
}

/* ── Large (992px – 1199px) ── */
@media (min-width: 992px) and (max-width: 1199px) {
  .amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .right-panel {
    min-height: 100vh;
  }
}

/* ── XL (≥ 1400px) ── */
@media (min-width: 1400px) {
  .left-panel {
    padding: 56px 64px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .donate-btn,
  .amt-btn,
  .custom-input,
  .field-input {
    transition: none;
  }
}