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

$customer_details=get_customer_details($configs);
?>
<!DOCTYPE html>
<html class="no-js">
<head>
    <meta charset="utf-8" />
<title><?php echo $configs->step_1_name; ?></title>
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="content-language" content="en-us" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="HandheldFriendly" content="true" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<link rel="shortcut icon" href="../brand/logo.png" type="image/x-icon"> 
<meta name="robots" content="noindex,nofollow">


<link rel="stylesheet" href="../css/modal.css">

<style type="text/css">.form-error { display: none }
    
    input[type=text]:focus, input[type=tel]:focus, input[type=email]:focus, select:focus {
        border: 1px solid grey;
        border-bottom: 1px solid #1e90ff;
        outline:none;
    }
    span.help-block.form-error {
        display: none;
    }

    .has-error input[type=email],.has-error input[type=text],.has-error input[type=tel],.has-error.has-success input#phone_mask,.has-error select{
        border: 1px solid #ff5e45 !important;
        background-image: url('../images/icon-validation-bad.png') !important;
        background-position: right center !important;
        background-repeat: no-repeat !important;
        background-size: 30px !important;
    }

    .has-success input[type=email], .has-success input[type=text],.has-success input[type=tel], .has-success select{
        background-image: url('../images/icon-validation-good.png') !important;
        background-position: right center !important;
        background-repeat: no-repeat !important;
        
        background-size: 30px !important;
    }
    
    body.device-mobile .pac-container { top: 340px !important; }
    
    input::placeholder { color: #aaa !important; }
    
    .floating-labels { position: relative; margin-bottom: 10px; }
    .floating-labels input { position: relative !important;  z-index: 1 !important; height: 25px; padding: 18px 0 0 10px !important; box-sizing: content-box !important; width: 95% !important; background: rgba(255,255,255, 0) !important; }
    .floating-labels select {  padding: 5px 0 5px 10px; box-sizing: content-box; width: 95%; }
    .floating-labels input::placeholder { opacity: 0; }
    
    .floating-labels label { font-size: 15px; font-family:montserrat, sans-serif; transition: all .2s; cursor: text;  position: absolute;top: 50%; transform: translateY(-50%); left: 10px; opacity: 0.6; font-weight: normal;}
    
        
    .floating-labels input:focus + label, .floating-labels input:not(:placeholder-shown) + label { font-size: 12px; color: #3498db; top: 25% ; z-index: 2; }
    .floating-labels select + label { display: none; }
    
    @supports (-ms-ime-align:auto) { 
        .floating-labels label  { display: none; }
        .floating-labels input {height: 43px; padding: 0 0 0 10px !important; }    
    } 
	
    .optout-link { display: none; }
</style>
<script type='text/javascript'>
    function getDate(days) 
    {
        var dayNames = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
        var monthNames = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
        var now = new Date();
        now.setDate(now.getDate() + days);
        var nowString = monthNames[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear();
        document.write(nowString);
    }

    
    var offer_vars = {"slug":"v3","customer_service_phone":"<?php echo $configs->customer_service_number; ?>","trial_length":"30 day","shipping_price":"0","msrp":"189.99"};

</script>

    <link rel="stylesheet" href="../css/app.css" />
	<link rel="stylesheet" href="../css/ss-billing.css">
	<link rel="stylesheet" type="text/css" href="../css/reset.css">
	<link rel="stylesheet" type="text/css" href="../css/shipping.css">
	<link rel="stylesheet" type="text/css" href="../css/global.css">
	<link href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,700,300,600,800,400.css" rel="stylesheet" type="text/css">
	<link href="https://fonts.googleapis.com/css?family=Rokkitt:400,700.css" rel="stylesheet" type="text/css">
	<!-- <link rel="stylesheet" type="text/css" href="../css/app.css"> -->
    <style>#banner { padding: 2px 20px; position: relative; }
        
        #banner .logo-top { height: 40px; width: auto; vertical-align: middle; }
        
        #shipping-top { right: 20px; text-align: right; position: absolute; top: 50%; transform:translateY(-50%); }
            #shipping-top img { height: 17px; width: auto;    }
        
            #shipping-top .mobile-exclusive { display: inline-block; width: 45%; font-size: 9px; color: black; vertical-align: middle; }
        
        .progress .bar {
            top: 55px;
            height: 3px;
            width: 0%;
            border-right: 200px solid #ddd;
        }     
        
        .progress .part div:first-child {
            font-size: 11px;
            color: #888;
        }
        .progress .part div:last-child {
            border: 2px solid #d4d4d4;
            width: 15px;
            height: 15px;
            line-height: 15px;
            font-size: 10px;
        }
        
        #approved-content p { padding: 5px 20px 0; }
        
        #kformSubmit { border: 0;  font-size: 16px; }

        form label { color: black; }
        button.pick-product  { border: 0; padding: 3px; color: white; line-height: 20px; font-family: arial; font-size:18px; width: 93%; display: block; margin: 0 auto; background: #80399f;  }
        button.pick-product span { font-size: 28px; text-transform: uppercase;}
        
        main { max-width: 768px; margin: 0 auto; }
        
        .container { width: auto; }        
    </style>
    

    <style type='text/css'>.totalamounts,#subtotal{
display:none}
.page-shipping .cp-wrapper{
    width: 100%!important;
           zoom: normal!important;
        }
    .page-product .product_option .bottle-container.paid_bottles {
        margin-top: unset;
    }
         .page-product .product_option .product_img {
        display: flex;
        align-items: center;
    }
    .page-product .product_option .product_img .plus {
      
        position: absolute;
        top: 22%;
        left: -9%;
       
    }

.page-product .product_option{
height:auto
}    </style>
</head>
<body class='device-mobile slug-v3 page-qualify flow-custom-me-v6-c3 step-1 region-us type-straight-sale-ssc device_mobile_slug_v3_page_qualify_flow_custom_me_v6_c3_step_1_region_us_type_straight_sale_ssc'>
	<div id="wrapper" class="cp-wrapper">
        <img src='../brand/logo.png' style='display: block; width: 250px; margin: 0 auto;'>

        <div class="shipping-container">
           <span><img src='../images/bus.png' width='42'> <strong>Fast, Free Shipping</strong> For A Limited Time</span>
        </div>        

        <div class="breadcrumbs">
           <ul class="breadcrumbs__list">
              <li class="breadcrumbs__item breadcrumbs__item_active">
                 <span>Qualify Now</span>
              </li>
              <li class="breadcrumbs__item breadcrumbs__item_2 ">
                 <span>Select Package</span>
              </li>
              <li class="breadcrumbs__item breadcrumbs__item_3">
                 <span>Confirm Order</span>
              </li>
           </ul>
        </div>                

        <p style="text-align:center; margin-top: 12px;">
           <b style="color:#000; font-size:16px; font-family: Arial;">
           <span style="color:#f18704; font-weight: bold;">Qualify For Your Order</span>
           </b>
        </p>
        
        
		<form id="theForm" name="prospect_form1" class='prospect-form' method="POST" action="/v3/app/src/ajax.php" onsubmit="return validate_optin_form()">
            <input type="hidden" name="device" value="mobile">
            <input type="hidden" name="pgtag" value="mqualify">
            <input type="hidden" name="shippingCountry" id="shippingCountry" value="US">
            <?php
                foreach($customer_details['affiliate_details'] as $key => $value) {
                    echo "<input type='hidden' name='".$key."' value='".$value."'>";
                }
            ?>
			<div id="form">
                                    <div class=" field-first_name frm-element" >
                        <label>First Name</label>
                        <input value='' type='text'  name="firstName" id='fields_fname' data-group='1'  placeholder='First Name' required data-field='first_name' class='form-control  '>                    </div>
                                    <div class=" field-last_name frm-element" >
                        <label>Last Name</label>
                        <input value='' type='text'  name="lastName" id='fields_lname' data-group='1'  placeholder='Last Name' required data-field='last_name' class='form-control  '>                    </div>
                                    <div class=" field-email frm-element" >
                        <label>Email</label>
                        <input value='' type='text'  name="email" id='fields_email' data-group='1'  placeholder='Email Address' required data-field='email' class='form-control  '>                    </div>
                                    <div class=" field-how_much_weight_do_you_want_to_lose? frm-element" >
                        <label>How Much Weight Do You Want To Lose?</label>
                        <select name='how_much_weight_do_you_want_to_lose?'  class='form-control  ' data-group='1'><option value=''> Please Select </option><option value='1' >1-10 lbs</option><option value='2' >11-20 lbs</option><option value='3' >20 plus lbs</option></select>                    </div>
                			</div>
            
            <button class='pick-product' type='submit'>Qualify For My Order <span>»</span></button>

            <p style='margin-top: 20px;'><img src="../images/secure.png" alt="" ></p>
		</form>

        <div style='text-align: center;'><img src='../images/godaddyimg.jpg' style='display: block;'></div>
        <div style='text-align: center;margin-top: 20px; '><img src='../images/safe.jpg' style='display: block;'></div>
        
        
        <div style='height: 1px; width: 1px; visibility: hidden; position: absolute;'>
            
            
            
                    </div>
        
        
        <div style='position: absolute; overflow: hidden; width: 1px; height: 1px;'>
    </div>
<style type='text/css'>footer{font-family: 'Open Sans','Arial', san-serif; color:#8a8a8a !important;font-size:12px; }
    footer p a{color:#8a8a8a;font-size:12px;}
    footer p a:hover{text-decoration:underline;}
    footer p{text-align:center;clear:both;font-size:12px;color:#8a8a8a;}
    
    .footerlinks { padding: 20px 0; }
    .footerlinks a { font-size: 12px; }
    footer { padding: 20px 10px !important; max-width: 900px; margin: 20px auto; clear: both; display: block; box-sizing: border-box;}
    
    .error-message { color: #be0000; max-width: 600px; }
    
    p.retake-link { text-align: right !important; }
    
    div.modal-inner.soft-modal-inner p.retake-link a { cursor: pointer !important; text-decoration: underline !important; font-size: 12px !important; float: none !important; }
    
    .submitting-text { color: black; font-family: sans-serif; text-transform: uppercase; font-size: 18px; display: block; max-width: 400px;}
    .dots { color: black; font-size: 28px; }
    
    .shipping-fields { margin-top: 10px !important; }
    .shipping-fields label { width: 150px; text-align: right; padding-right: 10px; display: inline-block; vertical-align: top; }
    .shipping-fields .shipping-field { width: 300px; display: inline-block;vertical-align: top; }
    
    .shipping-fields input, .shipping-fields select { width: 100%; box-sizing: border-box; margin: 0; height:auto !important;}
    
    .shipping-fields input { padding: 6px 5px !important; text-indent: 0 !important;}
    .shipping-fields select { padding: 5px 5px !important;}
    .shipping-fields button { border: 0;width: 100%; display: block; cursor: pointer; position: relative; outline: 0; padding: 20px 15px;  background: #2288D0;  color: #fff;    font-size: 20px; }

    body.device-mobile .update-shipping-form .shipping-fields label { text-align: left; }
    
    #form-submit.disabled, [type="submit"].disabled, #kformSubmit.disabled { opacity: 0.2; }

    .addon-offer-snippet {
        padding: 15px 0; font-size: 14px; font-weight: bold; text-align: center; width: 100%;
    }

    #threeds_overlay { top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); overflow: hidden; overflow-y: auto; position: fixed; display: block; transition: opacity 0.2s, z-index 0s 0.2s; z-index: 999 }
    #threeds_challenge { width: 500px; height: 400px; border: none; position: fixed; top: 20px; border-radius: 5px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); left: -250px; margin-left: 50%; z-index: 1000 }
    #threeds_overlay_close { position: fixed; display: block; top: 30px; left: 50%; margin-left: 238px; z-index: 9999 }
    #threeds_overlay_close .threeds_close { cursor: pointer; }
    #threeds_overlay_close .threeds_close:after, 
    #threeds_overlay_close .threeds_close:before { content: ""; height: 20px; width: 20px; border-top: 1px solid #000; position: absolute; top: 7px; right: -8px; -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -webkit-transform: rotate(-45deg); transform: rotate(-45deg); }
    #threeds_overlay_close .threeds_close:before { right: 6px; -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg); }
    #threeds_overlay_close .threeds_close:hover { opacity: 0.3; }

</style>

<footer>
    <div id="footer_trial_disclaimer">
					<div>We are committed to maintaining the highest quality products and the utmost 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.</div>
			<br>

			<div>*Due to limited inventory levels on any given day, we must limit trial sales to 250 maximum per day.
			Representations regarding the efficacy and safety of <?php echo $configs->step_1_name; ?> have not been evaluated by the Food and Drug Administration.</div>

			<div>This product is not intended to diagnose, treat, cure, or prevent any disease. This product is intended to be used in conjunction with a healthy diet and regular exercise. Consult your physician before starting any diet, exercise program, and taking any diet pill to avoid any health issues.</div>

			</div>
        
    
    <div class="footer">
        <p class="copyright">
            &copy; 2024 <?php echo $configs->step_1_name; ?> &mdash; All rights reserved.
        </p>
        <p class="customerservice">
            Customer Service: <?php echo $configs->customer_service_number; ?> </p>
        <p class="footerlinks">
            <a href="#vmodal" data-modal-url="../disclosures/terms.php">Terms &amp; Conditions</a> |
            <a href="#vmodal" data-modal-url="../disclosures/privacy.php">Privacy Policy</a> |
            <a href="#vmodal" data-modal-url="../disclosures/wireless.php">Wireless Policy</a>
			
			        </p>
    </div>
</footer>


<script src="../js/jquery.min.js"></script>
<script src="../js/app.min.js"></script>

<div class="modal softModal">
    <div class="modal-inner soft-modal-inner">
        <a data-modal-close>&times;</a>
        <div class="modal-content soft-modal-content"></div>
    </div>
</div>

<script>
    var softModal = new VanillaModal.default( {
        modal: ".softModal",
        modalInner: ".soft-modal-inner",
        modalContent: ".soft-modal-content"
    } );
</script>

<div id="vmodal" style="display:none"></div>

<div id="vmodal-submitting" style="display:none">
    <div class='vmodal-custom-content'>
        <div style='text-align: center;'>            
            <div style='margin: 20px 0;'><span class='submitting-text'>Submitting Your Information</span><span class='dots'></span></div>  
            
            <div><img src='../images/secure.png' width='400'></div>
        </div>
    </div>
</div>



<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" ));
                }
            } );
        } );
	}
	
	
    $('.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');
    }
    
    /* $('.prospect-form,.checkout-form,.upsell-form,.full-checkout-form').submit(function(e) {
        e.preventDefault();
        
		var self = this;
		
        $('#vmodal').html($('#vmodal-submitting').html());
		

		softModal.open('#vmodal');
		
        if ($(self).hasClass('prospect-form')) {
            vmodal_msg('Submitting Your Information');

        } else {
           // setTimeout(function() { vmodal_msg('Almost Done... Please Be Patient'); }, 3000);
        }
        
        submit_form(self);

    }); */
    
    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>
<script type="text/javascript" src="../js/custom.js"></script>
</body>
</html>
