/* ============================================
   TREK QUIZZ - FRONT-END STYLES
   Versão 2.0 - Com Árvore de Decisão
   ============================================ */

.trek-quizz-container {
	max-width: 800px;
	margin: 60px auto;
	padding: 40px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tq-title {
	font-size: 40px !important;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 30px 0;
	text-align: center;
	line-height: 1.3;
}

/* ============================================
   PERGUNTAS
   ============================================ */

.tq-question-block {
	animation: fadeInUp 0.4s ease;
}

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

.tq-question-title {
	font-size: 26px !important;
	font-weight: 400 !important;
	color: #2c2c2c;
	margin: 0 0 25px 0;
	line-height: 1.4;
	text-align: center;
}

/* ============================================
   RESPOSTAS
   ============================================ */

.tq-answers {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tq-answer-option {
	display: flex;
	align-items: center;
	padding: 18px 22px;
	background: #f8f9fa;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.25s ease;
	position: relative;
}

.tq-answer-option:hover {
	background: #e8f4f8;
	border-color: #4a9aba;
	transform: translateX(5px);
}

.tq-answer-option.selected {
	background: #d7ebf7;
	border-color: #2271b1;
	transform: scale(1.02);
}

.tq-answer-option input[type="radio"] {
	width: 22px;
	height: 22px;
	margin: 0;
	margin-right: 15px;
	cursor: pointer;
	flex-shrink: 0;
	accent-color: #2271b1;
}

.tq-answer-option:has(input:checked) {
	background: #d7ebf7;
	border-color: #2271b1;
}

.tq-answer-text {
	font-size: 16px;
	color: #333;
	line-height: 1.5;
	flex: 1;
}

/* ============================================
   MENSAGENS E LOADING
   ============================================ */

.tq-message {
	margin-top: 20px;
	padding: 20px 25px;
	border-radius: 10px;
	font-size: 16px;
	text-align: center;
}

.tq-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-size: 16px;
	color: #555;
}

.tq-spinner {
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 3px solid #e0e0e0;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.tq-success {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 600;
	color: #155724;
	background: #d4edda;
	padding: 20px;
	border-radius: 10px;
}

.tq-success .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #28a745;
}

.tq-message.error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.trek-quizz-container {
		margin: 30px 20px;
		padding: 30px 20px;
	}
	
	.tq-title {
		font-size: 26px;
		margin-bottom: 25px;
	}
	
	.tq-question-title {
		font-size: 20px;
	}
	
	.tq-answer-option {
		padding: 14px 16px;
	}
	
	.tq-answer-text {
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.tq-title {
		font-size: 22px;
	}
	
	.tq-question-title {
		font-size: 18px;
	}
	
	.tq-answer-text {
		font-size: 14px;
	}
}