* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.donation-overlay {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: url('../img/index.png') center/cover no-repeat;
  position: relative;
}

.donation-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(100, 30, 30, 0.52);
  z-index: 0;
}

/* ── Card ── */
.donation-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: 860px;
  /* Fixed height so expanding custom input never resizes the card */
  min-height: 540px;
}

/* ── Left panel ── */
.donation-panel--left {
  flex: 0 0 44%;
  background: #b8dff0 url('../img/index.png') center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 28px 30px;
  position: relative;
}

.donation-panel--left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.panel-headline {
  position: relative;
  z-index: 1;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2.2rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ── Right panel ── */
.donation-panel--right {
  flex: 1;
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Overflow hidden so content stays inside fixed card height */
  overflow: hidden;
}

/* Header row */
.donation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.paw-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #111;
}

.donation-intro {
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 20px;
  line-height: 1.55;
}

/* ── Error list ── */
.donation-errors {
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 14px;
  list-style: disc inside;
  font-size: 0.82rem;
  color: #c0392b;
}

/* ── Form ── */
.donation-form {
  display: flex;
  flex-direction: column;
}

.amount-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 4px;
}

.amount-legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
  display: block;
}

/* Radio options */
.amount-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.amount-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #bbb;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}

.amount-option input[type="radio"]:checked {
  border-color: #27ae60;
}

.amount-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #27ae60;
  border-radius: 50%;
}

.amount-option span {
  font-size: 0.9rem;
  color: #333;
}

/* Custom toggle */
.btn-custom-toggle {
  background: none;
  border: none;
  padding: 0;
  color: #27ae60;
  font-size: 0.82rem;
  cursor: pointer;
  margin-top: 2px;
  text-align: left;
  text-decoration: underline;
}

.btn-custom-toggle:hover {
  color: #1e8449;
}

/* Custom amount — uses max-height transition so card doesn't jump */
.custom-amount-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.3s ease;
  margin: 0;
}

.custom-amount-wrap.is-open {
  max-height: 80px;
  margin: 12px 0 4px;
}

.custom-amount-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

.custom-amount-input:focus {
  border-color: #27ae60;
}

.custom-amount-input::placeholder {
  color: #aaa;
}

/* Support note */
.support-note {
  font-size: 0.78rem;
  color: #555;
  margin: 14px 0 20px;
  line-height: 1.6;
}

.support-note strong {
  color: #27ae60;
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
}

/* ── Action buttons ── */
.donation-actions {
  display: flex;
  gap: 14px;
}

.btn-cancel {
  flex: 1;
  padding: 13px 0;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #444;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  display: inline-block;
}

.btn-cancel:hover {
  background: #f5f5f5;
  border-color: #aaa;
}

.btn-donate {
  flex: 1;
  padding: 13px 0;
  border: none;
  border-radius: 8px;
  background: #27ae60;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.18s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-donate:hover {
  background: #219150;
}

/* ── Success card ── */
.donation-card--success {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  text-align: center;
  max-width: 440px;
  min-height: unset;
}

.success-icon {
  margin-bottom: 16px;
}

.success-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
}

.success-msg {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Fix main layout padding */
main {
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .donation-card {
    flex-direction: column;
    min-height: unset;
  }

  .donation-panel--left {
    min-height: 220px;
    align-items: flex-end;
    padding: 20px;
  }

  .panel-headline {
    font-size: 1.6rem;
  }

  .donation-panel--right {
    padding: 28px 22px;
  }
}