<h1><span class="heading-subtitle">OOTS User journey</span>Key steps in the once only journey</h1>
<p class="lead" style="max-width: 840px; margin-bottom: 60px;">An overview of the seven steps in the Once-Only Technical System (OOTS) journey.</p>
<div><ul>
<li><div class="icon-plus-vertical_line"><span><img src="https://ec.europa.eu/digital-building-blocks/sites/download/attachments/613549035/how_to_reg.svg" alt=""/><div></div></span><a>1. Authentication</a></div>
<ul class="subOptions">
<li data-index="1" class="active">Authenticate</li>
<li data-index="2">Select Member State</li>
<li data-index="3">Select eID means</li>
<li data-index="4">Provide consent</li>
</ul>
</li>
<li><div class="icon-checked"><span><div></div></span><a href="https://ec.europa.eu/digital-building-blocks/sites/display/OOTS/User+Journey+-+Step+2+Evidence+Location">2. Evidence location</a></div></li>
<li><div class="icon-checked"><span><div></div></span><a href="https://ec.europa.eu/digital-building-blocks/sites/display/OOTS/User+Journey+-+Step+3+Evidence+Request">3. Evidence request</a></div></li>
<li><div class="icon-checked"><span><div></div></span><a href="https://ec.europa.eu/digital-building-blocks/sites/display/OOTS/User+Journey+-+Step+4+Redirection">4. Redirection</a></div></li>
<li><div class="icon-checked"><span><div></div></span><a href="https://ec.europa.eu/digital-building-blocks/sites/display/OOTS/User+Journey+-+Step+5+Preview">5. Preview</a></div></li>
<li><div class="icon-checked"><span><div></div></span><a href="https://ec.europa.eu/digital-building-blocks/sites/display/OOTS/User+Journey+-+Step+6+Evidence+Response">6. Evidence response</a></div></li>
<li><div class="icon-checked"><span><div></div></span><a href="https://ec.europa.eu/digital-building-blocks/sites/display/OOTS/User+Journey+-+Step+7+Submit">7. Submission</a></div></li>
</ul></div>


<h3>1. Authenticate with an eIDAS notified eID scheme</h3>
<p>Users must have an eIDAS enabled eID to request the exchange of evidence through the Once-Only Technical System.</p>
<div id="tab-one" class="accordion-tab active" data-index="1"><h5>Authenticate to use the Once-Only Technical System</h5><img src="https://ec.europa.eu/digital-building-blocks/sites/download/attachments/613549035/chevron.svg" alt="up arrow"/>
<p>Users begin their journey on a portal that offers one of the online procedures in the scope of the <a  class="text secondary" href="https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:32018R1724&from=EN" target="_blank" onclick="event.stopPropagation();">Single Digital Gateway Regulation</a>. The procedures in scope include a range of life events including studying abroad, moving to another Member State or doing business across borders. Member States will need to update the relevant websites and portals so that users can authenticate with an eIDAS eID.</p>
<p></p>
<p>Only users who authenticate with an eIDAS means from a notified eID scheme will be able to request evidence through the Once-Only Technical System.</p>
<img class="playGIF"src="https://ec.europa.eu/digital-building-blocks/sites/download/attachments/613549035/gif-procedural-portal.gif" alt=""/>
<a data-index="1" class="link-upward primary"><span>Go to previous step</span></a><a href="#tab-two" data-index="1" class="next-tab link-downward primary"><span>Go to the next step</span></a>
</div><hr>
<div id="tab-two" class="accordion-tab" data-index="2"><h5>Select the Member State that issued their eID</h5><img src="https://ec.europa.eu/digital-building-blocks/sites/download/attachments/613549035/chevron.svg" alt="up arrow"/>
<p>Once users have chosen to sign-in with their eID on the procedure portal, they will typically be re-directed to the website of the national authentication provider on the procedure portal side.<br> 
Users must then select from a list, the Member State that issued their eID. If their eID was issued by another Member State, the user will then be redirected to the website of the selected national authentication service.<br>
The eIDAS node in the procedure portal Member State sends an authentication request to the eIDAS node in the Member State that issued the users’ eID.</p>
<img class="playGIF"src="https://ec.europa.eu/digital-building-blocks/sites/download/attachments/613549035/gif-authentication-service.gif" alt=""/>
<a href="#tab-one" data-index="2" class="previous-tab link-upward primary"><span>Go to previous step</span></a><a href="#tab-three"  data-index="2" class="next-tab link-downward primary"><span>Go to the next step</span></a>
</div><hr>
<div id="tab-three" class="accordion-tab" data-index="3"><h5>Select their eID means</h5><img src="https://ec.europa.eu/digital-building-blocks/sites/download/attachments/613549035/chevron.svg" alt="up arrow"/>
<p>National authentication portals may provide users with multiple eID means to authenticate. Typically, these include a mobile app or an eID card reader. Users must authenticate with an eIDAS notified scheme to be able to exchange evidence via the Once-Only Technical System.</p>
<img class="playGIF"src="https://ec.europa.eu/digital-building-blocks/sites/download/attachments/613549035/gif-eid-card-reader.gif" alt=""/>
<a href="#tab-two" data-index="3" class="previous-tab link-upward primary"><span>Go to previous step</span></a><a href="#tab-four" data-index="3" class="next-tab link-downward primary"><span>Go to the next step</span></a>
</div><hr>
<div id="tab-four" class="accordion-tab" data-index="4"><h5>User is asked for consent</h5><img src="https://ec.europa.eu/digital-building-blocks/sites/download/attachments/613549035/chevron.svg" alt="up arrow"/>
<p>Users will be asked for consent to share their eIDAS attributes with the requesting service in the Member State where they are completing the procedure. Either the national authentication service on the provider side and/or the users’ identity provider issues the request for consent. Once the user has successfully authenticated, they are re-directed back to the procedure portal.</p>
<img class="playGIF"src="https://ec.europa.eu/digital-building-blocks/sites/download/attachments/613549035/gif-identity-provider-authentication.gif" alt=""/>
<a href="#tab-three" data-index="4" class="previous-tab link-upward primary"><span>Go to previous step</span></a><a data-index="4" class="link-downward primary"><span>Go to the next step</span></a>
</div><hr>
<a href="https://ec.europa.eu/digital-building-blocks/sites/display/OOTS/User+Journey+-+Step+2+Evidence+Location" class="btn primary"><span>Next step</span><span class="ico-cta-forward"></span></a>

