    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

    :root {
      --bg: #080706;
      --panel: rgba(255,255,255,.055);
      --panel-strong: rgba(255,255,255,.08);
      --line: rgba(255,255,255,.11);
      --line-strong: rgba(255,255,255,.18);
      --text: #f2f2f2;
      --muted: rgba(255,255,255,.42);
      --faint: rgba(255,255,255,.22);
      --brand: #b55f34;
      --brand-2: #ce7440;
      --brand-dark: #552717;
      --danger: #ff7b62;
      --ok: #b55f34;
      --shadow: 0 30px 90px rgba(0,0,0,.45);
      --ease: cubic-bezier(.2,.8,.2,1);
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; min-height: 100%; background: #050403; }
    body {
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text);
      overflow-x: hidden;
    }

    .gf-shell {
      min-height: 100svh;
      background:
        radial-gradient(circle at 96% -2%, #a35637 0%, #8c4a2f 9%, rgba(140, 74, 47, .5) 20%, rgba(140, 74, 47, .2) 36%, transparent 55%),
        linear-gradient(90deg, #040403 0%, #090706 47%, #110906 100%);
      display: grid;
      grid-template-rows: auto auto 1fr auto;
      position: relative;
      isolation: isolate;
      overflow: hidden;
    }

    .gf-shell::before {
      content: "";
      position: absolute;
      inset: -50%;
      pointer-events: none;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
      background-size: 320px 320px;
      background-repeat: repeat;
      opacity: .65;
      mix-blend-mode: multiply;
      z-index: -2;
      animation: gf-noise-drift 18s linear infinite;
      will-change: transform;
    }

    @keyframes gf-noise-drift {
      0%   { transform: translate3d(0, 0, 0); }
      25%  { transform: translate3d(-40px, 30px, 0); }
      50%  { transform: translate3d(20px, -40px, 0); }
      75%  { transform: translate3d(-30px, -20px, 0); }
      100% { transform: translate3d(0, 0, 0); }
    }

    @media (prefers-reduced-motion: reduce) {
      .gf-shell::before { animation: none; }
    }

    .gf-shell::after {
      content: none;
    }

    .gf-top {
      width: min(100%, 1800px);
      margin: 0 auto;
      padding: clamp(34px, 5vw, 92px) clamp(24px, 6vw, 122px) 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .gf-logo {
      display: inline-flex;
      align-items: center;
      gap: 18px;
      user-select: none;
    }

    .gf-logo img {
      width: clamp(166px, 16vw, 286px);
      height: auto;
      display: block;
      filter: drop-shadow(0 10px 30px rgba(0,0,0,.18));
    }

    .gf-meta {
      text-align: right;
      line-height: 1.45;
      font-size: clamp(13px, 1.2vw, 18px);
      font-weight: 600;
      color: rgba(255,255,255,.92);
      letter-spacing: -.02em;
    }

    .gf-pct {
      display: block;
      font-size: clamp(18px, 1.7vw, 27px);
      font-weight: 800;
      margin-top: 7px;
    }

    .gf-progress-region {
      width: min(100%, 1800px);
      margin: 0 auto;
      padding: clamp(24px, 4vw, 62px) clamp(24px, 6vw, 122px) 0;
    }

    .gf-progress {
      height: 4px;
      background: rgba(255,255,255,.07);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
      overflow: hidden;
    }

    .gf-progress-fill {
      width: 5%;
      height: 100%;
      background: linear-gradient(90deg, var(--brand), var(--brand-2));
      transition: width .48s var(--ease);
      box-shadow: 0 0 24px rgba(206, 116, 64, .35);
    }

    .gf-main {
      width: min(100%, 1800px);
      margin: 0 auto;
      padding: 0 clamp(24px, 6vw, 122px);
      display: grid;
      align-items: center;
    }

    .gf-card {
      width: min(100%, 790px);
      padding-top: clamp(36px, 8vh, 126px);
      padding-bottom: clamp(28px, 8vh, 90px);
    }

    .gf-step {
      animation: enter .34s var(--ease) both;
    }

    .gf-section {
      color: var(--brand);
      font-size: clamp(14px, 1.2vw, 20px);
      font-weight: 800;
      margin-bottom: 10px;
      letter-spacing: -.035em;
    }

    .gf-question {
      margin: 0 0 clamp(20px, 2.3vw, 31px);
      max-width: 760px;
      font-size: clamp(30px, 3.3vw, 57px);
      line-height: 1.05;
      font-weight: 700;
      letter-spacing: -.062em;
    }

    .gf-optional {
      display: inline-block;
      margin-left: 10px;
      font-size: .42em;
      color: var(--faint);
      font-weight: 500;
      letter-spacing: -.02em;
      vertical-align: middle;
    }

    .gf-field {
      width: min(100%, 850px);
    }

    .gf-input, .gf-textarea {
      width: 100%;
      min-height: 72px;
      background: var(--panel);
      border: 1px solid rgba(255,255,255,.075);
      border-radius: 12px;
      color: var(--text);
      font: 400 clamp(17px, 1.45vw, 27px)/1.35 Inter, sans-serif;
      padding: 0 40px;
      outline: none;
      transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
      caret-color: var(--brand-2);
      box-shadow: 0 20px 60px rgba(0,0,0,.11);
    }

    .gf-textarea {
      min-height: 150px;
      padding: 28px 32px;
      resize: vertical;
    }

    .gf-input::placeholder, .gf-textarea::placeholder {
      color: rgba(255,255,255,.24);
      font-weight: 400;
    }

    .gf-input:focus, .gf-textarea:focus {
      background: var(--panel-strong);
      border-color: rgba(206,116,64,.64);
      box-shadow: 0 0 0 4px rgba(206,116,64,.08), 0 20px 70px rgba(0,0,0,.16);
    }

    .gf-hint, .gf-error {
      margin: 18px 0 0;
      font-size: clamp(13px, 1.2vw, 20px);
      color: var(--faint);
      font-weight: 500;
      letter-spacing: -.035em;
    }

    .gf-error {
      display: none;
      color: var(--danger);
    }

    .gf-options {
      display: grid;
      gap: 10px;
      width: min(100%, 760px);
    }

    .gf-option, .gf-tag {
      appearance: none;
      text-align: left;
      cursor: pointer;
      color: rgba(255,255,255,.66);
      background: rgba(255,255,255,.035);
      border: 1px solid rgba(255,255,255,.085);
      border-radius: 12px;
      transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
      font-family: inherit;
    }

    .gf-option {
      display: flex;
      align-items: center;
      gap: 16px;
      min-height: 58px;
      padding: 16px 22px;
      font-size: clamp(15px, 1.2vw, 20px);
      font-weight: 500;
    }

    .gf-option:hover, .gf-tag:hover {
      transform: translateY(-1px);
      color: #fff;
      background: rgba(181,95,52,.08);
      border-color: rgba(206,116,64,.45);
    }

    .gf-option[aria-pressed="true"], .gf-tag[aria-pressed="true"] {
      color: #fff;
      background: rgba(181,95,52,.13);
      border-color: rgba(206,116,64,.72);
    }

    .gf-dot {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.26);
      flex: 0 0 auto;
      transition: all .18s ease;
      box-shadow: inset 0 0 0 4px transparent;
    }

    .gf-option[aria-pressed="true"] .gf-dot {
      border-color: var(--brand-2);
      background: var(--brand-2);
      box-shadow: inset 0 0 0 4px rgba(8,7,6,.9);
    }

    .gf-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      max-width: 850px;
    }

    .gf-tag {
      padding: 13px 18px;
      font-size: clamp(14px, 1.1vw, 18px);
      font-weight: 600;
    }

    .gf-footer {
      width: min(100%, 1800px);
      margin: 0 auto;
      padding: 0 clamp(24px, 6vw, 122px) clamp(28px, 5vw, 86px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .gf-button {
      min-width: clamp(170px, 17vw, 350px);
      min-height: clamp(58px, 5vw, 94px);
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.025);
      color: rgba(255,255,255,.33);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 0 clamp(24px, 2.6vw, 44px);
      font: 700 clamp(15px, 1.3vw, 23px)/1 Inter, sans-serif;
      letter-spacing: -.04em;
      transition: border-color .2s ease, color .2s ease, background .2s ease, transform .18s ease, opacity .18s ease;
    }

    .gf-back > span:first-child,
    .gf-next > span:last-child {
      font-size: clamp(22px, 2vw, 34px);
      font-weight: 400;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 1em;
      translate: 0 -0.15em;
    }

    .gf-button:hover:not(:disabled) {
      transform: translateY(-1px);
      border-color: rgba(255,255,255,.22);
      color: rgba(255,255,255,.62);
    }

    .gf-button:disabled {
      opacity: .32;
      cursor: not-allowed;
    }

    .gf-next {
      margin-left: auto;
      color: var(--brand-2);
      border-color: rgba(206,116,64,.38);
      background: rgba(255,255,255,.018);
    }

    .gf-next:hover:not(:disabled) {
      color: #df8450;
      border-color: rgba(206,116,64,.78);
      background: rgba(181,95,52,.07);
    }

    .gf-secondary-actions {
      display: flex;
      gap: 10px;
      margin-top: 22px;
      flex-wrap: wrap;
    }

    .gf-small-action {
      border: 1px solid rgba(255,255,255,.1);
      color: rgba(255,255,255,.45);
      background: rgba(255,255,255,.03);
      border-radius: 999px;
      padding: 9px 13px;
      font: 600 12px/1 Inter, sans-serif;
      cursor: pointer;
    }

    .gf-small-action:hover {
      color: white;
      border-color: rgba(206,116,64,.45);
    }

    .gf-success {
      width: min(100%, 760px);
      animation: enter .38s var(--ease) both;
    }

    .gf-success-icon {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      border: 1px solid rgba(206,116,64,.86);
      display: grid;
      place-items: center;
      margin-bottom: 24px;
      color: var(--brand-2);
      box-shadow: 0 0 50px rgba(206,116,64,.16);
    }

    .gf-success h1 {
      font-size: clamp(42px, 5vw, 88px);
      line-height: .96;
      letter-spacing: -.07em;
      margin: 0 0 20px;
    }

    .gf-success p {
      color: rgba(255,255,255,.48);
      font-size: clamp(16px, 1.3vw, 22px);
      line-height: 1.75;
      margin: 0;
      max-width: 680px;
    }

    .gf-review {
      max-width: 900px;
      max-height: min(48vh, 520px);
      overflow: auto;
      border: 1px solid rgba(255,255,255,.09);
      background: rgba(255,255,255,.035);
      border-radius: 16px;
      margin-top: 26px;
      padding: 10px;
    }

    .gf-review-row {
      display: grid;
      grid-template-columns: minmax(140px, 230px) 1fr;
      gap: 16px;
      padding: 14px 16px;
      border-bottom: 1px solid rgba(255,255,255,.065);
    }

    .gf-review-row:last-child { border-bottom: 0; }
    .gf-review-key { color: var(--brand-2); font-weight: 800; font-size: 13px; }
    .gf-review-value { color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.5; white-space: pre-wrap; }

    @keyframes enter {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .is-leaving { animation: leave .22s ease both; }
    @keyframes leave {
      from { opacity: 1; transform: translateY(0); }
      to { opacity: 0; transform: translateY(-12px); }
    }

    .shake { animation: shake .36s ease both; }
    @keyframes shake {
      0%,100% { transform: translateX(0); }
      20% { transform: translateX(-8px); }
      40% { transform: translateX(8px); }
      60% { transform: translateX(-5px); }
      80% { transform: translateX(5px); }
    }

    .gf-toast {
      position: fixed;
      left: 50%;
      bottom: 24px;
      transform: translateX(-50%) translateY(18px);
      background: rgba(16,14,12,.92);
      border: 1px solid rgba(206,116,64,.35);
      color: rgba(255,255,255,.82);
      box-shadow: var(--shadow);
      border-radius: 999px;
      padding: 12px 16px;
      font-size: 13px;
      opacity: 0;
      pointer-events: none;
      transition: all .25s ease;
      z-index: 10;
      backdrop-filter: blur(14px);
    }

    .gf-toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    @media (max-width: 760px) {
      .gf-shell {
        min-height: 100dvh;
        grid-template-rows: auto auto 1fr auto;
      }

      .gf-top {
        padding-top: 26px;
        align-items: flex-start;
      }

      .gf-logo img {
        width: 168px;
      }

      .gf-meta {
        font-size: 12px;
      }

      .gf-pct {
        font-size: 18px;
        margin-top: 4px;
      }

      .gf-progress-region {
        padding-top: 22px;
      }

      .gf-progress {
        height: 3px;
      }

      .gf-main {
        align-items: start;
      }

      .gf-card {
        padding-top: 62px;
      }

      .gf-question {
        font-size: 35px;
        line-height: 1.05;
      }

      .gf-section {
        font-size: 15px;
      }

      .gf-input {
        min-height: 62px;
        padding: 0 20px;
        font-size: 18px;
      }

      .gf-textarea {
        min-height: 134px;
        padding: 20px;
        font-size: 17px;
      }

      .gf-footer {
        padding-bottom: 24px;
      }

      .gf-button {
        min-width: 0;
        flex: 1;
        min-height: 58px;
        padding: 0 18px;
        font-size: 15px;
      }

      .gf-back {
        max-width: 122px;
      }

      .gf-shell::after {
        width: 92vw;
        right: -50vw;
        bottom: 12vh;
      }

      .gf-review-row {
        grid-template-columns: 1fr;
        gap: 6px;
      }
    }
/* ─────────────────────────────────────────────────────────────────────────
   Additions for the HTMX server-rendered version
   ───────────────────────────────────────────────────────────────────────── */

/* Section label above the question (e.g. "Basic Information") */
.gf-section-label {
  color: var(--accent, #a35637);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 10px;
  text-transform: none;
}

/* Inline help / error text under the input */
.gf-help {
  color: rgba(255,255,255,.3);
  font-size: 14px;
  margin: 14px 0 0;
  letter-spacing: -.02em;
}
.gf-error {
  color: #f87171;
  font-size: 14px;
  margin: 14px 0 0;
  letter-spacing: -.02em;
}

/* Single/multi-choice options */
.gf-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.gf-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  font-size: 15px;
  color: var(--text, #f5f0eb);
  letter-spacing: -.02em;
}
.gf-option:hover {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.04);
}
.gf-option input[type="radio"],
.gf-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid rgba(255,255,255,.3);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .18s ease, background .18s ease;
}
.gf-option input[type="radio"] { border-radius: 50%; }
.gf-option input[type="checkbox"] { border-radius: 4px; }
.gf-option input[type="radio"]:checked,
.gf-option input[type="checkbox"]:checked {
  border-color: var(--accent, #a35637);
  background: var(--accent, #a35637);
  background-clip: content-box;
  padding: 3px;
}
.gf-option input[type="checkbox"]:checked {
  background: var(--accent, #a35637) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.5l2.5 2.5 4.5-5'/%3E%3C/svg%3E") center/12px no-repeat;
  padding: 0;
}
.gf-option:has(input:checked) {
  border-color: var(--accent, #a35637);
  background: rgba(163, 86, 55, .08);
}
.gf-option-label {
  flex: 1;
}

/* Review screen */
.gf-review {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 20px 0;
  max-height: 56vh;
  overflow-y: auto;
  padding-right: 12px;
}
.gf-review::-webkit-scrollbar { width: 8px; }
.gf-review::-webkit-scrollbar-track { background: transparent; }
.gf-review::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.gf-review-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gf-review-section-title {
  color: var(--accent, #a35637);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 4px;
}
.gf-review-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.gf-review-item:last-child { border-bottom: 0; }
.gf-review-q {
  color: rgba(255,255,255,.5);
  font-size: 13px;
  margin-bottom: 4px;
}
.gf-review-a {
  color: var(--text, #f5f0eb);
  font-size: 14px;
  white-space: pre-wrap;
}
.gf-review-empty {
  color: rgba(255,255,255,.25);
  font-style: italic;
}

/* Thank-you screen */
.gf-thanks .gf-question { margin-bottom: 16px; }
.gf-thanks-body {
  color: rgba(255,255,255,.7);
  font-size: 16px;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 0 16px;
}

/* Disabled back button */
.gf-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* HTMX request indicator — subtle dim during swap */
.htmx-request.gf-card { opacity: 0.7; transition: opacity .15s ease; }


.gf-thanks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  padding: 0 clamp(24px, 2.6vw, 44px);
  min-width: clamp(220px, 20vw, 320px);
  min-height: clamp(58px, 5vw, 78px);
  border-radius: 12px;
  border: 1px solid rgba(163, 86, 55, .45);
  background: rgba(163, 86, 55, .08);
  color: #c4724d;
  text-decoration: none;
  font: 700 clamp(15px, 1.3vw, 18px)/1 Inter, sans-serif;
  letter-spacing: -.03em;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.gf-thanks-btn:hover {
  border-color: var(--accent, #a35637);
  background: rgba(163, 86, 55, .15);
  color: #d68660;
}
.gf-thanks-btn > span:last-child {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 400;
  translate: 0 -0.1em;
}