
  /* Reset box-sizing for consistency across browsers */
  .cs-popup-overlay, .cs-popup-overlay *,
  .cs-popup-overlay *::before, .cs-popup-overlay *::after {
    box-sizing: border-box;
  }

  /* Example trigger button styling — restyle to match your site */
  .cs-trigger {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #290611;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Segoe UI', Arial, sans-serif;
  }

  .cs-trigger:hover {
    opacity: 0.9;
  }

  /* Hidden by default; only the circle + dimmed backdrop show once opened */
  .cs-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* dims the page behind the popup */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
    z-index: 9999;
    overflow-y: auto; /* if a very short viewport can't fit the circle, the
                         page scrolls as a whole — the circle itself never does */
  }

  .cs-popup-overlay.is-active {
    display: flex;
  }

  .cs-popup-circle {
    /* Brand color kept exact (#ADD786) with an alpha channel + blur = frosted glass look */
    background: #ADD786E6; /* #ADD786 at ~90% opacity */
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);

    /* True circle on tablets/desktops, sized generously enough that the
       content never needs to scroll inside it */
    width: clamp(380px, 42vw, 480px);
    height: clamp(380px, 42vw, 480px);
    max-width: 92vw;

    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 44px);
    text-align: center;
  }

  /* Fallback for browsers that don't support backdrop-filter (e.g. older Firefox/Edge) */
  @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .cs-popup-circle {
      background: #ADD786;
    }
  }

  .cs-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .logo-placeholder,
  .cs-logo {
    width: clamp(32px, 8vw, 44px);
    height: clamp(32px, 8vw, 44px);
    border-radius: 50%;
    background: rgba(41, 6, 17, 0.15);
    color: #290611;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    object-fit: cover;
    overflow: hidden;
    flex-shrink: 0;
  }

  .cs-brand-name {
    font-weight: 700;
    font-size: clamp(12px, 3vw, 15px);
    color: #290611;
  }

  .cs-heading {
    margin: 0 0 8px 0;
    font-size: clamp(17px, 4vw, 22px);
    font-weight: 800;
    color: #290611;
  }

  .cs-subtitle {
    margin: 0 0 18px 0;
    font-size: clamp(11px, 2.5vw, 13px);
    line-height: 1.4;
    color: #290611;
    max-width: 260px;
  }

  .cs-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 220px;
    gap: 10px;
  }

  .cs-input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    color: #290611;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
  }

  .cs-input::placeholder {
    color: #5a4a4a;
    opacity: 1; /* Firefox dims placeholder text by default */
  }

  .cs-input:focus {
    box-shadow: 0 0 0 2px rgba(41, 6, 17, 0.25);
  }

  .cs-submit {
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 8px;
    background: #290611;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 2px;
    transition: opacity 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
  }

  .cs-submit:hover {
    opacity: 0.9;
  }

  .cs-close {
    margin-top: 50px;
    width: clamp(45px, 10vw, 45px);
    height: clamp(45px, 10vw, 45px);
    border-radius: 50%;
    border: 5px solid #290611;
    background: #290611;
    color: #ffffff;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
  }

  .cs-close:hover {
    opacity: 0.85;
  }



  /* Phones / narrow screens: a true circle is too tight to fit the form
     without an inner scrollbar, so switch to a rounded square that grows
     to fit its content instead — no scrolling, ever. */
  @media (max-width: 990px) {
    .cs-popup-circle {
      width: min(90vw, 360px);
      height: auto;
      max-height: none;
      border-radius: 28px;
      padding: 28px 22px;
    }
    .cs-form {
      max-width: 100%;
    }
  }

  @media (max-width: 360px) {
    .cs-popup-circle {
      width: 92vw;
      padding: 22px 18px;
    }
  }
