<style>
    .overlay-spx {
        background: black;
        position: fixed;
        width: 100vw;
        height: 100vh;
        left: 0;
        top: 0;
        z-index: 999;
        opacity: 0.7;
        display: none;
    }

    .spx {
        width: 322px;
        background: #ffffff;
        position: fixed;
        z-index: 999999999999;
        color: black;
        border-radius: 5px;
        right: 50%;
        transform: translate(50%, -50%);
        padding: 50px 10px 10px;
        box-shadow: rgb(73 73 76 / 54%) 0px 7px 29px 0px;
        display: none;
        text-align: center;
        animation-name: example;
        animation-duration: 1s;
        animation-delay: 0.2s;
        animation-fill-mode: forwards;
        background: url(./assets/cele.png), floralwhite;
        background-repeat: no-repeat;
        background-size: cover;
        height: 301px;
    }

    @keyframes example {
        from {
            opacity: 0;
            top: 60%;
        }

        to {
            opacity: 1;
            top: 50%;
        }
    }


    .spx h1 {
        font-size: 31px;
        margin-bottom: 8px;
    }

    .spx p {
        font-size: 19px;
        margin-bottom: 30px;
    }

    .spx .btn {
        position: absolute;
        left: 9px;
        bottom: 10px;
        width: 95% !important;
    }

    @media screen and (max-width:650px) {
        .spx p {
            font-size: 22px;
            margin-bottom: 30px;
        }

        .spx h1 {
            font-size: 34px;
            margin-bottom: 8px;
        }

        .spx {
            width: 91%;
            height: 305px;
            padding: 47px 11px 10px;
        }

        .spx .btn {
            position: absolute;
            width: 94% !important;
            bottom: 13px;
        }

        .new-footer img {
    margin-bottom: 10px;
    width: 250px;
}

        .new-footer ul li {
            margin: 0 15px 10px;
            text-align: left;
            padding: 0 10px;
        }


    }
</style>

<div>
    <div class="overlay-spx"></div>
    <div class="spx">
        <h1>Thank You</h1>
        <p>Your form has been submitted.</p>
        <button class="btn w-100 mt-4" onclick="setHide()">Okay</button>
    </div>
</div>

<section class="footer d-none">
    <div class="container">
        <div class="row">
            <div class="col-md-7 col-12 row mb-5 mb-md-0">
                <div class="col-md-7 col-12 mb-4 mb-md-0">
                    <h3>ABOUT US</h3>
                    <p class="min2-font">Online studies are designed for students whose scheduling commitments would otherwise make it difficult to enroll in a full-time higher education program. Offered for individual courses, diplomas, associate’s degrees and certificate programs, online studies are a valuable option. The resulting qualification a graduate receives after successfully completing.</p>
                </div>
                <div class="col-md-5 col-12">
                    <h3>POLICIES</h3>
                    <ul>
                        <li>Terms & Conditions</li>
                        <li>Privacy & Policy</li>
                        <li>Refund/Cancelation Policy</li>
                    </ul>
                    <a href="https://play.google.com/store/apps/details?id=co.jorah.sripa&hl=en_IN&gl=US">
                        <img src="./assets/playstore.png" alt="" class="playstore">
                    </a>
                </div>
            </div>
            <!-- <div class="col-md-5 col-12 mb-5 mb-md-0">
        <h3>LINUX2CLOUD COURSE DETAIL</h3>
        <div class="foot-video">
          <iframe  src="https://www.youtube.com/embed/C1jjpTSyZiw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        </div>
      </div> -->
        </div>

    </div>
    <div class="foot-bottom">
        <div class="container">
            <div>
                <div>
                    <img src="./assets/fevicon.png" alt="" class="me-2">
                </div>
                <p class="mb-0">Copyright © 2020 <span class="netural">Linux2Cloud</span> PVT LTD. All Rights Reserve.</p>
            </div>
        </div>
    </div>

</section>


<footer class="mt-4 mt-sm-0 new-footer">
    <div class="d-flex justify-content-center align-items-center">
        <img src="./assets/LogoNew.png" alt="">
    </div>
    <ul class="align-items-center d-flex justify-content-center mx-0 ps-0  w-100 flex-wrap">
        <li class=""><a href="https://linux2cloud.com/terms-conditions/" class="text-decoration-none" style="text-transform: math-auto;">Terms & Conditions</a></li>
        <li class=""><a href="https://linux2cloud.com/privacy-policy/" class="text-decoration-none" style="text-transform: math-auto;">Privacy & Policy </a></li>
        <li class=""><a href="https://linux2cloud.com/refund-policy/" class="text-decoration-none" style="text-transform: math-auto;">Refund/Cancelation Policy</a></li>
        <!-- <li class=""><a href="#!" class="text-decoration-none">Reschedule Policy</a></li>
        <li class=""><a href="#!" class="text-decoration-none">Country</a></li> -->
    </ul>
</footer>



<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- swiper-carousel -->
<script src="https://cdn.jsdelivr.net/npm/swiper/swiper-bundle.min.js"></script>

<script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
<script src="./js/script.js"></script>