@media screen and (max-width: 518px) {
	.accordion-content-footer { display: none!important;}
	.accordion-content-footer p { flex-direction: column; }
	.previous-tab { justify-content: flex-start!important; }
	.next-tab { justify-content: flex-end!important; }
	.playGIF { min-width: 161px!important; }
}

@media screen and (max-width: 768px) {

  .active .accordion-content-card { justify-content: start!important; padding-left: 0px!important; }
}

@media screen and (max-width: 1170px) {
	#guidance_navigation { display: none!important;}
	#guidance_navigation + div { display: none; }
}
/*
@media screen and ( min-width: 1171px ) and ( max-height: 1000px ) {
		#guidance_navigation { position: sticky!important; top:0; left:none; }
		#guidance_navigation + div { width: 0px!important; }
}
*/
@media screen and (max-width: 1330px) {
	#guidance_navigation { width: 16.6%!important; }
}

@media screen and (min-width: 2200px) {
 #guidance > div > div > div:nth-child(2) { display: none; }
}
#footer-main { position: relative; }
h3 { font-size: 24px!important; }
#guidance_accordion > p:nth-child(3) { font-size: 18px!important; }

.section {padding-top: 0px!important; padding-bottom: 0px!important; }

#introduction h1 { font-size: 40px; margin-bottom: 12px;}
#introduction h1 span { font-size: 1rem; line-height: 24px;}  

#guidance_navigation { position: fixed; height: fit-content!important; left: 0; display: flex; align-items: flex-end; background: #00284A; border-radius: 0px 40px 40px 0px; max-width: 410px; min-width:260px; }
#guidance_navigation > div { width: 234px; }
#guidance_navigation ul { list-style: none; margin: 0; padding: 0;  }
#guidance_navigation li { margin-bottom: 1rem; cursor: pointer; }
#guidance_navigation a {text-decoration: none; color: #ffffff; font-size: 16px; }

#guidance_navigation .icon-plus-vertical_line { display: flex; gap: 10px; position: relative; }
#guidance_navigation .icon-plus-vertical_line > span > img { padding: 9px 7px 5px 8px; width: 32px;}
#guidance_navigation .icon-plus-vertical_line > span > div { display: inline-block; position: absolute; top: 32px; left:15px; border-left: 2px solid rgba(255, 255, 255, 0.25); height: 40px;}
#guidance_navigation .icon-plus-vertical_line > span { width: 32px; height: 32px; border-radius: 32px; background: rgba(255, 255, 255, 0.25);}

#guidance_navigation .icon-checked { display: flex; gap: 10px; position: relative; }
#guidance_navigation .icon-checked > span > img { padding: 7px; border-radius: 32px; width: 32px; height: 32px; background: rgba(255, 255, 255, 0.25); }
#guidance_navigation .icon-checked > span > div { display: inline-block; position: absolute; top: 32px; left: 16px; border-left: 2px solid rgba(255, 255, 255, 0.25);}
#guidance_navigation .icon-checked > span { width: 32px; }

