/* AGM voting — front end. Kept neutral so it sits comfortably inside the
   members-area chrome; colours picked to match the site's navy/blue accents. */

.agm-page .wrapper {
	max-width: 860px;
	margin: 0 auto;
	padding: 30px 20px 60px;
}
.agm-page__hero {
	margin: 20px 0 30px;
}
.agm-page__eyebrow {
	display: block;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
	color: #5a6a7a;
	margin-bottom: 6px;
}
.agm-page__title {
	margin: 0 0 10px;
}
.agm-page__meta {
	color: #5a6a7a;
	margin: 0;
}

.agm-banner {
	padding: 12px 16px;
	border-radius: 6px;
	margin: 0 0 20px;
	background: #eef3f8;
	border: 1px solid #c9d7e4;
	color: #1d3040;
}
.agm-banner--test {
	background: #fdf6e3;
	border-color: #e8d193;
	color: #6b5510;
}
.agm-banner--done {
	background: #edf7ee;
	border-color: #b8dcba;
	color: #1e4620;
}
.agm-banner--info {
	background: #eef3f8;
}

.agm-section {
	margin-top: 36px;
}
.agm-section__title {
	margin: 0 0 12px;
}

.agm-poll {
	border: 1px solid #d8e0e8;
	border-radius: 8px;
	padding: 22px 24px;
	margin: 0 0 24px;
	background: #fff;
}
.agm-poll--scheduled,
.agm-poll--closed {
	background: #f7f9fb;
	padding: 16px 20px;
}
.agm-poll__title {
	margin: 0 0 4px;
}
.agm-poll__meta {
	color: #5a6a7a;
	font-size: 14px;
	margin: 0 0 10px;
}
.agm-poll__description {
	margin: 0 0 10px;
}

.agm-question {
	border: 0;
	border-top: 1px solid #e4eaf0;
	margin: 18px 0 0;
	padding: 18px 0 0;
}
.agm-question__text {
	font-weight: 600;
	margin-bottom: 8px;
	padding: 0;
}
.agm-question__number {
	color: #2d6ca2;
	margin-right: 4px;
}
.agm-question__hint {
	color: #5a6a7a;
	font-size: 13px;
	margin: 4px 0 8px;
}
.agm-question__hint--flash {
	color: #b32d2e;
	font-weight: 600;
}
.agm-question__options {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
}
.agm-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border: 1px solid #d8e0e8;
	border-radius: 6px;
	cursor: pointer;
	background: #fbfcfd;
}
.agm-option:hover {
	border-color: #2d6ca2;
}
.agm-option input {
	margin: 0;
	flex: none;
}

/* Selected state: whole row goes green so the choice is unmissable.
   Class kept in sync by voting.js (incl. pre-filled and read-only answers). */
.agm-option--selected {
	background: #e6f4e7;
	border-color: #2e7d32;
	box-shadow: inset 0 0 0 1px #2e7d32;
}
.agm-option--selected .agm-option__label {
	color: #1e4620;
	font-weight: 600;
}
.agm-option--selected::after {
	content: "\2713";
	margin-left: auto;
	color: #2e7d32;
	font-weight: 700;
}
.agm-option input:disabled + .agm-option__label {
	color: #7a8794;
}
.agm-option--selected input:disabled + .agm-option__label {
	color: #1e4620;
}

.agm-submit-row {
	margin-top: 22px;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.agm-submit {
	background: #2d6ca2;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 12px 28px;
	font-size: 16px;
	line-height: 1.2;
	height: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.3s;
}
.agm-submit:hover {
	background: #245683;
}
.agm-submit:disabled {
	background: #9db4c6;
	cursor: default;
}
.agm-form-message {
	font-size: 14px;
	color: #1e4620;
}
.agm-form-message--error {
	color: #b32d2e;
	font-weight: 600;
}
.agm-empty {
	color: #5a6a7a;
}

@media (max-width: 600px) {
	.agm-poll {
		padding: 16px;
	}
}

/* Embedded poll cards ([agm_voting poll="N"]) */
.agm-embed {
	margin: 20px 0;
}
.agm-poll--embed {
	max-width: 560px;
}
.agm-poll--embed .agm-poll__title {
	font-size: 20px;
}

/* Honeypot: hidden from humans, present for bots */
.agm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
