/* KiwiTees Signup Poll
   Palette: forest canopy #1F3A2E, kōwhai gold #D9A441, pounamu teal #4C7A72,
   kiwi-egg cream #FAF6EC, charcoal #22201B
   Type: Fredoka (headlines/badge) + Inter (body/UI) */

.kts-poll-root {
	--kts-forest: #4A7A2F;
	--kts-gold: #A9CF57;
	--kts-teal: #4A7A2F;
	--kts-cream: #FFFFFF;
	--kts-lime: #F2F7E9;
	--kts-lime-text: #4A7A2F;
	--kts-charcoal: #2A2A2A;
	--kts-grey: #6B6B6B;
	--kts-danger: #B4473A;

	display: flex;
	justify-content: center;
	width: 100%;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--kts-charcoal);
	box-sizing: border-box;
}

.kts-poll-card {
	width: 100%;
	max-width: 520px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
	padding: 32px 28px 28px;
	position: relative;
	overflow: hidden;
}

@media (max-width: 560px) {
	.kts-poll-card {
		border-radius: 8px;
		padding: 24px 20px 20px;
	}
}

/* Colour band header - title + subtitle, bleeds to the card's edges */
.kts-poll-header {
	margin: -32px -28px 22px;
	padding: 20px 28px 12px;
	background: var(--kts-forest);
	border-radius: 10px 10px 0 0;
	text-align: center;
}

@media (max-width: 560px) {
	.kts-poll-header {
		margin: -24px -20px 18px;
		padding: 18px 20px 10px;
		border-radius: 8px 8px 0 0;
	}
}

.kts-poll-title {
	font-family: 'Fredoka', sans-serif !important;
	font-weight: 700 !important;
	font-size: 26px !important;
	line-height: 1.2 !important;
	color: #fff !important;
	margin: 0 0 6px !important;
	text-align: center !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.kts-poll-subtitle {
	font-family: 'Inter', sans-serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	color: rgba(255, 255, 255, 0.82) !important;
	margin: 0 !important;
	text-align: center !important;
}

/* Progress dots - moved below the stage per request, sized up a bit */
.kts-poll-progress {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 18px 0 4px;
}

.kts-poll-progress .dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: rgba(31, 58, 46, 0.15);
	transition: background 0.25s ease, transform 0.25s ease;
}

.kts-poll-progress .dot.is-active {
	background: var(--kts-gold);
	transform: scale(1.35);
}

.kts-poll-progress .dot.is-done {
	background: var(--kts-teal);
}

/* Small caption line under the progress dots */
.kts-poll-meta {
	text-align: center;
	font-size: 12px;
	color: rgba(34, 32, 27, 0.55);
	margin: 0 0 16px;
}

/* Stage / question transitions */
.kts-poll-stage {
	position: relative;
	min-height: 260px;
	max-height: 65vh;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 4px;
	/* Firefox */
	scrollbar-width: thin;
	scrollbar-color: var(--kts-gold) var(--kts-lime);
}

/* Chrome / Edge / Safari - themed scrollbar instead of the plain grey
   system default, since a tall question (e.g. 6 answer options) can push
   this area past the visible card height */
.kts-poll-stage::-webkit-scrollbar {
	width: 8px;
}

.kts-poll-stage::-webkit-scrollbar-track {
	background: var(--kts-lime);
	border-radius: 8px;
}

.kts-poll-stage::-webkit-scrollbar-thumb {
	background: var(--kts-gold);
	border-radius: 8px;
}

.kts-poll-stage::-webkit-scrollbar-thumb:hover {
	background: #6FA82E;
}

.kts-poll-screen {
	animation: kts-fade-in 0.35s ease both;
}

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

.kts-poll-screen.is-leaving {
	animation: kts-fade-out 0.2s ease both;
}

