@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-size: inherit;
}

body {
	font-family: "Poppins", "Noto Sans", sans-serif;
	font-size: 16px;
	background: linear-gradient(135deg, #f7797d 0%, #fbd786 50%, #c6ffdd 100%);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	padding: 2rem 1rem;
}

.page-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 900px;
}

/* Header styles */
.header-top {
	text-align: center;
	margin-bottom: 3rem;
	width: 100%;
	padding: 2.5rem 2rem;
	background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
}

.logo-image {
	max-width: 120px;
	height: auto;
	margin-bottom: 1.5rem;
	display: block;
	margin-left: auto;
	margin-right: auto;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.org-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: #c74040;
	margin: 0 0 0.6rem 0;
	letter-spacing: -0.5px;
	line-height: 1.3;
}

.committee-title {
	font-size: 1.4rem;
	font-weight: 600;
	color: #d97706;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
}

.test-title {
	font-size: 1.2rem;
	font-weight: 500;
	color: #333;
	margin: 0;
	line-height: 1.3;
}

.quiz {
	position: relative;
	padding: 3.5rem 2.5rem calc(3.5rem + 70px);
	background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
	border-radius: 20px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
	width: 100%;
	max-width: 700px;
	overflow: hidden;
	margin-bottom: 2rem;
	animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.quiz-header {
	margin-bottom: 1.5rem;
}

.title {
	font-size: 1.6rem;
	padding: 1.5rem 0;
	text-align: center;
	margin: 0;
	color: #333;
	font-weight: 600;
	line-height: 1.4;
}

.summary {
	text-align: center;
	margin: 1rem 0 1.5rem;
	font-size: 1.1rem;
	font-weight: 500;
	color: #555;
	line-height: 1.5;
}

.result {
	text-align: center;
	font-size: 2.5rem;
	font-weight: 700;
	color: #f7797d;
	margin: 1.5rem 0;
}

.quiz-list {
	list-style-type: none;
	padding: 0;
	margin: 0 0 1.5rem 0;
}

.quiz-list li {
	font-size: 1rem;
	margin-bottom: 1rem;
}

.quiz-list label {
	cursor: pointer;
	width: 100%;
	display: flex;
	align-items: center;
	padding: 1.2rem 1.5rem;
	background: linear-gradient(135deg, rgba(247, 121, 125, 0.05) 0%, rgba(251, 215, 134, 0.05) 100%);
	border: 2px solid #fde3d0;
	border-radius: 12px;
	transition: all 0.3s ease;
	font-weight: 500;
	color: #333;
}

.quiz-list label:hover {
	background: linear-gradient(135deg, rgba(247, 121, 125, 0.15) 0%, rgba(251, 215, 134, 0.15) 100%);
	border-color: #fbd786;
	transform: translateX(5px);
	box-shadow: 0 5px 15px rgba(247, 121, 125, 0.2);
}

.quiz-list label.correct {
	color: #27ae60;
	font-weight: 700;
	background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
	border-color: #27ae60;
}

.quiz-list label.wrong {
	color: #e74c3c;
	font-weight: 700;
	background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.05) 100%);
	border-color: #e74c3c;
}

.quiz-list label.disabled {
	cursor: no-drop;
	opacity: 0.7;
}

.quiz-list label.disabled:hover {
	cursor: no-drop;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
	transform: none;
}

.quiz-list input[type="radio"] {
	margin-right: 15px;
	cursor: pointer;
	accent-color: #f7797d;
	width: 20px;
	height: 20px;
}

