@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sen:wght@400;700;800&display=swap');

:root {
	--primary-color: rgb(227, 54, 76);
	--secondary-color: rgb(248, 213, 0);
	--text-color: rgb(0, 0, 0);
	--field-color: rgb(255, 255, 255);
}



body {
	font-family: "Jost";
	width: 100%;
}

main {

	min-height: 100vh;
	width: 100%;
	position: relative;
	z-index: 100;
	display: grid;
}

.main-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	z-index: 0;
}

.countdown {
	position: absolute;
	top: 0;
	left: 80px;
	background-color: var(--primary-color);
	width: 114px;
	height: 127px;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	font-size: 30px;
	color: rgb(255, 255, 255);
	font-weight: bold;
	display: grid;
	place-content: center;
	line-height: 1;
}

.countdown span {
	font-size: 35px;
}



form {
	display: grid;
	height: 100%;
}

.wrapper {
	width: 70%;
	margin-top: 60px;
	margin-left: 100px;
	margin-bottom: 20px;
}

.wrapper section {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.step-count {
	display: grid;
}

.step-single {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 22%;
}

.step-single .step-line {
	flex: 1;
	width: 100%;
	background-color: rgb(212, 212, 212);
	position: relative;
}

.step-single .step-line::before {
	content: "";
	width: 100%;
	height: 0;
	transition: 0.5s;
	background-color: var(--primary-color);
	position: absolute;
	top: 0;
	left: 0;
}

.step-single .step-number {
	border-radius: 50%;
	background-color: rgb(212, 212, 212);
	width: 60px;
	height: 60px;
	overflow: hidden;
	position: relative;
	display: grid;
	place-content: center;
	font-size: 21px;
	font-family: "Sen";
	color: rgb(212, 212, 212);
	font-weight: bold;
	transform: translateX(-25px);
}

.step-single .step-number span {
	position: relative;
	z-index: 10;
}

.step-single .step-number::after {
	content: "";
	width: 100%;
	height: 0;
	background-color: var(--primary-color);
	transition: 0.5s;
	position: absolute;
	left: 0;
	top: 0;
}

.step-single .step-number::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	margin: 0 auto;
	margin-top: 10px;
	border-radius: 50%;
	background-color: rgb(255, 255, 255);
	width: 40px;
	height: 40px;
	z-index: 10;
}

.step-single.active .step-line::before {
	height: 135%;
}

.step-single.active .step-number::after {
	height: 100%;
	transition-delay: 0.15s;
}

.step-single.active .step-number {
	color: rgb(0, 0, 0);
}


.quiz-question {

	position: relative;
	z-index: 10;
	width: 75%;
	height: 480px;
	display: grid;
	align-items: center;
	padding-left: 80px;
}

.quiz-question img {
	position: absolute;
	top: 0;
	z-index: 0;
	left: 0;
}

.quiz-question h2 {
	font-size: 45px;
	color: rgb(0, 0, 0);
	font-weight: bold;
	position: relative;
	z-index: 10;
}

fieldset {
	flex: 1;
	margin: 0 auto;
	margin-top: 20px;
	width: 60%;
	overflow: hidden;

}

.radio-field {

	width: 100%;
	height: 80px;
	position: relative;
	display: grid;
	place-content: center;
	margin-bottom: 10px;
}

.radio-field input {
	-webkit-appearance: none;
	position: absolute;
	border: solid 4px transparent;
	border-radius: 7px;
	background-color: rgb(239, 239, 239);
	box-shadow: 0px 2px 21px 0px rgba(0, 0, 0, 0.03);
	width: 100%;
	height: 100%;
	cursor: pointer;
	transition: 0.5s;

}


.radio-field label {
	font-size: 24px;
	color: var(--text-color);
	font-weight: bold;
	pointer-events: none;
	position: relative;
	z-index: 10;
	transition: 0.5s;
}

.radio-field input:checked {
	border-color: var(--primary-color);
}

.radio-field input:checked::before {
	content: "";
	position: absolute;
	border-left: solid 5px var(--primary-color);
	border-bottom: solid 5px var(--primary-color);
	top: 35px;
	right: 30px;
	width: 25px;
	height: 15px;
	transform: rotate(-45deg);
	opacity: 0;
	border-radius: 2px;
	z-index: 1000;
}

.radio-field input:checked~label {
	color: var(--primary-color);
}

.next-prev {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 100%;
	margin: 0 auto;
	margin-top: 30px;
}

.next-prev button {
	border: solid 1px transparent;
	border-radius: 9px;
	background-color: var(--field-color);
	box-shadow: 0px 2px 21px 0px rgba(0, 0, 0, 0.03);
	width: 240px;
	height: 82px;
	font-size: 18px;
	color: var(--text-color);
	font-weight: bold;
	text-transform: uppercase;
}

.next-prev button i {
	position: relative;
	top: 1px;
	margin: 0 8px;
}

.next-prev .next {
	background-color: var(--primary-color);
	color: rgb(255, 255, 255);
}


.step-count {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 50px;
	background-color: rgb(212, 212, 212);
}


#error div {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 1000;
}