@keyframes kts-fade-out {
	from { opacity: 1; transform: translateY(0); }
	to { opacity: 0; transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
	.kts-poll-screen, .kts-poll-screen.is-leaving { animation: none; }
}

/* Fact banner (used before the kiwi-survival question) */
.kts-poll-fact {
	background: rgba(76, 122, 114, 0.12);
	border-left: 4px solid var(--kts-teal);
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 18px;
}

/* Question / Answer boxes - white bordered cards with a small lime label
   chip, e.g. "Question 3" then "Answers" */
.kts-poll-box {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 16px 16px 14px;
	margin-bottom: 14px;
	position: relative;
}

.kts-poll-box-label {
	display: block !important;
	background: none !important;
	color: var(--kts-grey) !important;
	font-family: 'Inter', sans-serif !important;
	font-weight: 700 !important;
	font-size: 11px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.8px !important;
	padding: 0 !important;
	border-radius: 0 !important;
	margin-bottom: 8px !important;
}

.kts-poll-question-text {
	font-family: 'Fredoka', sans-serif !important;
	font-weight: 600 !important;
	font-size: 19px !important;
	line-height: 1.35 !important;
	color: var(--kts-charcoal) !important;
	margin: 0 !important;
	text-align: left !important;
	text-transform: none !important;
}

.kts-poll-species-img {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	border-radius: 6px;
	margin-bottom: 14px;
	object-fit: contain;
}

.kts-poll-box-answer.has-species-img {
	padding-top: 16px;
}

/* Answer option buttons - solid colour fills cycling through the brand
   palette, so a five-option question reads as five distinct choices rather
   than a stack of identical grey bars. */
.kts-poll-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kts-poll-option {
	appearance: none !important;
	border: none !important;
	outline: none !important;
	border-radius: 6px !important;
	padding: 14px 16px !important;
	font-family: 'Inter', sans-serif !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	text-align: left !important;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.kts-poll-option:hover {
	filter: brightness(1.0);
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;
}

.kts-poll-option:active {
	transform: scale(0.98);
}

.kts-poll-option-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.06);
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}

.kts-poll-option-label {
	flex: 1;
}

/* White buttons with a clear neutral border by default and a subtle
   shadow, so they read as clickable buttons rather than plain boxes.
   Light red on hover, light brown once picked/selected. */
.kts-c0, .kts-c1, .kts-c2 {
	background: #fff !important;
	color: var(--kts-charcoal) !important;
	border: 1.5px solid rgba(0, 0, 0, 0.18) !important;
	padding: 14px 16px !important;
}

.kts-poll-option-letter {
	background: rgba(0, 0, 0, 0.06) !important;
	color: var(--kts-charcoal) !important;
}

.kts-poll-option:hover {
	background: #FBE9E7 !important;
	border-color: #E8A29B !important;
}

.kts-poll-option.is-selected {
	background: #EFE0D2 !important;
	color: var(--kts-charcoal) !important;
	border-color: #C9A578 !important;
}

.kts-poll-option.is-selected .kts-poll-option-letter {
	background: rgba(0, 0, 0, 0.1) !important;
	color: var(--kts-charcoal) !important;
}

/* Two-across layout for short yes/no and cat/dog style questions */
.kts-poll-options.is-grid {
	flex-direction: row;
	flex-wrap: wrap;
}

.kts-poll-options.is-grid .kts-poll-option {
	flex: 1 1 45%;
	justify-content: center;
	text-align: center;
	padding: 22px 16px;
	font-size: 16px;
}

/* Evenly-spaced fixed grid for the species question - 3 columns so labels
   like "Pekapeka (bat)" have room to wrap onto two lines instead of
   overlapping the next button. */
.kts-poll-options.is-species-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

@media (max-width: 400px) {
	.kts-poll-options.is-species-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

.kts-poll-option-compact {
	background: #fff !important;
	color: var(--kts-charcoal) !important;
	border: 1.5px solid rgba(0, 0, 0, 0.18) !important;
	padding: 10px 6px !important;
	font-size: 12px !important;
	line-height: 1.3 !important;
	justify-content: center;
	text-align: center;
	border-radius: 6px !important;
	white-space: normal !important;
	min-height: 44px;
}

.kts-poll-option-compact:hover {
	background: #FBE9E7 !important;
	border-color: #E8A29B !important;
}

.kts-poll-option-compact.is-selected {
	background: #EFE0D2 !important;
	color: var(--kts-charcoal) !important;
	border-color: #C9A578 !important;
}

.kts-poll-option-compact .kts-poll-option-label {
	flex: none;
	white-space: normal;
	word-break: break-word;
}

/* Nav row (back button) */
.kts-poll-nav {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 14px;
}

.kts-poll-back {
	background: none !important;
	border: none !important;
	outline: none !important;
	color: var(--kts-teal) !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	text-decoration: none !important;
	cursor: pointer;
	padding: 4px 0;
}

/* Email capture screen */
.kts-poll-field {
	margin-bottom: 14px;
}

.kts-poll-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--kts-charcoal);
}

