
    #ace-popup-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 45, 98, 0.9);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    #ace-popup-overlay.active {
        opacity: 1;
        visibility: visible;
    }




        /* Popup container */
        #ace-popup {
            background: #ffffff;
            color: #002D62;
            padding: 25px;
            border-radius: 15px;
            max-width: 400px;
            width: 90%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 10px 25px rgba(0, 45, 98, 0.3);
            text-align: center;
            border: 2px solid #002D62;
            animation: aceFadeIn 0.4s ease-in-out;
        }

        @keyframes aceFadeIn {
            from { opacity: 0; transform: translate(-50%, -48%); }
            to { opacity: 1; transform: translate(-50%, -50%); }
        }

        #ace-popup h2 {
            margin-bottom: 15px;
            color: #002D62;
        }

        #ace-popup form {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        #ace-popup input,
        #ace-popup select {
            padding: 10px;
            border: 1px solid #002D62;
            border-radius: 8px;
            font-size: 15px;
            color: #002D62;
            background: #f8f8f8;
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        #ace-popup input:focus,
        #ace-popup select:focus {
            background: #ffffff;
            border-color: #002D62;
            outline: none;
        }

        .ace-submit-btn {
            background: #dcb225;
            color: #002D62;
            font-weight: bold;
            border: none;
            cursor: pointer;
            padding: 10px;
            border-radius: 8px;
            transition: background 0.3s ease, color 0.3s ease;
        }

        .ace-submit-btn:hover {
            background: #002D62;
            color: #ffffff;
        }

        #ace-popup-close {
            position: absolute;
            top: 8px;
            right: 12px;
            background: transparent;
            color: #002D62;
            font-size: 24px;
            border: none;
            cursor: pointer;
            line-height: 1;
            transition: transform 0.2s ease, color 0.3s ease;
        }

        #ace-popup-close:hover {
            transform: scale(1.2);
            color: #dcb225;
        }

        #ace-popup label {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 10px 0;
            text-align: left;
            color: #002D62;
        }

        #ace-popup label span {
            font-size: 13px;
        }

        .ace-success-message {
            background: #28a745;
            color: #ffffff;
            padding: 15px;
            border-radius: 8px;
            margin: 10px 0;
            text-align: center;
        }

        .ace-error-message {
            background: #dc3545;
            color: #ffffff;
            padding: 15px;
            border-radius: 8px;
            margin: 10px 0;
            text-align: center;
        }

        @media (max-width: 600px) {
            #ace-popup {
                width: 95%;
                padding: 20px;
            }

            #ace-popup h2 {
                font-size: 20px;
            }
        }