:root {
  --ink: #122033;
  --muted: #5f7088;
  --brand: #fb5a1f;
  --line: #f0d6c8;
  --soft: #fff7f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(115deg, #fff9f4 0%, #ffffff 56%, #f3fbff 100%);
  font-family: Inter, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

.checkout-shell {
  width: min(1040px, calc(100% - 32px));
  flex: 1 0 auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(390px, 1fr);
  align-items: center;
  gap: 0;
  padding: 40px 0 42px;
}

.campaign-panel,
.form-panel {
  min-height: 600px;
}

.campaign-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 38px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10, 23, 39, 0.04) 0%, rgba(10, 23, 39, 0.34) 42%, rgba(10, 23, 39, 0.82) 100%),
    var(--campaign-image, url("https://www.bhartekadamfoundation.org/campaign-donation-trust-hero.png")) center/cover;
  border-radius: 22px 0 0 22px;
  overflow: hidden;
}

.form-panel {
  padding: 38px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 0 22px 22px 0;
  box-shadow: 0 24px 60px rgba(18, 32, 51, 0.09);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.campaign-panel .eyebrow {
  color: #ffcfb8;
}

h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 3.7vw, 50px);
  line-height: 1;
  max-width: 360px;
}

.campaign-panel p {
  max-width: 360px;
  line-height: 1.55;
  font-size: 15px;
}

.photo-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 340px;
  margin-top: 18px;
}

.photo-proof[hidden] {
  display: none;
}

.photo-proof img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(8, 20, 34, 0.22);
}

.impact-box,
.goal {
  border: 1px solid rgba(251, 90, 31, 0.28);
  border-radius: 12px;
}

.impact-box {
  margin-top: 42px;
  padding: 20px;
  background: rgba(8, 20, 34, 0.84);
}

.impact-box span {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.impact-box strong {
  display: block;
  max-width: 300px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.05;
}

.goal {
  margin-bottom: 20px;
  padding: 12px 14px;
  color: #77513f;
  background: var(--soft);
  font-size: 14px;
  line-height: 1.4;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 800;
  font-size: 13px;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #d8e0ea;
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.field input:focus {
  outline: 3px solid rgba(251, 90, 31, 0.18);
  border-color: var(--brand);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 24px;
}

.preset-grid button {
  min-height: 42px;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.preset-grid button[aria-pressed="true"] {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff3ec;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.donate-button {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, #ff6425, #ec3d0b);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(251, 90, 31, 0.24);
}

.donate-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 700;
}

.checkout-footer {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.86);
  background: #071827;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
}

.footer-inner nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #fff;
  text-decoration: none;
}

.footer-inner a:hover {
  color: #ffcfb8;
}

.thank-you-shell .form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.thank-you-panel h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.thank-you-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.soft-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.thank-actions {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.secondary-link {
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 840px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-shell {
    grid-template-columns: 1fr;
    padding: 24px 0 32px;
  }

  .campaign-panel,
  .form-panel {
    min-height: auto;
    border-radius: 18px;
  }

  .campaign-panel {
    padding: 32px 24px;
  }

  .form-panel {
    padding: 28px 22px;
  }

  .two-col,
  .preset-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 22px 0;
  }
}
