
body.donate-theme {
  background-color: #f4e6ff; /* Light purple background */
}

/* Page wrapper matches other pages */
.page {
  min-height: 100vh;
  background: #ffffff;
  padding: 0 1rem 2rem;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 0.75rem 0.75rem;
}

/* Header */

.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid #d6c4e8; /* purple tint */
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  margin: 0;
  font-size: 1.4rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.logo {
  width: 48px;
}

/* Navigation */
.primary-nav ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.primary-nav a {
  display: inline-block;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  background: #f0e1ff; /* pale purple */
  border-radius: 999px;
  color: #5a2f96;
}

.primary-nav a:hover,
.primary-nav a:focus {
  background: #e7ceff;
}

.primary-nav a[aria-current="page"] {
  background: #7a3cbc;  /* strong purple */
  color: white;
}

/* Hero */

.donate-hero {
  background: url("images/fox.jpg") center/cover no-repeat;
  padding: 4rem 1rem;
  border-radius: 0.75rem;
  margin: 1rem 0;
  color: white;
  text-align: center;
}

.hero-text a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
}

/* Form Layout */

.wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Fieldsets */
fieldset {
  border: 2px solid #e0cfff;
  padding: 1rem 1.2rem;
  border-radius: 0.6rem;
  background: #faf4ff; /* soft lavender */
}

legend {
  padding: 0 0.5rem;
  font-weight: bold;
  font-size: 1.05rem;
  color: #5b2a8c;
}

/* Inline grid */
.inline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inline > div {
  flex: 1;
}

/* Inputs */
label {
  font-weight: 600;
  color: #4f2975;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid #c7b4e1;
  margin-top: 0.25rem;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8f4edb;
  outline-offset: 1px;
}

/* Toggle buttons (Frequency) */
.toggles {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.toggle {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #cab5e9;
  background: #f5ebff;
  cursor: pointer;
}

.toggle input {
  margin-right: 0.3rem;
}

/* Amount chips */
.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: #f1e4ff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #cbb3f1;
  cursor: pointer;
}

.chip input {
  margin-right: 0.3rem;
}

/* Other Amount */
.other-wrap {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

#otherradio:checked ~ .other-wrap {
  display: flex;
}

/* Notes */
.note {
  font-size: 0.9rem;
  color: #6a518b;
}

/* Progress Bar */

.goal-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.progress {
  height: 20px;
  background: #e2d2f8;
  border-radius: 10px;
  overflow: hidden;
}

.bar {
  width: 74%; /* 18,460 / 25,000 */
  background: linear-gradient(90deg, #9b4bdf, #6c27b8);
  height: 100%;
}

/* Summary & Buttons */

.summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f3e6ff;
  padding: 1rem;
  border-radius: 0.6rem;
  margin-top: 1rem;
  border: 1px solid #d8baff;
}

.btn {
  background: #7a3cbc;
  color: white;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  background: #682fa1;
}

.btn.secondary {
  background: #d7c1f5;
  color: #422364;
}

.btn.secondary:hover {
  background: #c8acf0;
}

#impact ul {
  padding-left: 1.3rem;
}

/* Back to top */
.back-to-top {
  margin-top: 2rem;
  text-align: right;
  text-decoration: none;
  font-size: 0.9rem;
  color: #7a3cbc;
}

/* ≥590px */
@media (min-width: 590px) {
  .primary-nav ul {
    flex-direction: row;
    justify-content: flex-end;
  }

  .inline {
    flex-direction: row;
  }

  .inline > div {
    flex: 1;
  }
}

/* ≥790px */
@media (min-width: 790px) {
  body.donate-theme {
    background-color: #edd8ff; /* Purple outer background */
  }

  .page {
    max-width: 790px;
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  }
}