.mqz-quiz {
	max-width: 720px;
	margin: 0 auto;
	padding: 32px 24px 40px;
	font-family: inherit;
	box-sizing: border-box;
}

.mqz-quiz *,
.mqz-quiz *::before,
.mqz-quiz *::after {
	box-sizing: border-box;
}

.mqz-progress-wrap {
	background: #f0f0f0;
	border-radius: 999px;
	height: 30px;
	overflow: hidden;
	margin-bottom: 36px;
}

.mqz-progress-fill {
	background: #6a9955;
	height: 100%;
	min-width: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: width 0.35s ease;
	border-radius: 999px;
}

.mqz-progress-label {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.mqz-step {
	display: none;
	animation: mqz-fade-in 0.3s ease;
}

.mqz-step.mqz-active {
	display: block;
}

@keyframes mqz-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.mqz-question {
	font-size: 26px;
	font-weight: 500;
	text-align: center;
	color: #4a4a4a;
	margin: 0 0 12px;
	line-height: 1.35;
}

.mqz-subtext {
	text-align: center;
	color: #8a8a8a;
	margin: 0 0 24px;
	font-size: 15px;
}

.mqz-options {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 28px;
}

.mqz-option {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 10px;
	cursor: pointer;
	border-radius: 6px;
	transition: background-color 0.15s ease;
}

.mqz-option:hover {
	background-color: #f7f7f7;
}

.mqz-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.mqz-radio-visual {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border: 2px solid #b7b7b7;
	border-radius: 50%;
	position: relative;
	transition: border-color 0.15s ease;
}

.mqz-option input[type="radio"]:checked + .mqz-radio-visual {
	border-color: #6a9955;
}

.mqz-option input[type="radio"]:checked + .mqz-radio-visual::after {
	content: "";
	position: absolute;
	inset: 3px;
	background: #6a9955;
	border-radius: 50%;
}

.mqz-option-text {
	font-size: 17px;
	color: #555;
}

.mqz-field-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.mqz-field-row .mqz-field {
	flex: 1 1 220px;
}

.mqz-field {
	margin-bottom: 16px;
}

.mqz-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #4a4a4a;
	margin-bottom: 6px;
}

.mqz-field input[type="text"],
.mqz-field input[type="email"],
.mqz-field input[type="tel"],
.mqz-field input[type="url"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	font-size: 15px;
}

.mqz-field input:focus {
	outline: none;
	border-color: #6a9955;
}

.mqz-privacy-field label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	font-weight: 400;
	color: #666;
	cursor: pointer;
}

.mqz-privacy-field input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.mqz-error {
	color: #c0392b;
	background: #fdecea;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 14px;
	margin: 4px 0 16px;
}

.mqz-submit-btn {
	width: 100%;
	padding: 16px;
	background: #6a9955;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.mqz-submit-btn:hover {
	opacity: 0.9;
}

.mqz-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Shortcode risultato, thank you page */
.mqz-result {
	max-width: 720px;
	margin: 0 auto;
	padding: 8px 4px;
}

.mqz-result-title {
	font-size: 26px;
	color: #4a4a4a;
	margin-bottom: 16px;
}

.mqz-result-body p {
	font-size: 16px;
	line-height: 1.6;
	color: #555;
}

.mqz-result-body ul {
	margin: 0 0 16px;
	padding-left: 20px;
}

.mqz-result-body li {
	font-size: 16px;
	line-height: 1.6;
	color: #555;
	margin-bottom: 6px;
}

@media (max-width: 600px) {
	.mqz-question {
		font-size: 21px;
	}
	.mqz-option-text {
		font-size: 16px;
	}
}