.submit {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 70px;
	width: 100%;
	border: none;
	cursor: pointer;
	font-size: 1.1rem;
	font-weight: 600;
	font-family: inherit;
	background: linear-gradient(135deg, #f7797d 0%, #fbd786 100%);
	color: #fff;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0 0 20px 20px;
}

.submit:hover {
	background: linear-gradient(135deg, #f56268 0%, #faac5e 100%);
	box-shadow: 0 10px 25px rgba(247, 121, 125, 0.4);
	transform: translateY(-2px);
}

.submit:active {
	transform: translateY(0);
}

.submit:focus {
	outline: none;
}

/* Form styles */
form {
	margin-bottom: 1rem;
}

.form-container {
	width: 100%;
}

.form-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.2rem;
	margin-bottom: 1.5rem;
}

.form-item {
	display: flex;
	flex-direction: column;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	margin-bottom: 0.6rem;
	font-weight: 600;
	color: #333;
	font-size: 0.95rem;
}

.form-control,
.form-select {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 2px solid #fde3d0;
	border-radius: 10px;
	font-family: inherit;
	font-size: 1rem;
	transition: all 0.3s ease;
	background-color: #fff;
}

.form-control:focus,
.form-select:focus {
	outline: none;
	border-color: #fbd786;
	box-shadow: 0 0 0 3px rgba(247, 121, 125, 0.1);
	background-color: #fff;
}

.form-control::placeholder {
	color: #999;
}

.input-group {
	margin-bottom: 1.5rem;
	display: flex;
	gap: 0.8rem;
}

.input-group-text {
	background: linear-gradient(135deg, #f7797d 0%, #fbd786 100%);
	color: #fff;
	border: 2px solid transparent;
	padding: 0.9rem 1.2rem;
	border-radius: 10px 0 0 10px;
	font-weight: 600;
	flex-shrink: 0;
	min-width: auto;
}

.input-group .form-control {
	border-radius: 0 10px 10px 0;
	border-left: none;
	flex: 1;
}

.input-group .form-select {
	border-radius: 0 10px 10px 0;
	border-left: none;
	flex: 1;
}

.error-message {
	margin-top: 1rem;
	padding: 1rem;
	background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.05) 100%);
	border-radius: 10px;
	border-left: 4px solid #e74c3c;
	color: #c0392b;
	font-weight: 500;
	display: none;
}

.error-message:not(:empty) {
	display: block;
}

/* Timer is hidden initially and shown inside the quiz after start */
.timer.positioned {
	display: none;
	font-family: "Poppins", sans-serif;
	font-size: 18px;
	color: #333;
	position: absolute;
	top: 12px;
	right: 14px;
	background: rgba(255,255,255,0.98);
	padding: 0.35rem 0.7rem;
	border-radius: 10px;
	box-shadow: 0 6px 14px rgba(0,0,0,0.08);
	border: 1px solid rgba(0,0,0,0.05);
	font-weight: 700;
	z-index: 20;
}

#countdown {
	margin: 0;
	padding: 0;
}

/* Animations */
@keyframes shake {
	10%, 90% {
		transform: translate3d(-1px, 0, 0);
	}
	20%, 80% {
		transform: translate3d(2px, 0, 0);
	}
	30%, 50%, 70% {
		transform: translate3d(-4px, 0, 0);
	}
	40%, 60% {
		transform: translate3d(4px, 0, 0);
	}
}

.quiz-list.shake {
	animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
	perspective: 1000px;
}

/* Responsive design */
@media (max-width: 768px) {
	body {
		padding: 1rem 0.5rem;
	}

	.header-top {
		margin-bottom: 2rem;
		padding: 1.5rem 1rem;
	}

	.org-title {
		font-size: 1.3rem;
	}

	.committee-title {
		font-size: 1.1rem;
	}

	.test-title {
		font-size: 1rem;
	}

	.quiz {
		padding: 1.5rem 1.5rem calc(1.5rem + 70px);
		max-width: 95vw;
	}

	.form-wrapper {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.title {
		font-size: 1.3rem;
	}

	.submit {
		height: 60px;
		font-size: 1rem;
	}

	.positioned {
		font-size: 40px;
		padding: 0.8rem 1rem;
		top: 10px;
		right: 10px;
	}

	/* Make timer smaller and move inside quiz so it won't overlap content */
	.timer.positioned {
		top: 10px;
		right: 12px;
		font-size: 16px;
		padding: 0.3rem 0.6rem;
	}
}

@media (max-width: 480px) {
	.header-top {
		padding: 1.2rem 0.8rem;
	}

	.org-title {
		font-size: 1.1rem;
	}

	.committee-title {
		font-size: 1rem;
	}

	.test-title {
		font-size: 0.9rem;
	}

	.quiz {
		padding: 1.2rem 1.2rem calc(1.2rem + 70px);
		margin-bottom: 1rem;
	}

	.quiz-list label {
		padding: 0.9rem 1rem;
	}

	.form-label {
		font-size: 0.9rem;
	}

	.form-control,
	.form-select {
		padding: 0.8rem 0.8rem;
		font-size: 0.95rem;
	}

	.positioned {
		font-size: 32px;
		padding: 0.6rem 0.8rem;
		top: 5px;
		right: 5px;
	}
}

