/* ============================================================
   RHC — Demo request modal (shared across all pages)
   Extracted from index.html. Relies on the page's CSS vars
   (--ink, --paper, --accent, --accent2) and the 'Syne' font,
   which every page already defines.
   ============================================================ */
  .demo-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(10,10,15,0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center; justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity .25s ease;
  }
  .demo-overlay.open { display: flex; opacity: 1; }
  .demo-modal {
    background: var(--ink);
    color: var(--paper);
    border-radius: 20px;
    width: 100%; max-width: 460px;
    padding: 2.4rem 2.2rem 2rem;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 40px 80px rgba(0,0,0,.5);
    position: relative;
    transform: translateY(12px) scale(.98);
    transition: transform .3s cubic-bezier(.2,.7,.2,1);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
  .demo-overlay.open .demo-modal { transform: none; }
  .demo-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--paper);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.2rem; line-height: 1;
    transition: background .2s;
  }
  .demo-close:hover { background: rgba(255,255,255,.12); }
  .demo-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem; font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.1;
    margin-bottom: .5rem; padding-right: 2.5rem;
  }
  .demo-title em { font-style: normal; color: var(--accent2); }
  .demo-sub {
    font-size: .88rem; color: rgba(245,243,239,.55);
    line-height: 1.5; font-weight: 300;
    margin-bottom: 1.6rem;
  }
  .demo-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
  .demo-field label {
    font-size: .72rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: rgba(245,243,239,.55);
  }
  .demo-field input, .demo-field select {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: .75rem 1rem;
    color: var(--paper);
    font-family: inherit; font-size: .92rem;
    outline: none;
    transition: border-color .2s, background .2s;
  }
  .demo-field input:focus, .demo-field select:focus {
    border-color: var(--accent2);
    background: rgba(0,212,170,.05);
  }
  .demo-field input::placeholder { color: rgba(245,243,239,.3); }
  .demo-field select { appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f5f3ef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
  }
  .demo-field.error input, .demo-field.error select { border-color: #ff6496; }
  .demo-field-err {
    font-size: .72rem; color: #ff6496;
    margin-top: .15rem;
    display: none;
  }
  .demo-field.error .demo-field-err { display: block; }
  .demo-submit {
    width: 100%;
    background: var(--accent);
    color: var(--ink);
    padding: .9rem;
    border-radius: 100px;
    border: none;
    font-family: 'Syne', sans-serif;
    font-weight: 700; font-size: .95rem;
    cursor: pointer;
    margin-top: .6rem;
    transition: transform .15s, box-shadow .2s;
  }
  .demo-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(232,255,71,.25); }
  .demo-foot {
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .72rem; color: rgba(245,243,239,.4);
    line-height: 1.5; text-align: center;
  }
  .demo-success {
    text-align: center; padding: 1rem 0 .4rem;
    display: none;
  }
  .demo-success.show { display: block; }
  .demo-success-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(0,212,170,.15);
    border: 1px solid rgba(0,212,170,.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent2); margin: 0 auto 1rem;
  }
  .demo-success-icon svg { width: 24px; height: 24px; }
  .demo-success h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem; font-weight: 700;
    letter-spacing: -0.02em; margin-bottom: .5rem;
  }
  .demo-success p {
    font-size: .88rem; color: rgba(245,243,239,.6);
    line-height: 1.6; font-weight: 300;
  }
  body.demo-locked { overflow: hidden; }
