<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Reach Success Online</title>
	<!-- Bootstrap CSS -->
	<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
	<!-- Google Fonts - Montserrat -->
	<link rel="preconnect" href="https://fonts.googleapis.com">
	<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
	<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap" rel="stylesheet">
	<!-- International Telephone Input -->
  	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/css/intlTelInput.css" integrity="sha512-gxWow8Mo6q6pLa1XH/CcH8JyiSDEtiwJV78E+D+QP0EVasFs8wKXq16G8CLD4CJ2SnonHr4Lm/yY2fSI2+cbmw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <style>
		body {
			font-family: 'Montserrat', sans-serif;
		}
		h1 {
			color: #1B1B1B;
		    font-family: "Montserrat", Sans-serif;
		    font-size: 51px;
		    font-weight: 800;
		    line-height: 1;
		    margin-bottom: 0;
		}
		h2 {
			color: #272727;
		    font-family: "Montserrat", Sans-serif;
		    font-size: 25px;
		    font-weight: 600;
		    line-height: 1.4em;
		}
		h3 {
			color: #303030;
		    font-family: "Montserrat", Sans-serif;
		    font-size: 25px;
		    font-weight: 700;
		    line-height: 1;
		    margin-bottom: 0;
		}
		h4 {
			color: #2B2B2B;
		    font-family: "Roboto", Sans-serif;
		    font-size: 30px;
		    font-weight: 700;
		    line-height: 1.25em;
		}
		input {
			background-color: #ffffff;
		    border-color: #9E9E9E;
			font-family: "Montserrat", Sans-serif;
		    font-size: 17px;
		    font-weight: 500;
		    width: 100%;
		    max-width: 100%;
		    border: 1px solid #818a91;
		    color: #000000;
		    vertical-align: middle;
		    padding: 0.75em;
		    height: auto;
		    border-radius: 2px;
		}
		input:focus{
		    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%);
		    outline: none;
		}
		button {
			background-color: #FCC204;
		    color: #000000;
		    font-family: "Montserrat", Sans-serif;
		    font-weight: 600;
		    text-transform: uppercase;
		    min-height: 40px;
		    line-height: 1;
		    font-size: 15px;
		    padding: 12px 24px;
		    border-radius: 3px;
		    border: none;
		}
		button:hover {
		    background-color: #252525;
		    color: #FFFFFF;
			transition: all .3s;
		}
        button.anchor {
          	background-color: #3a3a3a;
          	color: #FFFFFF;
      	}
        button.anchor:hover {
          	background-color: #FCC204;
          	color: #000000;
      	}
		section#first {
			background-color: #F6F6F6;
		}
		#fs-wrap {
			padding: 50px 20px 30px 20px;
		}
		.first-section-wrap {
			padding: 10px;
		}
		.fs-h1-wrap {
			margin-bottom: 20px;
		    padding: 0px 0px 10px 0px;
		}
		.fs-h2-wrap {
			margin-bottom: 20px;
			padding: 0px 0px 10px 0px;
		}
		.fs-lottie-wrap {
			width: 56px;
			margin: 0 auto;
		}

		section#conditional-video {
			padding: 50px 0;
		}
		.cv-section-wrap {
			max-width: 1140px;
		    margin: 0 auto;
		}
		.cv-video-wrap {
			margin-top: 60px;
		}
		.embed-container { 
			position: relative; 
			padding-bottom: 56.25%; 
			height: 0; 
			overflow: hidden; 
			max-width: 100%; 
		} 
		.embed-container .iframe-overlay,
		.embed-container iframe, 
		.embed-container object, 
		.embed-container embed { 
			position: absolute; 
			top: 0; 
			left: 0; 
			width: 100%; 
			height: 100%; 
		}
		.embed-container .iframe-overlay img {
			width: 100%;
		}
		.embed-container .iframe-overlay .embed-play {
			position: absolute;
		    top: 50%;
		    left: 50%;
		    transform: translate(-50%,-50%);
		    cursor: pointer;
		    text-align: center;
		}
		.embed-container .iframe-overlay .embed-play i {
			font-size: 100px;
		    color: #fff;
		    text-shadow: 1px 0 6px rgb(0 0 0 / 30%);
		    opacity: .8;
		    transition: all .5s;
		}

		section#second {
			position: relative;
			background-color: #FFFFFF;
		    background-image: url(/img/wallpaper.jpg);
		    background-position: center center;
		    background-size: cover;
		    padding: 60px 0px 40px 0px;
		}
		.section-background-overlay {
			background-color: #F0F0F0;
		    opacity: 0.82;
		    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
			height: 100%;
		    width: 100%;
		    top: 0;
		    left: 0;
		    position: absolute;
		}
		#ss-wrap {
			position: relative;
		}
		.second-section-container {
			max-width: 1140px;
			margin: 0 auto;
			min-height: 519px;
		}
		.second-section-wrap {
		    padding: 10px;
		}
		.ss-h3-wrap	{
			background-color: #FCC204;
		    padding: 10px 30px 10px 30px;
		}
		.ss-h3-wrap {
			margin-bottom: 35px;
		}
		.ss-form-wrap {

		}
		.ss-input-wrap {
			margin-bottom: 15px;
		}
        .iti {
            width: 100%;
        }
      	.ss-info-wrap {
          padding-top: 35px;
        }
        .ss-info-wrap p {
          margin-bottom: 0;
        }
        .ss-info-wrap > *,
        .ss-info-wrap * {
            text-align: center;
            color: #000000;
            font-family: "Montserrat", Sans-serif;
            font-size: 16px;
            font-weight: 500;
            line-height: 1.6;
        }
        @media (max-width: 991.98px) {
          h1 {
              font-size: 35px;
              line-height: 1.2;
          }
      	}
        @media (max-width: 767.98px) {
          section#conditional-video {
              padding: 40px 0;
          }
          section#second {
              padding: 20px 0px 40px 0px;
          }
      	}
	</style>
