:root {
  --blue: #4d79b0;
  --blue-dark: #3f6c9f;
  --text: #111111;
  --muted: #666666;
  --line: #d9d9d9;
  --field: #f7f7f7;
  --white: #ffffff;
  --black: #000000;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

button,
input { font: inherit; }

button { cursor: pointer; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding-top: 0;
  background: #ffffff;
}

.hero-frame {
  position: relative;
  overflow: hidden;
}

.bh {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
}

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1024 / 577;
  object-fit: cover;
}

.goal-bar {
  display: grid;
  grid-template-columns: 1fr 285px;
  background: #000000;
  min-height: 120px;
}

.goal-main {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 14px 24px;
  padding: 14px 40px 20px;
}

.raised {
  color: #ffffff;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1;
  font-weight: 900;
}

.goal-label {
  align-self: center;
  color: #ffffff;
  font-size: 20px;
  padding-top: 16px;
}

.progress {
  grid-column: 1 / -1;
  height: 31px;
  background: #e6e6e6;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #bfbfbf;
}

.progress span {
  display: grid;
  place-items: center;
  height: 100%;
  min-width: 42px;
  background: #9bbaf2;
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
}

.donate-box {
  display: grid;
  grid-template-columns: 1fr 76px;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 18px 22px;
  background: #2f2f2f;
  color: #ffffff;
  text-decoration: none;
  border-left: 1px solid #404040;
}

.donate-box strong {
  font-size: clamp(34px, 4vw, 42px);
  line-height: .98;
  font-weight: 900;
}

.donate-box span {
  width: 76px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 38px;
  align-items: start;
  padding-top: 42px;
}

.content-column {
  min-width: 0;
}

.intro {
  text-align: center;
  padding: 0 60px;
}

.logo {
  width: 300px;
  max-width: 75%;
  margin: 0 auto 38px;
  display: block;
}

.intro h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 28px;
  font-weight: 800;
}

.intro p {
  font-size: 21px;
  line-height: 1.35;
  margin: 0 auto 18px;
  max-width: 690px;
}

.intro h2 {
  font-size: 28px;
  margin: 34px 0 70px;
  font-weight: 800;
}

.intro h2 em {
  font-style: italic;
  text-decoration: underline;
}

.form-title-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 34px;
}

.form-title-row h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 400;
}

.form-title-row span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-left: 14px;
  color: var(--blue);
  font-size: 36px;
  font-weight: 900;
  transform: rotate(-12deg);
}

.donation-form {
  width: min(616px, 100%);
  margin: 0 auto 48px;
}

fieldset {
  border: 0;
  margin: 0 0 30px;
  padding: 0;
}