.kts-poll-field input[type="text"],
.kts-poll-field input[type="email"],
.kts-poll-field select {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border-radius: 6px;
	border: 2px solid rgba(31, 58, 46, 0.15);
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	background: #fff;
}

.kts-poll-field input:focus,
.kts-poll-field select:focus {
	outline: none;
	border-color: var(--kts-teal);
}

/* Honeypot - present in the DOM for bots to find, invisible and unreachable for real visitors */
.kts-poll-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kts-poll-privacy-note {
	font-size: 12px;
	color: rgba(34, 32, 27, 0.55);
	margin: -8px 0 16px;
}

.kts-poll-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.5;
	margin: 14px 0 18px;
	color: rgba(34, 32, 27, 0.8);
}

.kts-poll-consent input {
	margin-top: 3px;
	flex-shrink: 0;
}

.kts-poll-submit {
	width: 100%;
	appearance: none !important;
	border: none !important;
	outline: none !important;
	border-radius: 8px !important;
	background: var(--kts-forest) !important;
	color: #fff !important;
	font-family: 'Inter', sans-serif !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	text-decoration: none !important;
	padding: 15px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.kts-poll-submit:hover {
	background: #16291f !important;
}

.kts-poll-submit:active {
	transform: scale(0.98);
}

.kts-poll-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.kts-poll-error {
	color: var(--kts-danger);
	font-size: 13px;
	margin-top: 10px;
}

/* Region select branch screen */
.kts-poll-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231F3A2E' stroke-width='2' fill='none' fill-rule='evenodd' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

/* Branch confirmation note (shown in the reveal for the involvement question) */
.kts-poll-note {
	background: rgba(217, 164, 65, 0.15);
	border-radius: 6px;
	padding: 14px 16px;
	font-size: 14px;
	margin-bottom: 18px;
}

/* Reveal screen */
.kts-poll-badge {
	text-align: center;
	margin-bottom: 22px;
}

.kts-poll-badge-pop {
	animation: kts-badge-pop 0.5s cubic-bezier(0.22, 1.3, 0.4, 1) both;
}

@keyframes kts-badge-pop {
	0% { opacity: 0; transform: scale(0.7); }
	60% { opacity: 1; transform: scale(1.06); }
	100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.kts-poll-badge-pop { animation: none; }
}

.kts-poll-score {
	font-family: 'Fredoka', sans-serif;
	font-weight: 700;
	font-size: 56px;
	line-height: 1;
	color: var(--kts-forest);
	margin-bottom: 2px;
}

.kts-poll-score-of {
	font-size: 28px;
	color: var(--kts-grey);
	margin-left: 1px;
}

.kts-poll-score-label {
	font-size: 13px;
	color: var(--kts-grey);
	margin-bottom: 8px;
}

.kts-poll-badge-title {
	font-family: 'Fredoka', sans-serif;
	font-weight: 700;
	font-size: 24px;
	color: var(--kts-charcoal);
	margin: 0 0 6px;
}

.kts-poll-badge-line {
	font-size: 14px;
	color: rgba(34, 32, 27, 0.75);
	margin: 0;
}

.kts-poll-badge-level {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 32px;
	animation: kts-badge-icon-bounce 1.8s ease-in-out 0.5s infinite;
}

@keyframes kts-badge-icon-bounce {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	20% { transform: translateY(-6px) rotate(-8deg); }
	40% { transform: translateY(0) rotate(6deg); }
	60% { transform: translateY(-3px) rotate(-3deg); }
}

@media (prefers-reduced-motion: reduce) {
	.kts-poll-badge-level { animation: none; }
}

.kts-poll-results-heading {
	font-family: 'Fredoka', sans-serif;
	font-weight: 600;
	font-size: 17px;
	color: var(--kts-charcoal);
	margin: 20px 0 10px;
	text-align: center;
}

.kts-poll-bar-question {
	font-weight: 700;
	font-size: 16px;
	margin: 18px 0 10px;
	text-align: center;
}

.kts-poll-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	margin-bottom: 6px;
}

.kts-poll-bar-label {
	width: 110px;
	flex-shrink: 0;
}

.kts-poll-bar-label.is-yours {
	font-weight: 700;
	color: var(--kts-charcoal);
}

.kts-poll-bar-track {
	flex: 1;
	background: rgba(31, 58, 46, 0.08);
	border-radius: 8px;
	height: 12px;
	overflow: hidden;
}

.kts-poll-bar-fill {
	height: 100%;
	background: var(--kts-teal);
	border-radius: 8px;
	transition: width 0.6s ease;
}