</head>
<body>
	<section id="first">
		<div id="fs-wrap" class="container text-center">
			<div class="row">
				<div class="col">
					<div class="first-section-wrap">
						<div class="fs-h1-wrap">
							<p><img src="https://myrecruitingmastery.com/wp-content/uploads/2023/02/Recruiting-Mastery-Logo.png" width="315" height="48" /></p>
						</div>
						<div class="fs-h2-wrap">
							<h3>Započnite svoju karijeru u <span style="color: #178b35;">Američkoj Transportnoj Industriji</span>.</h3>
<h3>Postanite regruter i oslobodite svoj raspored.</h3>
						</div>
						<div class="fs-lottie-wrap">
							<lottie-player src="https://assets9.lottiefiles.com/packages/lf20_vfmyxu76.json"  background="transparent"  speed="1"  style="width: 56px; height: 56px;" loop autoplay></lottie-player>
                        </div>
                        <div class="fs-btn-wrap">
                            <button id="anchor" class="anchor">
                                <span>POPUNITE FORMU</span>
                            </button>
                        </div>
					</div>
				</div>
			</div>
		</div>
	</section>
    <!-- START CONDITIONAL LOGIC: If video link field is not empty, show this section. -->
	<section id="conditional-video" style="display: none">
		<div id="cv-wrap" class="container text-center">
			<div class="row">
				<div class="col">
					<div class="cv-section-wrap">
						<div class="cv-h2-wrap">
							
						</div>
						<div class="cv-video-wrap">
							<div class="d-flex align-content-center flex-wrap w-100 embed-container">
								<iframe style="display: none;" id="video" width="560" height="315" src="" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
								<div class="iframe-overlay">
									<img src="uploads/images/" alt="">
									<div id="play-video" class="embed-play">
										<i aria-hidden="true" class="far fa-play-circle"></i>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
    <!-- END CONDITIONAL LOGIC -->
	<section id="second">
		<div class="section-background-overlay"></div>
		<div id="ss-wrap" class="container text-center">
			<div class="row">
				<div class="col">
					<div class="second-section-container">
						<div class="second-section-wrap">
							<div class="ss-h3-wrap">
								<h3>Registruj se sada</h3>
							</div>
							<div class="ss-form-wrap">
              <form id="frm" method="POST" onSubmit="getToken(event)" action="index.php?module=home&action=submitLeads">
                <input type="hidden" id="event_id" name="event_id" value="59">
                <input type="hidden" id="language" name="language" value="sr">
									<div class="ss-input-wrap">
										<input type="text" name="name_surname" placeholder="Ime" required="required" aria-required="true">
									</div>
									<div class="ss-input-wrap">
										<input type="email" name="email_address" placeholder="E-mail" required="required" aria-required="true">
									</div>
									<div class="ss-input-wrap">
										<input type="tel" name="phone" id="phone" placeholder="Telefonski broj" required="required" aria-required="true">
                                      	<!-- On submit, intlTelInput.js will automatically add a hidden input with the given name and populate the hidden input with the full international number -->
                                        <!-- To get the value of a phone's field, you can use this field: <input type="hidden" name="iti_phone"> -->
									</div>
									<div class="ss-input-wrap">
										<button type="submit">
											<span>REGISTRUJ SE</span>
										</button>
									</div>
								</form>
							</div>
                            <!-- START CONDITIONAL LOGIC: If WYSIWYG editor field is not empty, show this section. -->
            <div class="ss-info-wrap" style="display: #none">
              
            </div>
                            <!-- END CONDITIONAL LOGIC -->
						</div>
					</div>
                  	
				</div>
			</div>
		</div>
	</section>
  
  	<script>
  function getToken(event) {
    event.preventDefault();

    grecaptcha.ready(function() {
      grecaptcha.execute('6LcjzXUqAAAAAGH6hV4VpMb_nJ_Eg8OOpP60QZvI', { action: 'submit' }).then(function(token) {

        var button = document.createElement('input');
        button.type = 'hidden';
        button.name = 'recaptcha_token';
        button.id = 'recaptcha_token';
        button.value = token;

        var form = document.getElementById("frm");
        form.appendChild(button);

        submitForm();
      });;
    });
  }

  function submitForm() {
    const form = document.getElementById('frm');
    form.submit();
/*    const formData = new FormData(form);
    var xhttp = new XMLHttpRequest();
    xhttp.open('POST', 'index.php?module=home&action=submitLeads', true);
    xhttp.send(formData);
    xhttp.onreadystatechange = function() {
      if (xhttp.readyState == 4 && xhttp.status == 200) {
        document.getElementById('recaptcha_token').remove();
        window.location.href = xhttp.responseText;
      }
    }*/
  }
