:root {
      --chat-primary: #028325;
      --chat-primary-dark: #037321;
      --chat-bg: #f5fff7;
      --chat-text: #1f2937;
      --chat-muted: #6b7280;
      --chat-shadow: 0 18px 45px rgba(17, 24, 39, 0.16);
      --chat-radius: 24px;
    }

    .demo-shell {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 2rem;
    }

    .demo-copy {
      max-width: 680px;
      text-align: center;
    }

    .demo-copy h1 {
      font-size: clamp(2rem, 4vw, 3.75rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 1rem;
    }

    .demo-copy p {
      color: var(--chat-muted);
      font-size: 1.05rem;
      margin: 0 auto;
      max-width: 560px;
    }

    .chat-widget {
      position: fixed;
      right: 1.1rem;
      bottom: 5rem;
      z-index: 1080;
    }

    .chat-launcher {
      width: 66px;
      height: 66px;
      border: 2px solid #ffffff;
      border-radius: 50%;
      background: linear-gradient(180deg, #01c334 0%, var(--chat-primary) 100%);
      color: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 7px 16px rgba(0, 255, 51, 0.35);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .chat-launcher:hover,
    .chat-launcher:focus-visible {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 14px 32px rgba(0, 255, 89, 0.42);
    }

    .chat-launcher:focus-visible,
    .chat-close:focus-visible {
      outline: 3px solid rgba(0, 255, 81, 0.28);
      outline-offset: 3px;
    }

    .chat-panel {
      position: absolute;
      right: 0;
      bottom: calc(100% + 0.8rem);
      width: min(320px, calc(100vw - 1.2rem));
      max-height: min(500px, calc(100vh - 6rem));
      background: #ffffff;
      border-radius: var(--chat-radius);
      box-shadow: var(--chat-shadow);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transform: translateY(14px) scale(0.98);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.28s ease, transform 0.28s ease;
    }

    .chat-panel.is-open {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }

    .chat-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.8rem 0.95rem;
      background: linear-gradient(135deg, #01c334 0%, var(--chat-primary) 100%);
      color: #ffffff;
    }

    .chat-header h2 {
      font-size: 1rem;
      font-weight: 700;
      margin: 0;
      color: #fff;
    }

    .chat-close {
      border: 0;
      background: transparent;
      color: inherit;
      width: 42px;
      height: 38px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .chat-close:hover {
      background: rgba(255, 255, 255, 0.18);
      transform: rotate(90deg);
    }

    .chat-body {
      padding: 0.85rem;
      background:
        linear-gradient(180deg, rgba(0, 255, 8, 0.05) 0%, rgba(0, 255, 17, 0) 22%),
        #ffffff;
      overflow-y: auto;
    }

    .chat-intro {
      background: var(--chat-bg);
      border: 1px solid rgba(0, 255, 0, 0.12);
      border-radius: 18px;
      padding: 0.65rem 0.8rem;
      margin-bottom: 0.7rem;
      color: var(--chat-muted);
      font-size: 0.84rem;
    }

    .form-label {
      font-weight: 600;
      margin-bottom: 0.35rem;
      font-size: 0.95rem;
    }

    .required-dot {
      color: #dc3545;
      margin-right: 0.2rem;
    }

    .form-control,
    .form-select {
      min-height: 42px;
      border-radius: 11px;
      border-color: rgba(17, 24, 39, 0.16);
      padding-inline: 0.75rem;
      box-shadow: none;
      font-size: 0.95rem;
    }

    .form-control:focus,
    .form-select:focus {
      border-color: rgba(0, 255, 64, 0.55);
      box-shadow: 0 0 0 0.25rem rgba(0, 255, 8, 0.14);
    }

    .chat-submit {
      min-height: 46px;
      border: 0;
      border-radius: 12px;
      background: linear-gradient(135deg, #01c334 0%, var(--chat-primary) 100%);
      color: #ffffff;
      font-weight: 700;
      font-size: 0.95rem;
      box-shadow: 0 7px 14px rgba(38, 255, 0, 0.24);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .chat-submit:hover,
    .chat-submit:focus-visible {
      transform: translateY(-1px);
      box-shadow: 0 10px 32px rgba(0, 255, 21, 0.28);
    }

    .form-note {
      color: var(--chat-muted);
      font-size: 0.78rem;
      text-align: center;
      margin-top: 0.7rem;
      margin-bottom: 0;
    }

    @media (max-width: 575.98px) {
      .demo-shell {
        padding: 1.25rem;
      }

      .chat-widget {
        right: 0.9rem;
        left: 0.9rem;
        bottom: 0.9rem;
      }

      .chat-panel {
        width: 100%;
        right: 0;
        bottom: calc(100% + 0.8rem);
        border-radius: 22px;
        max-height: min(78vh, 560px);
      }

      .chat-launcher {
        margin-left: auto;
        width: 62px;
        height: 62px;
      }

      .chat-header h2 {
        font-size: 1rem;
      }
    }