:root {
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --brand: #ff8744;
  --brand-hover: #ff9966;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --card: #121821;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
}

.card {
  width: min(1100px, 100%);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Split layout */
.row {
  display: grid;
  gap: 0;
}
@media (min-width: 900px) {
  .row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hero (Left Panel) */
.hero {
  background: linear-gradient(135deg, #fff 0%, #fef8f5 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  border-right: 1px solid #f0f0f0;
  text-align: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 800;
  color: #0f1a2a;
}

.hero p {
  margin: 0 auto;
  color: #6b7280;
  font-size: 15px;
  max-width: 32ch;
}
.hero p strong {
  color: #0f1a2a;
}

/* Form (Right Panel) */
.form-panel {
  background: #fff;
  padding: clamp(24px, 3vw, 40px);
}

.form-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #533810;
  margin-bottom: 20px;
}

#donation-form-container {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: clamp(14px, 2vw, 18px);
}

/* Inputs */
#donation-form-container label {
  color: #533810;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

#donation-form-container input,
#donation-form-container select,
#donation-form-container textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #533810;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#donation-form-container input:focus,
#donation-form-container select:focus,
#donation-form-container textarea:focus {
  border-color: #ff8744;
  box-shadow: 0 0 0 3px rgba(255, 135, 68, 0.15);
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
  color: #9c8b6a !important;
  font-size: 14px !important;
  opacity: 1 !important;
}

/* Buttons */
#donation-form-container button[type="submit"] {
  background: #ff8744;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
}
#donation-form-container button[type="submit"]:hover {
  background: #ff9966;
}

#donation-form-container button[type="reset"] {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
}

/* Other elements */
.sdk-warning {
  display: none;
  margin-top: 12px;
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.25);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.loading {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 10px;
}

.nojs-warning {
  max-width: 920px;
  margin: 16px auto;
  padding: 5px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: center;
}

#donation-form-container input,
#donation-form-container textarea,
#donation-form-container select {
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
}

/* Responsive */
@media (max-width: 719px) {
  .row {
    grid-template-columns: 1fr;
  }
  .hero {
    display: none;
  }
  .form-panel {
    padding: 20px;
  }
}
