.sj-donation-popup[hidden] {
  display: none !important;
}

.sj-donation-popup {
  position: fixed;
  inset: 0;
  z-index: 999990;
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: Arial, sans-serif;
}

.sj-donation-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 20, 13, .78);
  backdrop-filter: blur(3px);
}

.sj-donation-popup-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  color: #282621;
  background: #fffdf9;
  border: 1px solid rgba(222, 169, 75, .55);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(27, 15, 9, .38);
}

.sj-donation-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #282621;
  background: #fffdf9;
  border: 1px solid rgba(111, 67, 43, .25);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.sj-donation-popup-close:hover,
.sj-donation-popup-close:focus-visible {
  color: #fff;
  background: #b05437;
  border-color: #b05437;
}

.sj-donation-popup-story {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  color: #fff;
  background: #3d2518;
}

.sj-donation-popup-story > img,
.sj-donation-popup-story-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sj-donation-popup-story > img {
  object-fit: cover;
  object-position: 58% center;
}

.sj-donation-popup-story-shade {
  background: linear-gradient(0deg, rgba(45, 26, 16, .96), rgba(45, 26, 16, .42));
}

.sj-donation-popup-story-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 52px 34px 38px;
  background: linear-gradient(0deg, rgba(45, 26, 16, .82), rgba(45, 26, 16, .18));
}

.sj-donation-popup-eyebrow {
  margin: 0 0 16px;
  color: #f0cb77;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.sj-donation-popup-story h2 {
  margin: 0;
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.04;
}

.sj-donation-popup-story-content > p:last-child {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 16px;
  line-height: 1.6;
}

.sj-donation-popup-form {
  min-width: 0;
  padding: 52px 54px 42px;
}

.sj-donation-popup-form > header {
  padding-right: 38px;
}

.sj-donation-popup-form .sj-donation-popup-eyebrow {
  color: #8f462e;
}

.sj-donation-popup-form h3 {
  margin: 0;
  color: #282621;
  font-size: 34px;
  line-height: 1.08;
}

.sj-donation-popup-form > header > p:last-child {
  margin: 17px 0 0;
  color: #626b67;
  font-size: 15px;
  line-height: 1.6;
}

.sj-donation-popup .gform_wrapper {
  margin-top: 30px;
}

.sj-donation-popup-form #field_2_1 > .gfield_label,
.sj-donation-popup-form #field_2_2 > .gfield_label,
.sj-donation-popup-form #field_2_3 > .gfield_label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sj-donation-popup-form #field_2_13 {
  display: none;
}

.sj-donation-popup .gform_heading {
  display: none;
}

.sj-donation-popup .gform_fields {
  row-gap: 20px;
}

.sj-donation-popup .gfield_label,
.sj-donation-popup .gform-field-label {
  color: #282621;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.sj-donation-popup .gfield_description {
  color: #69716e;
  font-size: 13px;
  line-height: 1.45;
}

.sj-donation-popup input[type="text"],
.sj-donation-popup input[type="email"],
.sj-donation-popup input[type="number"] {
  width: 100% !important;
  max-width: none;
  min-height: 48px;
  padding: 12px 14px;
  color: #282621;
  background: #fff;
  border: 1px solid rgba(72, 72, 63, .25);
  border-radius: 3px;
  box-shadow: none;
  inline-size: 100% !important;
}

.sj-donation-popup .ginput_container_name {
  gap: 12px;
}

.sj-donation-popup .gfield_total {
  padding: 17px 18px;
  background: rgba(222, 169, 75, .13);
  border-block: 1px solid rgba(111, 67, 43, .17);
}

.sj-donation-popup .gfield_total input {
  display: none !important;
}

.sj-donation-popup-total {
  display: block;
  color: #8f462e;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
}

.sj-donation-popup .gfield_html {
  color: #5f6864;
  font-size: 13px;
  line-height: 1.55;
}

.sj-donation-popup .gform_footer {
  margin-top: 22px;
  padding: 0;
}

.sj-donation-popup input[type="submit"] {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 14px 20px;
  color: #fff;
  background: #b05437;
  border: 1px solid #b05437;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.sj-donation-popup input[type="submit"]:hover,
.sj-donation-popup input[type="submit"]:focus-visible {
  background: #8f462e;
  border-color: #8f462e;
}

.sj-donation-popup-privacy {
  margin: 20px 0 0;
  color: #69716e;
  font-size: 12px;
  line-height: 1.55;
}

.sj-donation-popup-privacy a {
  color: #8f462e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.sj-donation-popup-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .sj-donation-popup {
    padding: 10px;
  }

  .sj-donation-popup-dialog {
    display: block;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .sj-donation-popup-story {
    min-height: 230px;
  }

  .sj-donation-popup-story-content {
    min-height: 230px;
    padding: 72px 20px 24px;
  }

  .sj-donation-popup-story h2 {
    max-width: 260px;
    font-size: 34px;
    overflow-wrap: anywhere;
  }

  .sj-donation-popup-story-content > p:last-child {
    max-width: 285px;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
  }

  .sj-donation-popup-form {
    padding: 30px 20px 28px;
  }

  .sj-donation-popup-form > header {
    padding-right: 0;
  }

  .sj-donation-popup-form h3 {
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  .sj-donation-popup .ginput_container_name {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sj-donation-popup .ginput_container_name > span {
    width: 100%;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sj-donation-popup {
    scroll-behavior: auto;
  }
}
