.ask-jlp {
    text-align: center;
}

.ask-jlp button {
    background: #FBE10B;
    border-radius: 16px;
    width: 210px;
    height: 57px;
    font-size: 20px;
}

.ask-jlp button img {
    width: 48px;
    height: 48px;
    margin-left: 15px;
}

.ambyAI-container {
    position: absolute;
    margin-left: auto;
    top: 74px;
    right: 0;
    z-index: 9;
}

/* Additional mobile styles for smaller screens */
@media (max-width: 767px) {
    .ambyAI-container-mobile .ask-jlp button {
        width: 160px;
        height: 40px;
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .ambyAI-container-mobile .ask-jlp button img {
        width: 28px;
        height: 28px;
        margin-left: 6px;
    }
}

@media (max-width: 575px) {
    .ambyAI-container-mobile .ask-jlp button {
        width: 140px;
        height: 38px;
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .ambyAI-container-mobile .ask-jlp button img {
        width: 24px;
        height: 24px;
        margin-left: 5px;
    }
}

/* Show desktop ambyAI on larger screens */
@media (min-width: 992px) {
    .ambyAI-container-mobile {
        display: none;
    }
}

#jlpContent{
    position: absolute;
    top: 80%;
    left: -35px;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
  
 
 

     .wave-container {
            width: 100%;
            max-width: 600px;
            background: linear-gradient(145deg, #fff 0%, #fff 100%);
            border-radius: 24px;
            padding: 30px 0px;
            /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1),
                0 0 15px rgba(68, 102, 238, 0.2); */
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            border: 0px solid rgb(171 191 215);
            height: 350px;
        }

        .wave-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: linear-gradient(to bottom,
                    rgba(255, 255, 255, 0.1) 0%,
                    rgba(255, 255, 255, 0.05) 5%,
                    rgba(255, 255, 255, 0) 20%);
            pointer-events: none;
            z-index: 1;
        }

        .geometric-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* background-image:
                linear-gradient(30deg, rgba(68, 102, 238, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(68, 102, 238, 0.05) 87.5%, rgba(68, 102, 238, 0.05)),
                linear-gradient(150deg, rgba(68, 102, 238, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(68, 102, 238, 0.05) 87.5%, rgba(68, 102, 238, 0.05));
            background-size: 80px 140px;
            background-position: 0 0, 40px 70px; */
            opacity: 1;
            pointer-events: none;
            z-index: 0;
        }

        .ai-voice-wave-container {
            height: 200px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
            width: 100%;
            margin-top: 20px;
        }

        #waveCanvas {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 1;
            border-radius: 8px;
        }

        .controls {
            position: absolute;
            bottom: 20px;
            left: 20px;
            z-index: 10;
        }

        .btn {
            background: #51B05C;
            color: white;
            border: none;
            border-radius: 50px;
            padding: 10px 20px;
            margin: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(243, 125, 44, 0.4);
        }

        .btn:disabled {
            background: #666;
            cursor: not-allowed;
            transform: none;
        }

        .info {
            position: absolute;
            bottom: 20px;
            left: 20px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 12px;
            z-index: 10;
        }

        .floating-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            pointer-events: none;
            animation: float-particle 15s infinite linear;
        }

        @keyframes float-particle {
            0% {
                transform: translateY(0) translateX(0) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 0.8;
            }
            90% {
                opacity: 0.8;
            }
            100% {
                transform: translateY(-100px) translateX(20px) rotate(360deg);
                opacity: 0;
            }
        }

 

 .ai-container {
            width: 280px;          
            background: #4ADE80;
            border-radius: 24px;
            /* padding: 30px; */
            padding: 0px;
            margin: 20px auto;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            border: 0px solid rgb(171 191 215);
            /* height: 235px; */
            height: 230px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }



        .ai-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: linear-gradient(to bottom,
                    rgba(255, 255, 255, 0.1) 0%,
                    rgba(255, 255, 255, 0.05) 5%,
                    rgba(255, 255, 255, 0) 20%);
            pointer-events: none;
            z-index: 1;
        }

        .ai-container::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
            background-size: 20px 20px, 30px 30px;
            background-position: 0 0, 10px 10px;
            pointer-events: none;
            opacity: 0.3;
            z-index: 0;
        }

        .geometric-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(30deg, rgba(68, 102, 238, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(68, 102, 238, 0.05) 87.5%, rgba(68, 102, 238, 0.05)),
                linear-gradient(150deg, rgba(68, 102, 238, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(68, 102, 238, 0.05) 87.5%, rgba(68, 102, 238, 0.05)),
                linear-gradient(30deg, rgba(68, 102, 238, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(68, 102, 238, 0.05) 87.5%, rgba(68, 102, 238, 0.05)),
                linear-gradient(150deg, rgba(68, 102, 238, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(68, 102, 238, 0.05) 87.5%, rgba(68, 102, 238, 0.05));
            background-size: 80px 140px;
            background-position: 0 0, 0 0, 40px 70px, 40px 70px;
            opacity: 1;
            pointer-events: none;
            z-index: 0;
        }

        .inner-glow {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 24px;
            box-shadow: inset 0 0 38px rgb(0 4 22 / 56%);
            pointer-events: none;
            z-index: 1;
        }

        .ai-close-button {
            position: absolute;
            top: 5px;
            right: 10px;
            background: rgba(255, 255, 255, 0.15);
            border: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            font-size: 14px;
            z-index: 10;
            padding: 0;
            line-height: 1;
        }

        .ai-close-button:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        .ai-info-button {
            position: absolute;
            top: 5px;
            left: 10px;
            background: rgba(255, 255, 255, 0.15);
            border: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            font-size: 12px;
            z-index: 10;
            padding: 0;
            line-height: 1;
            transition: all 0.3s ease;
        }

        .ai-info-button:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: scale(1.1);
        }

        .ai-info-tooltip {
            position: fixed;
            top: 30px;
            left: 10px;
            background: linear-gradient(145deg, #1a2332 0%, #0f1628c7 100%);
            border: 1px solid rgba(171, 191, 215, 0.3);
            border-radius: 12px;
            padding: 15px;
            width: 280px;
            max-height: 400px;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.9);
            font-size: 12px;
            line-height: 1.4;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            pointer-events: none;
        }

        .ai-info-button:hover+.ai-info-tooltip,
        .ai-info-tooltip:hover,
        .ai-info-tooltip.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            pointer-events: auto;
        }

        .ai-info-tooltip h4 {
            margin: 0 0 8px 0;
            color: #4ADE80;
            font-size: 12px;
            font-weight: 600;
        }

        .ai-info-tooltip ul {
            margin: 8px 0;
            padding-left: 15px;
        }

        .ai-info-tooltip li {
            margin-bottom: 4px;
            color: rgba(255, 255, 255, 0.8);
        }

        .ai-info-tooltip .highlight {
            color: #f37d2c;
            font-weight: 500;
        }

        .ai-info-tooltip .pro-tip {
            background: rgba(68, 102, 238, 0.1);
            border-left: 3px solid #4466ee;
            padding: 8px;
            margin: 10px 0;
            border-radius: 4px;
            font-style: italic;
        }

        .ai-info-tooltip .cta {
            background: linear-gradient(145deg, #f37d2c20 0%, #f4433620 100%);
            border: 1px solid rgba(243, 125, 44, 0.3);
            padding: 8px;
            margin-top: 10px;
            border-radius: 6px;
            text-align: center;
            font-weight: 500;
            color: #f37d2c;
        }

        .ai-info-tooltip::-webkit-scrollbar {
            width: 4px;
        }

        .ai-info-tooltip::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 4px;
        }

        .ai-conversation {
            height: 70px;
            width: 190px;
            overflow-y: auto;
            margin-bottom: 5px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            line-height: 1.3;
            padding: 5px;
            position: relative;
            z-index: 2;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: -25px;
        }

        .ai-conversation::-webkit-scrollbar {
            width: 5px;
        }

        .ai-conversation::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 5px;
        }

        .ai-status {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 5px;
            display: flex;
            justify-content: space-between;
            position: relative;
            z-index: 2;
        }

        .ai-message {
            margin-bottom: 5px;
            padding: 5px 10px;
            border-radius: 8px;
            font-weight: 300;
            max-width: 100%;
            background: transparent;
            border: none;
        }

        .ai-user-message {
            display: none;
            /* Hide user messages */
        }

        .ai-agent-message {
            margin: 0 auto;
            text-align: center;
            font-size: 13px;
        }

        .ai-error-message {
            color: #ff5858;
            font-size: 11px;
        }

        .ai-button {
            /* padding: 6px 15px; */
            padding: 10px 15px;
            background:#fff;
            color: #000000;
            border: none;
            border-radius: 32px;
            cursor: pointer;
            font-size:20px;
            font-weight: 400;
            transition: all 0.2s ease;
            margin: 0px;
            box-shadow: 0 4px 12px rgba(68, 102, 238, 0.3);
            position: relative;
            z-index: 2;
            width: 90%;
            overflow: hidden;
        }

        .ai-button::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
            opacity: 0;
            transform: scale(0.5);
            transition: transform 0.5s ease, opacity 0.5s ease;
        }

        .ai-button:hover::after {
            opacity: 1;
            transform: scale(1);
        }

        .ai-button:disabled {
            background: linear-gradient(145deg, #2a3a5a 0%, #252e48 100%);
            color: rgba(255, 255, 255, 0.4);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .ai-hidden {
            display: none;
        }

        .ai-voice-wave-container {
            /* height: 90px; */
            height: auto;
             
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
            width: 100%;
            margin: auto;
        }

        .ai-voice-wave {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            width: 100%;
            position: absolute;
        }

        .ai-wave-line {
            background: linear-gradient(0deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.3) 100%);
            width: 3px;
            height: 5px;
            border-radius: 3px;
            margin: 0 2px;
            transition: height 0.1s ease, opacity 0.1s ease;
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
            position: relative;
        }

        .ai-wave-line::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
            border-radius: 3px;
            opacity: 0.7;
        }

        .ai-animate-wave {
            animation: ai-wave 1.5s infinite ease-in-out;
        }

        .ai-microphone-button {
        width: 70px;
        height: 70px; 
            border-radius: 50%;
            background: linear-gradient(145deg, #fff 0%, #f5f5f5 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 1px rgba(255, 255, 255, 0.8); */
            transition: all 0.2s ease;
        }

        .ai-microphone-button:hover {
            transform: scale(1.00);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
        }

        .ai-microphone-button svg {
            /* width: 30px;
        height: 30px; */
            width: 50px;
            height: 50px;
            fill: #192238;
        }

        .ai-controls {
            display: flex;
            justify-content: center;
            /* margin-top: 5px; */
            margin-top: 0px;
            position: relative;
            z-index: 2;
        }

        .ai-muted .ai-microphone-button {
            background: linear-gradient(145deg, #ff3b5c 0%, #e8354f 100%);
            box-shadow: 0 5px 20px rgba(232, 53, 79, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
        }

        .ai-muted .ai-microphone-button svg {
            fill: white;
        }

        .ai-listening .ai-microphone-button {
            animation: ai-pulse-glow 1.5s infinite;
        }

        @keyframes ai-wave {
            0% {
                transform: scaleY(0.5) translateY(2px);
            }

            50% {
                transform: scaleY(1) translateY(-2px);
            }

            100% {
                transform: scaleY(0.5) translateY(2px);
            }
        }

        @keyframes ai-pulse-glow {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7), 0 0 10px 1px rgba(255, 255, 255, 0.5);
            }

            70% {
                box-shadow: 0 0 0 10px rgba(255, 255, 255, 0), 0 0 25px 15px rgba(255, 255, 255, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 10px 1px rgba(255, 255, 255, 0.5);
            }
        }



        /* Canvas styles for smooth wave */
        #waveCanvas {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 1;
        }

        /* Hide individual wave lines when using canvas */
        .ai-voice-wave {
            opacity: 0;
        }

        /* Background glow for wave canvas */
        .ai-voice-wave-container {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            margin: 40px auto;
        }

        .ai-voice-wave-container::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 0;
            pointer-events: none;
        }

        /* Add CSS class for hidden buttons */
        .ai-hidden-button {
            display: none;
        }

        @keyframes ai-text-fade {
            0% {
                opacity: 0;
                transform: translateY(5px) scale(0.95);
                filter: blur(2px);
            }

            10% {
                opacity: 1;
                transform: translateY(0) scale(1);
                filter: blur(0);
            }

            90% {
                opacity: 1;
                transform: translateY(0) scale(1);
                filter: blur(0);
            }

            100% {
                opacity: 0;
                transform: translateY(-5px) scale(0.95);
                filter: blur(2px);
            }
        }

        .ai-text-animation {
            animation: ai-text-fade 5s ease-in-out;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 400;
        }

        /* Connection status indicator */
        .ai-connection-indicator {
            position: absolute;
            top: 10px;
            left: 10px;
            display: flex;
            align-items: center;
            z-index: 5;
            font-size: 10px;
            color: rgba(255, 255, 255, 0.8);
        }

        .ai-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-right: 6px;
            position: relative;
        }

        .ai-status-dot::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 50%;
            animation: ai-pulse-wave 2s infinite;
        }

        .ai-status-dot.ai-connected {
            background-color: #4ADE80;
            box-shadow: 0 0 8px #4ADE80, 0 0 12px #4ADE80;
            animation: ai-glow-pulse 2s infinite;
        }

        .ai-status-dot.ai-connected::before {
            background-color: rgba(74, 222, 128, 0.6);
        }

        .ai-status-dot.ai-disconnected {
            background-color: #FF5858;
            box-shadow: 0 0 8px #FF5858;
        }

        .ai-status-dot.ai-disconnected::before {
            background-color: rgba(255, 88, 88, 0.6);
        }

        @keyframes ai-pulse-wave {
            0% {
                transform: scale(1);
                opacity: 0.8;
            }

            70% {
                transform: scale(2.5);
                opacity: 0;
            }

            100% {
                transform: scale(1);
                opacity: 0;
            }
        }

        @keyframes ai-glow-pulse {
            0% {
                box-shadow: 0 0 8px #4ADE80, 0 0 12px rgba(74, 222, 128, 0.5);
            }

            50% {
                box-shadow: 0 0 12px #4ADE80, 0 0 20px rgba(74, 222, 128, 0.7);
            }

            100% {
                box-shadow: 0 0 8px #4ADE80, 0 0 12px rgba(74, 222, 128, 0.5);
            }
        }

        /* Subtle noise animation for container */
        @keyframes noise {
            0% {
                background-position: 0 0;
            }

            100% {
                background-position: 100% 100%;
            }
        }

        .noise-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* background-image: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox%3D%220 0 512 512%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter id%3D%22noise%22%3E%3CfeTurbulence type%3D%22fractalNoise%22 baseFrequency%3D%220.75%22 stitchTiles%3D%22stitch%22%2F%3E%3C%2Ffilter%3E%3Crect width%3D%22100%25%22 height%3D%22100%25%22 filter%3D%22url(%23noise)%22 opacity%3D%220.15%22%2F%3E%3C%2Fsvg%3E'); */
            opacity: 1;
            pointer-events: none;
            z-index: 0;
        }

        /* Floating particles animation */
        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            pointer-events: none;
            animation: float-particle 15s infinite linear;
        }

        @keyframes float-particle {
            0% {
                transform: translateY(0) translateX(0) rotate(0deg);
                opacity: 0;
            }

            10% {
                opacity: 0.8;
            }

            90% {
                opacity: 0.8;
            }

            100% {
                transform: translateY(-100px) translateX(20px) rotate(360deg);
                opacity: 0;
            }
        }

        /* Stylish typing animation for assistant responses */
        @keyframes typing {
            from {
                width: 0
            }

            to {
                width: 100%
            }
        }

        .typing-animation {
            display: inline-block;
            overflow: hidden;
            white-space: nowrap;
            animation: typing 1s steps(30, end);
        }


        /* @media (max-width: 1299.98px) {
            #jlpContent {
                left: -65px !important;
            }
        } */

        