:root {
  --ink: #1d2433;
  --muted: #5b6475;
  --navy: #1f2f57;
  --navy-dark: #15213f;
  --gold: #c08a2a;
  --gold-soft: #f6ecd8;
  --line: #e2e5ec;
  --bg: #f4f1ea;
  --card: #ffffff;
  --error: #b42318;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image: radial-gradient(circle at 50% -10%, #fffaf0 0, var(--bg) 60%);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.lang {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
}
.lang:hover { border-color: var(--navy); }

.card {
  width: calc(100% - 32px);
  max-width: 528px;
  position: relative;
  margin: 10px 16px 8px;
  padding: 16px 28px 16px;
  background: var(--card);
  border-radius: 18px;
  border-top: 5px solid var(--gold);
  box-shadow: 0 10px 30px rgba(31, 47, 87, 0.08);
}

.logo {
  display: block;
  margin: 0 auto 6px;
  width: 130px;
  max-width: 45%;
  height: auto;
}

h1 {
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  text-align: center;
  color: var(--navy);
  margin: 0 0 4px;
}

.intro {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 10px 0 5px;
}

select, .other input, .otherProject {
  width: 100%;
  font: inherit;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
select:focus, .other input:focus, .otherProject:focus, .chip:focus-visible, .donate:focus-visible, .lang:focus-visible {
  outline: 3px solid rgba(192, 138, 42, 0.35);
  outline-offset: 1px;
  border-color: var(--gold);
}

.amounts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.chip {
  font: inherit;
  font-weight: 600;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.chip:hover { border-color: var(--gold); }
.chip.selected {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--navy-dark);
}

.other {
  position: relative;
  margin-top: 8px;
}
.other .dollar {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.other input { padding-left: 28px; }

.otherProject { margin-top: 8px; }

.dedic {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 8px;
}
.dedic input {
  width: 100%;
  font: inherit;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.dedic input:disabled { background: #f6f7f9; }
.dedic input:focus {
  outline: 3px solid rgba(192, 138, 42, 0.35);
  outline-offset: 1px;
  border-color: var(--gold);
}

.error {
  color: var(--error);
  font-size: 14px;
  margin: 14px 0 0;
}

.donate {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.donate:hover { background: var(--navy-dark); }
.donate:disabled { opacity: 0.6; cursor: wait; }
.donate.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.secure {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

.details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0 auto;
  max-width: 340px;
  font-size: 15px;
}
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; }

.org {
  max-width: 528px;
  margin: 0 16px 10px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}
.org strong { font-weight: 600; color: var(--ink); }

@media (max-width: 480px) {
  .card { padding: 20px 16px 18px; }
  h1 { font-size: 24px; }
  .dedic { grid-template-columns: 1fr; }
  .logo { width: 120px; }
}
