/* Custom Popup Redesign - 3D & Advanced Styling */
/* Force override of default bootstrap/template styles */

.leadpopup .modal-dialog {
    max-width: 850px !important;
    border-radius: 20px !important;
    perspective: 1000px;
    /* 3D perspective */
}

.leadpopup .modal-content {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    /* Soft white inner border */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.leadpopup .modal-body {
    padding: 0 !important;
}

.leadpopup .innerbody {
    display: flex !important;
    flex-wrap: wrap;
    min-height: 480px;
}

/* Left Content Side */
.leadpopup .innerleft {
    flex: 1 1 50%;
    padding: 40px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.leadpopup .innerleft h3 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #075e54;
    /* WhatsApp brand color darker */
    margin-bottom: 25px !important;
    line-height: 1.3 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    background: -webkit-linear-gradient(45deg, #075e54, #128C7E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.leadpopup .innerleft p {
    font-size: 15px !important;
    color: #444 !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
    display: flex;
    align-items: center;
}

.leadpopup .innerleft p.mt8 {
    margin-top: 0 !important;
    /* Reset layout */
}

/* Right Image Side */
.leadpopup .innerright {
    flex: 1 1 50%;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    min-height: 300px;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    /* Slanted cut effect */
    margin-left: -50px;
    /* Overlap effect */
    z-index: 1;
}

/* Close Button */
.leadpopup .leadbtnclose {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
}

.leadpopup .btn-close {
    width: 35px;
    height: 35px;
    background-color: #f0f2f5;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */
}

.leadpopup .btn-close:hover {
    transform: rotate(90deg) scale(1.1);
    background-color: #ffcccc;
    /* Slight red tint on hover */
}

/* WhatsApp CTA Button */
.leadpopup .btnwithiconside {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: #fff !important;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* Glassy border */
    display: flex !important;
    align-items: center;
    width: fit-content;
}

.leadpopup .btnwithiconside:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

.leadpopup .btnwithiconside img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    margin-right: 15px;
}

.leadpopup .btnwithiconside div {
    text-align: left;
    line-height: 1.2;
    font-weight: 700;
    font-size: 18px;
}

.leadpopup .btnwithiconside span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.leadpopup .innerleft>* {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    /* accurate animation start */
}

.leadpopup .innerleft h3 {
    animation-delay: 0.1s;
}

.leadpopup .innerleft p:nth-of-type(1) {
    animation-delay: 0.2s;
}

.leadpopup .innerleft p:nth-of-type(2) {
    animation-delay: 0.3s;
}

.leadpopup .innerleft p:nth-of-type(3) {
    animation-delay: 0.4s;
}

.leadpopup .innerleft p:nth-of-type(4) {
    animation-delay: 0.5s;
}

.leadpopup .innerleft p:nth-of-type(5) {
    animation-delay: 0.6s;
}

.leadpopup .btnwithiconside {
    animation-delay: 0.7s;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .leadpopup .innerbody {
        flex-direction: column-reverse;
    }

    .leadpopup .innerright {
        flex: none;
        height: 200px;
        clip-path: none;
        /* Remove slant on mobile */
        margin-left: 0;
        border-radius: 20px 20px 0 0;
        /* Rounded top */
    }

    .leadpopup .innerleft {
        padding: 30px 20px !important;
    }

    .leadpopup .innerleft h3 {
        font-size: 22px !important;
    }

    .leadpopup .btnwithiconside {
        width: 100%;
        /* Full width button on mobile */
        justify-content: center;
    }
}