.kts-poll-bar-fill.is-yours {
	background: var(--kts-gold);
}

.kts-poll-bar-count {
	width: 38px;
	flex-shrink: 0;
	text-align: right;
	font-weight: 700;
	color: var(--kts-charcoal);
}

/* Vertical column bar chart - real coloured bars with the count above and
   the option name below, no chart title/axis labels, brand colours
   cycling rather than shades of one colour. Fixed-width columns centred
   as a group, rather than stretching to fill the row - a 2-option chart
   (Yes/No) would otherwise render much wider bars than a 6-option one. */
.kts-poll-columns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-end;
	gap: 10px;
	height: 130px;
	margin: 8px 0 18px;
}

@media (max-width: 400px) {
	.kts-poll-columns {
		gap: 6px;
	}
	.kts-poll-column {
		flex-basis: 40px !important;
	}
}

.kts-poll-column {
	flex: 0 0 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
}

.kts-poll-column-value {
	font-size: 12px;
	font-weight: 700;
	color: var(--kts-charcoal);
	margin-bottom: 4px;
}

.kts-poll-column-bar-wrap {
	flex: 1;
	width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.kts-poll-column-bar {
	width: 32px;
	min-height: 4px;
	border-radius: 4px 4px 0 0;
	transition: height 0.6s ease;
}

.kts-poll-column-label {
	font-size: 10px;
	color: var(--kts-grey);
	text-align: center;
	margin-top: 6px;
	line-height: 1.25;
	word-break: break-word;
	min-height: 25px;
}

.kts-poll-column-label.is-yours {
	color: var(--kts-charcoal);
	font-weight: 700;
}

/* Correct / incorrect feedback rows for the graded questions */
.kts-poll-summary-a.is-correct {
	color: #2E7D32;
	font-weight: 700;
}

.kts-poll-summary-a.is-incorrect {
	color: var(--kts-danger);
}

/* Small aggregate correct-rate rings, in a row */
.kts-poll-ring-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px 8px;
	margin: 14px 0 4px;
}

.kts-poll-ring-item {
	text-align: center;
}

.kts-poll-ring-wrap {
	position: relative;
	margin: 0 auto 4px;
}

.kts-poll-ring-wrap svg circle:last-child {
	transition: stroke-dashoffset 0.8s ease;
}

.kts-poll-ring-pct {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 800;
	color: var(--kts-forest);
}

.kts-poll-ring-caption {
	font-size: 10px;
	line-height: 1.15;
	color: var(--kts-grey);
	max-width: 80px;
	margin: 0 auto;
}

.kts-poll-ring-note {
	font-size: 11px;
	color: var(--kts-grey);
	text-align: center;
	margin: 0 0 8px;
}

.kts-poll-summary-row {
	padding: 10px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	text-align: center;
}

.kts-poll-summary-row:last-child {
	border-bottom: none;
}

.kts-poll-summary-q {
	font-size: 15px;
	font-weight: 700;
	color: var(--kts-charcoal);
	margin-bottom: 4px;
}

.kts-poll-summary-a {
	font-size: 13px;
	color: var(--kts-charcoal);
}

.kts-poll-goal-block {
	margin-top: 14px;
	padding-top: 0;
	border-top: none;
}

.kts-poll-goal-label {
	font-size: 10px;
	color: var(--kts-grey);
	margin-bottom: 0;
	text-align: center;
}

.kts-poll-cta {
	display: block;
	width: fit-content;
	margin: 18px auto 0;
	text-align: center;
	padding: 12px 28px;
	border-radius: 999px;
	background: var(--kts-forest);
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.kts-poll-cta:hover {
	background: #16291f;
}

.kts-poll-other-field {
	margin-top: 12px;
	border-top: 1px dashed rgba(0, 0, 0, 0.12);
	padding-top: 12px;
}

.kts-poll-thanks {
	text-align: center;
	font-size: 13px;
	color: rgba(34, 32, 27, 0.7);
	margin-top: 18px;
}

.kts-poll-footer {
	text-align: center;
	margin: 18px 0 0;
}

.kts-poll-footer-line1 {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--kts-charcoal);
}

.kts-poll-footer-line2 {
	display: block;
	font-size: 11px;
	font-weight: 300;
	line-height: 1.4;
	color: var(--kts-grey);
	margin-top: 2px;
}

/* Popup mode - scroll-triggered overlay, hidden until .is-visible is added */
.kts-poll-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}

