/* RESET & BASE */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Poppins', Arial, sans-serif;
	background-color: #f9f9f9;
	color: #222;
	line-height: 1.6;
}

/* HEADER */
header {
	background-color: #1a1a1a;
	color: white;
	padding: 1.5rem 3rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header h1 {
	font-size: 1.8rem;
	letter-spacing: 1px;
}

nav ul {
	list-style: none;
	display: flex;
	gap: 2rem;
}

nav a {
	text-decoration: none;
	color: white;
	font-weight: 500;
	transition: color 0.3s;
}

nav a:hover {
	color: #f4b400;
}

/* HERO */
.hero {
	position: relative;
	background: url('../images/hero-bg.jpg') center/cover no-repeat;
	color: white;
	text-align: center;
	padding: 6rem 2rem;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 0;
}

.hero h2,
.hero p,
.hero button {
	position: relative;
	z-index: 1;
}

.hero h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.hero p {
	font-size: 1.2rem;
	max-width: 700px;
	margin: 0 auto;
	color: #f0f0f0;
}

.hero button {
	margin-top: 2rem;
	padding: 0.8rem 2rem;
	font-size: 1rem;
	background-color: #f4b400;
	border: none;
	border-radius: 5px;
	color: #1a1a1a;
	cursor: pointer;
	transition: background-color 0.3s;
}

.hero button:hover {
	background-color: #e6a300;
}

/* UNIVERSAL SPLIT SECTIONS (used by all service pages) */
.section-stack {
	display: flex;
	flex-direction: column;
	gap: 4rem;
	padding: 4rem 2rem;
	background-color: #fff;
}

.block {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: 1100px;
	margin: 0 auto;
}

.block.reverse {
	flex-direction: row-reverse;
}

.block-text {
	flex: 1;
}

.block-text h3 {
	color: #f4b400;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.block-text p {
	color: #333;
	font-size: 1.05rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.block-text button {
	background-color: #f4b400;
	border: none;
	padding: 0.9rem 2rem;
	border-radius: 5px;
	font-size: 1rem;
	color: #1a1a1a;
	cursor: pointer;
	transition: background-color 0.3s;
}

.block-text button:hover {
	background-color: #e6a300;
}

.block-image {
	flex: 1;
}

.block-image img {
	width: 100%;
	height: 350px;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* PAGE HEADER (About, Contact, Service pages) */
.page-header {
	background-color: #1a1a1a;
	color: white;
	text-align: center;
	padding: 4rem 2rem;
}

.page-header h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.page-header p {
	font-size: 1.1rem;
	max-width: 700px;
	margin: 0 auto;
	color: #ddd;
}

/* ABOUT PAGE */
.about-content {
	padding: 4rem 3rem;
	background: white;
	max-width: 800px;
	margin: 0 auto;
	color: #333;
	line-height: 1.7;
}

.about-text h3 {
	color: #f4b400;
	margin-top: 2rem;
	margin-bottom: 0.5rem;
}

/* CONTACT FORM */
.contact-form-section {
	background: #fff;
	padding: 4rem 2rem;
}

.contact-form {
	max-width: 600px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact-form label {
	font-weight: 500;
	color: #333;
}

.contact-form input,
.contact-form textarea {
	padding: 0.8rem;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1rem;
}

.contact-form button {
	background-color: #f4b400;
	border: none;
	padding: 0.9rem;
	border-radius: 5px;
	font-size: 1rem;
	color: #1a1a1a;
	cursor: pointer;
	transition: background-color 0.3s;
}

.contact-form button:hover {
	background-color: #e6a300;
}

/* QUOTE SECTION */
.quote-section {
	text-align: center;
	background-color: #1a1a1a;
	color: white;
	padding: 4rem 2rem;
}

.quote-section h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.quote-section p {
	max-width: 700px;
	margin: 0 auto 2rem auto;
	color: #ddd;
}

.quote-section button {
	background-color: #f4b400;
	border: none;
	padding: 0.9rem 2rem;
	border-radius: 5px;
	font-size: 1rem;
	color: #1a1a1a;
	cursor: pointer;
	transition: background-color 0.3s;
}

.quote-section button:hover {
	background-color: #e6a300;
}

/* FOOTER */
footer {
	background-color: #1a1a1a;
	color: white;
	text-align: center;
	padding: 2rem;
	font-size: 0.9rem;
}

.footer-email {
	color: #f4b400;
	text-decoration: none;
}

.footer-email:hover {
	text-decoration: underline;
}

/* RESPONSIVE (General) */
@media (max-width: 900px) {
	.block,
	.block.reverse {
		flex-direction: column;
	}
	.block-image img {
		height: 250px;
	}
}

/* QUIZ PAGE */
.quiz-container {
	background-color: #fff;
	padding: 4rem 2rem;
	text-align: center;
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.quiz-card {
	max-width: 700px;
	width: 100%;
	background: #f7f7f7;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	opacity: 1;
	transition: opacity 0.4s ease;
}

.quiz-card.fade-out {
	opacity: 0;
}

.quiz-subtitle {
	color: #f4b400;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.quiz-question {
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

.quiz-image {
	display: block;
	margin: 0 auto 1.5rem auto;
	width: 160px;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.quiz-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.quiz-option {
	padding: 1rem;
	border-radius: 10px;
	font-size: 1.1rem;
	font-weight: 500;
	cursor: pointer;
	border: 2px solid #ccc;
	background-color: #fff;
	color: #222;
	transition: all 0.25s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.quiz-option:hover {
	transform: translateY(-2px);
	border-color: #f4b400;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	background-color: #fafafa;
}

.quiz-option.correct {
	border-color: #4caf50;
	background-color: #e8f5e9;
}

.quiz-option.wrong {
	border-color: #e74c3c;
	background-color: #fdecea;
	opacity: 0.8;
}

.quiz-result {
	text-align: center;
}

.quiz-result h2 {
	font-size: 2rem;
	color: #f4b400;
	margin-bottom: 1rem;
}

.quiz-result button {
	margin: 0.5rem;
	padding: 0.8rem 2rem;
	border: none;
	border-radius: 5px;
	background-color: #f4b400;
	color: #1a1a1a;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.3s;
}

.quiz-result button:hover {
	background-color: #e6a300;
}

@media (max-width: 700px) {
	.quiz-options {
		grid-template-columns: 1fr;
	}
}

/* QUIZ PROGRESS BAR */
.quiz-progress {
	width: 100%;
	max-width: 700px;
	height: 10px;
	background-color: #e0e0e0;
	border-radius: 5px;
	margin-bottom: 2rem;
	overflow: hidden;
	box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.quiz-progress-bar {
	height: 100%;
	width: 0%;
	background-color: #f4b400;
	border-radius: 5px;
	transition: width 0.4s ease;
}

/* QUIZ START MENU (Button selector style) */
.quiz-start {
	max-width: 700px;
	background: #f7f7f7;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	text-align: center;
	margin-bottom: 2rem;
}

.quiz-start h2 {
	margin-bottom: 2rem;
	color: #1a1a1a;
}

.select-group {
	margin-bottom: 1.8rem;
}

.select-label {
	font-weight: 600;
	margin-bottom: 0.6rem;
	color: #333;
}

.select-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

.select-btn {
	background-color: #fff;
	color: #222;
	border: 2px solid #ccc;
	border-radius: 8px;
	padding: 0.8rem 1.5rem;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.select-btn:hover {
	border-color: #f4b400;
	transform: translateY(-2px);
}

.select-btn.active {
	background-color: #f4b400;
	border-color: #f4b400;
	color: #1a1a1a;
	box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

#startBtn {
	margin-top: 1rem;
	padding: 0.9rem 2.5rem;
	border-radius: 6px;
	font-size: 1.1rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	background-color: #ccc;
	color: #555;
	transition: all 0.3s ease;
}

#startBtn.ready {
	background-color: #f4b400;
	color: #1a1a1a;
}

#startBtn.ready:hover {
	background-color: #e6a300;
	transform: translateY(-2px);
}

/* --- Mobile header fixes (place at end of file) --- */
@media (max-width: 700px) {
	header {
		padding: 1rem 1.25rem;
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
		text-align: center;
	}

	header h1 {
		font-size: 1.35rem;
		line-height: 1.2;
		white-space: normal;
		word-break: normal;
	}

	nav ul {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		gap: 1rem;
	}

	nav a {
		display: inline-block;
		padding: 0.5rem 0.75rem;
	}
}

@media (max-width: 360px) {
	header h1 {
		font-size: 1.1rem;
	}
}