</script>

<!-- Google reCaptcha V3 -->
<script src="https://www.google.com/recaptcha/api.js?render=6LcjzXUqAAAAAGH6hV4VpMb_nJ_Eg8OOpP60QZvI"></script>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
<!-- Font Awesome Kit -->
<script src="https://kit.fontawesome.com/d1c731aeeb.js" crossorigin="anonymous"></script>
<!-- Lottie Player -->
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<!-- International Telephone Input -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/intlTelInput.min.js" integrity="sha512-+gShyB8GWoOiXNwOlBaYXdLTiZt10Iy6xjACGadpqMs20aJOoh+PJt3bwUVA6Cefe7yF7vblX6QwyXZiVwTWGg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.6.3.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script>
<script>
  /* International Telephone Input */
  var input = document.querySelector("#phone");
  var iti = window.intlTelInput(input, {
    initialCountry: "auto",
    geoIpLookup: function(callback) {
      $.get('https://ipinfo.io', function() {}, "jsonp").always(function(resp) {
        var countryCode = (resp && resp.country) ? resp.country : "us";
        callback(countryCode);
      });
    },
    hiddenInput: "iti_phone",
    utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/utils.min.js",
  });
  /* Document Ready - Play Overlay Video */
  function ready(fn) {
    if (document.readyState !== 'loading') {
      fn();
    } else {
      document.addEventListener('DOMContentLoaded', fn);
    }
  }
  ready(function() {
    function playVideo() {
      document.querySelector('.iframe-overlay').style.display = 'none';
      let $video = document.querySelector('#video');
      let $src = $video.getAttribute('src');
      $video.setAttribute('src', $src + '?autoplay=1');
      $video.style.display = '';
    }
    const el = document.querySelector('#play-video');
    el.addEventListener("click", playVideo, false);
    document.querySelector('.fs-btn-wrap').style.display = 'none';
    const iframeSrc = document.querySelector('iframe#video').getAttribute('src');
    if(iframeSrc != '') {
      document.querySelector('.fs-btn-wrap').style.display = 'block';
      document.querySelector('.fs-lottie-wrap').style.display = 'none';
    }
    console.log('Src: '+iframeSrc);
    function anchorForm() {
      document.getElementById("ss-wrap").scrollIntoView();
    }
    const btn = document.querySelector('button#anchor');
    btn.addEventListener("click", anchorForm, false);
  });
</script>
<!-- Facebook Pixel Code -->
<script>
    !function(f,b,e,v,n,t,s)
            {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
            n.callMethod.apply(n,arguments):n.queue.push(arguments)};
            if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
            n.queue=[];t=b.createElement(e);t.async=!0;
            t.src=v;s=b.getElementsByTagName(e)[0];
            s.parentNode.insertBefore(t,s)}(window, document,'script',
        'https://connect.facebook.net/en_US/fbevents.js');
    fbq('init', '');
    fbq('track', 'PageView');
</script>
<noscript>
    <img height="1" width="1" style="display:none"
         src="https://www.facebook.com/tr?id=&ev=PageView&noscript=1"/>
</noscript>
<!-- End Facebook Pixel Code -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id="></script>
<script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', '');
</script>

</body>
</html>