#guidance_navigation li > ul { margin-block-end: 1em; padding-inline-start: 63px; }
#guidance_navigation + div { max-width: 250px; }
.subOptions .active { color: rgba(255, 255, 255, 0.55);} 

.accordion-container { margin-top: 4rem; max-width: 836px;}
.accordion-container > div {position: relative; cursor: pointer; padding: 1rem 1rem 0 1rem; }
.accordion-container > div > div > img { position: absolute; right: 30px; top: 52px; }
.accordion-container h5 { font-size: 18px; color: #00284A; max-width: 80%; padding-left: 25px;}
.accordion-container hr { margin-bottom: 3rem; }
.accordion-tab > img { transform: rotate(180deg); }
.accordion-wrapper-activated { background: #f3f4f7; border-radius: 20px; padding-top: 2rem!important; margin-bottom: 2rem; position: relative;}
.accordion-wrapper-activated .active > img {transform: rotate(360deg); top: 62px; right: 24px; }
.accordion-wrapper-activated hr { display: none; }

.accordion-tab .active { margin-bottom: 5rem; }
.accordion-content-deactivated { display: none; }

.active .accordion-content-deactivated { display: flex; flex-direction: column; justify-content: space-between; }
.active .accordion-content-footer p{ display: flex; justify-content: space-between; }
.active .accordion-content-text { margin-top: 2rem; }
.active .accordion-content-text p { padding-left: 25px; }
.active .accordion-content-card { display: flex; justify-content: center; align-items: center; height: inherit!important; padding-top: 0px; padding-bottom: 0px;}
.active .accordion-content-card > p { margin-bottom: 0px; }

.next-step-btn {max-width: 836px; }
.next-step-btn p{display: flex; justify-content: end; }
.ico-arrow-north-primary { background-size: 15px!important; }
.ico-arrow-south-primary { background-size: 15px!important; }

.playGIF { width: 100%; border-radius: 12px; max-width: 330px; min-width: 290px;}

.accordion-content-footer > p > a:first-child { visibility: hidden; }

.sticky-fixed { position: absolute!important; }
#main-content > p:last-child { margin-bottom:0px; }
<script>
$('.next-tab').on('click', function(e) {
  let self = this;
  let tabsLength = $(".subOptions li").length;
  e.stopPropagation() 
  $('.subOptions li').each(function() {
		this.classList.value = '';
    if(this.getAttribute('data-index') == (+self.getAttribute('data-index')+1)) {
			this.classList.value = 'active';	
		}
	})
  $('.icon-plus-vertical_line > span > div')[0].setAttribute('style', `height: ${(+self.getAttribute("data-index")+1)*40}px`)
  $('.accordion-container > div > div').each(function() {
	 	this.setAttribute('class', 'accordion-tab');
	 	this.parentElement.closest('div').classList.value = ""
		if (this.getAttribute('data-index') == (+self.getAttribute('data-index')+1)) {
				this.classList.value = 'accordion-tab active';
			 	this.parentElement.closest('div').classList.value = "accordion-wrapper-activated";
				if((+self.getAttribute('data-index')+1) == 1 ) {
					$('.accordion-content-footer > p > a:first-child').css('visibility','hidden');
				}
				else {
				 $('.accordion-content-footer > p > a:first-child').css('visibility','visible');
				}
 				if((+self.getAttribute('data-index')+1) == tabsLength ) {
					$('.accordion-content-footer > p > a:last-child').css('visibility','hidden');
				}
				else {
				 $('.accordion-content-footer > p > a:last-child').css('visibility','visible');
				} 
	   } 
	})
  e.preventDefault()  
})

$('.previous-tab').on('click', function(e) {
  let self = this;
  let tabsLength = $(".subOptions li").length;
  e.stopPropagation()  
  $('.subOptions li').each(function() {
		this.classList.value = '';
    if(this.getAttribute('data-index') == (+self.getAttribute('data-index')-1)) {
			this.classList.value = 'active';	
		}
	}) 
  $('.icon-plus-vertical_line > span > div')[0].setAttribute('style', `height: ${(+self.getAttribute("data-index")-1)*40}px`)
  $('.accordion-container > div > div').each(function() {
	 	this.setAttribute('class', 'accordion-tab');
	 	this.parentElement.closest('div').classList.value = ""
		if (this.getAttribute('data-index') == (+self.getAttribute('data-index')-1)) {
				this.classList.value = 'accordion-tab active';
			 	this.parentElement.closest('div').classList.value = "accordion-wrapper-activated";
				if((+self.getAttribute('data-index')-1) == 1 ) {
					$('.accordion-content-footer > p > a:first-child').css('visibility','hidden');
				}
				else {
				 $('.accordion-content-footer > p > a:first-child').css('visibility','visible');
				}
 				if((+self.getAttribute('data-index')-1) == tabsLength ) {
					$('.accordion-content-footer > p > a:last-child').css('visibility','hidden');
				}
				else {
				 $('.accordion-content-footer > p > a:last-child').css('visibility','visible');
				}
	    } 
	})
  e.preventDefault()
})   

$('.subOptions li').on('click', function(e) {
	e.stopPropagation();
	let self = this;
	let tabsLength = $(".subOptions li").length;
	if (self.classList.value === 'active') {
		$('.icon-plus-vertical_line > span > div')[0].setAttribute('style', `height: 0px`)
		self.classList.value = ''
		$('.accordion-container > div > div').each(function() {
			this.setAttribute('class', 'accordion-tab');
			this.parentElement.closest('div').classList.value = ""
		})
	} else {
		$('.subOptions li').each(function() {
			this.classList.value = '';
		})
	  $('.icon-plus-vertical_line > span > div')[0].setAttribute('style', `height: ${+self.getAttribute("data-index")*40}px`)
		$('.accordion-container > div > div').each(function() {
			 this.setAttribute('class', 'accordion-tab');
			 this.parentElement.closest('div').classList.value = ""
			if (this.getAttribute('data-index') === self.getAttribute('data-index')) {
					this.classList.value = 'accordion-tab active';
					self.classList.value = 'active';
					 this.parentElement.closest('div').classList.value = "accordion-wrapper-activated";
					if(self.getAttribute('data-index') == 1 ) {
						$('.accordion-content-footer > p > a:first-child').css('visibility','hidden');
					}
					else {
					 $('.accordion-content-footer > p > a:first-child').css('visibility','visible');
					}
					  if(self.getAttribute('data-index') == tabsLength ) {
	  					$('.accordion-content-footer > p > a:last-child').css('visibility','hidden');
					}
					else {
						 $('.accordion-content-footer > p > a:last-child').css('visibility','visible');
					} 
			} 
		})
	}

    e.preventDefault();
}) 

    $('.accordion-container > div > div').on('click', function(e) {
	e.stopPropagation();
	let self = this;
    if( e.currentTarget.classList.value === 'accordion-tab active') {
    e.currentTarget.classList.value = 'accordion-tab';
    e.currentTarget.parentElement.closest('div').classList.value = '';
	$('.subOptions li').each(function(){
		this.classList.value = '';
		if(this.getAttribute('data-index') === self.getAttribute('data-index')) {
			this.classList.value = '';	
		}
	})
	$('.icon-plus-vertical_line > span > div')[0].setAttribute('style', `height: 0px;`);
  } else {
	let tabsLength = $(".subOptions li").length;
	$('.accordion-container > div > div').each(function() {
		this.setAttribute('class', 'accordion-tab');
	 	this.parentElement.closest('div').classList.value = ""	
	})
     self.classList.value = 'accordion-tab active';    
	$('.subOptions li').each(function(){
		this.classList.value = '';
		if(this.getAttribute('data-index') === self.getAttribute('data-index')) {
			this.classList.value = 'active';	
		}
	})
  	$('.icon-plus-vertical_line > span > div')[0].setAttribute('style', `height: ${+this.getAttribute("data-index")*40}px`);
 	this.parentElement.closest('div').classList.value = "accordion-wrapper-activated"
 	if(self.getAttribute('data-index') == 1 ) {
		$('.accordion-content-footer > p > a:first-child').css('visibility','hidden');
	}
	else {
		$('.accordion-content-footer > p > a:first-child').css('visibility','visible');
	}
	if(self.getAttribute('data-index') == tabsLength ) {
  		$('.accordion-content-footer > p > a:last-child').css('visibility','hidden');
	}
	else {
	 $('.accordion-content-footer > p > a:last-child').css('visibility','visible');
	}
  }
	
	e.preventDefault();
})


function checkOffset() {
    if($('#guidance_navigation').offset().top + $('#guidance_navigation').height() 
                                           >= $('#footer-main').offset().top - 1) {
        $('#guidance_navigation').addClass('sticky-fixed')
}
    if($(document).scrollTop() + window.innerHeight < $('#footer-main').offset().top)
        $('#guidance_navigation').removeClass('sticky-fixed');
}
$(document).scroll(function() {
    checkOffset();
});

alert('test');

</script>