.donate-page { min-height: 100vh; color: var(--brand-text); background: var(--brand-surface); font-family: "Roboto", sans-serif; }
.donate-header, .donate-hero, .donate-impact, .donate-contact { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.donate-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.donate-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.donate-brand img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 50%; padding: 5px; box-shadow: 0 5px 14px rgba(88, 64, 3, .13); }
.donate-brand span { display: grid; gap: 2px; }
.donate-brand strong { color: var(--brand-primary); font-family: "Noto Serif Oriya", serif; font-size: 1.08rem; }
.donate-brand small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.donate-home-link { color: var(--brand-primary-dark); font-weight: 700; text-decoration: none; }
.donate-home-link:hover { color: var(--brand-primary); }
.donate-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 480px; overflow: hidden; border-radius: 28px; background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%); color: #fff; }
.donate-hero__content { padding: clamp(42px, 7vw, 86px); }
.donate-eyebrow { display: inline-block; color: #b58710; font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.donate-hero .donate-eyebrow { color: #f7d56b; }
.donate-hero h1, .donate-impact h2, .donate-contact h2 { margin: 13px 0 18px; font-family: "Noto Serif Oriya", serif; font-weight: 700; line-height: 1.15; }
.donate-hero h1 { font-size: clamp(2.25rem, 4.7vw, 4rem); }
.donate-hero p { max-width: 550px; margin-bottom: 27px; color: #fbf4dc; font-size: 1.06rem; line-height: 1.7; }
.donate-primary { display: inline-block; padding: 13px 25px; border-radius: 999px; background: var(--brand-accent); color: #fff; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.donate-primary:hover { transform: translateY(-2px); background: var(--brand-primary); color: #fff; box-shadow: 0 6px 18px rgba(140, 106, 61, 0.22); }
.donate-hero__image { height: 100%; min-height: 390px; }
.donate-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: luminosity; opacity: .84; }
.donate-impact { padding: 95px 0; }
.donate-section-heading { max-width: 600px; }
.donate-impact h2, .donate-contact h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.impact-grid article { min-height: 215px; padding: 28px; border: 1px solid #eadfca; border-radius: 17px; background: #fff; box-shadow: 0 10px 25px rgba(83, 62, 15, .05); }
.impact-grid span { color: #ba8a0b; font-weight: 700; letter-spacing: .08em; }
.impact-grid h3 { margin: 24px 0 10px; font-family: "Noto Serif Oriya", serif; font-size: 1.28rem; }
.impact-grid p, .donate-contact p { margin: 0; color: #6b5b4a; line-height: 1.65; }
.donate-contact { display: grid; grid-template-columns: 1fr .86fr; gap: clamp(36px, 8vw, 100px); align-items: center; margin-bottom: 80px; padding: clamp(34px, 6vw, 70px); border-radius: 25px; background: linear-gradient(135deg, rgba(241, 199, 101, 0.2), rgba(248, 242, 231, 0.96)); }
.donate-contact__card { display: grid; gap: 19px; padding: 28px; border-radius: 17px; background: #fff; box-shadow: 0 10px 28px rgba(83, 62, 15, .09); }
.donate-contact__card > a:not(.donate-primary) { color: #4d3c25; font-weight: 700; text-decoration: none; }
.donate-contact__card span { display: block; margin-bottom: 4px; color: #9d7410; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.donate-primary--small { text-align: center; }
.donate-footer { padding: 25px 20px; color: #f9f2df; background: var(--brand-primary-dark); text-align: center; }
.donate-footer p { margin: 0; font-size: .9rem; }

/* Modal Styling */
.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.donate-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.donate-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 10, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.donate-modal__container {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 36px);
  box-shadow: 0 25px 50px -12px rgba(45, 30, 5, 0.35);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #ebd9b4;
}

.donate-modal.is-active .donate-modal__container {
  transform: translateY(0) scale(1);
}

.donate-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #f4ecdc;
  color: #5c450c;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.donate-modal__close:hover {
  background: #e6d3af;
  transform: rotate(90deg);
}

.donate-modal__header {
  margin-bottom: 24px;
}

.donate-modal__header h2 {
  font-family: "Noto Serif Oriya", serif;
  font-size: 1.75rem;
  color: #3f3428;
  margin: 6px 0 10px;
}

.donate-modal__header p {
  color: #6b5b4a;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Account Details Card */
.account-details-card {
  background: linear-gradient(135deg, #fffaf0 0%, #f6ebce 100%);
  border: 1px solid #e5c986;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(114, 87, 11, 0.08);
}

.account-details-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #d6b76c;
}

.account-details-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.account-details-header h3 {
  font-family: "Noto Serif Oriya", serif;
  margin: 0;
  font-size: 1.1rem;
  color: #72570b;
}

.account-details-header p {
  margin: 0;
  font-size: 0.78rem;
  color: #8c6a0c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.account-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.account-info-item {
  display: flex;
  flex-direction: column;
}

.account-info-item--full {
  grid-column: 1 / -1;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ebd297;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8c734b;
  margin-bottom: 4px;
  font-weight: 600;
}

.info-value {
  font-size: 0.98rem;
  color: #2b2214;
  font-weight: 700;
}

.account-number-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-number-text {
  font-size: 1.35rem;
  font-family: monospace, sans-serif;
  letter-spacing: 0.1em;
  color: #72570b;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #72570b;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: #574105;
}

.copy-btn.copied {
  background: #2e7d32;
}

/* Modal Form */
.donate-modal__form h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: #3f3428;
}

.form-instructions {
  font-size: 0.88rem;
  color: #6b5b4a;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4a3d2e;
  margin-bottom: 6px;
}

.form-group label .required {
  color: #c62828;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d4c5a9;
  border-radius: 10px;
  font-size: 0.98rem;
  background: #fffdf9;
  color: #2b2214;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #b58710;
  box-shadow: 0 0 0 3px rgba(181, 135, 16, 0.2);
}

.donate-form-status {
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.donate-form-status.is-pending {
  color: #8c6a0c;
}

.donate-form-status.is-error {
  color: #c62828;
}

.donate-submit-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  background: #72570b;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(114, 87, 11, 0.25);
}

.donate-submit-btn:hover {
  background: #594406;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(114, 87, 11, 0.35);
}

.donate-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success View */
.donate-success-view {
  text-align: center;
  padding: 20px 10px;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: bold;
}

.donate-success-view h3 {
  font-family: "Noto Serif Oriya", serif;
  font-size: 1.6rem;
  color: #2b2214;
  margin-bottom: 12px;
}

.donate-success-view p {
  color: #594b3a;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Dark Mode Support */
html[data-theme="dark"] .donate-page { color: #eee4d1; background: #211c16; }
html[data-theme="dark"] .donate-home-link { color: #f4d261; }
html[data-theme="dark"] .donate-impact h2, html[data-theme="dark"] .donate-contact h2 { color: #f8ecd3; }
html[data-theme="dark"] .impact-grid article, html[data-theme="dark"] .donate-contact__card { background: #30281e; border-color: #514536; box-shadow: none; }
html[data-theme="dark"] .impact-grid p, html[data-theme="dark"] .donate-contact p { color: #cfc1aa; }
html[data-theme="dark"] .donate-contact { background: #2a231a; }
html[data-theme="dark"] .donate-contact__card > a:not(.donate-primary) { color: #f1e6ce; }

html[data-theme="dark"] .donate-modal__container {
  background: #282119;
  border-color: #4a3d2e;
  color: #eedfca;
}

html[data-theme="dark"] .donate-modal__close {
  background: #3c3227;
  color: #f4d261;
}

html[data-theme="dark"] .donate-modal__close:hover {
  background: #504334;
}

html[data-theme="dark"] .donate-modal__header h2,
html[data-theme="dark"] .donate-modal__form h3 {
  color: #f7ebd7;
}

html[data-theme="dark"] .donate-modal__header p,
html[data-theme="dark"] .form-instructions {
  color: #c4b59f;
}

html[data-theme="dark"] .account-details-card {
  background: linear-gradient(135deg, #352b1f 0%, #292116 100%);
  border-color: #59471d;
}

html[data-theme="dark"] .account-details-header h3 {
  color: #f4d261;
}

html[data-theme="dark"] .account-info-item--full {
  background: #1f1912;
  border-color: #4d3e26;
}

html[data-theme="dark"] .info-value {
  color: #f3e9d8;
}

html[data-theme="dark"] .account-number-text {
  color: #f4d261;
}

html[data-theme="dark"] .form-group label {
  color: #e6d8c3;
}

html[data-theme="dark"] .form-group input {
  background: #1d1812;
  border-color: #4a3d2e;
  color: #f4ebd9;
}

html[data-theme="dark"] .form-group input:focus {
  border-color: #f4d261;
  box-shadow: 0 0 0 3px rgba(244, 210, 97, 0.2);
}

html[data-theme="dark"] .donate-submit-btn {
  background: #f4d261;
  color: #3e3002;
}

html[data-theme="dark"] .donate-submit-btn:hover {
  background: #ffe382;
}

/* Responsive */
@media (max-width: 760px) {
  .donate-header { min-height: 78px; }
  .donate-brand small { display: none; }
  .donate-hero, .donate-contact { grid-template-columns: 1fr; }
  .donate-hero__content { padding: 46px 30px; }
  .donate-hero__image { min-height: 270px; grid-row: 1; }
  .impact-grid { grid-template-columns: 1fr; }
  .donate-impact { padding: 68px 0; }
  .donate-contact { margin-bottom: 55px; }
  
  .account-info-grid { grid-template-columns: 1fr; }
  .donate-modal__container { padding: 22px 18px; }
}

@media (max-width: 430px) {
  .donate-header, .donate-hero, .donate-impact, .donate-contact { width: min(100% - 28px, 1120px); }
  .donate-brand strong { font-size: .93rem; }
  .donate-home-link { font-size: .86rem; }
}
