  /* ============ Scoped, prefixed styles — safe to paste into WordPress ============ */
  #lqw-root, #lqw-root * { box-sizing: border-box; }
  #lqw-root {
    --lqw-primary: #4f46e5;
    --lqw-primary-dark: #4338ca;
    --lqw-ink: #1e1b2e;
    --lqw-muted: #6b6478;
    --lqw-border: #e6e3ee;
    --lqw-bg: #ffffff;
    --lqw-bg-soft: #f7f6fb;
    --lqw-hot: #e0432b;
    --lqw-warm: #f0900f;
    --lqw-backlog: #6b6478;
    --lqw-radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  /* ---- Floating launcher button ---- */
  #lqw-root #lqw-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999998;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px 14px 16px;
    background: var(--lqw-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35), 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  #lqw-root #lqw-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.42), 0 3px 8px rgba(0,0,0,0.1);
    background: var(--lqw-primary-dark);
  }
  #lqw-root #lqw-launcher svg { width: 20px; height: 20px; flex-shrink: 0; }
  #lqw-root #lqw-launcher.lqw-hidden { display: none; }

  @media (max-width: 480px) {
    #lqw-root #lqw-launcher { right: 16px; bottom: 16px; padding: 13px 18px 13px 14px; font-size: 14px; }
    #lqw-root #lqw-launcher span.lqw-launcher-text { display: none; }
    #lqw-root #lqw-launcher { padding: 14px; border-radius: 50%; }
  }

  /* ---- Overlay & modal ---- */
  #lqw-root #lqw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 36, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  #lqw-root #lqw-overlay.lqw-open {
    opacity: 1;
    pointer-events: auto;
  }

  #lqw-root #lqw-modal {
    background: var(--lqw-bg);
    width: 100%;
    max-width: 440px;
    max-height: 88vh;
    border-radius: var(--lqw-radius);
    box-shadow: 0 24px 60px rgba(20, 16, 36, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease;
  }
  #lqw-root #lqw-overlay.lqw-open #lqw-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  @media (max-width: 480px) {
    #lqw-root #lqw-overlay { padding: 0; align-items: flex-end; }
    #lqw-root #lqw-modal { max-width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
    #lqw-root #lqw-overlay.lqw-open #lqw-modal { transform: translateY(0); }
    #lqw-root #lqw-modal { transform: translateY(24px); }
  }

  /* ---- Modal header ---- */
  #lqw-root #lqw-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 16px 0 16px;
    flex-shrink: 0;
  }
  #lqw-root #lqw-back-btn, #lqw-root #lqw-close-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding:0!important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: var(--lqw-muted) !important;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  #lqw-root #lqw-back-btn:hover, #lqw-root #lqw-close-btn:hover { background: var(--lqw-bg-soft) !important; color: var(--lqw-ink) !important; }
  #lqw-root #lqw-back-btn svg, #lqw-root #lqw-close-btn svg { width: 18px !important; height: 18px !important; }
  #lqw-root #lqw-back-btn.lqw-invisible { visibility: hidden; }
  #lqw-root #lqw-header-spacer { flex: 1; }

  /* ---- Progress bar ---- */
  #lqw-root #lqw-progress-track {
    height: 4px;
    background: var(--lqw-border);
    border-radius: 999px;
    overflow: hidden;
    margin: 4px 16px 0 16px;
    flex-shrink: 0;
  }
  #lqw-root #lqw-progress-track.lqw-hidden { display: none; }
  #lqw-root #lqw-progress-fill {
    height: 100%;
    background: var(--lqw-primary);
    border-radius: 999px;
    width: 0%;
    transition: width 0.35s ease;
  }

  /* ---- Body / question area ---- */
  #lqw-root #lqw-body {
    padding: 20px 24px 24px 24px;
    overflow-y: auto;
    flex: 1;
  }

  #lqw-root #lqw-step {
    animation: lqw-fade-in 0.28s ease;
  }
  @keyframes lqw-fade-in {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
  }
  #lqw-root #lqw-step.lqw-exit {
    animation: lqw-fade-out 0.15s ease forwards;
  }
  @keyframes lqw-fade-out {
    to { opacity: 0; transform: translateX(-8px); }
  }

  #lqw-root .lqw-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lqw-primary);
    margin: 0 0 8px 0;
  }
  #lqw-root .lqw-question {
    font-size: 20px;
    font-weight: 700;
    color: var(--lqw-ink);
    margin: 0 0 20px 0;
    line-height: 1.35;
  }
  #lqw-root .lqw-subtext {
    font-size: 14px;
    color: var(--lqw-muted);
    margin: -12px 0 20px 0;
  }

  #lqw-root .lqw-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  #lqw-root .lqw-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    padding: 14px 16px;
    border: 1.5px solid var(--lqw-border);
    background: var(--lqw-bg);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--lqw-ink);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  }
  #lqw-root .lqw-option:hover {
    border-color: var(--lqw-primary);
    background: var(--lqw-bg-soft);
  }
  #lqw-root .lqw-option:active { transform: scale(0.99); }
  #lqw-root .lqw-option.lqw-selected {
    border-color: var(--lqw-primary);
    background: #f1f0fd;
    color: var(--lqw-primary-dark);
  }
  #lqw-root .lqw-option-arrow { flex-shrink: 0; opacity: 0.4; width: 16px; height: 16px; }
  #lqw-root .lqw-option.lqw-selected .lqw-option-arrow,
  #lqw-root .lqw-option:hover .lqw-option-arrow { opacity: 0.9; }

  /* ---- Contact form ---- */
  #lqw-root .lqw-field { margin-bottom: 14px; }
  /* Honeypot: off-screen rather than display:none, since some bots skip display:none fields */
  #lqw-root .lqw-honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  #lqw-root .lqw-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lqw-ink);
    margin-bottom: 6px;
  }
  #lqw-root .lqw-required {
    color: var(--lqw-hot);
    margin-left: 2px;
  }
  #lqw-root .lqw-field input,
  #lqw-root .lqw-field textarea,
  #lqw-root .lqw-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--lqw-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--lqw-ink);
    background: var(--lqw-bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
  }
  #lqw-root .lqw-field textarea {
    resize: vertical;
    min-height: 84px;
  }
  #lqw-root .lqw-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6478' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
  }
  #lqw-root .lqw-field input::placeholder,
  #lqw-root .lqw-field textarea::placeholder { color: var(--lqw-muted); opacity: 0.7; }
  #lqw-root .lqw-field input:focus,
  #lqw-root .lqw-field textarea:focus,
  #lqw-root .lqw-field select:focus {
    outline: none;
    border-color: var(--lqw-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
  }
  #lqw-root .lqw-field input:invalid.lqw-touched { border-color: var(--lqw-hot); }

  #lqw-root .lqw-optional-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lqw-muted);
    margin: 18px 0 14px 0;
  }
  #lqw-root .lqw-optional-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lqw-border);
  }

  #lqw-root .lqw-consent-text {
    font-size: 12px;
    color: var(--lqw-muted);
    line-height: 1.45;
    margin: 4px 0 14px 0;
  }

  #lqw-root .lqw-form-error {
    background: #fef3e2;
    border: 1px solid rgba(240, 144, 15, 0.35);
    color: var(--lqw-ink);
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 10px;
    margin: 0 0 14px 0;
  }
  #lqw-root .lqw-form-error.lqw-hidden { display: none; }

  #lqw-root .lqw-submit-btn {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    background: var(--lqw-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
  }
  #lqw-root .lqw-submit-btn:hover { background: var(--lqw-primary-dark); }
  #lqw-root .lqw-submit-btn:active { transform: scale(0.99); }
  #lqw-root .lqw-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

  /* ---- Result screens ---- */
  #lqw-root .lqw-result-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto 18px auto;
  }
  #lqw-root .lqw-result-icon.lqw-icon-hot { background: #fdeae6; color: var(--lqw-hot); }
  #lqw-root .lqw-result-icon.lqw-icon-warm { background: #fef3e2; color: var(--lqw-warm); }
  #lqw-root .lqw-result-icon.lqw-icon-backlog { background: var(--lqw-bg-soft); color: var(--lqw-backlog); }
  #lqw-root .lqw-result-icon svg { width: 28px; height: 28px; }

  #lqw-root .lqw-result-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--lqw-ink);
    text-align: center;
    margin: 0 0 8px 0;
  }
  #lqw-root .lqw-result-sub {
    font-size: 14px;
    color: var(--lqw-muted);
    text-align: center;
    margin: 0 0 24px 0;
    line-height: 1.5;
  }

  /* ---- Placeholder calendar ---- */
  #lqw-root .lqw-cal {
    border: 1.5px solid var(--lqw-border);
    border-radius: 14px;
    padding: 16px;
  }
  #lqw-root .lqw-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  #lqw-root .lqw-cal-header span { font-weight: 700; font-size: 14px; color: var(--lqw-ink); }
  #lqw-root .lqw-cal-nav { display: flex; gap: 4px; }
  #lqw-root .lqw-cal-nav button {
    width: 26px; height: 26px;
    border: 1px solid var(--lqw-border);
    background: #fff;
    border-radius: 50%;
    cursor: not-allowed;
    color: var(--lqw-muted);
    display: flex; align-items: center; justify-content: center;
  }
  #lqw-root .lqw-cal-nav button svg { width: 14px; height: 14px; }
  #lqw-root .lqw-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 16px;
  }
  #lqw-root .lqw-cal-dow {
    font-size: 11px;
    font-weight: 700;
    color: var(--lqw-muted);
    text-align: center;
    padding-bottom: 4px;
  }
  #lqw-root .lqw-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    background: var(--lqw-bg-soft);
    color: var(--lqw-ink);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  #lqw-root .lqw-cal-day:hover { background: #ece9fb; }
  #lqw-root .lqw-cal-day.lqw-cal-selected { background: var(--lqw-primary); color: #fff; }
  #lqw-root .lqw-cal-day.lqw-cal-disabled { background: transparent; cursor: default; opacity: 0.3; }
  #lqw-root .lqw-cal-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
  }
  #lqw-root .lqw-cal-slot {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--lqw-border);
    background: #fff;
    border-radius: 999px;
    cursor: pointer;
    color: var(--lqw-ink);
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  #lqw-root .lqw-cal-slot:hover { border-color: var(--lqw-primary); }
  #lqw-root .lqw-cal-slot.lqw-cal-selected { background: var(--lqw-primary); border-color: var(--lqw-primary); color: #fff; }
  #lqw-root .lqw-cal-note {
    font-size: 12px;
    color: var(--lqw-muted);
    text-align: center;
    margin-top: 14px;
  }
  #lqw-root .lqw-cal-confirm {
    width: 100%;
    margin-top: 14px;
    padding: 13px;
    background: var(--lqw-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
  #lqw-root .lqw-cal-confirm:hover { background: var(--lqw-primary-dark); }
  #lqw-root .lqw-cal-confirm:disabled { opacity: 0.5; cursor: not-allowed; }

  #lqw-root .lqw-restart-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--lqw-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    width: 100%;
  }
  #lqw-root .lqw-restart-link:hover { color: var(--lqw-ink); }
