@font-face {
  font-display: swap;
  font-family: "FGE Roman";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/NimbusRoman-Regular.otf") format("opentype");
}

@font-face {
  font-display: swap;
  font-family: "FGE Roman";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/NimbusRoman-Italic.otf") format("opentype");
}

@font-face {
  font-display: swap;
  font-family: "FGE Chancery";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/Z003-MediumItalic.otf") format("opentype");
}

.fge-app {
  --fge-blue: #00558c;
  --fge-blue-dark: #073f65;
  --fge-blue-pale: #eaf3f8;
  --fge-gold: #b69252;
  --fge-cream: #f7f4ed;
  --fge-ink: #24313a;
  --fge-muted: #65717a;
  --fge-border: #d9dfe3;
  --fge-white: #fff;
  --fge-error: #9f2d20;
  color: var(--fge-ink);
  font-family: inherit;
  margin: 2rem auto;
  max-width: 1180px;
}

.fge-app *,
.fge-app *::before,
.fge-app *::after {
  box-sizing: border-box;
}

.fge-intro {
  background: linear-gradient(135deg, var(--fge-blue-dark), var(--fge-blue));
  border-radius: 18px 18px 0 0;
  color: var(--fge-white);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  position: relative;
  text-align: center;
}

.fge-intro::after {
  background: var(--fge-gold);
  bottom: 0;
  content: '';
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}

.fge-intro h2 {
  color: inherit;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  margin: 0.25rem 0 0.85rem;
}

.fge-intro p {
  color: inherit;
  font-size: 1.08rem;
  margin: 0 auto;
  max-width: 760px;
}

.fge-intro .fge-eyebrow {
  color: #dcecf5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fge-progress {
  background: var(--fge-cream);
  border-left: 1px solid var(--fge-border);
  border-right: 1px solid var(--fge-border);
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  scroll-margin-top: 110px;
}

.fge-progress ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.fge-progress ol::before {
  background: #cdd5da;
  content: '';
  height: 2px;
  left: 10%;
  position: absolute;
  right: 10%;
  top: 17px;
}

.fge-progress li {
  align-items: center;
  color: var(--fge-muted);
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  gap: 0.4rem;
  position: relative;
  text-align: center;
  z-index: 1;
}

