/* Custom CSS for EventXPro */

.custom-phone-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.custom-phone-trigger {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    cursor: pointer;
    background: #d018b8;
    /* matching theme */
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    z-index: 2;
    font-size: 14px;
}

.custom-phone-trigger .flag {
    margin-right: 5px;
}

.custom-phone-wrapper input[type="tel"] {
    padding-left: 85px !important;
}

.custom-phone-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    width: 250px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.custom-phone-dropdown.show {
    display: block;
}

.custom-phone-dropdown li {
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 14px;
}

.custom-phone-dropdown li:hover {
    background: #f0f0f0;
}

.custom-phone-dropdown li .flag {
    margin-right: 10px;
    font-size: 18px;
}

.custom-phone-dropdown li .name {
    flex-grow: 1;
}

.custom-phone-dropdown li .code {
    color: #666;
    font-size: 12px;
}

/* WhatsApp Icon Integration on #scroll */
#scroll {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 56px !important;
    height: 56px !important;
    text-indent: 0 !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
    animation: whatsapp-pulse 2s infinite;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    z-index: 99999 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

#scroll[style*="display: none"] {
    display: none !important;
}

#scroll:not([style*="display: none"]) {
    display: flex !important;
}

#scroll:hover {
    transform: scale(1.1) !important;
    background: linear-gradient(135deg, #28e16e 0%, #159b8c 100%) !important;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65) !important;
}

#scroll span {
    display: none !important;
}

#scroll svg {
    width: 32px !important;
    height: 32px !important;
    fill: #ffffff !important;
    display: block !important;
    margin: auto !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

/* Subtle Pulse Animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    #scroll {
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
    }

    #scroll svg {
        width: 28px !important;
        height: 28px !important;
    }
}
