
/* Input Hover Effect */
.inputLabel {
	display: inline-block;
	float: right;
	padding: 0 14px;
	color: #666;
	-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.inputLabelContent {
	position: relative;
	display: block;
	padding: 13px 0;
	width: 100%;
}
.inputLabelHaruki {
	position: absolute;
	width: 100%;
	text-align: left;
	pointer-events: none;
}
.inputLabelContentHaruki {
	-webkit-transition: -webkit-transform 0.3s;
	transition: transform 0.3s;
}
.inputFieldHaruki:focus + .inputLabelHaruki .inputLabelContentHaruki,
.inputFilled .inputLabelContentHaruki {
	-webkit-transform: translate3d(0, -90%, 0);
	transform: translate3d(0, -90%, 0);
}

/* SingleInput  */
.egform {
	position: relative;
	margin: 0 auto;
	padding: 50px 0;
	max-width: 600px;	
	width: 100%;
	text-align: left;
	font-size: 18px;
}
.egform-inner {
	position: relative;
}
.egform .submit {
	display: none;
}
.egform ol {
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
	-webkit-transition: height 0.4s;
	transition: height 0.4s;
}
.egform ol:before {
	content: '';
	background:transparent;
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2.35em;
}
.inputList li {
	z-index: 100;
	position: relative;
	visibility: hidden;
	height: 0;
	-webkit-transition: visibility 0s 0.4s, height 0s 0.4s;
	transition: visibility 0s 0.4s, height 0s 0.4s;
}
.inputList li.current,
.no-js .inputList li {
	visibility: visible;
	height: auto;
	-webkit-transition: none;
	transition: none;
}

/* Labels */
.inputList li > span {
	display: block;
	overflow: hidden;
}

.inputList li > span label {
	font-size: 26px;
	letter-spacing: -1px;
	-webkit-transition: -webkit-transform 0.4s;
	transition: transform 0.4s;
	-webkit-transform: translateY(-100%);
	transform: translateY(-100%);
}

.show-next .inputList li.current > span label {
	-webkit-animation: TextOpacity 0.4s opacity;
	animation: TextOpacity 0.4s opacity;
}

@-webkit-keyframes moveUpFromDown {
	from { -webkit-transform: translateY(100%); }
	to { -webkit-transform: translateY(0); }
}

@keyframes moveUpFromDown {
	from { -webkit-transform: translateY(100%); transform: translateY(100%); }
	to { -webkit-transform: translateY(0); transform: translateY(0); }
}

@-webkit-keyframes TextOpacity {
	from { -webkit-transform: opacity: 1}
	to { -webkit-transform: opacity: 0.4}
}

@keyframes TextOpacity {
	from { -webkit-transform: opacity: 1}
	to { -webkit-transform: opacity: 0.4}
}

.inputList input {
	display: block;
	margin: 0px auto;
	letter-spacing: -1px;
	padding: 14px;
	box-shadow: inset 0 0 0 3px rgba(0,0,0,0.3);
	border: none;
	width: 100%;
	border: none;
	background: #fff;
	color: #000;
	font-size: 26px;
	line-height: 32px;
	opacity: 0;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

.inputList textarea {
	display: block;
	margin: 0px auto;
	letter-spacing: -1px;
	padding: 12px 50px 12px 12px;
	box-shadow: inset 0 0 0 3px rgba(0,0,0,0.3);
	border: none;
	width: 100%;
	border: none;
	background: #fff;
	color: #000;
	outline: 0;
	line-height: 1;
}

.inputList .current input,
.no-js .inputList input {
	opacity: 1;
}

.inputList input:focus,
.egform button:focus {
	outline: none;
}

.next {
	display: flex;
	position: absolute;
	right: 3px;
	bottom: 8px;
	padding: 0;
	width: 62px;
	height: 52px;
	border: none;
	border-left: 1px dashed #e7eaec;
	background: #fff url('img/round-button.png') center center no-repeat;
	opacity: 0;
	z-index: 100;
	cursor: pointer;
	-webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
	transition: transform 0.3s, opacity 0.3s, background 1s;
	-webkit-transform: translateX(-20%);
	transform: translateX(-20%);
}
.next:hover {
	background: url('img/round-button-hover.png') center center no-repeat;	
	transition: background 1s;
}
.next.show {
	opacity: 1;
	-webkit-transform: translateX(0);
	transform: translateX(0);
	pointer-events: auto;
}

/* Progress bar */
.egform .progress {
	width: 0%;
	height: 0.20em;
	background: #ec62c8;
	-webkit-transition: width 0.4s ease-in-out;
	transition: width 0.4s ease-in-out;
}
.egform .progress::before {
	position: absolute;
	top: auto;
	width: 100%;
	height: inherit;
	background: rgba(0,0,0,0.05);
	content: '';
}

/* Number Indicator */
.egform .number {
	position: absolute;
	right: 64px;
	top: 15px;
	z-index: 1000;
	overflow: hidden;
	width: 52px;
	font-weight: 700;
	font-size: 16px;
	color: rgba(0,0,0,0.45);
	background: #fff;
	padding: 5px 10px;
	border: 1px dashed #e7eaec;
	border-right: none;
}

.egform .number:after {
	position: absolute;
	left: 50%;
	content: '/';
	opacity: 0.4;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
}

.egform .number span {
	float: right;
	width: 40%;
	text-align: center;
}

.egform .number .number-current {
	float: left;
}

.egform .number-next {
	position: absolute;
	left: 0;
}

.egform.show-next .number-current {
	-webkit-transition: -webkit-transform 0.4s;
	transition: transform 0.4s;
	-webkit-transform: translateY(-100%);
	transform: translateY(-100%);
}

.egform.show-next .number-next {
	-webkit-animation: moveUpFromDown 0.4s both;
	animation: moveUpFromDown 0.4s both;
}

/* Error and final message */
.egform .error,
.egform .success {
	position: absolute;
	visibility: hidden;
	opacity: 0;
	-webkit-transition: opacity 0.4s;
	transition: opacity 0.4s;
	font-size: 18px;
	font-weight: 600;
}

.egform .error {
	padding: 5px 0 0 0;
	width: 100%;
	color: rgba(0,0,0,0.7);
	font-size: 13px;
}

.success {
	top: 50%;
	left: 0;
	padding: 0.5em;
	width: 100%;
	text-align: center;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

.error.show,
.success.show {
	visibility: visible;
	opacity: 1;
}

.success.show {
	-webkit-transition-delay: 0.5s;
	transition-delay: 0.5s;
}

/* Final hiding of form / showing message */
.egform-inner.hide {
	visibility: hidden;
	opacity: 0;
	-webkit-transition: opacity 0.3s, visibility 0s 0.3s;
	transition: opacity 0.3s, visibility 0s 0.3s;
}

/* No JS Fallback */
.no-js .egform {
	font-size: 1.75em;
}

.no-js .inputList li {
	padding: 0 0 2em;
}

.no-js .egform .submit {
	display: block;
	float: right;
	padding: 10px 20px;
	border: none;
	background: rgba(0,0,0,0.3);
	color: rgba(0,0,0,0.4);
}

.no-js .egform .controls {
	display: none;
}

/* Remove IE clear cross */
input[type=text]::-ms-clear {
    display: none;
}

/* Adjust form for smaller screens */
@media screen and (max-width: 716px) {
	.egform {
		width: 80%;
	}
}

@media screen and (max-width: 537px) {
	.egform {
		width: 100%;
	}
	.inputList input {
		font-size: 18px;
	}
}