/**
 * Enquete — front-end (votação e resultados).
 *
 * @package PT2026
 */

.pt2026-enquete {
	margin: 2rem 0;
}

.pt2026-enquete__inner {
	background-color: #E4142C;
	border-radius: 12px;
	padding: 32px 28px;
	color: #fff;
}

.pt2026-enquete__question {
	margin: 0 0 28px;
	font-family: var(--pt2026-font-body, "Asap", sans-serif);
	font-size: clamp(1.375rem, 2.5vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
	text-transform: none;
}

.single-post-content .pt2026-enquete__question,
.entry-content .pt2026-enquete__question {
	color: #ffffff;
}

/* —— Votação —— */

.pt2026-enquete__vote-form {
	margin: 0;
}

.pt2026-enquete__options {
	border: 0;
	margin: 0 0 24px;
	padding: 0;
	min-width: 0;
}

.pt2026-enquete__option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
	cursor: pointer;
	font-family: var(--pt2026-font-body, "Asap", sans-serif);
	font-size: 1rem;
	line-height: 1.4;
}

.pt2026-enquete__option:last-child {
	margin-bottom: 0;
}

.pt2026-enquete__option input[type="radio"] {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: #fff;
	cursor: pointer;
}

.pt2026-enquete__option-label {
	flex: 1;
}

.pt2026-enquete__submit {
	display: inline-block;
	padding: 10px 28px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-family: var(--pt2026-font-body, "Asap", sans-serif);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.pt2026-enquete__submit:hover,
.pt2026-enquete__submit:focus-visible {
	background-color: #fff;
	color: #E4142C;
}

.pt2026-enquete__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.pt2026-enquete__message {
	margin: 12px 0 0;
	font-size: 0.9375rem;
}

.pt2026-enquete__message.is-error {
	color: #fff;
	font-weight: 600;
}

/* —— Resultados —— */

.pt2026-enquete__results {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.pt2026-enquete__result-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pt2026-enquete__result-label {
	font-family: var(--pt2026-font-body, "Asap", sans-serif);
	font-size: 1rem;
	line-height: 1.35;
}

.pt2026-enquete__result-bar-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pt2026-enquete__result-bar {
	flex: 1;
	height: 12px;
	border-radius: 999px;
	background-color: rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.pt2026-enquete__result-bar-fill {
	height: 100%;
	border-radius: 999px;
	background-color: #fff;
	transition: width 0.6s ease;
	min-width: 0;
}

.pt2026-enquete__result-percent {
	flex-shrink: 0;
	min-width: 3ch;
	font-family: var(--pt2026-font-display-ultra-cond, "Sofia Sans Extra Condensed", sans-serif);
	font-size: 1.75rem;
	font-weight: 900;
	line-height: 1;
	text-align: right;
}

@media (max-width: 767.98px) {
	.pt2026-enquete__inner {
		padding: 24px 20px;
		border-radius: 12px;
	}

	.pt2026-enquete__question {
		margin-bottom: 22px;
	}

	.pt2026-enquete__result-percent {
		font-size: 1.5rem;
	}
}
