/* Isolated Donate dialog — no shared overlay/animation rules */
#hcm-give {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}
#hcm-give.is-open {
  visibility: visible;
  pointer-events: auto;
}
#hcm-give:not(.hcm-give--step-2) [data-hcm-give-ui="2"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#hcm-give.hcm-give--step-2 [data-hcm-give-ui="1"] {
  display: none;
}
body.hcm-give-open {
  overflow: hidden;
}
#hcm-give.is-submitting .forminator-button-submit {
  pointer-events: none;
  opacity: 0.75;
}

.hcm-give__scrim {
  position: absolute;
  inset: 0;
  background: rgba(41, 34, 31, 0.6);
}

.hcm-give__box {
  position: relative;
  z-index: 1;
  margin: 0 1rem;
  width: calc(100% - 2rem);
  max-width: 28rem;
  max-height: 90dvh;
  overflow: auto;
  background: var(--brand-white, #fff);
  border-radius: 1.5rem;
  box-shadow: 0 24px 80px -16px rgba(0, 0, 0, 0.35);
  opacity: 1;
}

.hcm-give__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 9999px;
  background: var(--brand-cream, #fff9f1);
  color: var(--brand-maroon, #701a1a);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.hcm-give__close:hover {
  background: rgba(112, 26, 26, 0.12);
}

.hcm-give__head {
  padding: 1.5rem 3.25rem 1rem 1.5rem;
  border-bottom: 1px solid rgba(112, 26, 26, 0.1);
}
.hcm-give__head h2 {
  font-family: var(--font-display, Montserrat, sans-serif);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--brand-maroon, #701a1a);
  line-height: 1.15;
  margin: 0;
}
.hcm-give__lede {
  font-size: 0.875rem;
  color: var(--brand-text-secondary, #6b5e58);
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.hcm-give__pad {
  padding: 1.25rem 1.5rem 1.5rem;
}

.hcm-give__freq {
  display: flex;
  padding: 0.25rem;
  margin: 0 0 1rem;
  background: var(--brand-cream, #fff9f1);
  border: 1px solid rgba(112, 26, 26, 0.1);
  border-radius: 9999px;
}
.hcm-give__freq button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font-sans, Inter, sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-text-secondary, #6b5e58);
  cursor: pointer;
}
.hcm-give__freq button.is-on {
  background: var(--brand-gold, #e9b72f);
  color: var(--brand-maroon, #701a1a);
  font-weight: 700;
}

.hcm-give__amount-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text-secondary, #6b5e58);
  margin: 0 0 0.65rem;
}

.hcm-give__amts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.hcm-give__amts button {
  border: 1px solid rgba(112, 26, 26, 0.15);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--brand-maroon, #701a1a);
  font-weight: 700;
  padding: 0.8rem 0.5rem;
  cursor: pointer;
  font-family: var(--font-sans, Inter, sans-serif);
}
.hcm-give__amts button.is-on {
  background: var(--brand-gold, #e9b72f);
  border-color: var(--brand-gold, #e9b72f);
}

.hcm-give__other-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#hcm-give-other {
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--radius, 0.75rem);
  border: 1px solid rgba(112, 26, 26, 0.15);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans, Inter, sans-serif);
  min-height: 3rem;
  margin-bottom: 0.75rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
#hcm-give-other.is-on,
#hcm-give-other:focus {
  border-color: var(--brand-gold, #e9b72f);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 183, 47, 0.35);
}
#hcm-give-other::-webkit-outer-spin-button,
#hcm-give-other::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hcm-give__go,
.hcm-give__submit,
#hcm-give .forminator-button-submit,
#hcm-give button.forminator-button-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-display, Montserrat, sans-serif);
  font-weight: 700;
  font-size: 1rem;
  background: var(--brand-gold, #e9b72f);
  background-image: none;
  color: var(--brand-maroon, #701a1a);
  box-shadow: 0 4px 14px -4px rgba(233, 183, 47, 0.45);
  cursor: pointer;
}
.hcm-give__submit:disabled,
#hcm-give .forminator-button-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.hcm-give__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  margin: 0 0 1.15rem;
  background: #fff6e8;
  border: 1px solid rgba(233, 183, 47, 0.35);
  border-radius: 0.85rem;
}
.hcm-give__summary-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text-secondary, #6b5e58);
}
.hcm-give__summary-value {
  margin: 0;
  color: var(--brand-maroon, #701a1a);
  font-family: var(--font-display, Montserrat, sans-serif);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
}
.hcm-give__summary-value [data-hcm-give-sum-freq] {
  display: inline;
  margin-left: 0.4rem;
  font-family: var(--font-sans, Inter, sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-text-secondary, #6b5e58);
}
.hcm-give__edit {
  border: none;
  background: transparent;
  color: var(--brand-maroon, #701a1a);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.25rem;
}
.hcm-give__edit:hover {
  text-decoration: underline;
}

.hcm-give__label {
  display: block;
  margin: 0 0 0.4rem;
  font-family: var(--font-sans, Inter, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-maroon, #701a1a);
}

#hcm-give .forminator-row-last,
#hcm-give .forminator-pagination-footer {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.hcm-give__step2-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
  width: auto;
}
.hcm-give__back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  height: 3rem;
  padding: 0 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(112, 26, 26, 0.2);
  background: #fff;
  color: var(--brand-maroon, #701a1a);
  font-family: var(--font-sans, Inter, sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.hcm-give__back:hover {
  background: rgba(233, 183, 47, 0.12);
}
.hcm-give__step2-bar .hcm-give__submit,
.hcm-give__step2-bar .forminator-button-submit {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
}
.hcm-give__secure {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--brand-text-secondary, #6b5e58);
}
@media (max-width: 520px) {
  .hcm-give__step2-bar {
    flex-wrap: wrap;
  }
  .hcm-give__step2-bar .hcm-give__submit,
  .hcm-give__step2-bar .forminator-button-submit {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Native freq/amount/other remain submittable; clipped via JS class, not display:none */
.hcm-give-native-hide {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

.hcm-give__form .forminator-ui,
.hcm-give__form .forminator-custom-form {
  max-width: 100%;
  width: 100%;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}
.hcm-give__form .forminator-row {
  margin: 0 0 1rem;
}
.hcm-give__form .forminator-label {
  display: none;
}
.hcm-give__form .forminator-input,
.hcm-give__form .forminator-select,
.hcm-give__form select.forminator-select--field {
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--radius, 0.75rem);
  border: 1px solid rgba(112, 26, 26, 0.15);
  background: #fff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans, Inter, sans-serif);
  color: var(--brand-text-dark, #29221f);
  min-height: 3rem;
}
.hcm-give__form .forminator-input:focus,
.hcm-give__form select:focus {
  border-color: var(--brand-gold, #e9b72f);
  box-shadow: 0 0 0 3px rgba(233, 183, 47, 0.35);
  outline: none;
}
.hcm-give__form .forminator-error-message {
  display: none;
}
.hcm-give__form .forminator-has_error .forminator-error-message,
.hcm-give__form .forminator-is_error .forminator-error-message {
  display: block;
}
.hcm-give__form .forminator-edit-module {
  display: none !important;
}
