<?php 
$INC_DIR = $_SERVER['DOCUMENT_ROOT']."/v1/app/";
include $INC_DIR."src/common.php";

$customer_details=get_customer_details($configs);
$nextPage = 'shipping.php?' . (!empty($_SERVER['QUERY_STRING']) ? ( $_SERVER['QUERY_STRING']) : 'qs=');
?>
<!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title><?php echo $configs->step_1_name; ?></title>
<meta content="width=device-width,initial-scale=1" name="viewport">

<link rel="icon" type="image/png" sizes="16x16" href="../images/favicon.png">

<link href="../css/app.css" rel="stylesheet">
<link rel="stylesheet" href="../css/modal.css">
<link rel="stylesheet" type="text/css" href="../css/inner.css">
<link href="../css/css2" rel="stylesheet">
<script>
	history.pushState(null, null, window.location.href);
	history.back();
	history.forward(); 
	window.onpopstate = function () { history.go(1); };
</script>
<style type="text/css">.lf-progress {
  -webkit-appearance: none;
  -moz-apperance: none;
  width: 100%;
  /* margin: 0 10px; */
  height: 4px;
  border-radius: 3px;
  cursor: pointer;
}
.lf-progress:focus {
  outline: none;
  border: none;
}
.lf-progress::-moz-range-track {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}
.lf-progress::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  height: 13px;
  width: 13px;
  border: 0;
  border-radius: 50%;
  background: #0fccce;
  cursor: pointer;
}
.lf-progress::-moz-range-thumb {
  -moz-appearance: none !important;
  height: 13px;
  width: 13px;
  border: 0;
  border-radius: 50%;
  background: #0fccce;
  cursor: pointer;
}
.lf-progress::-ms-track {
  width: 100%;
  height: 3px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
.lf-progress::-ms-fill-lower {
  background: #ccc;
  border-radius: 3px;
}
.lf-progress::-ms-fill-upper {
  background: #ccc;
  border-radius: 3px;
}
.lf-progress::-ms-thumb {
  border: 0;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: #0fccce;
  cursor: pointer;
}
.lf-progress:focus::-ms-fill-lower {
  background: #ccc;
}
.lf-progress:focus::-ms-fill-upper {
  background: #ccc;
}
.lf-player-container :focus {
  outline: 0;
}
.lf-popover {
  position: relative;
}

.lf-popover-content {
  display: inline-block;
  position: absolute;
  opacity: 1;
  visibility: visible;
  transform: translate(0, -10px);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
}

.lf-popover-content.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0px);
}

.lf-player-btn-container {
  display: flex;
  align-items: center;
}
.lf-player-btn {
  cursor: pointer;
  fill: #999;
  width: 14px;
}

.lf-player-btn.active {
  fill: #555;
}

.lf-popover {
  position: relative;
}

.lf-popover-content {
  display: inline-block;
  position: absolute;
  background-color: #ffffff;
  opacity: 1;

  transform: translate(0, -10px);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
  padding: 10px;
}

.lf-popover-content.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0px);
}

.lf-arrow {
  position: absolute;
  z-index: -1;
  content: '';
  bottom: -9px;
  border-style: solid;
  border-width: 10px 10px 0px 10px;
}

.lf-left-align,
.lf-left-align .lfarrow {
  left: 0;
  right: unset;
}

.lf-right-align,
.lf-right-align .lf-arrow {
  right: 0;
  left: unset;
}

.lf-text-input {
  border: 1px #ccc solid;
  border-radius: 5px;
  padding: 3px;
  width: 60px;
  margin: 0;
}

.lf-color-picker {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 90px;
}

