:root {
  --brand: #0087AE;
  --brand-dark: #00506a;
  --accent: #ffb703;
  --bg: #f4f8fa;
  --card-bg: #ffffff;
  --text: #1c2b33;
  --text-muted: #5b6b73;
  --border: #e1eaee;
  --success: #2e9e5b;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(0, 20, 30, 0.08);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 18px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin: 24px auto;
  max-width: 900px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.header-inner { display: flex; justify-content: center; }
.logo { height: 52px; }

/* Banner slider */
.banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 480;
  max-height: 480px;
  overflow: hidden;
  background: var(--brand-dark);
}
.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}
.banner-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-arrow:hover { background: rgba(0,0,0,0.55); }
.banner-arrow-prev { right: 16px; }
.banner-arrow-next { left: 16px; }
.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.banner-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.banner-dots span.active { background: #fff; }

/* Hero */
.hero-text {
  text-align: center;
  margin-top: 30px;
}
.hero-text h1 { font-size: 30px; margin-bottom: 6px; color: var(--brand-dark); }
.hero-text .subtitle { color: var(--text-muted); font-size: 17px; }

/* Progress */
.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 10px;
}
.progress-raised strong { color: var(--brand); font-size: 22px; }
.progress-target strong { font-size: 18px; }
.progress-bar-outer {
  background: var(--border);
  border-radius: 20px;
  height: 22px;
  overflow: hidden;
}
.progress-bar-inner {
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  height: 100%;
  width: 0%;
  transition: width 0.8s ease;
  border-radius: 20px;
}
.progress-footer {
  text-align: center;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
}
.stretch-goal {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  text-align: center;
  color: var(--brand-dark);
}

/* Donate section */
.donate-section h2, .donors-section h2 { margin-top: 0; color: var(--brand-dark); }
.donate-hero-img {
  height: 130px;
  margin: -26px -26px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  background-image: url('/images/banners/donate-heart.jpg');
  background-size: cover;
  background-position: center 70%;
}
@media (max-width: 600px) {
  .donate-hero-img { height: 90px; }
}

.donation-type-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.tab-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
}
.tab-btn.active {
  border-color: var(--brand);
  background: rgba(0,135,174,0.08);
  color: var(--brand-dark);
}

.type-hint { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

.amount-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.amount-btn {
  padding: 14px 6px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-dark);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 74px;
}
.amount-btn.has-bg {
  background-size: cover;
  background-position: center;
  border-color: transparent;
}
.amount-btn.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,20,30,0.15), rgba(0,20,30,0.55));
}
.amount-btn.has-bg span {
  position: relative;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  font-size: 18px;
}
.amount-btn.has-bg.selected {
  box-shadow: 0 0 0 3px var(--accent) inset;
}
.amount-btn.selected {
  border-color: var(--accent);
  background: #fff8e8;
}

.donor-details-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 16px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 15px;
}
.donor-details-divider::before,
.donor-details-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.req { color: #b3261e; }
.anonymous-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  background: #f8fbfc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 4px 0 16px;
  cursor: pointer;
}
.anonymous-toggle input { width: 18px; height: 18px; flex-shrink: 0; }

.custom-amount-row {
  max-width: 220px;
  margin-right: auto;
  margin-left: auto;
}
.custom-amount-row label { text-align: center; }
.custom-amount-row input { text-align: center; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-row input[type=text],
.form-row input[type=number],
.form-row input[type=email],
.form-row input[type=tel],
.form-row select {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-row label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkbox-row input { width: 18px; height: 18px; }

.hint { color: var(--text-muted); font-size: 13px; margin: 4px 0 0; }
.hint.small { text-align: center; margin-top: 10px; }

.form-error {
  background: #fdeded;
  color: #b3261e;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.btn-donate {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}
.btn-donate:hover { background: var(--brand-dark); }
.btn-donate:disabled { opacity: 0.6; cursor: not-allowed; }

/* Donors table */
.donors-count { color: var(--text-muted); margin-top: -6px; }
.donors-table-wrap { max-height: 480px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.donors-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.donors-table th {
  position: sticky;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px;
  text-align: right;
}
.donors-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}
.donors-table tr:nth-child(even) { background: #f8fbfc; }
.donors-table td.amount-cell { font-weight: 700; color: var(--brand-dark); white-space: nowrap; }

/* About / bank */
.about-section p, .bank-section p { white-space: pre-line; }
.bank-section h3 { margin-top: 0; color: var(--brand-dark); }
.tax-note { color: var(--text-muted); font-size: 13px; }

.share-section { text-align: center; margin: 10px 0 40px; }
.btn-share {
  padding: 12px 26px;
  border-radius: 30px;
  border: 2px solid var(--brand);
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
}
.btn-share:hover { background: var(--brand); color: #fff; }

.site-footer {
  background: var(--brand-dark);
  color: #cfe9f1;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  margin-top: 40px;
}

@media (max-width: 600px) {
  .form-row.two-col { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 24px; }
}
