:root {
      --cream: #fbf7ef;
      --ivory: #f7f2e8;
      --white: #ffffff;
      --brown-deep: #2a1e18;
      --brown-warm: #5b4434;
      --brown-soft: #8a6a54;
      --tan: #cdb79e;
      --sand: #e6dacb;
      --sage: #6b8f71;
      --sage-soft: #b5d1ba;
      --silver-dark: #6c707a;
      --silver: #b9c0cb;
      --silver-light: #e7ebf2;
      --silver-shimmer: #f7f8fb;
      --ink-soft: #4f3f35;
      --radius-md: 24px;
      --radius-sm: 14px;
      --radius-full: 999px;
      --font-display: "Fraunces", Georgia, serif;
      --font-body: "Outfit", system-ui, sans-serif;

      /* Compatibility aliases (keep existing CSS selectors working) */
      --purple-deep: var(--brown-deep);
      --purple-royal: var(--brown-warm);
      --purple-mid: var(--sage);
      --purple-soft: var(--tan);
      --gold: var(--silver);
      --gold-light: var(--silver-light);
    }

    * { box-sizing: border-box; }

    /* Full page: flat cream; no site swirl / gradient backgrounds */
    .gh-intake-page {
      background-color: var(--cream) !important;
      background-image: none !important;
      background-attachment: scroll !important;
    }

    .gh-intake-page .appointment {
      background: var(--cream) !important;
    }

    .gh-intake-page .appointment::before {
      display: none !important;
    }

    /* Same horizontal width as .container */
    .gh-intake-page .gh-form-wrap {
      width: min(1120px, 100% - 2rem);
      max-width: 1120px;
      margin-left: auto;
      margin-right: auto;
      padding: 0 0 3rem;
    }

    @media (max-width: 380px) {
      .gh-intake-page .gh-form-wrap {
        width: calc(100% - 1.25rem);
      }
    }

    .gh-intake-page .gh-form-card {
      background: var(--cream);
      border: 1px solid rgba(205, 183, 158, 0.35);
      box-shadow: 0 4px 24px rgba(42, 30, 24, 0.06);
    }

    .gh-form-process {
      margin: 0 auto 1rem;
      max-width: 40rem;
      font-size: 0.98rem;
      line-height: 1.6;
      color: var(--ink-soft);
      text-align: center;
    }

    .gh-form-process strong {
      color: var(--purple-royal);
      font-weight: 600;
    }

    html.gh-intake-embedded .gh-intake-chrome {
      display: none !important;
    }

    html.gh-intake-embedded .gh-form-wrap {
      padding-top: 0;
    }

    #appointment,
    #gh-intake-form {
      scroll-margin-top: calc(5.5rem + 12px);
    }

    .gh-form-card {
      background: linear-gradient(165deg, var(--white) 0%, rgba(251, 247, 239, 0.98) 100%);
      border: 1px solid rgba(185, 192, 203, 0.38);
      border-radius: var(--radius-md);
      box-shadow: 0 16px 48px rgba(42, 30, 24, 0.12), 0 0 0 1px rgba(107, 143, 113, 0.05);
      padding: clamp(1.25rem, 3vw, 2rem);
    }

    .gh-form-intro {
      text-align: center;
      margin-bottom: 0.15rem;
    }

    .gh-form-eyebrow {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.26em;
      text-transform: uppercase;
      color: var(--gold);
      margin: 0 0 0.5rem;
      padding-bottom: 0.5rem;
      background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%) center bottom / 4.5rem 1px no-repeat;
    }

    .gh-form-title {
      font-family: var(--font-display);
      font-size: clamp(1.65rem, 4vw, 2rem);
      font-weight: 600;
      color: var(--purple-royal);
      margin: 0 0 0.35rem;
      line-height: 1.2;
    }

    .gh-form-lead {
      margin: 0 auto 1.25rem;
      max-width: 36rem;
      font-size: 0.98rem;
      color: var(--ink-soft);
    }

    .gh-form-intro-media {
      margin: 0.5rem auto 1rem;
      max-width: min(52rem, 100%);
      border-radius: var(--radius-sm);
      overflow: hidden;
      border: 1px solid rgba(205, 183, 158, 0.35);
      box-shadow: 0 8px 28px rgba(42, 30, 24, 0.08);
    }

    .gh-form-intro-media img {
      display: block;
      width: 100%;
      height: auto;
      vertical-align: middle;
    }

    .gh-section {
      margin-bottom: 0.65rem;
      border: 1px solid rgba(205, 183, 158, 0.26);
      border-radius: var(--radius-sm);
      background: rgba(255, 255, 255, 0.65);
      overflow: hidden;
    }

    .gh-section > summary {
      list-style: none;
      cursor: pointer;
      padding: 1rem 1.1rem;
      font-family: var(--font-display);
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--purple-royal);
      background: linear-gradient(90deg, rgba(230, 218, 203, 0.55) 0%, transparent 100%);
      border-bottom: 1px solid transparent;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .gh-section > summary::-webkit-details-marker { display: none; }

    .gh-section > summary::after {
      content: "";
      width: 0.5rem;
      height: 0.5rem;
      border-right: 2px solid var(--gold);
      border-bottom: 2px solid var(--gold);
      transform: rotate(45deg);
      transition: transform 0.2s ease;
      flex-shrink: 0;
    }

    .gh-section[open] > summary {
      border-bottom-color: rgba(205, 183, 158, 0.2);
    }

    .gh-section[open] > summary::after {
      transform: rotate(-135deg);
      margin-top: 0.25rem;
    }

    .gh-section > summary:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 2px;
    }

    .gh-section-purpose {
      font-family: var(--font-body);
      font-size: 0.78rem;
      font-weight: 500;
      color: var(--purple-soft);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      display: block;
      margin-top: 0.25rem;
    }

    .gh-section-body {
      padding: 1.15rem 1.1rem 1.35rem;
    }

    .gh-form-field {
      margin-bottom: 1.2rem;
    }

    .gh-form-field:last-child { margin-bottom: 0; }

    .gh-form-field > label.gh-label-block {
      display: block;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--purple-royal);
      margin-bottom: 0.45rem;
    }

    .gh-form-field .req {
      color: var(--purple-mid);
      font-weight: 700;
    }

    .gh-form-field .gh-optional-note {
      font-weight: 400;
      font-size: 0.85em;
      color: var(--ink-soft);
      opacity: 0.9;
    }

    .gh-form-field input[type="text"],
    .gh-form-field input[type="email"],
    .gh-form-field input[type="tel"],
    .gh-form-field input[type="date"],
    .gh-form-field input[type="number"],
    .gh-form-field select,
    .gh-form-field textarea {
      width: 100%;
      font-family: var(--font-body);
      font-size: 1rem;
      color: var(--ink-soft);
      background: var(--white);
      border: 1px solid rgba(205, 183, 158, 0.28);
      border-radius: var(--radius-sm);
      padding: 0.65rem 0.9rem;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .gh-form-field input[readonly] {
      background: rgba(230, 218, 203, 0.22);
      cursor: default;
      color: var(--ink-soft);
    }

    .gh-form-field select {
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b8f71' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.9rem center;
      padding-right: 2.25rem;
    }

    .gh-form-field textarea {
      min-height: 100px;
      resize: vertical;
    }

    .gh-form-field input:focus-visible,
    .gh-form-field select:focus-visible,
    .gh-form-field textarea:focus-visible {
      outline: none;
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(185, 192, 203, 0.28);
    }

    .gh-form-field input.gh-input-invalid,
    .gh-form-field select.gh-input-invalid,
    .gh-form-field textarea.gh-input-invalid {
      border-color: #a84848;
      background-color: rgba(168, 72, 72, 0.07);
      box-shadow: 0 0 0 2px rgba(168, 72, 72, 0.18);
    }

    .gh-form-field input.gh-input-invalid:focus-visible,
    .gh-form-field select.gh-input-invalid:focus-visible,
    .gh-form-field textarea.gh-input-invalid:focus-visible {
      border-color: #a84848;
      box-shadow: 0 0 0 3px rgba(168, 72, 72, 0.28);
    }

    .gh-form-field input[type="file"] {
      width: 100%;
      font-size: 0.9rem;
      padding: 0.5rem;
      border: 1px dashed rgba(205, 183, 158, 0.45);
      border-radius: var(--radius-sm);
      background: rgba(251, 247, 239, 0.9);
    }

    .gh-hint {
      font-size: 0.82rem;
      color: var(--purple-soft);
      margin: 0.35rem 0 0;
    }

    .gh-address-grid {
      display: grid;
      gap: 1rem;
      grid-template-columns: 1fr;
    }

    @media (min-width: 36rem) {
      .gh-address-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr) minmax(0, 1fr);
      }
    }

    .gh-address-grid .gh-subfield {
      margin-bottom: 0;
    }

    .gh-address-grid .gh-subfield > label.gh-label-block {
      display: block;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--purple-royal);
      margin-bottom: 0.4rem;
    }

    .gh-address-group-title {
      display: block;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--purple-royal);
      margin: 0 0 0.25rem;
    }

    .gh-choice-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .gh-choice {
      display: flex;
      align-items: flex-start;
      gap: 0.55rem;
      font-size: 0.95rem;
      color: var(--ink-soft);
      cursor: pointer;
    }

    .gh-choice input {
      margin-top: 0.28rem;
      accent-color: var(--purple-mid);
      flex-shrink: 0;
    }

    .gh-day-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 0.5rem 1rem;
    }

    .gh-conditional {
      margin-top: 1rem;
      padding: 1rem;
      border-radius: var(--radius-sm);
      background: rgba(230, 218, 203, 0.35);
      border: 1px solid rgba(205, 183, 158, 0.28);
    }

    .gh-conditional[hidden] {
      display: none !important;
    }

    .gh-static-block {
      font-size: 0.95rem;
      line-height: 1.6;
      color: var(--ink-soft);
      padding: 1rem;
      background: rgba(230, 218, 203, 0.45);
      border-radius: var(--radius-sm);
      border-left: 3px solid var(--gold);
      margin-bottom: 1.25rem;
    }

    .gh-static-block ul {
      margin: 0.5rem 0 0;
      padding-left: 1.2rem;
    }

    .gh-static-block strong {
      color: var(--purple-royal);
    }

    .gh-form-actions {
      margin-top: 1.5rem;
      padding-top: 1.25rem;
      border-top: 1px solid rgba(205, 183, 158, 0.24);
    }

    .gh-form-submit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 2.85rem;
      padding: 0.85rem 1.75rem;
      font-family: var(--font-body);
      font-size: 1rem;
      font-weight: 500;
      color: var(--white);
      background: linear-gradient(135deg, var(--purple-mid) 0%, var(--purple-deep) 100%);
      border: 1px solid transparent;
      border-radius: var(--radius-full);
      cursor: pointer;
      box-shadow: 0 6px 28px rgba(42, 30, 24, 0.26);
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .gh-form-submit:hover {
      background: linear-gradient(135deg, var(--purple-soft) 0%, var(--purple-mid) 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(42, 30, 24, 0.18);
    }

    .gh-form-submit:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 3px;
    }

    .gh-error-banner {
      display: none;
      margin-bottom: 1rem;
      padding: 0.85rem 1rem;
      border-radius: var(--radius-sm);
      background: rgba(180, 80, 80, 0.12);
      border: 1px solid rgba(180, 80, 80, 0.35);
      color: #5c2a2a;
      font-size: 0.92rem;
    }

    .gh-error-banner.is-visible { display: block; }

    .gh-success-banner {
      display: none;
      margin-bottom: 1rem;
      padding: 0.85rem 1rem;
      border-radius: var(--radius-sm);
      background: rgba(60, 120, 80, 0.12);
      border: 1px solid rgba(60, 120, 80, 0.35);
      color: #2d4a32;
      font-size: 0.92rem;
    }

    .gh-success-banner.is-visible { display: block; }

    .gh-form-submit.is-busy {
      opacity: 0.75;
      pointer-events: none;
      cursor: wait;
    }

    .gh-tc-snippet {
      font-size: 0.88rem;
      line-height: 1.6;
      color: var(--ink-soft);
      padding: 0.9rem 1rem;
      margin-bottom: 1.15rem;
      background: rgba(255, 253, 248, 0.92);
      border-radius: var(--radius-sm);
      border: 1px solid rgba(205, 183, 158, 0.26);
    }

    .gh-tc-snippet > strong:first-child {
      display: block;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--purple-soft);
      margin-bottom: 0.45rem;
    }

    .gh-tc-snippet-subhead {
      font-family: var(--font-display);
      font-size: 0.98rem;
      font-weight: 600;
      color: var(--purple-royal);
      margin: 0 0 0.5rem;
    }

    .gh-tc-snippet-foot {
      margin-top: 0.75rem !important;
      margin-bottom: 0 !important;
      padding-top: 0.65rem;
      border-top: 1px solid rgba(205, 183, 158, 0.28);
      font-size: 0.84rem;
      color: var(--ink-soft);
    }

    .gh-tc-snippet-foot .gh-terms-popup-link {
      font-size: inherit;
    }

    .gh-tc-snippet p {
      margin: 0 0 0.5rem;
    }

    .gh-tc-snippet p:last-child {
      margin-bottom: 0;
    }

    .gh-tc-snippet ul {
      margin: 0.35rem 0 0;
      padding-left: 1.15rem;
    }

    .gh-tc-snippet li {
      margin-bottom: 0.25rem;
    }

    .gh-form-terms-link-wrap {
      text-align: center;
      margin: 0 0 1.1rem;
      font-size: 0.95rem;
    }

    .gh-form-terms-link-hint {
      font-size: 0.85rem;
      color: var(--purple-soft);
      font-weight: 400;
    }

    .gh-terms-popup-link {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--purple-mid);
      text-decoration: underline;
      text-underline-offset: 3px;
      cursor: pointer;
      border: none;
      background: none;
      font-family: inherit;
      padding: 0.15rem 0;
      align-self: center;
    }

    .gh-terms-popup-link:hover {
      color: var(--purple-royal);
    }

    .gh-terms-popup-link:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 2px;
      border-radius: 4px;
    }

    .gh-modal {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0.75rem;
    }

    .gh-modal[hidden] {
      display: none !important;
    }

    .gh-modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(42, 30, 24, 0.58);
      backdrop-filter: blur(4px);
    }

    .gh-modal-panel {
      position: relative;
      width: min(960px, calc(100vw - 1.5rem));
      max-height: min(92vh, 1100px);
      display: flex;
      flex-direction: column;
      background: var(--white);
      border-radius: var(--radius-md);
      border: 1px solid rgba(185, 192, 203, 0.4);
      box-shadow: 0 24px 64px rgba(42, 30, 24, 0.3);
      overflow: hidden;
    }

    .gh-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.85rem 1rem;
      border-bottom: 1px solid rgba(205, 183, 158, 0.26);
      background: linear-gradient(90deg, rgba(230, 218, 203, 0.6) 0%, transparent 100%);
    }

    .gh-modal-header h2 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--purple-royal);
    }

    .gh-modal-close {
      flex-shrink: 0;
      width: 2.25rem;
      height: 2.25rem;
      border: none;
      border-radius: var(--radius-sm);
      background: rgba(230, 218, 203, 0.55);
      color: var(--purple-royal);
      font-size: 1.35rem;
      line-height: 1;
      cursor: pointer;
      transition: background 0.2s ease;
    }

    .gh-modal-close:hover {
      background: rgba(205, 183, 158, 0.55);
    }

    .gh-modal-close:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 2px;
    }

    .gh-modal-frame {
      flex: 1;
      width: 100%;
      min-height: min(65vh, 720px);
      border: none;
      background: var(--ivory);
    }

    /* Standalone intake pages (e.g. medical-intake-consent-policies-form.html) — align with home appointment form */
    body.gh-medical-standalone {
      margin: 0;
      min-height: 100vh;
      font-family: var(--font-body);
      font-size: 1.06rem;
      line-height: 1.65;
      color: var(--ink-soft);
      background: var(--ivory);
      background-image:
        radial-gradient(ellipse 130% 95% at 50% -15%, rgba(251, 247, 239, 0.98) 0%, transparent 58%),
        linear-gradient(185deg, #fffdf8 0%, var(--ivory) 42%, #f4ede1 100%);
      padding: 2rem 0 3rem;
    }

    body.gh-medical-standalone .gh-intake-page {
      background-color: transparent !important;
      background-image: none !important;
    }

    body.gh-medical-standalone .gh-form-wrap {
      padding-top: 0.25rem;
      padding-bottom: 3.5rem;
    }

    body.gh-medical-standalone .gh-form-intro {
      margin-bottom: 1.25rem;
    }

    body.gh-medical-standalone .gh-form-lead {
      margin-bottom: 1.5rem;
    }

    body.gh-medical-standalone .gh-form-card {
      max-width: 720px;
      margin-left: auto;
      margin-right: auto;
    }

    body.gh-medical-standalone .gh-section {
      margin-bottom: 1rem;
    }

    body.gh-medical-standalone .gh-section:last-of-type {
      margin-bottom: 0.65rem;
    }

    body.gh-medical-standalone #gh-form-error,
    body.gh-medical-standalone #gh-form-success {
      max-width: 720px;
      margin-left: auto;
      margin-right: auto;
    }

    body.gh-medical-standalone .gh-hint code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 0.88em;
      padding: 0.1em 0.35em;
      border-radius: 4px;
      background: rgba(230, 218, 203, 0.35);
      border: 1px solid rgba(205, 183, 158, 0.35);
    }

    /* Embedded Google Form (homepage appointment section) */
    .gh-intake-page .gh-google-form-embed {
      width: 100%;
      max-width: 640px;
      margin: 0 auto;
    }

    .gh-intake-page .gh-google-form-embed iframe {
      display: block;
      width: 100%;
      min-height: 1200px;
      border: 0;
      border-radius: var(--radius-sm, 12px);
      background: #fff;
    }