<script>
    $(window).bind('scroll', function() {
        var currentTop = $(window).scrollTop() + 100;
        var elems = $('.scrollspy');
        elems.each(function(index) {
            var elemTop = $(this).offset().top;
            var elemBottom = elemTop + $(this).height();
            if (currentTop >= elemTop && currentTop <= elemBottom) {
                var id = $(this).attr('id');
                var navElem = $('a[href="#' + id + '"]');
                navElem.parent().addClass('active').siblings().removeClass('active');
            }
        })
    });
</script>

<script>
    var swiper = new Swiper(".mySwiper", {
        grabCursor: true,
        loop: true,
        autoplay: {
            delay: 2500,
            disableOnInteraction: false,
        },
        // navigation: {
        //   nextEl: ".fa-chevron-right",
        //   prevEl: ".fa-chevron-left",
        // },
        pagination: {
            el: ".swiper-pagination",
            dynamicBullets: true,
        },
        breakpoints: {
            640: {
                slidesPerView: 1,
                spaceBetween: 20,
            },
            768: {
                slidesPerView: 2,
                spaceBetween: 20,
            },
            1024: {
                slidesPerView: 4,
                spaceBetween: 20,
            },
        },
    });
    var swiper2 = new Swiper(".mySwiper2", {
        grabCursor: true,
        loop: true,
        autoplay: {
            delay: 2500,
            disableOnInteraction: false,
        },
        pagination: {
            el: ".swiper-pagination",
            clickable: true,
        },
        breakpoints: {
            640: {
                slidesPerView: 1,
                spaceBetween: 20,
            },
            768: {
                slidesPerView: 2,
                spaceBetween: 20,
            },
            1000: {
                slidesPerView: 3,
                spaceBetween: 20,
            }
        },
    });
    // var swiper3 = new Swiper(".mySwiper3", {
    //     grabCursor: true,
    //     loop: true,
    //     autoplay: {
    //         delay: 2500,
    //         disableOnInteraction: false,
    //     },
    //     breakpoints: {
    //         550: {
    //             slidesPerView: 2,
    //             spaceBetween: 20,
    //         },
    //         640: {
    //             slidesPerView: 5,
    //             spaceBetween: 20,
    //         }
    //     },
    // });
    $('.slick-ss').slick({
        dots: false,
        infinite: true,
        speed: 300,
        autoplay: true,
        slidesToShow: 6,
        slidesToScroll: 1,
        arrows: false,
        autoplaySpeed: 2000,
        responsive: [{
                breakpoint: 1024,
                settings: {
                    slidesToShow: 6
                }
            },
            {
                breakpoint: 800,
                settings: {
                    slidesToShow: 4
                }
            },
            {
                breakpoint: 600,
                settings: {
                    slidesToShow: 3
                }
            },
            {
                breakpoint: 480,
                settings: {
                    slidesToShow: 2
                }
            }
            // You can unslick at a given breakpoint now by adding:
            // settings: "unslick"
            // instead of a settings object
        ]
    });

    $('input[type=number]').parent().append("<div class='span-danger'><div/>");
    $(document).on('input', 'input[type=number]', function() {

        const inp = this;
        // console.log(inp);

        let length = $(inp).val().length;

        // console.log('clicked', length);
        if (length != 10) {
            $(inp).parent().find('.span-danger').html("<span>Enter 10 Digit Mobile Number <span/>");
            $(inp).parent().parent().find('button[type=submit]').attr('disabled', 'disabled');
        } else {
            $(inp).parent().find('.span-danger').html("<span><span/>");
            $(inp).parent().parent().find('button[type=submit]').removeAttr('disabled');
        }
    })


    $("form").on("submit", function(e) {
        var dataString = $(this).serialize();
        var Ele = this;
        // alert('form submitted!')
        e.preventDefault(e);
        $.ajax({
            type: "POST",
            url: "index.php",
            data: dataString,
            success: function() {
                // alert('Form Submitted Successfully!');
                // console.log(this)
                $('.spx').css("display", "block")
                $('.overlay-spx').css("display", "block")
                setTimeout(() => {
                    $(".overlay-spx").css("display", "none");
                    $(".spx").css("display", "none");
                }, 3000);
                $('input').val("");
                $('textarea').val("");
                // $(".spx").css("display", "block");
                // $(`.spx`).html("<div class='message'></div>");
                // $(".message")
                //     .html("<h5>Form Submitted!</h5>")
                //     .append("<p>We will be in touch soon.</p>")
                //     .hide()
                //     .fadeIn(1500, function() {
                //         $(".message").append(

                //         );
                //     })
                //     .fadeOut(3000, function() {
                //         $(".message").append(

                //         );
                //     });
            }
        });
    });


    const setHide = () => {
        $('.spx').hide();
        $('.overlay-spx').hide();
    }


    var pdfUrl = "./docs/RHCSA and RHCE PDF.pdf";

    $('#form-contact').on('submit', function() {
        window.open(pdfUrl, '_blank');
    });

    const Ebook = "./docs/ebook.pdf";

    $('#ebook_form').on('submit', function() {
        window.open(Ebook, '_blank');
    });
</script>

</body>

</html>