 #popupOverlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 999999; 
            display: none;
        }

         #popupOverlay  .overlay{
            background: rgba(0, 0, 0, 0.7);
            width: 100%;
            height: 100%;
        }

        #popupOverlay .popup {
            background: white;
            border-radius: 12px;
            max-width: 480px;
            width: 90%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            max-height: 90vh;
            overflow-y: auto;
        }


        #popupOverlay .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: #f0f0f0;
            border: none;
            color: #333;
            width: 32px;
            height: 32px;
            border-radius: 16px;
            cursor: pointer;
            font-size: 22px;
            z-index: 10;
            transition: background-color 0.2s ease;
            font-family: inherit;
            padding: 0;
        }

       #popupOverlay .close-btn:hover {
            background: #e0e0e0;
        }

       #popupOverlay .header {
            background: #000;
            padding: 40px 30px 30px;
            text-align: center;
            position: relative;
        }

        #popupOverlay .discount-badge {
            display: inline-block;
            background: #d7271d;
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 13px;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

       #popupOverlay .title {
            color: white;
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 8px;
            line-height: 1.2;
        }

        #popupOverlay  .content {
            padding: 35px 30px 15px;
            background: white;
        }

        #popupOverlay  .benefits {
            list-style: none;
            margin-bottom: 30px;
        }

        #popupOverlay  .benefits li {
            color: #444;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            font-size: 15px;
            line-height: 1.4;
            font-weight: 400;
        }

        #popupOverlay  .benefits li::before {
            content: '✓';
            background: #d7271d;
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            font-weight: bold;
            font-size: 12px;
            flex-shrink: 0;
        }

        #popupOverlay  .form {
            margin-bottom: 20px;
        }

        #popupOverlay  .input-group {
            margin-bottom: 18px;
        }

         #popupOverlay  .input {
            width: 100%;
            padding: 16px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            background: white;
            color: #333;
            font-size: 15px;
            transition: border-color 0.2s ease;
            font-family: 'Hind Vadodara', sans-serif;
        }

        #popupOverlay  .input::placeholder {
            color: #999;
        }

         #popupOverlay  .input:focus {
            outline: none;
            border-color: #d7271d;
        }

         #popupOverlay  .subscribe-btn {
            width: 100%;
            padding: 18px;
            background: #d7271d;
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-family: 'Hind Vadodara', sans-serif;
        }

        #popupOverlay  .subscribe-btn:hover {
            background: #b91e17;
        }

        #popupOverlay  .subscribe-btn:active {
            background: #a01a14;
        }

        #popupOverlay  .privacy-text {
            font-size: 12px;
            color: #777;
            text-align: center;
            line-height: 1.5;
            margin-top: 15px;
        }

        #popupOverlay  .privacy-link {
            color: #d7271d;
            text-decoration: none;
            font-weight: 500;
        }

        #popupOverlay  .privacy-link:hover {
            text-decoration: underline;
        }

        #popupOverlay  .success-message {
            display: none;
            text-align: center;
            padding: 15px 30px 30px;
        }

        #popupOverlay  .success-icon {
            font-size: 64px;
            margin-bottom: 20px;
        }

         #popupOverlay  .success-title {
            color: #333;
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 12px;
        }

         #popupOverlay  .success-text {
            color: #666;
            margin-bottom: 25px;
            line-height: 1.6;
            font-size: 15px;
        }

         #popupOverlay  .promo-code {
            background: #f8f8f8;
            border: 2px solid #d7271d;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
        }

         #popupOverlay  .promo-code-label {
            color: #666;
            font-size: 13px;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
        }

        #popupOverlay  .promo-code-value {
            color: #d7271d;
            font-size: 24px;
            font-weight: 700;
            font-family: 'Courier New', monospace;
        }

        #popupOverlay  .highlight {
            color: #d7271d;
            font-weight: 600;
        }


         #popupOverlay  .success{
            color: green;
        }
        #popupOverlay  .error{
            color: red; 
        }
        .primary-cta{
            color: #fff;
        }
        a.primary-cta:hover{
            color: #fff;
        }

        /* Tablet Styles */
        @media (max-width: 768px) and (min-width: 481px) {
           #popupOverlay .popup {
                max-width: 450px;
                margin: 0 20px;
            }
            
           #popupOverlay .header {
                padding: 35px 25px 25px;
            }
            
           #popupOverlay .title {
                font-size: 30px;
            }
            
           #popupOverlay .content {
                padding: 30px 25px 15px;
            }

           #popupOverlay .success-message {
                padding: 0px 25px 15px;
            }
        }


        /* Mobile Styles */
        @media (max-width: 480px) {
            #popupOverlay  .overlay {
                padding: 15px;
            }

            #popupOverlay  .popup {
                max-width: 100%;
                margin: 0;
                border-radius: 8px;
            }
            
            #popupOverlay  .title {
                font-size: 26px;
            }
            
            #popupOverlay  .header {
                padding: 30px 20px 25px;
            }
            
            #popupOverlay  .content {
                padding: 25px 20px;
            }

            #popupOverlay  .success-message {
                padding: 25px 20px;
            }

            #popupOverlay  .benefits li {
                font-size: 14px;
                margin-bottom: 12px;
            }

             #popupOverlay  .input {
                padding: 14px;
                font-size: 16px; /* Prevents zoom on iOS */
            }

             #popupOverlay  .subscribe-btn {
                padding: 16px;
                font-size: 15px;
            }

             #popupOverlay  .promo-code {
                padding: 16px;
            }

             #popupOverlay  .promo-code-value {
                font-size: 20px;
            }
        }

        /* Large Desktop Styles */
        @media (min-width: 1200px) {
            #popupOverlay  .popup {
                max-width: 520px;
            }
            
            #popupOverlay  .header {
                padding: 45px 35px 35px;
            }
            
           #popupOverlay   .title {
                font-size: 36px;
            }
            
           #popupOverlay   .content {
                padding: 40px 35px;
            }

            #popupOverlay  .success-message {
                padding: 40px 35px;
            }
        }

        /* WooCommerce/Elementor Compatibility */
        #popupOverlay  .elementor-popup-modal {
            z-index: 999998 !important;
        }

        /* Ensure popup appears above common WooCommerce elements */
        .woocommerce-page .overlay {
            z-index: 999999 !important;
        }
