.cpq-wrap {
	max-width: 720px;
	margin: 0 auto;
}

.cpq-heading {
	font-size: 20px;
	margin: 0 0 20px;
	text-align: center;
}

.cpq-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.cpq-grid-sub {
	grid-template-columns: repeat(3, 1fr);
}

.cpq-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px 16px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	min-height: 76px;
	font-size: 15px;
	font-weight: 600;
	color: #222;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cpq-btn:hover,
.cpq-btn:focus {
	background: #fdf1ee;
	border-color: #d94f3d;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(217, 79, 61, 0.12);
	outline: none;
}

.cpq-btn.is-answered {
	border-color: #2f6e4d;
	background: #f2f9f5;
}

.cpq-btn.is-answered::after {
	content: " ✓";
	color: #2f6e4d;
}

.cpq-grid-sub .cpq-btn {
	font-size: 14px;
	min-height: 64px;
}

.cpq-sub-header,
.cpq-quiz-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.cpq-back {
	background: none;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.cpq-back[hidden] {
	display: none;
}

.cpq-sub-title {
	margin: 0;
	font-size: 16px;
}

.cpq-progress {
	font-size: 12px;
	color: #888;
}

.cpq-quiz-view,
.cpq-thanks-view {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 20px 24px;
}

.cpq-quiz-title {
	margin: 0 0 16px;
	font-size: 18px;
}

.cpq-prompt {
	font-size: 14px;
	color: #333;
	margin: 0 0 12px;
}

.cpq-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	padding: 8px 10px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 6px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.cpq-option.is-correct {
	background: #e6f5eb;
	border-color: #2f6e4d;
}

.cpq-option.is-incorrect {
	background: #fbeaea;
	border-color: #b3261e;
}

.cpq-option input {
	flex-shrink: 0;
}

.cpq-next {
	width: 100%;
	padding: 10px;
	border: none;
	border-radius: 6px;
	background: #d94f3d;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	margin-top: 8px;
}

.cpq-next:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.cpq-error {
	color: #b3261e;
	font-size: 12px;
	margin-top: 4px;
}

.cpq-thanks-view {
	text-align: center;
}

.cpq-thanks-text {
	font-size: 15px;
	margin: 0 0 16px;
}

.cpq-back-final {
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	background: #d94f3d;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

@media ( max-width: 560px ) {
	.cpq-grid,
	.cpq-grid-sub {
		grid-template-columns: 1fr;
	}
}