legend {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 34px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.choice-row {
  display: grid;
  gap: 14px;
}

.choice-row.two { grid-template-columns: repeat(2, 1fr); }
.choice-row.three { grid-template-columns: repeat(3, 1fr); }
.amount-grid { grid-template-columns: repeat(3, 1fr); }

.choice-row label {
  min-height: 58px;
  display: grid;
}

.choice-row input {
  position: absolute;
  opacity: 0;
}

.choice-row span {
  display: grid;
  place-items: center;
  border: 1px solid #d1d1d1;
  border-radius: 3px;
  background: #ffffff;
  color: #000000;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.choice-row input:checked + span {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

hr {
  border: 0;
  border-top: 1px solid #d6d6d6;
  margin: 44px 0 36px;
}

.name-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.field {
  display: block;
  margin-bottom: 30px;
}

.field span {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 44px;
  padding: 10px 13px;
  border: 1px solid #d3d3d3;
  border-radius: 2px;
  background: #ffffff;
  color: #111111;
}

.field input::placeholder {
  color: #a8a8a8;
}

.field input:focus,
.submit-button:focus,
.choice-row span:focus-within {
  outline: 2px solid #9bbaf2;
  outline-offset: 2px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 34px;
  font-size: 16px;
}

.check input {
  width: 18px;
  height: 18px;
}

.dedication {
  margin-bottom: 0;
}

.method-note {
  margin: -14px 0 20px;
  color: #555555;
  line-height: 1.45;
}

.card-fields {
  margin-top: 30px;
}

.card-input-wrap {
  position: relative;
  display: block;
}

.card-input-wrap input {
  padding-right: 128px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.card-brand-strip {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  align-items: center;
  pointer-events: none;
}

.card-brand-strip img {
  width: 26px;
  height: auto;
  opacity: 0.42;
  transition: opacity 160ms ease, transform 160ms ease;
}

.card-brand-strip img.is-active,
.card-brand-strip:not(.has-active) img {
  opacity: 1;
}

.card-brand-strip img.is-active {
  transform: translateY(-1px);
}

.card-row {
  display: grid;
  grid-template-columns: 90px 20px 90px 1fr;
  gap: 10px;
  align-items: start;
}

.card-row .field { margin-bottom: 0; }

.slash {
  display: grid;
  place-items: center;
  height: 44px;
  font-size: 22px;
}

.cvc {
  justify-self: end;
  width: 90px;
}

.total-heading {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
}

.total-box {
  min-height: 80px;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  background: #f7f7f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: 800;
}

.form-message {
  min-height: 24px;
  margin: 16px 0;
  color: #555555;
  font-weight: 700;
}

.form-message.is-error { color: #b00020; }
.form-message.is-success { color: #2a6d38; }

.submit-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 2px;
  background: #000000;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.submit-button[disabled] {
  opacity: .65;
  cursor: wait;
}

.donor-sidebar {
  position: sticky;
  top: 24px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  background: #f1f2f4;
}

.donor-sidebar h2 {
  margin: 0;
  padding: 16px;
  background: var(--blue);
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  line-height: 1.2;
}

.donor-scroll {
  max-height: 410px;
  overflow-y: auto;
  padding: 28px 18px;
  display: grid;
  gap: 12px;
}

.donor-scroll article {
  background: #ffffff;
  border-radius: 5px;
  padding: 18px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.donor-scroll strong {
  display: block;
  font-size: 22px;
  margin-bottom: 14px;
}

.donor-scroll span {
  display: block;
  color: #343434;
  margin-bottom: 6px;
}

.donor-scroll em {
  display: block;
  color: #555555;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.donor-scroll small {
  display: block;
  font-size: 12px;
  color: #555555;
  font-weight: 700;
}

footer {
  margin-top: 50px;
  background: #f5f5f5;
  color: #333333;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  padding: 22px 0;
}

.donation-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.donation-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.donation-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  background: var(--white);
  border-top: 6px solid var(--blue);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  padding: 34px;
  outline: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  font-size: 28px;
  line-height: 1;
}

.modal-close:hover {
  background: #f5f5f5;
}

.modal-check {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(77, 121, 176, 0.16);
  color: var(--blue-dark);
}

.modal-eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.donation-modal h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
  color: var(--black);
}

.modal-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.modal-summary {
  display: grid;
  gap: 0;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.modal-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-summary dd {
  margin: 0;
  color: var(--black);
  font-weight: 900;
  text-align: right;
}

.modal-primary {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}

.modal-primary:hover {
  background: var(--blue-dark);
}

@media (max-width: 900px) {
  .goal-bar,
  .body-grid {
    grid-template-columns: 1fr;
  }

  .donate-box {
    border-left: 0;
    border-top: 1px solid #404040;
  }

  .intro {
    padding: 0;
  }

  .donor-sidebar {
    position: static;
    margin-bottom: 40px;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 24px);
  }

  .goal-main {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .goal-label {
    padding-top: 0;
  }

  .choice-row.two,
  .choice-row.three,
  .amount-grid,
  .name-row {
    grid-template-columns: 1fr;
  }

  .card-input-wrap input {
    padding-right: 104px;
  }

  .card-brand-strip {
    gap: 3px;
    right: 8px;
  }

  .card-brand-strip img {
    width: 22px;
  }

  .card-row {
    grid-template-columns: 1fr 16px 1fr;
  }

  .cvc {
    grid-column: 1 / -1;
    width: 100%;
  }

  .intro h1 {
    font-size: 26px;
  }

  .intro p {
    font-size: 18px;
  }

  .donation-modal {
    padding: 14px;
    align-items: end;
  }

  .donation-modal-panel {
    max-height: calc(100vh - 28px);
    padding: 28px 20px 22px;
  }

  .donation-modal h2 {
    font-size: 29px;
  }

  .modal-summary div {
    display: grid;
    gap: 6px;
  }

  .modal-summary dd {
    text-align: left;
  }
}