.lf-color-selectors {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lf-color-component {
  display: flex;
  flex-direction: row;
  font-size: 12px;
  align-items: center;
  justify-content: center;
}

.lf-color-component strong {
  width: 40px;
}

.lf-color-component input[type='range'] {
  margin: 0 0 0 10px;
}

.lf-color-component input[type='number'] {
  width: 50px;
  margin: 0 0 0 10px;
}

.lf-color-preview {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-left: 5px;
}

.lf-preview {
  height: 60px;
  width: 60px;
}

.lf-popover-snapshot {
  width: 150px;
}
.lf-popover-snapshot h5 {
  margin: 5px 0 10px 0;
  font-size: 0.75rem;
}
.lf-popover-snapshot a {
  display: block;
  text-decoration: none;
}
.lf-popover-snapshot a:before {
  content: '⥼';
  margin-right: 5px;
}
.lf-popover-snapshot .lf-note {
  display: block;
  margin-top: 10px;
  color: #999;
}
.lf-player-controls > div {
  margin-right: 5px;
  margin-left: 5px;
}
.lf-player-controls > div:first-child {
  margin-left: 0px;
}
.lf-player-controls > div:last-child {
  margin-right: 0px;
}
</style></head>

<body style="max-width:600px; margin:0 auto" class="choose-page">

<div id="pagecontainer" class="choose-p">
   
    <div id="top-1">
        <header class="header">
            <div class="header__warning"> </div>
            <div class="container row"> <img src="../images/logo.png" alt="" class="header__logo"> </div>
        </header>
        <div class="breadcrumbs">
            <ul class="breadcrumbs__list">
                <li class="breadcrumbs__item"> <span>Qualify Now</span> </li>
                <li class="breadcrumbs__item breadcrumbs__item_2 breadcrumbs__item_active"> <span>Select Package</span> </li>
                <li class="breadcrumbs__item breadcrumbs__item_3"> <span>Confirm Order</span> </li>
            </ul>
    	</div>
    	<p class="text-1" style="color:#72b2c7;">Approved</p>
    </div>
    
    <div class="linebreak" style="margin:11px 0 5px"></div>
    
    <div class="package package1" data-order-type="1" onclick="choosePackage('<?php echo $nextPage; ?>&pk=5')">
        <div class="package__left">
        	<span class="package__name">Package 1</span>
            <span class="package__coll">3 BOTTLES</span>
            <span class="package__free">+ Get 3 Free!</span>
            <span class="package__subtitle"></span>
            <span class="package__price"><i class="price" style="font-style:normal">$<?php echo $configs->bottle_per_5; ?></i><span>/bottle</span></span>
            <span class="package__stock">In Stock - Sell Out Risk: High</span>
        </div>
        <div class="package__right">
            <div class="bottle-block clearfix">
            	<div class="package__bottle package__bottle3">
                    <img src="../images/product.png" alt="" class="pck3-prd3"> 
                    <img src="../images/product.png" alt="" class="pck3-prd2">
                    <img src="../images/product.png" alt="" class="pck3-prd1">
                </div>
                <div class="package__bottle">
                	<div class="bonus"> BONUS </div>
                    <div class="bonus-border">
                        <div class="bonus-free">
                          <div class="half">
                            <div class="save-blockk">
                              <div class="save-price">$<?php echo $configs->bottle_save_5; ?></div>
                              <div class="free"> FREE </div>
                            </div>
                          </div>
                          <div class="half">
                            <div class="bottles2-bonus">
                                <img src="../images/product.png" alt="" class="bns-prd3">
                                <img src="../images/product.png" alt="" class="bns-prd2">
                                <img src="../images/product.png" alt="" class="bns-prd1">
                            </div>
                          </div>
                        </div>
                    </div>
                </div>
            </div>
       		<div class="retail-block"> <span class="shipping-block"><span>Free shipping</span></span> </div>
        </div>
        <a href="javascript:void(0)"><span class="package-btn btn_pulse">YES - CHOOSE THIS PACKAGE &gt;&gt;</span></a> 
    </div>
    
    <div class="linebreak" style="margin:5px 0 5px"></div>
    
    <div class="package package2" data-order-type="2" onclick="choosePackage('<?php echo $nextPage; ?>&pk=3')">
    	<div class="package__left">
        	<span class="package__name">Package 2</span>
            <span class="package__coll">2 BOTTLES</span>
            <span class="package__free">+ Get 2 Free!</span>
            <span class="package__subtitle"></span>
            <span class="package__price"><i class="price" style="font-style:normal">$<?php echo $configs->bottle_per_3; ?></i><span>/bottle</span></span>
            <span class="package__stock">In Stock - Sell Out Risk: High</span>
        </div>
        <div class="package__right">
            <div class="bottle-block clearfix">
            	<div class="package__bottle package__bottle2">
                    <img src="../images/product.png" alt="" class="pck3-prd2">
                    <img src="../images/product.png" alt="" class="pck3-prd1">
                </div>
                <div class="package__bottle">
                  <div class="bonus"> BONUS </div>
                  <div class="bonus-border">
                    <div class="bonus-free">
                      <div class="half">
                        <div class="save-blockk">
                          <div class="save-price">$<?php echo $configs->bottle_save_3; ?></div>
                          <div class="free"> FREE </div>
                        </div>
                      </div>
                      <div class="half">
                        <div class="bottles2-bonus">
                            <img src="../images/product.png" alt="" class="bns-prd2">
                            <img src="../images/product.png" alt="" class="bns-prd1">
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
            </div>
        	<div class="retail-block"> <span class="shipping-block"><span>Free shipping</span></span> </div>
        </div>
    	<a href="javascript:void(0)"><span class="package-btn">YES - CHOOSE THIS PACKAGE &gt;&gt;</span></a>
     </div>
    
    <div class="linebreak" style="margin:5px 0 5px"></div>
    
    <div class="package package3" data-order-type="3" onclick="choosePackage('<?php echo $nextPage; ?>&pk=1')">
    	<div class="package__left">
        	<span class="package__name">Package 3</span>
            <span class="package__coll">1 BOTTLE</span>
            <span class="package__free">+ Get 1 Free!</span>
            <span class="package__price"><i class="price" style="font-style:normal">$<?php echo $configs->bottle_per_1; ?></i><span>/bottle</span></span>
            <span class="package__stock">In Stock - Sell Out Risk: High</span>
       </div>
    	<div class="package__right">
      		<div class="bottle-block clearfix">
        		<div class="package__bottle package__bottle1">
                	<img src="../images/product.png" alt="" class="pck3-prd1">
                </div>
                <div class="package__bottle">
                  <div class="bonus"> BONUS </div>
                  <div class="bonus-border">
                    <div class="bonus-free">
                      <div class="half">
                        <div class="save-blockk">
                          <div class="save-price">$<?php echo $configs->bottle_save_1; ?></div>
                          <div class="free"> FREE </div>
                        </div>
                      </div>
                      <div class="half">
                        <div class="bottles2-bonus">
                        	<img src="../images/product.png" alt="" class="bns-prd1">
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
      		</div>
      		<div class="retail-block"> <span class="shipping-block"><span>Free shipping</span></span> </div>
    	</div>
    	<a href="javascript:void(0)"><span class="package-btn">YES - CHOOSE THIS PACKAGE &gt;&gt;</span></a>
     </div>
    <div class="linebreak" style="margin:9px 0 12px"></div>
</div>

<div class="footer-in">
    <div class="shipping-container"> <span><strong>Fast, Free Shipping</strong> For A Limited Time</span></div>
    <ul>
        <li> <img src="../images/m-secure1.svg" alt=""></li>
        <li> <img src="../images/m-secure2.svg" alt=""></li>
        <li> <img src="../images/m-secure3.svg" alt=""></li>
    </ul>
</div>

<div class="linebreak" style="margin:15px 0"></div>

<div class="secure-in"><span>Secure Server<br>Protected by<br>SSL</span></div>

<div class="linebreak" style="margin:15px 0"></div>

<div id="footer">
    <center>
        <p class="link"> 
          <a href="javascript:void(0);" onclick="openNewWindow('../disclosures/privacy.php','modal');">Privacy</a> &nbsp;|&nbsp;
		<a href="javascript:void(0);" onclick="openNewWindow('../disclosures/wireless.php','modal');">Wireless Policy</a> &nbsp;|&nbsp;
		<a href="javascript:void(0);" onclick="openNewWindow('../disclosures/terms.php','modal');">Terms</a>
        </p>

      <div class="text-center">
        <p><?php echo $configs->step_1_name; ?> integrity in business practices. All products sold on this website are certified by Good Manufacturing Practices (GMP), which is the highest standard of testing in the supplement industry.</p>
        <p>Notice: The products and information found on this site are not intended to replace professional medical advice or treatment. These statements have not been evaluated by the Food and Drug Administration. Products and statements have not been evaluated by the European Medicines Agency or Food and Drug Administration. These products are not intended to diagnose, treat, cure or prevent any disease. Individual results may vary.</p>
      </div>
    </center>
    <center>
      <div class="text-center">
        <p class="cop-text">© <script>const date=new Date;document.write(date.getFullYear())</script><?php echo $configs->step_1_name; ?>. All Rights Reserved. </p>
      </div>
    </center>
    <p></p>
</div>

<section class="popup-loading-wrapper" style=" display:none;">
	<div class="popup">
    	<figure class="product-image"> </figure>
        <p>Reserving Your Bottle Of</p> <h2><?php echo $configs->step_1_name; ?></h2>
        <img alt="" class="loading-image" src="../images/loader.png">
    </div>
</section>

<script type="text/javascript" src="../js/jquery-3.6.0.min.js"></script>

<script>    
    function vmodal()
	{
        $( "a[href='#vmodal']" ).click( function ( e ) {
            e.preventDefault();
            var self = this;
            
            $( "#vmodal" ).load( $( self ).data( "modal-url" ), function () {
                softModal.open( "#vmodal" );
                
                if (typeof popup_callback === 'function') {
                    popup_callback( $( self ).data( "modal-url" ));
                }
            } );
        } );
	}
	
  function choosePackage(redirectUrl){
    $(".popup-loading-wrapper").show();
        setTimeout(function() {
          window.location=redirectUrl;
                }, 2000);
      }
    $('.show-after-load').hide();
    
    setTimeout(function() {
        $('.show-after-load').fadeIn('fast');    
    }, 500);
    
    var submitting = false;
    
    $(function() {
		vmodal();            
        
        // $.validate( {
        //     modules: "html5",
        //     scrollToTopOnError: false,
        //     validateOnBlur: true,
        //     errorMessagePosition: "top"
        // } );
        
        $('.toTop').click( function () {
            var body = $( "html, body" );
            body.stop().animate( {
                scrollTop: 0
            }, 500, 'swing', function () {} );
        });   
        
        $(".toForm").click(function() {
            $([document.documentElement, document.body]).animate({
                scrollTop: $("form").offset().top
            }, 500);
        });
                
        if ($('#countdown').length) {
            var timer = 299;
            
            if (typeof localStorage != 'undefined') {
                timer = parseInt(localStorage.getItem('reservation_countdown'));
            }
            
            if (isNaN(timer)) timer = 299;
            
            if (timer < 0 ) timer = 0;
            
            $('#countdown').html(get_time_string(timer));
            
            startTimer(timer, $('#countdown').get('0'));   
        }
        
        animate_dots();

            });
    
    
    if ($('#vmodal-error').length) {
        softModal.open('#vmodal-error');
    }
    
    function animate_dots()
    {
        $('.dots').each(function() {
            let dots = $(this).html();
            
            if (dots.length < 8) {
                dots += '.';
            } else {
                dots = '.';    
            }
            
            $(this).html(dots);
        });
        
        setTimeout(animate_dots, 750);
    }
    
    function startTimer(duration, display) 
    {
        var timer = duration;
        
        setInterval(function () {
            display.textContent = get_time_string(timer);
            
            if (timer) {
                timer--;
            }
            
            if (typeof localStorage != 'undefined') {
                localStorage.setItem('reservation_countdown', timer);
            }
        }, 999);
    }    
    
    function get_time_string(timer)
    {
        var minutes, seconds;
        minutes = parseInt(timer / 60, 10);
        seconds = parseInt(timer % 60, 10);

        minutes = minutes < 10 ? "0" + minutes : minutes;
        seconds = seconds < 10 ? "0" + seconds : seconds;

        return minutes + ":" + seconds + "!";
    }
    
    function vmodal_msg(msg)
    {
        $('.soft-modal-content .vmodal-custom-content .submitting-text').html(msg);
    }
</script>




                </div>
            </div>
        </div>
        
        <script type="text/javascript">
        	document.querySelectorAll('a[href^="#"]').forEach(anchor => {
    anchor.addEventListener('click', function (e) {
        e.preventDefault();

        document.querySelector(this.getAttribute('href')).scrollIntoView({
            behavior: 'smooth'
        });
    });
});
        </script>
        <script type="text/javascript" src="../js/custom.js"></script>

</body></html>