/* TTH Quizzes — inline, mobile-first. Warm Turtle Hub palette to match the
 * result email. Never positioned/fixed: the quiz flows with the article so
 * on-page ads are never covered. */

.tth-quiz {
	margin: 32px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tth-quiz__card {
	background: #f3f7f1;
	border: 1px solid #d6e2d2;
	border-radius: 14px;
	padding: 22px 20px;
	box-shadow: 0 1px 3px rgba(31, 61, 43, .06);
	color: #2b2b2b;
}

.tth-quiz__eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #5a7a5e;
	font-weight: 600;
}

.tth-quiz__title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.3;
	color: #1f3d2b;
}

.tth-quiz__intro {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.5;
	color: #45554a;
}

/* Buttons */
.tth-quiz__btn {
	display: inline-block;
	background: #1f6f43;
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 14px 22px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
	transition: background .15s ease, transform .05s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tth-quiz__btn,
.tth-quiz__btn:hover,
.tth-quiz__btn:focus,
.tth-quiz__btn:active { color: #fff !important; }
.tth-quiz__btn:hover { background: #195c37; }
.tth-quiz__btn:active { transform: translateY(1px); }
.tth-quiz__btn.is-loading { opacity: .6; pointer-events: none; }

/* Progress */
.tth-quiz__progress {
	height: 6px;
	background: #dce7d8;
	border-radius: 99px;
	overflow: hidden;
	margin-bottom: 10px;
}
.tth-quiz__progress span {
	display: block;
	height: 100%;
	background: #1f6f43;
	border-radius: 99px;
	transition: width .25s ease;
}
.tth-quiz__step {
	margin: 0 0 14px;
	font-size: 12px;
	color: #7a8a7e;
	font-weight: 600;
	letter-spacing: .3px;
}

.tth-quiz__q {
	margin: 0 0 16px;
	font-size: 19px;
	line-height: 1.35;
	color: #1f3d2b;
}

/* Options — full-width tap targets, single column on mobile */
.tth-quiz__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tth-quiz__opt {
	display: block;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 1.5px solid #cfdcca;
	border-radius: 10px;
	padding: 15px 16px;
	font-size: 16px;
	line-height: 1.35;
	color: #2b2b2b;
	cursor: pointer;
	transition: border-color .12s ease, background .12s ease, transform .05s ease;
	-webkit-appearance: none;
	appearance: none;
}
/* Force readable dark text in every state — beats themes that recolor buttons on hover/focus */
.tth-quiz__opt,
.tth-quiz__opt:hover,
.tth-quiz__opt:focus,
.tth-quiz__opt:active { color: #2b2b2b !important; }
.tth-quiz__opt:hover { border-color: #1f6f43; background: #f0f6ee; }
.tth-quiz__opt:focus { outline: none; border-color: #1f6f43; box-shadow: 0 0 0 3px rgba(31, 111, 67, .15); }
.tth-quiz__opt:active { transform: translateY(1px); }

.tth-quiz__back {
	margin-top: 16px;
	background: none;
	border: 0;
	color: #5a7a5e;
	font-size: 14px;
	cursor: pointer;
	padding: 4px 0;
}
.tth-quiz__back:hover { color: #1f3d2b; text-decoration: underline; }

/* Result gate */
.tth-quiz__chip {
	display: inline-block;
	background: #1f6f43;
	color: #fff;
	font-weight: 700;
	font-size: 20px;
	padding: 8px 16px;
	border-radius: 10px;
	margin-bottom: 12px;
}
.tth-quiz__teaser {
	margin: 0 0 18px;
	font-size: 18px;
	line-height: 1.45;
	color: #1f3d2b;
	font-weight: 600;
}
.tth-quiz__label {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	color: #45554a;
	font-weight: 600;
}
.tth-quiz__row {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tth-quiz__email {
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid #cfdcca;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 16px; /* 16px stops iOS zoom-on-focus */
	color: #2b2b2b;
	background: #fff;
}
.tth-quiz__email:focus {
	outline: none;
	border-color: #1f6f43;
	box-shadow: 0 0 0 3px rgba(31, 111, 67, .15);
}
.tth-quiz__submit { width: 100%; }

/* Honeypot — visually gone, still in the DOM for bots to fill */
.tth-quiz__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.tth-quiz__fine {
	margin: 12px 0 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: #7a8a7e;
}
.tth-quiz__status {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 600;
}
.tth-quiz__status.is-error { color: #b32d2e; }
.tth-quiz__status.is-ok { color: #1f6f43; }

/* Done */
.tth-quiz__done { text-align: center; padding: 12px 0; }
.tth-quiz__done-tick {
	margin: 0 auto 8px;
	width: 48px;
	height: 48px;
	line-height: 48px;
	border-radius: 50%;
	background: #1f6f43;
	color: #fff;
	font-size: 26px;
	font-weight: 700;
}
.tth-quiz__done-msg {
	margin: 0;
	font-size: 17px;
	color: #1f3d2b;
	font-weight: 600;
}

/* A touch more room on wider screens — email field + button side by side */
@media (min-width: 560px) {
	.tth-quiz__card { padding: 26px 26px; }
	.tth-quiz__row { flex-direction: row; }
	.tth-quiz__email { flex: 1; }
	.tth-quiz__submit { width: auto; white-space: nowrap; }
}
