body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(254, 208, 0, 0.38) 0%, rgba(254, 208, 0, 0) 52%),
    radial-gradient(circle at top right, rgba(254, 208, 0, 0.38) 0%, rgba(254, 208, 0, 0) 52%),
    radial-gradient(circle at bottom left, rgba(86, 86, 90, 0.25) 0%, rgba(86, 86, 90, 0) 52%),
    radial-gradient(circle at bottom right, rgba(86, 86, 90, 0.25) 0%, rgba(86, 86, 90, 0) 52%),
    linear-gradient(180deg, #f6f6f7 0%, #d6d6d9 100%);
  color: #111111;
}

.page {
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 980px;
  padding: 1.5rem 1rem 2rem;
}

.donation-page {
  width: 100%;
}

.checkout-shell {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 249, 249, 0.96));
  color: #1b1b1d;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.checkout-header {
  text-align: center;
  margin-bottom: 1rem;
}

.lp-logo {
  width: min(300px, 80%);
  height: auto;
  margin-bottom: 0.75rem;
}

.checkout-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: 0.02em;
}

.checkout-header p {
  margin: 0.4rem 0 0;
  color: #56565a;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}

.field-card {
  grid-column: span 4;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.85rem;
}

.field-card--highlight {
  background: linear-gradient(125deg, #fff8d1 0%, #fff1a8 50%, #ffe46f 100%);
  border: 2px solid #fed000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(86, 86, 90, 0.2);
}

.field-card--amount {
  grid-column: span 12;
  padding: 1rem;
}

.field-card-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1b1b1d;
}

.field-card--active {
  background: linear-gradient(140deg, #fff9da 0%, #ffefaa 100%);
  border-color: #fed000;
  box-shadow: inset 0 0 0 1px rgba(254, 208, 0, 0.35), 0 6px 14px rgba(86, 86, 90, 0.16);
}

.donation-picker {
  display: grid;
  gap: 0.65rem;
}

.donation-options-stack {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.75rem;
}

.donation-options-stack .fee-toggle-card {
  grid-column: span 4;
}

.donation-recur-field {
  grid-column: span 8;
}

.amount-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0.5rem;
}

.amount-chip {
  border: 1px solid #cfd7e8;
  border-radius: 14px;
  background: #fff;
  color: #263246;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.72rem 1.1rem;
  min-height: 46px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.amount-chip:hover {
  border-color: #000000;
  color: #000000;
}

.amount-chip--active {
  background: linear-gradient(140deg, #fed000 0%, #f3bd00 100%);
  color: #000000;
  border-color: #000000;
  box-shadow: 0 8px 18px rgba(86, 86, 90, 0.22);
}

.address-suggestions {
  margin-top: 0.35rem;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
}

.address-suggestion-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  text-align: left;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
}

.address-suggestion-item:last-child {
  border-bottom: 0;
}

.address-suggestion-item:hover {
  background: #f3f4f6;
}

.field-card--wide {
  grid-column: span 12;
}

.fee-toggle-card {
  cursor: pointer;
  user-select: none;
  border: 1px solid #cfd7e8;
  border-radius: 14px;
  background: #fff;
  color: #263246;
  padding: 0.72rem 1.1rem;
  transition: all 0.15s ease;
}

.fee-toggle-card:hover {
  border-color: #000000;
  color: #000000;
}

.fee-toggle-card:not(.field-card--active) {
  background: #fff;
}

.fee-toggle-card:not(.field-card--active) .fee-toggle-amount {
  color: #334155;
}

.fee-toggle-card:focus-visible {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.fee-toggle-card.field-card--active {
  background: linear-gradient(140deg, #fed000 0%, #f3bd00 100%);
  color: #000000;
  border-color: #000000;
  box-shadow: 0 8px 18px rgba(86, 86, 90, 0.22);
}

.fee-toggle-card.field-card--active .fee-toggle-label,
.fee-toggle-card.field-card--active .fee-toggle-amount,
.fee-toggle-card.field-card--active .fee-toggle-caption {
  color: #000000;
}

.fee-toggle-label {
  margin: 0;
  display: block;
  text-align: center;
}

.fee-toggle-amount {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
}

.fee-toggle-caption {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
  text-align: center;
}

.form-section {
  margin-top: 0.9rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
}

.form-section--highlight {
  background: linear-gradient(125deg, #fff8d1 0%, #fff1a8 50%, #ffe46f 100%);
  border: 2px solid #fed000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(86, 86, 90, 0.2);
}

.form-section h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-label {
  margin: 0;
  line-height: 1.35;
  font-weight: 500;
}

.payment-section {
  margin-top: 0.9rem;
  background: linear-gradient(115deg, #2c2c2f 0%, #56565a 100%);
  border-radius: 12px;
  padding: 1rem;
  color: #f9fbff;
  position: relative;
  z-index: 1;
}

.total-line {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  text-align: center;
}

#payment-element {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  position: relative;
  z-index: 1;
}

.payment-action-row {
  padding-top: 0.9rem;
}

.pay-btn {
  width: 100%;
  margin-top: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #fed000, #f3bc00);
  color: #000000;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.rz-popup,
.rz-dropdown-panel {
  z-index: 2500 !important;
}

.rz-dropdown,
.rz-dropdown-label {
  color: #1f2937;
  font-weight: 600;
}

.rz-dropdown-item {
  color: #111827;
  font-weight: 600;
}

.rz-dropdown-item:hover,
.rz-state-highlight.rz-dropdown-item {
  color: #0f172a;
}

.rz-inputtext:focus,
.rz-textbox:focus,
.rz-dropdown:focus,
.rz-dropdown:focus-within,
.rz-state-focus {
  border-color: #fed000 !important;
  box-shadow: 0 0 0 3px rgba(254, 208, 0, 0.28) !important;
}

.rz-dropdown-item.rz-state-highlight,
.rz-multiselect-item.rz-state-highlight,
.rz-autocomplete-item.rz-state-highlight,
.rz-listbox-item.rz-state-highlight {
  background-color: #ffefaa !important;
  color: #000000 !important;
}

.error {
  color: #b91c1c;
  margin-top: 0.75rem;
}

.success {
  color: #065f46;
  margin-top: 0.75rem;
}

.required-indicator {
  color: #dc2626;
  margin-left: 0.2rem;
}

.field-validation {
  display: block;
  color: #b91c1c;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

.validation-summary {
  margin-bottom: 0.9rem;
  padding: 0.75rem 1.45rem;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.validation-summary ul,
.validation-summary .validation-errors {
  margin: 0 !important;
  padding-left: 2.5rem !important;
  list-style-position: outside;
}

.validation-summary li {
  margin: 0.15rem 0;
}

.consent-footnote {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #56565a;
}

.compliance-section {
  margin-top: 1rem;
  background: #fffdf2;
  border-color: #f1e3a1;
  text-align: center;
}

.compliance-details {
  width: min(100%, 760px);
  margin: 0 auto;
}

.compliance-details summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
}

.compliance-details summary::-webkit-details-marker {
  display: none;
}

.compliance-details summary::after {
  content: "▾";
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.compliance-details[open] summary::after {
  content: "▴";
}

.compliance-content {
  text-align: left;
  margin-top: 0.8rem;
}

.compliance-content h4 {
  margin: 1rem 0 0.4rem;
}

.compliance-by-check {
  text-align: center;
}

.compliance-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.compliance-meta {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: #56565a;
}

@media (max-width: 900px) {
  .field-card--amount,
  .field-card {
    grid-column: span 6;
  }

  .donation-options-stack .fee-toggle-card,
  .donation-recur-field {
    grid-column: span 12;
  }

  .amount-chip-row {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 640px) {
  main {
    padding: 0.8rem;
  }

  .checkout-shell {
    padding: 1rem;
    border-radius: 14px;
  }

  .field-card--amount,
  .field-card--fee,
  .field-card--recur,
  .field-card {
    grid-column: span 12;
  }

  .amount-chip-row {
    grid-template-columns: 1fr;
  }
}
