JSFiddle - React, Tailwind, and code Playground

HTML

<style>
#region {
width: 300px;}
#punkt {width:300px;}
#ulica {width:300px;}
input {width:50px; padding: 3px;}
label {
  padding-right:5px;
  color:white;}
.glavnii {float:left;}
.field {clear:both; text-align:right; line-height:25px;}
font-size:18px;}
#stroenie { 
width:100px;}
#nomer { 
width:300px;}
.sub button {
	padding: 6px 20px;
  width:300px;
	height: 30px;
  	border-top: 1px solid #98CCE7;
  	  	border-radius: 15px;
	color: #FFF;
  	font: 16px Arial, Tahoma, sans-serif;
		background-color: #29ABE2;
	cursor: pointer;
	text-shadow: 0 -1px rgba(0,0,0,0.15);
	outline: none;}
.notebook2 {
    width: 360px;
    height: 450px;
    position: relative;
}

.notebook2 > input {
    display: none;
}

.notebook2 > div {
    position: absolute;
    box-sizing: border-box;
    top: 30px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    border-radius: 10px;
    padding: 0px 1em;

    z-index: 0;
    background-color: #29ABE2;

    transition: all 0.5s ease 0s, z-index 0s 0.5s;
}

.notebook2 > div > *:first-child {
    display: block;
    position: absolute;
    box-sizing: border-box;
    top: -30px;
    width: 150px;
    height: 30px;

    font-family: Arial;
    font-size: 13px;

    border-radius: 10px 10px 0px 0px;
    background-color: #29ABE2;

    color: #fff;
    line-height: 28px;
    cursor: pointer;
    text-align: center;

    transition: all 0.5s ease 0s;
}

.notebook2 > div > *:not(:first-child) {
    opacity: 0;
    transition: all 0.5s ease 0s;
}

.notebook2 > div:nth-of-type(1) > *:first-child { left: 20px; }
.notebook2 > div:nth-of-type(2) > *:first-child { left: 170px; }
.notebook2 > div:nth-of-type(3) > *:first-child { left: 320px; }
.notebook2 > div:nth-of-type(4) > *:first-child { left: 470px; }

.notebook2 > input:nth-of-type(1):checked ~ div:nth-of-type(1),
.notebook2 > input:nth-of-type(2):checked ~ div:nth-of-type(2),
.notebook2 > input:nth-of-type(3):checked ~ div:nth-of-type(3),
.notebook2 > input:nth-of-type(4):checked ~...