/* Popup Overlay */
  #exitPopupOverlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-sizing: border-box;
  }

  #exitPopupOverlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Popup Box */
  .exit-popup {
    position: relative;
    width: 100%;
    max-width: 850px;
    min-height: 420px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s ease;
    font-family: Arial, Helvetica, sans-serif;
  }

  #exitPopupOverlay.active .exit-popup {
    transform: scale(1) translateY(0);
  }

  /* Left Side */
  .popup-left {
    width: 50%;
    background:  #0098FF;
    color: #ffffff;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .popup-left .popup-small-title {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    opacity: 0.9;
  }

  .popup-left h2 {
    font-size: 38px;
    line-height: 1.15;
    margin: 0 0 18px;
    font-weight: 700;
  }

  .popup-left p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    opacity: 0.95;
  }

  .popup-highlight {
    margin-top: 25px;
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
  }

  /* Right Side */
  .popup-right {
    width: 50%;
    padding: 45px 40px;
    background: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .popup-right h3 {
    margin: 0 0 8px;
    font-size: 27px;
    color: #111111;
  }

  .popup-right > p {
    margin: 0 0 25px;
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
  }

  .popup-form-group {
    margin-bottom: 15px;
  }

  .popup-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
  }

  .popup-form-group input,
  .popup-form-group textarea,
  .popup-form-group select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 12px 13px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
  }

  .popup-form-group input:focus,
  .popup-form-group textarea:focus,
  .popup-form-group select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  }

  .popup-submit {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 13px 18px;
    background: #0098FF;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .popup-submit:hover {
    background: #03204B;
    transform: translateY(-1px);
    color: white;
  }

  /* Close Button */
  .popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: #333333;
    font-size: 23px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .popup-close:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: rotate(90deg);
  }

  /* Mobile */
  @media (max-width: 767px) {

    #exitPopupOverlay {
      padding: 15px;
      align-items: center;
    }

    .exit-popup {
      max-width: 450px;
      min-height: auto;
      max-height: 92vh;
      overflow-y: auto;
      display: block;
      border-radius: 15px;
    }

    .popup-left,
    .popup-right {
      width: 100%;
    }

    .popup-left {
      padding: 35px 25px 30px;
    }

    .popup-left h2 {
      font-size: 28px;
    }

    .popup-left p {
      font-size: 14px;
    }

    .popup-right {
      padding: 30px 25px 35px;
    }

    .popup-right h3 {
      font-size: 23px;
    }

    .popup-close {
      top: 10px;
      right: 10px;
      background: rgba(255, 255, 255, 0.9);
    }
  }

  @media (max-width: 380px) {
    .popup-left {
      padding: 30px 20px 25px;
    }

    .popup-right {
      padding: 25px 20px 30px;
    }

    .popup-left h2 {
      font-size: 25px;
    }
  }