.kts-poll-popup-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

body.kts-poll-popup-open {
	overflow: hidden;
}

.kts-poll-popup-inner {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	transform: translateY(12px);
	transition: transform 0.3s ease;
}

.kts-poll-popup-overlay.is-visible .kts-poll-popup-inner {
	transform: translateY(0);
}

.kts-poll-popup-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	border: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	font-size: 22px;
	line-height: 1;
	color: var(--kts-charcoal, #2A2A2A);
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kts-poll-popup-close:hover {
	background: #f2f2f2;
}

@media (max-width: 480px) {
	.kts-poll-popup-close {
		top: 4px;
		right: 4px;
	}
}

/* Title image - same full-width/auto-height treatment as the species and
   endemic images, just sitting in the header band above the title */
.kts-poll-title-img {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 auto 6px !important;
}

.kts-poll-thankyou {
	text-align: center;
	font-family: 'Fredoka', sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: var(--kts-forest);
	margin: 0 0 16px;
}

/* Multi-select checkbox question (interests) - flowing chips, left to
   right, each sized to its own text rather than a rigid grid, so short
   words like "Gym" don't waste half a row and longer ones like
   "Trekking/Walks" don't get cramped. */
.kts-poll-checkbox-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kts-poll-checkbox-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1.5px solid rgba(0, 0, 0, 0.15);
	border-radius: 999px;
	padding: 7px 12px 7px 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--kts-charcoal);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.kts-poll-checkbox-item:hover {
	border-color: var(--kts-gold);
}

.kts-poll-checkbox-item.is-checked {
	background: var(--kts-lime);
	border-color: var(--kts-gold);
	color: var(--kts-forest);
}

.kts-poll-checkbox-item input {
	width: 14px;
	height: 14px;
	accent-color: var(--kts-gold);
	flex-shrink: 0;
}

/* Hero image: only used on phones (desktop keeps the image behind the title) */
.kts-poll-hero-img { display: none; }

/* ==================================================================
   Phone / app layout (v1.14.0)
   Edge-to-edge sheet (JS stretches it to the screen whatever Elementor
   padding/margins surround it), thin segmented progress bar across the
   top, one big question per screen, large thumb-sized answers, a sticky
   Continue button, and a header that gets out of the way after Q1.
   ================================================================== */