.fge-progress li span {
  align-items: center;
  background: var(--fge-white);
  border: 2px solid #bdc7ce;
  border-radius: 50%;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.fge-progress li.is-current,
.fge-progress li.is-complete {
  color: var(--fge-blue-dark);
}

.fge-progress li.is-current span {
  background: var(--fge-blue);
  border-color: var(--fge-blue);
  color: var(--fge-white);
  box-shadow: 0 0 0 5px rgba(0, 85, 140, 0.12);
}

.fge-progress li.is-complete span {
  background: var(--fge-blue-pale);
  border-color: var(--fge-blue);
  color: var(--fge-blue-dark);
}

.fge-shell {
  background: var(--fge-white);
  border: 1px solid var(--fge-border);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 48px rgba(31, 54, 69, 0.11);
  min-height: 520px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.fge-form fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.fge-step[hidden] {
  display: none !important;
}

.fge-step legend {
  color: var(--fge-blue-dark);
  display: block;
  float: left;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 750;
  line-height: 1.15;
  margin: 0;
  padding: 0;
  width: 100%;
}

.fge-step legend + * {
  clear: both;
}

.fge-step-intro {
  color: var(--fge-muted);
  font-size: 1.04rem;
  margin: 0.7rem 0 1.7rem;
}

.fge-choice-grid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.fge-choice-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fge-choice-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fge-choice-card {
  background: var(--fge-white);
  border: 2px solid var(--fge-border);
  border-radius: 12px;
  cursor: pointer;
  display: block;
  min-height: 112px;
  padding: 1.15rem 1.2rem;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fge-choice-card:hover {
  border-color: #8fb6cc;
  transform: translateY(-1px);
}

.fge-choice-card.is-selected {
  background: var(--fge-blue-pale);
  border-color: var(--fge-blue);
  box-shadow: 0 0 0 3px rgba(0, 85, 140, 0.1);
}

.fge-choice-card input {
  accent-color: var(--fge-blue);
  height: 20px;
  margin: 0 0.65rem 0 0;
  position: relative;
  top: 2px;
  width: 20px;
}

.fge-choice-card > span {
  display: inline;
}

.fge-choice-card strong,
.fge-choice-card small {
  display: block;
  margin-left: 1.9rem;
}

.fge-choice-card strong {
  color: var(--fge-blue-dark);
  font-size: 1.05rem;
  margin-top: -1.45rem;
}

.fge-choice-card small {
  color: var(--fge-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  margin-top: 0.35rem;
}

.fge-fields {
  display: grid;
  gap: 1.15rem 1.4rem;
  margin: 1rem 0 2rem;
}

.fge-fields--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fge-field--wide {
  grid-column: 1 / -1;
}

.fge-field {
  display: block;
}

.fge-field > span {
  color: var(--fge-ink);
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  margin-bottom: 0.4rem;
}

.fge-field em {
  color: var(--fge-muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 400;
}

.fge-field input,
.fge-field select {
  background: var(--fge-white);
  border: 1px solid #aebbc3;
  border-radius: 7px;
  color: var(--fge-ink);
  font: inherit;
  min-height: 48px;
  padding: 0.68rem 0.78rem;
  width: 100%;
}

.fge-field input:focus,
.fge-field select:focus,
.fge-choice-card:focus-within,
.fge-card-option:focus-visible,
.fge-button:focus-visible {
  outline: 3px solid rgba(0, 85, 140, 0.28);
  outline-offset: 2px;
}

.fge-folder-preview {
  background: var(--fge-cream);
  border: 1px solid var(--fge-border);
  border-radius: 14px;
  margin: 1.25rem 0 2rem;
  padding: clamp(1rem, 3vw, 1.75rem);
}

.fge-folder-preview__header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.fge-folder-preview__header h3 {
  color: var(--fge-blue-dark);
  font-size: 1.1rem;
  margin: 0 0 0.2rem;
}

.fge-folder-preview__header p {
  color: var(--fge-muted);
  font-size: 0.82rem;
  margin: 0;
}

.fge-folder-view-toggle {
  background: #e1e7ea;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
}

.fge-folder-view-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--fge-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.55rem 0.8rem;
}

.fge-folder-view-toggle button[aria-pressed="true"] {
  background: var(--fge-white);
  box-shadow: 0 1px 5px rgba(31, 54, 69, 0.16);
  color: var(--fge-blue-dark);
}

.fge-folder-view-toggle button:focus-visible {
  outline: 3px solid rgba(0, 85, 140, 0.28);
  outline-offset: 2px;
}

.fge-folder-preview__viewport {
  overflow-x: auto;
  padding: 0.5rem;
}

.fge-folder-cover {
  aspect-ratio: 97 / 129;
  background: #7f6231;
  border: 1px solid #6f5429;
  box-shadow: 0 13px 30px rgba(54, 39, 18, 0.28);
  margin: 0 auto;
  max-width: 410px;
  overflow: hidden;
}

.fge-folder-cover svg {
  display: block;
  height: 100%;
  width: 100%;
}

.fge-folder-cover[hidden],
.fge-folder-open[hidden] {
  display: none !important;
}

.fge-folder-open {
  aspect-ratio: 194 / 129;
  background: #8c6b34;
  border: 3px solid #6e5228;
  box-shadow: 0 13px 30px rgba(54, 39, 18, 0.28);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 950px;
  min-width: 650px;
  overflow: hidden;
  position: relative;
}

.fge-folder-open::after {
  background: linear-gradient(90deg, rgba(42, 29, 10, 0.4), rgba(225, 190, 109, 0.7), rgba(42, 29, 10, 0.4));
  bottom: 0;
  content: '';
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 5px;
  z-index: 3;
}

.fge-folder-panel {
  background:
    radial-gradient(circle at 18% 28%, rgba(240, 209, 137, 0.65), transparent 35%),
    linear-gradient(145deg, #aa853f, #7f602c 52%, #a67e36);
  min-width: 0;
  padding: 3.4%;
  position: relative;
}

.fge-folder-panel--left {
  border-right: 1px solid #5d4521;
}

.fge-folder-corner {
  height: 13%;
  pointer-events: none;
  position: absolute;
  width: 13%;
  z-index: 2;
}

.fge-folder-corner--tl {
  background: linear-gradient(135deg, #bd8733 0 47%, transparent 49%);
  left: 2.4%;
  top: 2.4%;
}

.fge-folder-corner--tr {
  background: linear-gradient(225deg, #bd8733 0 47%, transparent 49%);
  right: 2.4%;
  top: 2.4%;
}

.fge-folder-corner--bl {
  background: linear-gradient(45deg, #bd8733 0 47%, transparent 49%);
  bottom: 2.4%;
  left: 2.4%;
}

.fge-folder-corner--br {
  background: linear-gradient(315deg, #bd8733 0 47%, transparent 49%);
  bottom: 2.4%;
  right: 2.4%;
}

.fge-certificate,
.fge-folder-art,
.fge-folder-art-placeholder {
  height: 100%;
  width: 100%;
}

.fge-certificate {
	align-content: start;
  background: linear-gradient(135deg, #f4ead4, #fbf5e8 48%, #eee0c3);
  color: #25221f;
  display: grid;
  font-family: "FGE Roman", Georgia, "Times New Roman", serif;
  font-size: clamp(8px, 1.08vw, 12.5px);
  grid-template-rows: 55% auto auto;
  line-height: 1.25;
  padding: 7.5% 7% 6.5%;
	row-gap: 0.55em;
  text-align: center;
}

.fge-certificate p,
.fge-certificate span,
.fge-certificate strong {
  margin: 0;
}

.fge-certificate__heading {
  display: grid;
  grid-template-rows: auto auto auto auto 3em auto 3em;
  align-content: space-between;
}

.fge-certificate__heading > p:not(.fge-certificate__address),
.fge-certificate__heading > strong {
  font-family: "FGE Chancery", cursive;
  font-style: italic;
}

.fge-certificate__heading > p:not(.fge-certificate__address) {
  font-size: 1.45em;
}

.fge-certificate__heading > strong {
  align-items: flex-end;
  display: flex;
  font-size: 1.6em;
  font-weight: 400;
  justify-content: center;
  line-height: 1.05;
  overflow-wrap: anywhere;
  padding: 0 0.35em 0.2em;
}

.fge-certificate__address {
  font-family: "FGE Chancery", cursive;
  font-size: 0.92em;
  font-style: italic;
  line-height: 1.15;
  text-align: center;
}

.fge-certificate__body {
  align-self: end;
  font-size: 0.98em;
  font-style: normal;
  line-height: 1.28;
  text-align: left;
}

.fge-certificate__signature {
	font-size: 1em;
  font-style: normal;
  text-align: right;
}

.fge-certificate__footer {
  align-self: start;
  display: grid;
  margin-top: 0.1em;
  row-gap: 0.75em;
}

.fge-folder-art {
  background: #f3ead8;
  display: block;
  object-fit: contain;
}

.fge-folder-art-placeholder {
  align-items: center;
  background: #eee8dc;
  color: var(--fge-muted);
  display: flex;
  font-size: 0.85rem;
  justify-content: center;
  margin: 0;
  padding: 2rem;
  text-align: center;
}

.fge-folder-preview__note {
  color: var(--fge-muted);
  font-size: 0.76rem;
  margin: 0.85rem 0 0;
  text-align: center;
}

.fge-card-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.fge-card-option {
  appearance: none;
  background: var(--fge-white);
  border: 2px solid var(--fge-border);
  border-radius: 10px;
  color: var(--fge-ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fge-card-option:hover {
  border-color: #8fb6cc;
  transform: translateY(-2px);
}

.fge-card-option.is-selected {
  border-color: var(--fge-blue);
  box-shadow: 0 0 0 3px rgba(0, 85, 140, 0.11);
}

.fge-card-option img {
  aspect-ratio: 4 / 5;
  background: var(--fge-cream);
  display: block;
  object-fit: contain;
  padding: 0.35rem;
  width: 100%;
}

.fge-card-option span {
  align-items: center;
  display: flex;
  flex: 1;
  font-size: 0.8rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.25;
  min-height: 52px;
  padding: 0.55rem 0.35rem;
}

.fge-recipient-fields {
  background: var(--fge-cream);
  border: 1px solid var(--fge-border);
  border-radius: 13px;
  margin: 1rem 0 2rem;
  padding: clamp(1.1rem, 3vw, 2rem);
}

.fge-recipient-fields[hidden] {
  display: none !important;
}

.fge-recipient-fields h3 {
  color: var(--fge-blue-dark);
  margin: 0 0 1rem;
}

.fge-recipient-fields.is-copied .fge-field input[readonly],
.fge-recipient-fields.is-copied .fge-field select:disabled {
  background: #eef3f6;
  color: var(--fge-ink);
  cursor: default;
  opacity: 1;
}

.fge-recipient-copy-note {
  color: var(--fge-muted);
  margin: -0.35rem 0 1rem;
}

.fge-offering-options {
  border-top: 1px solid var(--fge-border);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.fge-offering-options > h3 {
  color: var(--fge-blue-dark);
  margin: 0 0 1rem;
}

.fge-offering-frequency,
.fge-other-amount {
  margin: 0.85rem 0 1.25rem;
  padding: 1rem;
}

.fge-money-input {
  align-items: center;
  display: flex;
  position: relative;
}

.fge-money-input b {
  color: var(--fge-text-muted);
  font-size: 1rem;
  left: 0.9rem;
  position: absolute;
}

.fge-money-input input {
  -moz-appearance: textfield;
  appearance: textfield;
  padding-left: 1.8rem;
  width: 100%;
}

.fge-money-input input::-webkit-inner-spin-button,
.fge-money-input input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fge-field-help {
  color: var(--fge-text-muted);
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 0.45rem;
}

.fge-actions {
  align-items: center;
  border-top: 1px solid var(--fge-border);
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.fge-actions--end {
  justify-content: flex-end;
}

.fge-button {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1.15;
  padding: 0.82rem 1.35rem;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.fge-button:hover {
  transform: translateY(-1px);
}

.fge-button--primary {
  background: var(--fge-blue);
  border-color: var(--fge-blue);
  color: var(--fge-white) !important;
}

.fge-button--primary:hover {
  background: var(--fge-blue-dark);
  border-color: var(--fge-blue-dark);
}

.fge-button--secondary {
  background: var(--fge-white);
  border-color: var(--fge-blue);
  color: var(--fge-blue) !important;
}

.fge-button--secondary:hover {
  background: var(--fge-blue-pale);
}

.fge-button--large {
  font-size: 1rem;
  margin-top: 0.8rem;
  padding: 1rem 1.65rem;
}

.fge-button[disabled] {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.fge-error {
  background: #fff2ef;
  border-left: 4px solid var(--fge-error);
  color: var(--fge-error);
  font-weight: 700;
  margin: 1rem 0;
  padding: 0.75rem 0.9rem;
}

.fge-privacy-note {
  background: var(--fge-blue-pale);
  border-radius: 8px;
  color: var(--fge-blue-dark);
  font-size: 0.86rem;
  margin: 1.5rem 0;
  padding: 0.85rem 1rem;
}

.fge-review {
  display: grid;
  gap: 2rem;
}

.fge-review__folder .fge-folder-preview {
  margin-top: 0;
}

.fge-review__details {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.fge-review__details section {
  border: 1px solid var(--fge-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  min-width: 0;
}

.fge-review__details section > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.fge-review__details h3 {
  color: var(--fge-blue-dark);
  font-size: 1.06rem;
  margin: 0;
}

.fge-review__details button {
  background: transparent;
  border: 0;
  color: var(--fge-blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
}

.fge-review__details dl {
  display: grid;
  font-size: 0.9rem;
  gap: 0.45rem 0.9rem;
  grid-template-columns: minmax(88px, 0.72fr) minmax(0, 1.28fr);
  margin: 0.85rem 0 0;
  min-width: 0;
}

.fge-review__details dt {
  color: var(--fge-muted);
  font-weight: 700;
}

.fge-review__details dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fge-payment-ready {
  background: var(--fge-cream);
  border: 1px solid var(--fge-border);
  border-radius: 15px;
  margin: 1.5rem auto 0;
  max-width: 720px;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.fge-payment-ready__label {
  color: var(--fge-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.fge-payment-ready__reference {
  color: var(--fge-blue-dark);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 850;
  letter-spacing: 0.035em;
  margin: 0.35rem 0 1.5rem;
}

.fge-payment-ready h3 {
  color: var(--fge-blue-dark);
  margin-bottom: 0.55rem;
}

.fge-demo-note {
  color: var(--fge-blue-dark);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 1rem auto 0;
  max-width: 520px;
}

.fge-honeypot {
  left: -10000px !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

@media (max-width: 900px) {
  .fge-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fge-choice-grid--three {
    grid-template-columns: 1fr;
  }

  .fge-choice-grid--three .fge-choice-card {
    min-height: auto;
  }

  .fge-review__details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .fge-app {
    margin: 1rem auto;
  }

  .fge-intro,
  .fge-shell {
    border-radius: 0;
  }

  .fge-progress {
    overflow-x: auto;
    padding: 1rem 0.75rem;
  }

  .fge-progress ol {
    min-width: 520px;
  }

  .fge-progress li b {
    font-size: 0.72rem;
  }

  .fge-choice-grid--two,
  .fge-fields--two,
  .fge-review {
    grid-template-columns: 1fr;
  }

  .fge-folder-preview__header {
    align-items: stretch;
    flex-direction: column;
  }

  .fge-folder-view-toggle {
    align-self: flex-start;
  }

  .fge-folder-open {
    min-width: 620px;
  }

  .fge-folder-cover {
    max-width: 330px;
  }

  .fge-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fge-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .fge-actions--end {
    flex-direction: column;
  }

  .fge-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .fge-shell {
    padding: 1.2rem 0.9rem 1.6rem;
  }

  .fge-card-grid {
    gap: 0.55rem;
  }

  .fge-review__details dl {
    grid-template-columns: 1fr;
  }

  .fge-review__details dt {
    margin-top: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fge-app *,
  .fge-app *::before,
  .fge-app *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
