.collectdata-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(4px);
}

.collectdata-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.collectdata-popup-card {
    position: fixed;
    bottom: 100px;
    right: 24px;
    transform: scale(0.9);
    transform-origin: bottom right;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 32px;
    border-radius: 28px;
    text-align: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 380px;
    width: 90%;
}

.collectdata-popup-card.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.collectdata-popup-card h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #094D39;
    margin-bottom: 20px;
}

.collectdata-popup-card input {
    width: 100%;
    padding: 14px 18px;
    margin: 10px 0;
    border: 1.5px solid #e0e0e0;
    border-radius: 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    transition: 0.2s;
    box-sizing: border-box;
}

.collectdata-popup-card input:focus {
    outline: none;
    border-color: #094D39;
    box-shadow: 0 0 0 3px rgba(9, 77, 57, 0.1);
}

.collectdata-popup-card button {
    background: #094D39;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 40px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    transition: 0.2s;
}

.collectdata-popup-card button:hover {
    background: #0a5e45;
    transform: translateY(-2px);
}

.collectdata-popup-card .skip-btn {
    background: transparent;
    color: #094D39;
    box-shadow: inset 0 0 0 1.5px #094D39;
    margin-top: 8px;
}

.collectdata-popup-card .skip-btn:hover {
    background: #094D39;
    color: white;
}

/* ===== CALL BUTTON ===== */
#callBtn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    padding: 10px 24px;
    border-radius: 40px;
    background: #dbf067;
    color: #0a0a0a;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(209, 237, 80, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.call-btn-gif {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
}

#callBtn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 30px rgba(209, 237, 80, 0.4);
    background: #c5e43a;
}

#callBtn span {
    display: inline-block;
}

/* ===== VAPI CUSTOM WIDGET ===== */
.vapi-custom-widget {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: rgba(0, 77, 51, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    width: 280px;
    height: auto;
    transition: all 0.3s ease;
    display: none;
}

.widget-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.agent-avatar-pulse {
    position: relative;
    width: 80px;
    height: 80px;
    margin-top: 10px;
}

.agent-avatar-pulse img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #36E1A3;
    background: #fff;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.vapi-pulse-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 90px;
    height: 90px;
    background: #36E1A3;
    border-radius: 50%;
    animation: vapiRingPulse 2s infinite;
    opacity: 0;
    z-index: 1;
}

@keyframes vapiRingPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.vapi-timer-display {
    font-family: monospace;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
}

.call-info-vapi {
    text-align: center;
}

.vapi-agent-name {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

.vapi-call-status {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vapi-call-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #36E1A3;
    border-radius: 50%;
    animation: vapiDotPulse 1s infinite;
}

@keyframes vapiDotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.vapi-end-call-btn {
    background: #ef4444;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.vapi-end-call-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}