/* =====================================================================
   Quick Donate form — donation.php
   Uses the tokens from iskcon.css (--navy, --navy-2, --gold, --gold-2,
   --cream, --cream-2, --ink, --muted, --line, --radius).  Prefix: dn-
   Re-uses .sv-page / .sv-breadcrumb / .sv-notfound from seva.css.
   ===================================================================== */

.dn-wrap {
  padding: 54px 0px;
}
.dn-crumb {
  color: var(--muted);
  margin: 0 0 18px;
}
.dn-crumb a:hover {
  color: var(--saffron);
}
.dn-crumb [aria-current] {
  color: var(--ink);
}
.dn-title {
  font-size: clamp(32px, 4.4vw, 48px);
  margin: 0 0 10px;
  color: var(--ink);
}
.dn-intro {
  max-width: 980px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dn-alert {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid #e5b4aa;
  background: #fdf0ed;
  color: #8a2c1d;
  border-radius: 12px;
  font-size: 14px;
}

.dn-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* ---------- Left card ---------- */
.dn-seva {
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 18px;
  overflow: hidden;
}
.dn-seva img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.dn-seva__body {
  padding: 18px 20px 20px;
}
.dn-seva__body h2 {
  font-size: 22px;
  margin: 0 0 14px;
  color: var(--ink);
}
.dn-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}
.dn-note strong {
  color: var(--navy);
}
.dn-80g {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--gold);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- Form ---------- */
.dn-form {
  min-width: 0;
}
.dn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-bottom: 16px;
}
.dn-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dn-field > label,
.dn-pay legend {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 7px;
}
.dn-field > label i {
  color: #b3261e;
  font-style: normal;
}
.dn-field > label small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
}

.dn-form input[type="text"],
.dn-form input[type="tel"],
.dn-form input[type="email"],
.dn-select select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.dn-form input::placeholder {
  color: #9aa1b3;
}
.dn-form input:focus,
.dn-select select:focus {
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(16, 38, 77, 0.12);
}
.dn-field.has-error input,
.dn-field.has-error select {
  border-color: #c4473a;
}
.dn-error {
  margin-top: 6px;
  font-size: 12.5px;
  color: #b3261e;
}

.dn-select {
  position: relative;
}
.dn-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}
.dn-select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.dn-amount {
  position: relative;
}
.dn-amount__sym {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--ink);
  pointer-events: none;
}
.dn-amount input {
  padding-left: 30px !important;
}
.dn-amount input[readonly] {
  background: #fff;
  cursor: default;
}

.dn-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.dn-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.dn-check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--navy-2);
  flex: none;
}
.dn-honor {
  margin: -4px 0 16px;
}
.dn-honor[hidden] {
  display: none;
}

/* ---------- Payment method ---------- */
.dn-pay {
  border: 0;
  padding: 0;
  margin: 8px 0 22px;
  min-width: 0;
}
.dn-pay legend {
  padding: 0;
}
.dn-pay__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.dn-pay__grid--single {
  grid-template-columns: minmax(0, 1fr);
}
.dn-pay__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.dn-pay__opt em {
  font-style: normal;
  color: var(--muted);
}
.dn-pay__opt input {
  accent-color: var(--navy-2);
  width: 16px;
  height: 16px;
  flex: none;
}
.dn-pay__opt:has(input:checked) {
  background: #eee9e1;
  border-color: var(--navy-2);
}

/* ---------- Submit ---------- */
.dn-submit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
}
.dn-btn {
  min-height: 50px;
  padding: 12px 34px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  box-shadow: 0 10px 26px rgba(8, 21, 47, 0.22);
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    opacity 0.15s;
}
.dn-btn:hover {
  transform: translateY(-2px);
}
.dn-btn.is-busy,
.dn-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
.dn-secure {
  font-size: 12px;
  color: var(--muted);
}
.dn-secure i {
  margin-right: 4px;
}

/* ---------- Hand-off page (donation-submit.php) ---------- */
.dn-handoff {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 18px;
  text-align: center;
}
.dn-handoff h1 {
  font-size: 30px;
  margin: 0 0 10px;
}
.dn-handoff p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}
.dn-handoff dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 18px 0;
  padding: 16px 18px;
  text-align: left;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
}
.dn-handoff dt {
  color: var(--muted);
}
.dn-handoff dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
.dn-handoff .dn-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.dn-handoff__warn {
  padding: 10px 14px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--cream-2);
  color: var(--ink) !important;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dn-grid {
    grid-template-columns: 1fr;
  }
  .dn-seva img {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 600px) {
  .dn-row,
  .dn-pay__grid {
    grid-template-columns: 1fr;
  }
  .dn-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .dn-wrap {
    padding: 40px 0px;
  }
}
