/* Memorial Plaque Wall – Gravity Forms styling. Poppy picker matches the Virtual Remembrance Wall. */
.rw-tint-natural { --tint: saturate(1.02); }
.rw-tint-purple  { --tint: hue-rotate(-78deg) saturate(.7) brightness(.74); }
.rw-tint-white   { --tint: grayscale(1) brightness(2.35) contrast(.62); }
.rw-tint-black   { --tint: grayscale(1) brightness(.52) contrast(1.15); }
.rw-tint-khaki   { --tint: sepia(1) saturate(.85) hue-rotate(18deg) brightness(.82); }

.gform_wrapper .rw-style-picker .gfield_radio {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}

.gform_wrapper .rw-style-picker .gchoice {
	position: relative;
	display: block !important;
	margin: 0 !important;
}

.gform_wrapper .rw-style-picker .gchoice input[type="radio"] {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	opacity: 0 !important;
	cursor: pointer;
}

.gform_wrapper .rw-style-picker .gchoice label {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	max-width: none !important;
	width: 100%;
	margin: 0 !important;
	padding: 14px 8px 12px !important;
	font-size: .9rem;
	line-height: 1.25;
	text-align: center;
	background: #fbf8f2;
	border: 1px solid rgba(60, 48, 36, .18);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s, background .2s, transform .2s;
}

.gform_wrapper .rw-style-picker .gchoice label::before,
.gform_wrapper .rw-style-picker .gchoice label::after { display: none !important; }

.gform_wrapper .rw-style-picker .rw-style-choice__img {
	display: block;
	width: 88px;
	height: 88px;
	object-fit: contain;
	filter: var(--tint, saturate(1)) drop-shadow(0 1px 1px rgba(20, 8, 4, .35)) drop-shadow(1px 6px 6px rgba(20, 8, 4, .25));
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.gform_wrapper .rw-style-picker .gchoice:hover label { border-color: rgba(179, 38, 30, .45); }
.gform_wrapper .rw-style-picker .gchoice:hover .rw-style-choice__img { transform: scale(1.06) rotate(6deg); }

.gform_wrapper .rw-style-picker .gchoice input:checked + label {
	background: #fdf1ef;
	border-color: #b3261e;
	box-shadow: 0 0 0 2px #b3261e, 0 8px 18px -10px rgba(125, 24, 18, .6);
}

.gform_wrapper .rw-style-picker .gchoice input:focus-visible + label {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.gform_wrapper .rw-style-picker * { transition: none !important; }
}

/* Plaque the poppy is for (plaque poppy form) */
.mpw-form-plaque {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: linear-gradient(180deg, #fbf8f2, #f1ebdf);
	border: 1px solid rgba(60, 48, 36, .18);
	border-radius: 12px;
	font-family: "Cormorant Garamond", Georgia, serif;
}
.mpw-form-plaque img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 3px solid #b08a4a; background: #2b2722; flex: none; }
.mpw-form-plaque span { display: block; font: 600 .72rem/1.2 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #7d6a54; }
.mpw-form-plaque strong { display: block; font-size: 1.35rem; line-height: 1.15; color: #2b241d; }
.mpw-form-plaque em { display: block; color: #5e5347; }
.mpw-form-plaque small { display: block; font: .85rem/1.3 system-ui, sans-serif; color: #7d6a54; margin-top: 2px; }
.mpw-form-plaque--none { font-family: inherit; }

/* Word counter */
.mpw-wordcount { display: block; margin-top: 4px; font-size: .85rem; color: #5e5347; }
.mpw-wordcount.is-over { color: #b3261e; font-weight: 600; }

/* Checkbox lists in two or three columns */
.gform_wrapper .mpw-columns .gfield_checkbox { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