@media (max-width: 600px) {
	.kts-poll-root {
		padding: 0 !important;
		box-sizing: border-box !important;
		position: relative;
	}

	.kts-poll-popup-inner .kts-poll-root {
		width: 100% !important;
		margin: 0 !important;
	}

	.kts-poll-card {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		padding: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		overflow: visible !important;
		display: flex;
		flex-direction: column;
	}

	/* ---- Header ---- */
	.kts-poll-header {
		order: 0;
		margin: 0 !important;
		padding: 0 0 14px !important;
		border-radius: 0 !important;
		background-image: none !important;
	}
	.kts-poll-hero-img {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		margin: 0 0 14px !important;
	}
	.kts-poll-title-img {
		width: 100% !important;
		margin: 0 0 12px !important;
	}
	.kts-poll-title {
		font-size: 24px !important;
		line-height: 1.2 !important;
		padding: 14px 20px 0 !important;
		margin: 0 0 8px !important;
	}
	.kts-poll-hero-img + .kts-poll-title,
	.kts-poll-title-img + .kts-poll-title { padding-top: 0 !important; }
	.kts-poll-subtitle {
		font-size: 14px !important;
		line-height: 1.5 !important;
		padding: 0 20px !important;
	}
	/* once they're answering, collapse the header to just the title strip */
	.kts-poll-card.is-started .kts-poll-hero-img,
	.kts-poll-card.is-started .kts-poll-title-img,
	.kts-poll-card.is-started .kts-poll-subtitle { display: none !important; }
	.kts-poll-card.is-started .kts-poll-header { padding-bottom: 12px !important; }
	.kts-poll-card.is-started .kts-poll-title {
		font-size: 17px !important;
		padding-top: 12px !important;
		margin: 0 !important;
	}

	/* ---- Progress: thin segmented bar under the header ---- */
	.kts-poll-progress {
		order: 1;
		gap: 3px !important;
		margin: 0 !important;
		padding: 14px 16px 6px !important;
		background: #fff;
	}
	.kts-poll-progress .dot {
		flex: 1 1 0;
		width: auto !important;
		height: 5px !important;
		border-radius: 3px !important;
		transform: none !important;
	}

	/* ---- Stage ---- */
	.kts-poll-stage {
		order: 2;
		max-height: none !important;
		min-height: 0 !important;
		overflow: visible !important;
		padding: 8px 16px 28px !important;
	}

	.kts-poll-nav { margin-bottom: 6px !important; }
	.kts-poll-back {
		font-size: 15px !important;
		padding: 10px 12px 10px 0 !important;
		min-height: 44px;
	}

	/* Question + answers: drop the nested bordered boxes, use headings + spacing */
	.kts-poll-box {
		border: none !important;
		background: none !important;
		padding: 0 !important;
		margin: 0 0 20px !important;
		border-radius: 0 !important;
	}
	.kts-poll-box-label {
		font-size: 12px !important;
		color: var(--kts-forest) !important;
		margin-bottom: 6px !important;
	}
	.kts-poll-question-text {
		font-size: 23px !important;
		line-height: 1.3 !important;
	}
	.kts-poll-fact { font-size: 15px; margin-bottom: 20px; }

	/* ---- Answers: big full-width tap targets ---- */
	.kts-poll-options { gap: 12px !important; }
	.kts-poll-option {
		min-height: 58px;
		padding: 16px 18px !important;
		font-size: 17px !important;
		border-radius: 14px !important;
	}
	.kts-poll-option-letter {
		width: 30px !important;
		height: 30px !important;
		font-size: 13px !important;
		border-radius: 8px !important;
	}
	.kts-poll-options.is-grid { gap: 12px !important; }
	.kts-poll-options.is-grid .kts-poll-option {
		min-height: 72px;
		font-size: 18px !important;
	}
	.kts-poll-options.is-species-row {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 12px !important;
	}
	.kts-poll-option-compact {
		min-height: 58px !important;
		font-size: 16px !important;
		padding: 12px 8px !important;
		border-radius: 14px !important;
	}
	/* Q1: animal illustration strip + the six answers as a clean 2-col grid */
	.kts-poll-options:not(.is-grid):has(.kts-poll-option-compact) {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}

	/* ---- Multi-select chips ---- */
	.kts-poll-checkbox-grid { gap: 10px !important; }
	.kts-poll-checkbox-item {
		font-size: 16px !important;
		padding: 11px 16px 11px 12px !important;
		min-height: 46px;
		gap: 8px !important;
	}
	.kts-poll-checkbox-item input { width: 20px !important; height: 20px !important; }

	/* ---- Buttons (Continue / See my results) ---- */
	.kts-poll-submit {
		min-height: 58px;
		font-size: 17px !important;
		border-radius: 14px !important;
		width: 100% !important;
	}
	#kts-poll-multi-continue,
	#kts-poll-other-continue {
		position: sticky;
		bottom: 12px;
		margin-top: 18px !important;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
		z-index: 5;
	}

	/* ---- Details form ---- */
	.kts-poll-field { margin-bottom: 18px !important; }
	.kts-poll-field label { font-size: 15px !important; margin-bottom: 8px !important; }
	.kts-poll-field input[type="text"],
	.kts-poll-field input[type="email"],
	.kts-poll-field select {
		font-size: 16px !important;
		min-height: 54px;
		padding: 14px 16px !important;
		border-radius: 12px !important;
	}
	.kts-poll-consent { font-size: 14px !important; line-height: 1.5 !important; }
	.kts-poll-consent input,
	.kts-poll-checkbox-item.kts-poll-consent input { width: 22px; height: 22px; flex-shrink: 0; }

	/* ---- Footer ---- */
	.kts-poll-footer {
		order: 3;
		padding: 0 20px 24px;
		margin: 0 !important;
	}
}

/* ---------------- "Did you know?" image fact cards (v2.0.0) ---------------- */
.kts-poll-fact-card {
	text-align: center;
	margin: 0 0 18px;
}
.kts-poll-fact-kicker {
	display: inline-block;
	margin: 0 0 12px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--kts-lime);
	color: var(--kts-forest);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}
.kts-poll-fact-card .kts-poll-fact-img {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: min(34vh, 300px) !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	margin: 0 auto 14px !important;
	border-radius: 14px;
}
.kts-poll-fact-card .kts-poll-fact-text {
	text-align: center !important;
	font-size: 21px !important;
	line-height: 1.35 !important;
}
@media (max-width: 600px) {
	.kts-poll-fact-card .kts-poll-fact-text { font-size: 20px !important; }
}
