/*
 * Form experience (preview) – a new form design built from a blank slate.
 * Used inside .gmf (kit formSplit): context panel + form card. Covers the Divi
 * contact form, Gravity Forms (its own CSS is switched off on these pages, see
 * inc/redesign.php), the newsletter form, the DIC form and Mollie Forms.
 * Presentation only: fields, names, ids and behaviour are the plugins' own.
 *
 * ".gmf:not(#_)" carries id-level specificity on purpose: it outranks every
 * plugin rule (all class based, many with !important) without editing them.
 */

.gmf {
	--gmf-h: 64px;
	--gmf-r: 18px;
	--gmf-border: #7a8a83;
	--gmf-border-hover: #4d5f58;
	--gmf-field: #f5f8f6;
	--gmf-ink: var(--gm-green-900, #19332d);
	--gmf-muted: #4d5f58;
	--gmf-accent: var(--gm-green-700, #2e5c50);
	--gmf-brand: var(--gm-brand, #61c3aa);
	--gmf-danger: #b42318;
	--gmf-danger-ink: #7a1a12;
	--gmf-danger-bg: #fef3f2;
	--gmf-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--gmf-i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
	--gmf-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
	--gmf-i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
	--gmf-i-message: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
	--gmf-i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
	--gmf-i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	--gmf-i-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5'/%3E%3C/svg%3E");
	--gmf-i-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");
	--gmf-i-pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E");
	--gmf-i-euro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 7a7 7 0 1 0 0 10'/%3E%3Cpath d='M4 10h10M4 14h10'/%3E%3C/svg%3E");
	--gmf-i-repeat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m17 2 4 4-4 4'/%3E%3Cpath d='M3 11v-1a4 4 0 0 1 4-4h14'/%3E%3Cpath d='m7 22-4-4 4-4'/%3E%3Cpath d='M21 13v1a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E");
	--gmf-i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
	--gmf-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--gmf-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	--gmf-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319332d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--gmf-leaf-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M30 170C30 90 90 30 170 30c0 80-60 140-140 140Z' fill='%2361c3aa'/%3E%3Cpath d='M30 170 130 70M70 130l-6-34M96 104l-4-32M70 130l34 6M96 104l32 4' stroke='%2319332d' stroke-width='5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

/* Split layout ------------------------------------------------------------- */
.gmf {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	width: 100%;
	max-width: 1180px !important;
	margin-inline: auto !important;
	overflow: hidden;
	border-radius: 32px;
	background: #ffffff;
	box-shadow: var(--gmr-shadow-card);
}

.gmf > * {
	max-width: none !important;
	margin: 0 !important;
}

/* In a kit section: keep the page gutter outside the card, not inside it */
.gmr-section > .gmf {
	width: calc(100% - 2 * var(--gmr-gutter));
	padding: 0 !important;
}

/* Context panel */
.gmf-panel {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: clamp(36px, 4.5vw, 64px) !important;
	overflow: hidden;
	background:
		radial-gradient(70% 50% at 100% 0%, rgba(97, 195, 170, 0.3), transparent 70%),
		linear-gradient(165deg, #23463d 0%, var(--gmf-ink) 62%);
	color: var(--gm-mint-100, #cfe9e1);
}

/* Photo variant: a full-bleed photo band at the top of the panel that fades
 * into dark green; the text sits below it on solid green (AA on any photo). */
.gmf--photo .gmf-panel {
	background: var(--gmf-ink);
}

.gmf-panel > .gmf-panel__media {
	position: relative;
	z-index: -1;
	height: clamp(200px, 22vw, 280px);
	margin: calc(-1 * clamp(36px, 4.5vw, 64px)) calc(-1 * clamp(36px, 4.5vw, 64px)) 0 !important;
	overflow: hidden;
}

.gmf-panel > .gmf-panel__media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	border-radius: 0 !important;
	transform: scale(1.02);
	transition: transform 1.2s var(--gmf-ease);
}

.gmf:hover .gmf-panel > .gmf-panel__media img {
	transform: scale(1.06);
}

.gmf-panel > .gmf-panel__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(25, 51, 45, 0.05) 0%, rgba(25, 51, 45, 0.25) 55%, var(--gmf-ink) 100%);
}

/* The icon tile sits on the edge of the photo */
.gmf--photo .gmf-panel__body::before {
	position: relative;
	margin-top: -28px;
	box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.5);
}

/* The brand leaf: large filled leaf, bottom right */
.gmf-panel::after {
	content: "";
	position: absolute;
	right: -70px;
	bottom: -80px;
	z-index: -1;
	width: clamp(240px, 26vw, 360px);
	aspect-ratio: 1;
	background: var(--gmf-leaf-fill) center / contain no-repeat;
	opacity: 0.9;
	transform: rotate(-14deg);
	transition: transform 1.2s var(--gmf-ease);
}

.gmf:hover .gmf-panel::after {
	transform: rotate(-8deg) translateY(-6px);
}

.gmf-panel__body {
	position: relative;
	max-width: 420px !important;
	margin: 0 !important;
}

/* Icon tile above the heading (icon from the panel's gmr-i-<icon> class) */
.gmf-panel__body::before {
	content: "";
	display: block;
	width: 56px;
	height: 56px;
	margin-bottom: 28px;
	border-radius: 18px 18px 18px 6px;
	background: var(--gmf-brand) var(--gmr-icon) center / 28px no-repeat;
}

:is(.gmr, .editor-styles-wrapper) .gmf-panel__title {
	margin: 0 0 16px !important;
	font-family: var(--gm-font-heading) !important;
	font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.75rem) !important;
	font-weight: 700 !important;
	line-height: 1.08 !important;
	color: var(--gmf-brand) !important;
}

:is(.gmr, .editor-styles-wrapper) .gmf-panel__text {
	margin: 0 !important;
	font-size: 1.0625rem !important;
	line-height: 1.65 !important;
	color: var(--gm-mint-100, #cfe9e1) !important;
}

.gmf-panel__text a {
	font-weight: 600;
	color: #ffffff !important;
	text-decoration-color: var(--gmf-brand) !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

/* Form card */
.gmf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(32px, 4.5vw, 64px) !important;
	background: #ffffff;
	color: var(--gmf-ink);
}

/* Desktop: the leaf has its own zone under the text, so it never sits behind it */
@media (min-width: 901px) {
	.gmf-panel {
		padding-bottom: 250px !important;
	}

	.gmf-panel::after {
		bottom: -70px;
		width: 300px;
	}
}

/* Blank slate --------------------------------------------------------------- */
/* :where() keeps the reset at the base specificity so the styles below win. */
.gmf:not(#_) .gmf-card :where(input:not([type="hidden"]):not([style*="display"]), textarea, select, button, label:not([style*="display"])) {
	all: unset !important;
	box-sizing: border-box !important;
}

.gmf:not(#_) .gmf-card :where(form, ul, li, p, fieldset, legend, span, div) {
	box-sizing: border-box;
}

/* A plugin hiding something with an inline style (Doneren amount field,
 * Mollie direct-debit consent, Gravity conditional logic) always wins */
.gmf:not(#_):not(#_) .gmf-card :is([style*="display: none"], [style*="display:none"]) {
	display: none !important;
}

/* Hidden by the plugins' own (now unused) CSS: keep them hidden */
.gmf:not(#_) .gmf-card :is(.gform_validation_container, .gfield_visibility_hidden, .gform_hidden, .gform_ajax_spinner, .dic-form__hp, .d-none, iframe[name^="gform_ajax_frame"]) {
	display: none !important;
}

.gmf:not(#_) .gmf-card :is(.screen-reader-text, .gform_required_legend, .gmf-sr) {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}

/* Plugin wrappers: no boxes, no floats, no spacing of their own */
.gmf:not(#_) .gmf-card :is(.et_pb_contact_form_container, .et_pb_contact, .gform_wrapper, .gform_body, .dic-wrap, .gm-container, .gm-card, .mx-auto, .dic-form__body, #subscribeView, #unsubscribeView, #dic-subscribe-view, #dic-unsubscribe-view) {
	display: block;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	overflow: visible !important;
	font-family: var(--gm-font-body) !important;
	text-align: left !important;
}

.gmf:not(#_) .gmf-card :is(.dic-wrap .gm-card)::before {
	display: none !important;
}

.gmf:not(#_) .gmf-card :is(.et_pb_contact_form_container, .et_pb_contact, .gform_wrapper, .dic-wrap, .dic-wrap .gm-card) {
	display: block !important;
}

/* The context panel carries the heading: the plugins' own sign-up headings are hidden */
.gmf:not(#_) .gmf-card :is(#subscribeView > .text-start, #unsubscribeView > .text-start, #dic-subscribe-view > .dic-form__head) {
	display: none !important;
}

/* Band variant (Home, above the footer): the newsletter card has the look of
 * the context panel on Nieuwsbrief inschrijven (dark green, icon tile, title in
 * logo green, the leaf bottom right). The fields and the button are the same
 * as on every form. The plugin's own heading stays hidden (rule above): the
 * card has its own title and intro (kit band()). States on the dark card
 * (errors, focus, confirmation) are at the end of this file. */
.gmf.gmf--band {
	display: block;
	max-width: none !important;
	height: 100%;
	border-radius: var(--gm-radius-lg, 24px);
	box-shadow: var(--gmr-shadow-card);
}

.gmf--band > .gmf-card {
	isolation: isolate;
	height: 100%;
	justify-content: flex-start;
	overflow: hidden;
	padding: clamp(28px, 3.2vw, 44px) clamp(28px, 3.2vw, 44px) clamp(132px, 12vw, 156px) !important;
	background:
		radial-gradient(70% 50% at 100% 0%, rgba(97, 195, 170, 0.3), transparent 70%),
		linear-gradient(165deg, #23463d 0%, var(--gmf-ink) 62%);
	color: var(--gm-mint-100, #cfe9e1);
}

/* The brand leaf in its own zone under the button */
.gmf--band > .gmf-card::after {
	content: "";
	position: absolute;
	right: -56px;
	bottom: -86px;
	z-index: -1;
	width: clamp(200px, 18vw, 240px);
	aspect-ratio: 1;
	background: var(--gmf-leaf-fill) center / contain no-repeat;
	opacity: 0.9;
	transform: rotate(-14deg);
	transition: transform 1.2s var(--gmf-ease);
	pointer-events: none;
}

.gmf--band:hover > .gmf-card::after {
	transform: rotate(-8deg) translateY(-6px);
}

.gmf--band .gmf-band__head {
	margin: 0 0 28px !important;
}

/* Icon tile above the title (icon from the gmr-i-<icon> class on the band form) */
.gmf--band .gmf-band__head::before {
	content: "";
	display: block;
	width: 56px;
	height: 56px;
	margin-bottom: 24px;
	border-radius: 18px 18px 18px 6px;
	background: var(--gmf-brand) var(--gmr-icon) center / 28px no-repeat;
}

:is(.gmr, .editor-styles-wrapper) .gmf--band .gmf-band__title {
	margin: 0 0 12px !important;
	font-family: var(--gm-font-heading) !important;
	font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem) !important;
	font-weight: 700 !important;
	line-height: 1.08 !important;
	color: var(--gmf-brand) !important;
}

:is(.gmr, .editor-styles-wrapper) .gmf--band .gmf-band__text {
	max-width: 46ch;
	margin: 0 !important;
	font-family: var(--gm-font-body) !important;
	font-size: 1.0625rem !important;
	font-weight: 400 !important;
	line-height: 1.65 !important;
	color: var(--gm-mint-100, #cfe9e1) !important;
}

/* After signing up only the confirmation is shown */
.gmf--band .gmf-card:has(#successContent:not(.d-none)) .gmf-band__head {
	display: none !important;
}

/* Field grids: two columns on desktop where it makes sense ------------------- */
.gmf:not(#_) .gmf-card :is(.et_pb_contact_form, ul.gform_fields, .gm-row, .dic-form__row, .ginput_complex, form[id^="rfmp_"]) {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	float: none !important;
	width: auto !important;
}

.gmf:not(#_) .gmf-card form[id^="rfmp_"] {
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

/* Each field takes the full row unless a pair below says otherwise */
.gmf:not(#_) .gmf-card :is(.et_pb_contact_form > p, ul.gform_fields > li, form[id^="rfmp_"] > .mollie_forms_field_row, .et_contact_bottom_container, .gform_footer) {
	grid-column: 1 / -1;
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	border: 0 !important;
	background: none !important;
}

.gmf:not(#_) .gmf-card :is(.et_pb_contact_form > [data-id="name"], .et_pb_contact_form > [data-id="email"], ul.gform_fields > li.gf_left_half, ul.gform_fields > li.gf_right_half) {
	grid-column: span 1;
}

.gmf:not(#_) .gmf-card form[id^="rfmp_"] > .mollie_forms_field_row:has(> [name$="_field_0"], > [name$="_field_1"], > [name$="_field_3"], > [name$="_field_4"], > [name$="_field_5"], > [name$="_field_6"]) { grid-column: span 6; }
.gmf:not(#_) .gmf-card form[id^="rfmp_"] > .mollie_forms_field_row:has(> [name$="_field_2"]) { grid-column: 1 / -1; }

.gmf:not(#_) .gmf-card :is(form[id^="rfmp_"] > .mollie_forms_field_row:empty, .mollie_forms_field_row > br, .mollie_forms_field_row > label:empty) {
	display: none !important;
}

.gmf:not(#_) .gmf-card :is(.gm-col-md-6, .ginput_complex > span, .ginput_container, .dic-form__field, .mb-3, .mb-4, .text-start, .gm-row) {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

.gmf:not(#_) .gmf-card :is(.dic-form__field, #subscribeView .mb-3, #unsubscribeView .mb-3) {
	margin-bottom: 18px !important;
}

.gmf:not(#_):not(#_) .gmf-card .dic-wrap .gm-row {
	margin-bottom: 18px !important;
}

/* A field inside a DIC row: the row gap and the row margin give the spacing,
 * so a stacked pair (phones) has the same 18px gap as everywhere else. */
.gmf:not(#_):not(#_) .gmf-card .dic-wrap :is(.gm-row, .dic-form__row) .dic-form__field {
	margin-bottom: 0 !important;
}

.gmf:not(#_):not(#_) .gmf-card .dic-wrap .dic-form__row {
	margin-bottom: 18px !important;
}

/* Labels (static fallback, e.g. without JavaScript) ------------------------ */
.gmf:not(#_) .gmf-card label {
	display: block !important;
	margin: 0 0 8px !important;
	font-family: var(--gm-font-body) !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: var(--gmf-ink) !important;
	cursor: pointer;
}

.gmf:not(#_) .gmf-card :is(.gfield_required, .mollie-forms-required, .text-danger, .dic-form__req, label span[style*="color"]) {
	display: inline !important;
	margin-left: 3px !important;
	font-weight: 700 !important;
	color: var(--gmf-danger) !important;
}

/* Group label above a name pair (Gravity Forms "Naam") */
.gmf:not(#_) .gmf-card li.gfield--type-name > .gfield_label {
	margin: 0 0 10px !important;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: var(--gmf-accent) !important;
}

/* Fields ---------------------------------------------------------------- */
.gmf:not(#_) .gmf-card .gmf-input {
	display: block !important;
	width: 100% !important;
	height: var(--gmf-h) !important;
	margin: 0 !important;
	padding: 0 18px 0 54px !important;
	border: 1.5px solid var(--gmf-border) !important;
	border-radius: var(--gmf-r) !important;
	background-color: var(--gmf-field) !important;
	font-family: var(--gm-font-body) !important;
	font-size: 1.0625rem !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	color: var(--gmf-ink) !important;
	cursor: text;
	transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.35s var(--gmf-ease), transform 0.35s var(--gmf-ease) !important;
}

.gmf:not(#_) .gmf-card textarea.gmf-input {
	height: auto !important;
	min-height: 176px !important;
	padding-top: 22px !important;
	padding-bottom: 16px !important;
	resize: vertical !important;
}

.gmf:not(#_) .gmf-card select.gmf-input {
	padding-right: 52px !important;
	background-image: var(--gmf-chevron) !important;
	background-repeat: no-repeat !important;
	background-position: right 20px center !important;
	background-size: 18px !important;
	cursor: pointer;
}

.gmf:not(#_) .gmf-card .gmf-field--nolabel .gmf-input,
.gmf:not(#_) .gmf-card select.gmf-input {
	padding-top: 0 !important;
}

/* A select without a label: text centred in the field */
.gmf:not(#_) .gmf-card .gmf-field--nolabel > select.gmf-input {
	padding-bottom: 0 !important;
	line-height: calc(var(--gmf-h) - 3px) !important;
}

.gmf:not(#_) .gmf-card .gmf-input:hover {
	border-color: var(--gmf-border-hover) !important;
}

.gmf:not(#_) .gmf-card .gmf-input:focus {
	outline: none !important;
	border-color: var(--gmf-ink) !important;
	background-color: #ffffff !important;
	box-shadow: 0 0 0 5px rgba(97, 195, 170, 0.38), 0 16px 30px -18px rgba(25, 51, 45, 0.5) !important;
	transform: translateY(-1px);
}

.gmf:not(#_) .gmf-card .gmf-input::placeholder {
	color: transparent !important;
}

/* Browser autofill: keep the field style, and let forms.js notice it */
@keyframes gmf-autofill { from { opacity: 1; } to { opacity: 1; } }

.gmf:not(#_) .gmf-card .gmf-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 40px #ffffff inset !important;
	-webkit-text-fill-color: var(--gmf-ink) !important;
	animation: gmf-autofill 0.01s;
}

/* Field wrapper, icon and floating label */
.gmf:not(#_) .gmf-card .gmf-field {
	position: relative !important;
	overflow: visible !important;
}

.gmf:not(#_) .gmf-card .gmf-field::before {
	content: "";
	position: absolute;
	top: calc(var(--gmf-h) / 2);
	left: 20px;
	z-index: 2;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	background: var(--gmf-muted);
	-webkit-mask: var(--gmf-ico, var(--gmf-i-pen)) center / contain no-repeat;
	mask: var(--gmf-ico, var(--gmf-i-pen)) center / contain no-repeat;
	pointer-events: none;
	transition: background-color 0.25s ease, transform 0.35s var(--gmf-ease);
}

.gmf:not(#_) .gmf-card .gmf-field--area::before {
	top: 30px;
}

.gmf:not(#_) .gmf-card .gmf-field.is-focused::before {
	background: var(--gmf-accent);
	transform: scale(1.1);
}

.gmf [data-gmf-icon="user"] { --gmf-ico: var(--gmf-i-user); }
.gmf [data-gmf-icon="mail"] { --gmf-ico: var(--gmf-i-mail); }
.gmf [data-gmf-icon="phone"] { --gmf-ico: var(--gmf-i-phone); }
.gmf [data-gmf-icon="message"] { --gmf-ico: var(--gmf-i-message); }
.gmf [data-gmf-icon="home"] { --gmf-ico: var(--gmf-i-home); }
.gmf [data-gmf-icon="pin"] { --gmf-ico: var(--gmf-i-pin); }
.gmf [data-gmf-icon="book"] { --gmf-ico: var(--gmf-i-book); }
.gmf [data-gmf-icon="card"] { --gmf-ico: var(--gmf-i-card); }
.gmf [data-gmf-icon="pen"] { --gmf-ico: var(--gmf-i-pen); }
.gmf [data-gmf-icon="euro"] { --gmf-ico: var(--gmf-i-euro); }
.gmf [data-gmf-icon="repeat"] { --gmf-ico: var(--gmf-i-repeat); }

/* Floating labels (with JavaScript): inside the field, up when focused/filled */
.gmf-js:not(#_) .gmf-card .gmf-field > .gmf-label {
	position: absolute !important;
	top: calc(var(--gmf-h) / 2) !important;
	left: 55px !important;
	z-index: 2 !important;
	max-width: calc(100% - 80px) !important;
	margin: 0 !important;
	overflow: hidden !important;
	font-size: 1.0625rem !important;
	font-weight: 500 !important;
	white-space: nowrap !important;
	text-overflow: ellipsis !important;
	color: var(--gmf-muted) !important;
	transform: translateY(-50%) !important;
	pointer-events: none !important;
	transition: top 0.25s var(--gmf-ease), font-size 0.25s var(--gmf-ease), color 0.25s ease, letter-spacing 0.25s ease !important;
}

.gmf-js:not(#_) .gmf-card .gmf-field--area > .gmf-label {
	top: 32px !important;
}

.gmf-js:not(#_) .gmf-card :is(.gmf-field.is-focused, .gmf-field.is-filled) > .gmf-label {
	top: 15px !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	color: var(--gmf-accent) !important;
}

.gmf-js:not(#_) .gmf-card :is(.gmf-field--text, .gmf-field--select):not(.gmf-field--nolabel) > .gmf-input {
	padding-top: 22px !important;
}

.gmf-js:not(#_) .gmf-card .gmf-field--area:not(.gmf-field--nolabel) > .gmf-input,
.gmf-js:not(#_) .gmf-card .gmf-field--area .gmf-input {
	padding-top: 34px !important;
}

/* Long labels (forms.js: more than 40 characters, e.g. the recipe form) never
 * float or truncate: they stay small at the top of the field and wrap; the
 * field's top padding follows the label's measured height (--gmf-label-h). */
.gmf-js:not(#_) .gmf-card .gmf-field.gmf-field--long > .gmf-label {
	top: 14px !important;
	max-width: calc(100% - 76px) !important;
	overflow: visible !important;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	letter-spacing: 0.02em !important;
	white-space: normal !important;
	text-overflow: clip !important;
	color: var(--gmf-accent) !important;
	transform: none !important;
}

.gmf-js:not(#_) .gmf-card .gmf-field.gmf-field--long > .gmf-input {
	padding-top: calc(var(--gmf-label-h, 18px) + 24px) !important;
}

.gmf:not(#_) .gmf-card .gmf-field.gmf-field--long::before {
	top: 24px;
}

/* A second field in a wrapper that already has the label (Doneren: preset
 * amount select + own amount input) gets its own wrapper without label. */
.gmf:not(#_) .gmf-card .gmf-field > .gmf-field {
	margin-top: 12px !important;
}

/* Doneren met Mollie ------------------------------------------------------ */
.gmf:not(#_) .gmf-card #dmm_form {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px !important;
	margin: 0 !important;
}

.gmf:not(#_) .gmf-card #dmm_form > * {
	grid-column: 1 / -1;
	margin: 0 !important;
	padding: 0 !important;
}

.gmf:not(#_) .gmf-card #dmm_form > p:has(> #dmm_name, > #dmm_email) {
	grid-column: span 1;
}

.gmf:not(#_) .gmf-card #dmm_form :is(br) {
	display: none !important;
}

.gmf:not(#_) .gmf-card #dmm_form > p:has(input[name="dmm_method"]) {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px !important;
}

.gmf:not(#_) .gmf-card label:has(> input[type="radio"]) {
	position: relative !important;
	display: block !important;
	min-height: var(--gmf-h) !important;
	margin: 0 !important;
	padding: 18px 16px 18px 52px !important;
	border: 1.5px solid var(--gmf-border) !important;
	border-radius: var(--gmf-r) !important;
	background: var(--gmf-field) !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	line-height: 1.6 !important;
	cursor: pointer !important;
	transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease !important;
}

.gmf:not(#_) .gmf-card label:has(> input[type="radio"]):hover {
	border-color: var(--gmf-border-hover) !important;
}

.gmf:not(#_) .gmf-card label:has(> input[type="radio"]:checked) {
	border-color: var(--gmf-ink) !important;
	background: var(--gm-green-50, #ebf5f2) !important;
	box-shadow: inset 0 0 0 1px var(--gmf-ink) !important;
}

.gmf:not(#_) .gmf-card label:has(> input[type="radio"]) > input[type="radio"] {
	position: absolute !important;
	top: 50% !important;
	left: 18px !important;
	margin: -11px 0 0 !important;
}

.gmf:not(#_) .gmf-card label:has(> input[type="radio"]) img {
	display: inline-block !important;
	width: 32px !important;
	height: auto !important;
	margin: 0 8px 0 0 !important;
	border-radius: 6px !important;
	vertical-align: middle !important;
}

/* Doneren's own submit is an <input> (no ::after): the arrow is a second
 * background, placed right after the text. forms.js measures the text width
 * (--gmf-tw); padding-right makes room so text + arrow stay centred. */
.gmf:not(#_) .gmf-card #dmm_form input[type="submit"] {
	--gmf-arrow-x: calc(50% + var(--gmf-tw, 64px) / 2 + 6px);
	grid-column: 1 / -1 !important;
	display: block !important;
	width: 100% !important;
	min-height: 62px !important;
	padding: 18px 62px 18px 28px !important;
	border-radius: 999px !important;
	background-color: var(--gmf-brand) !important;
	background-image: linear-gradient(100deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%, transparent 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319332d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-size: 260% 100%, 22px 22px !important;
	background-position: 130% 0, var(--gmf-arrow-x) 50% !important;
	box-shadow: 0 20px 34px -18px rgba(25, 51, 45, 0.7), inset 0 -3px 0 rgba(25, 51, 45, 0.12) !important;
	font-family: var(--gm-font-body) !important;
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	color: var(--gmf-ink) !important;
	text-align: center !important;
	cursor: pointer !important;
	transition: background-position 0.9s var(--gmf-ease), transform 0.25s var(--gmf-ease), box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.gmf:not(#_) .gmf-card #dmm_form input[type="submit"]:hover {
	background-color: #6fcab3 !important;
	background-position: -30% 0, calc(var(--gmf-arrow-x) + 5px) 50% !important;
	transform: translateY(-3px);
}

.gmf:not(#_) .gmf-card #dmm_form input[type="submit"]:focus-visible {
	outline: 3px solid var(--gmf-ink) !important;
	outline-offset: 4px !important;
}

/* Error states ----------------------------------------------------------------- */
@keyframes gmf-shake {
	20%, 60% { transform: translateX(-4px); }
	40%, 80% { transform: translateX(4px); }
}

.gmf:not(#_) .gmf-card .gmf-field.has-error:not(.is-focused) .gmf-input,
.gmf:not(#_) .gmf-card .gmf-field:not(.is-focused) .gmf-input:user-invalid {
	border-color: var(--gmf-danger) !important;
	background-color: var(--gmf-danger-bg) !important;
	animation: gmf-shake 0.4s ease 1;
}

.gmf:not(#_) .gmf-card .gmf-field.has-error:not(.is-focused)::before,
.gmf:not(#_) .gmf-card .gmf-field:has(.gmf-input:user-invalid):not(.is-focused)::before {
	background: var(--gmf-danger);
}

.gmf-js:not(#_) .gmf-card .gmf-field.has-error:not(.is-focused) > .gmf-label {
	color: var(--gmf-danger) !important;
}

/* Inline messages under a field: Gravity Forms, DIC, and the newsletter (plugin's own text) */
.gmf:not(#_) .gmf-card :is(.validation_message, .gfield_validation_message, .gmf-error, .dic-form .gm-form-control.is-invalid:not(:focus) + .dic-form__error) {
	display: flex !important;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-family: var(--gm-font-body) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: var(--gmf-danger) !important;
	animation: gmf-in 0.3s var(--gmf-ease);
}

.gmf:not(#_) .gmf-card :is(.validation_message, .gfield_validation_message, .gmf-error, .dic-form__error)::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--gmf-i-alert) center / contain no-repeat;
	mask: var(--gmf-i-alert) center / contain no-repeat;
}

.gmf:not(#_) .gmf-card .dic-wrap:not(.dic-form) .mb-3.has-error:not(.is-focused)::after {
	content: attr(data-gmf-msg);
	display: block;
	margin-top: 8px;
	padding-left: 26px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") 0 50% / 18px no-repeat;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gmf-danger);
}

.gmf:not(#_) .gmf-card .gfield_description {
	margin: 6px 0 0 !important;
	font-size: 0.875rem !important;
	color: var(--gmf-muted) !important;
}

/* Comment form under a single post: one card in the article column */
.gmf.gmf--comment {
	display: block;
	overflow: visible;
	border-radius: 0;
	box-shadow: none;
	background: none;
}

.gmf--comment > .gmf-card {
	border-radius: 24px;
	box-shadow: var(--gmr-shadow-card);
}

/* Notices above the form (errors / info) */
@keyframes gmf-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

.gmf:not(#_) .gmf-card :is(.et-pb-contact-message:has(ul), .gform_validation_errors, .gm-alert:not(.d-none), #dic-message-box:not(.d-none)) {
	position: relative !important;
	display: block !important;
	margin: 0 0 22px !important;
	padding: 16px 20px 16px 56px !important;
	border: 0 !important;
	border-radius: var(--gmf-r) !important;
	background: var(--gm-green-50, #ebf5f2) !important;
	box-shadow: inset 4px 0 0 var(--gmf-brand) !important;
	font-family: var(--gm-font-body) !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
	color: var(--gmf-ink) !important;
	text-align: left !important;
	animation: gmf-in 0.35s var(--gmf-ease);
}

.gmf:not(#_) .gmf-card :is(.et-pb-contact-message:has(ul), .gform_validation_errors, .gm-alert.alert-danger, #dic-message-box.alert-danger) {
	background: var(--gmf-danger-bg) !important;
	box-shadow: inset 4px 0 0 var(--gmf-danger) !important;
	color: var(--gmf-danger-ink) !important;
}

.gmf:not(#_) .gmf-card :is(.et-pb-contact-message:has(ul), .gform_validation_errors, .gm-alert, #dic-message-box)::before {
	content: "";
	position: absolute;
	top: 17px;
	left: 20px;
	width: 22px;
	height: 22px;
	background: currentColor;
	-webkit-mask: var(--gmf-i-alert) center / contain no-repeat;
	mask: var(--gmf-i-alert) center / contain no-repeat;
}

.gmf:not(#_) .gmf-card :is(.gm-alert.alert-success, #dic-message-box.alert-success)::before {
	-webkit-mask-image: var(--gmf-i-check);
	mask-image: var(--gmf-i-check);
}

.gmf:not(#_) .gmf-card :is(.gform_validation_errors h2, .gform_validation_errors .gform_submission_error, .et-pb-contact-message p) {
	margin: 0 !important;
	font: inherit !important;
	color: inherit !important;
}

.gmf:not(#_) .gmf-card :is(.gform_validation_errors .gform-icon, .gform_validation_errors > h2::before, .gm-alert-icon) {
	display: none !important;
}

.gmf:not(#_) .gmf-card .et-pb-contact-message ul {
	margin: 6px 0 0 !important;
	padding-left: 18px !important;
	font-weight: 500;
	list-style: disc !important;
}

.gmf:not(#_) .gmf-card .gm-alert-link {
	color: inherit !important;
	cursor: pointer;
}

/* Radios (none in the current forms; kept usable after the reset) */
.gmf:not(#_) .gmf-card input[type="radio"] {
	display: inline-block !important;
	width: 22px !important;
	height: 22px !important;
	margin: 0 10px 0 0 !important;
	border: 2px solid var(--gmf-border) !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	vertical-align: middle !important;
	cursor: pointer !important;
}

.gmf:not(#_) .gmf-card input[type="radio"]:checked {
	border-color: var(--gmf-ink) !important;
	background: radial-gradient(circle, var(--gmf-ink) 0 5px, var(--gmf-brand) 5.5px) !important;
}

/* Toggle-style checkboxes (e.g. Mollie's direct-debit consent) */
.gmf:not(#_) .gmf-card input[type="checkbox"] {
	position: relative !important;
	display: inline-block !important;
	flex-shrink: 0 !important;
	width: 48px !important;
	height: 28px !important;
	margin: 0 12px 0 0 !important;
	border-radius: 999px !important;
	background-color: #b9c6c0 !important;
	background-image: radial-gradient(circle, #ffffff 0 10px, transparent 10.5px) !important;
	background-position: 0 0 !important;
	background-repeat: no-repeat !important;
	background-size: 28px 28px !important;
	box-shadow: inset 0 0 0 1.5px rgba(25, 51, 45, 0.25) !important;
	vertical-align: middle !important;
	cursor: pointer !important;
	transition: background-position 0.3s var(--gmf-ease), background-color 0.3s ease !important;
}

.gmf:not(#_) .gmf-card input[type="checkbox"]:checked {
	background-color: var(--gmf-brand) !important;
	background-image: radial-gradient(circle, var(--gmf-ink) 0 10px, transparent 10.5px) !important;
	background-position: 20px 0 !important;
}

.gmf:not(#_) .gmf-card input[type="checkbox"]:focus-visible {
	outline: 3px solid var(--gmf-ink) !important;
	outline-offset: 3px !important;
}

.gmf:not(#_) .gmf-card label:has(> input[type="checkbox"]) {
	align-items: center;
	padding: 14px 16px !important;
	border-radius: var(--gmf-r) !important;
	background: var(--gm-sand-50, #faf7f0) !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
}

/* The same when the label is next to the checkbox instead of around it (comment form) */
.gmf:not(#_) .gmf-card p.comment-form-cookies-consent {
	display: flex !important;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px !important;
	padding: 14px 16px !important;
	border-radius: var(--gmf-r) !important;
	background: var(--gm-sand-50, #faf7f0) !important;
}

.gmf:not(#_) .gmf-card p.comment-form-cookies-consent > label {
	margin: 0 !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
}

/* Submit: full width, logo green, dark text, animated -------------------- */
.gmf:not(#_) .gmf-card :is(button[type="submit"], button.gm-submit-btn, button.gm-cancel-btn, button.dic-form__btn, .et_pb_contact_submit, .gform_button) {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
	width: 100% !important;
	min-height: 62px !important;
	margin: 0 !important;
	padding: 18px 28px !important;
	overflow: hidden !important;
	border-radius: 999px !important;
	background-color: var(--gmf-brand) !important;
	background-image: linear-gradient(100deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%, transparent 100%) !important;
	background-repeat: no-repeat !important;
	background-size: 260% 100% !important;
	background-position: 130% 0 !important;
	box-shadow: 0 20px 34px -18px rgba(25, 51, 45, 0.7), inset 0 -3px 0 rgba(25, 51, 45, 0.12) !important;
	font-family: var(--gm-font-body) !important;
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.01em !important;
	color: var(--gmf-ink) !important;
	text-align: center !important;
	cursor: pointer !important;
	transition: background-position 0.9s var(--gmf-ease), transform 0.25s var(--gmf-ease), box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.gmf:not(#_) .gmf-card :is(button[type="submit"], button.gm-submit-btn, button.dic-form__btn.btn-success, .et_pb_contact_submit, .gform_button)::after {
	content: "" !important;
	position: static !important;
	display: block !important;
	flex-shrink: 0;
	width: 22px !important;
	height: 22px !important;
	margin: 0 !important;
	opacity: 1 !important;
	background: currentColor !important;
	-webkit-mask: var(--gmf-i-arrow) center / contain no-repeat !important;
	mask: var(--gmf-i-arrow) center / contain no-repeat !important;
	transition: transform 0.3s var(--gmf-ease) !important;
}

.gmf:not(#_) .gmf-card :is(button[type="submit"], button.gm-submit-btn, button.dic-form__btn, .et_pb_contact_submit, .gform_button):hover:not(:disabled) {
	background-color: #6fcab3 !important;
	background-position: -30% 0 !important;
	box-shadow: 0 26px 40px -18px rgba(25, 51, 45, 0.75), inset 0 -3px 0 rgba(25, 51, 45, 0.12) !important;
	transform: translateY(-3px);
}

.gmf:not(#_) .gmf-card :is(button[type="submit"], button.gm-submit-btn, button.dic-form__btn, .et_pb_contact_submit, .gform_button):hover:not(:disabled)::after {
	transform: translateX(5px);
}

.gmf:not(#_) .gmf-card :is(button[type="submit"], button.gm-submit-btn, button.dic-form__btn, .et_pb_contact_submit, .gform_button):active:not(:disabled) {
	transform: translateY(0) scale(0.985);
	box-shadow: 0 10px 20px -14px rgba(25, 51, 45, 0.7) !important;
}

.gmf:not(#_) .gmf-card :is(button, .gform_button):focus-visible {
	outline: 3px solid var(--gmf-ink) !important;
	outline-offset: 4px !important;
}

.gmf:not(#_) .gmf-card :is(button, .gform_button):disabled {
	opacity: 0.6 !important;
	cursor: progress !important;
}

/* Unsubscribe buttons: same shape, dark red */
.gmf:not(#_) .gmf-card :is(button.gm-cancel-btn, button.dic-form__btn.btn-danger) {
	background-color: var(--gmf-danger) !important;
	color: #ffffff !important;
}

.gmf:not(#_) .gmf-card :is(button.gm-cancel-btn, button.dic-form__btn.btn-danger):hover:not(:disabled) {
	background-color: #912018 !important;
}

.gmf:not(#_) .gmf-card :is(.et_contact_bottom_container, .gform_footer, .text-center.mt-3, .text-center.mt-4, .dic-form__actions) {
	display: block !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

/* Same gap above the button as between fields (18px). Gravity Forms' footer
 * sits outside the field grid, so it gets the gap as a margin. */
.gmf:not(#_):not(#_) .gmf-card .gform_wrapper .gform_footer {
	margin-top: 18px !important;
}

.gmf:not(#_) .gmf-card .gm-spinner-border {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 3px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: gmf-spin 0.75s linear infinite;
}

.gmf:not(#_) .gmf-card .gm-spinner-border.d-none {
	display: none !important;
}

@keyframes gmf-spin { to { transform: rotate(360deg); } }

/* Success screens --------------------------------------------------------- */
/* Gravity Forms confirmation, Divi "thank you" (form removed), newsletter and
 * DIC success views, Mollie Forms and Doneren result messages (shown instead of the form;
 * a failed or cancelled payment gets the same screen in the error colours). */
@keyframes gmf-pop {
	0% { opacity: 0; transform: scale(0.6) rotate(-12deg); }
	60% { opacity: 1; transform: scale(1.08) rotate(3deg); }
	100% { transform: scale(1) rotate(0); }
}

@keyframes gmf-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

.gmf:not(#_) .gmf-card :is(.gform_confirmation_message, .et_pb_contact_form_container:not(:has(form)) .et-pb-contact-message:not(:empty), #successContent:not(.d-none), #dic-success-content:not(.d-none)),
.gmf:not(#_) .gmf-card > p:is(.gmf-result--ok, .gmf-result--error) {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 360px !important;
	margin: 0 !important;
	padding: 128px clamp(8px, 6%, 40px) 12px !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font-family: var(--gm-font-body) !important;
	font-size: 1.125rem !important;
	font-weight: 500 !important;
	line-height: 1.6 !important;
	color: var(--gmf-ink) !important;
	text-align: center !important;
	text-wrap: balance;
	animation: gmf-rise 0.5s var(--gmf-ease);
}

.gmf:not(#_) .gmf-card :is(.gform_confirmation_message, .et_pb_contact_form_container:not(:has(form)) .et-pb-contact-message:not(:empty), #successContent:not(.d-none), #dic-success-content:not(.d-none))::before,
.gmf:not(#_) .gmf-card > p:is(.gmf-result--ok, .gmf-result--error)::before {
	content: "";
	position: absolute;
	top: 12px;
	left: 50%;
	width: 96px;
	height: 96px;
	margin-left: -48px;
	border-radius: 32px 32px 32px 12px;
	background: var(--gmf-brand) var(--gmf-i-check) center / 0 no-repeat;
	box-shadow: 0 0 0 12px rgba(97, 195, 170, 0.18), 0 24px 40px -20px rgba(25, 51, 45, 0.6);
	animation: gmf-pop 0.7s var(--gmf-ease) both;
}

/* Check mark drawn on top of the tile */
.gmf:not(#_) .gmf-card :is(.gform_confirmation_message, .et_pb_contact_form_container:not(:has(form)) .et-pb-contact-message:not(:empty), #successContent:not(.d-none), #dic-success-content:not(.d-none))::after,
.gmf:not(#_) .gmf-card > p:is(.gmf-result--ok, .gmf-result--error)::after {
	content: "";
	position: absolute;
	top: 40px;
	left: 50%;
	width: 40px;
	height: 40px;
	margin-left: -20px;
	background: var(--gmf-ink);
	-webkit-mask: var(--gmf-i-check) center / contain no-repeat;
	mask: var(--gmf-i-check) center / contain no-repeat;
	animation: gmf-pop 0.7s 0.15s var(--gmf-ease) both;
}

.gmf:not(#_) .gmf-card > p.gmf-result--error {
	color: var(--gmf-danger-ink) !important;
}

/* Payment failed or cancelled (Mollie): the same screen, alert icon in the error colours */
.gmf:not(#_) .gmf-card > p.gmf-result--error::before {
	background-color: var(--gmf-danger-bg);
	box-shadow: 0 0 0 12px rgba(180, 35, 24, 0.1), 0 24px 40px -20px rgba(122, 26, 18, 0.45);
}

.gmf:not(#_) .gmf-card > p.gmf-result--error::after {
	background: var(--gmf-danger);
	-webkit-mask-image: var(--gmf-i-alert);
	mask-image: var(--gmf-i-alert);
}

/* "Opnieuw proberen" under a failed payment (inc/redesign.php): the site's
 * normal button (redesign.css .wp-block-button), centred under the text. */
.gmf:not(#_) .gmf-card > p.gmf-result--error .gmf-retry {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.gmf:not(#_) .gmf-card :is(#successIcon, #dic-success-icon) {
	display: none !important;
}

.gmf:not(#_) .gmf-card :is(#successTitle, #dic-success-title) {
	margin: 0 0 10px !important;
	font-family: var(--gm-font-heading) !important;
	font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem) !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	color: var(--gmf-ink) !important;
}

.gmf:not(#_) .gmf-card :is(#successDesc, #dic-success-desc, .et-pb-contact-message p) {
	max-width: 460px;
	margin: 0 auto !important;
	padding: 0 !important;
	font-family: var(--gm-font-body) !important;
	font-size: 1.125rem !important;
	line-height: 1.6 !important;
	font-weight: 500 !important;
	color: var(--gmf-ink) !important;
}

/* Long confirmations (more than about 110 characters, marked by forms.js): the text is
 * left-aligned in a narrower column (about 55 characters per line); the
 * check icon stays centred above it. */
.gmf:not(#_):not(#_):not(#_) .gmf-card .gmf-confirm--long {
	max-width: calc(55ch + 2 * clamp(8px, 6%, 40px)) !important;
	margin: 0 auto !important;
	align-items: stretch !important;
	text-align: left !important;
	text-wrap: pretty;
}

.gmf:not(#_):not(#_):not(#_) .gmf-card .gmf-confirm--long :is(p, #successDesc, #dic-success-desc) {
	max-width: 55ch;
	text-align: left !important;
}

/* Phones: the context panel becomes a compact header above the form ----- */
@media (max-width: 900px) {
	.gmf {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 26px;
	}

	.gmf-panel {
		min-height: 0;
		padding: 28px 24px 30px !important;
	}

	.gmf-panel > .gmf-panel__media {
		height: 160px;
		margin: -28px -24px 0 !important;
	}

	.gmf-panel::after {
		right: -50px;
		bottom: -70px;
		width: 190px;
		opacity: 0.55;
	}

	.gmf-panel__body {
		max-width: none !important;
		padding-right: 70px;
	}

	.gmf-panel__body::before {
		width: 44px;
		height: 44px;
		margin-bottom: 16px;
		border-radius: 14px 14px 14px 5px;
		background-size: 22px;
	}

	:is(.gmr, .editor-styles-wrapper) .gmf-panel__title {
		margin-bottom: 8px !important;
		font-size: 1.625rem !important;
	}

	:is(.gmr, .editor-styles-wrapper) .gmf-panel__text {
		font-size: 1rem !important;
		line-height: 1.55 !important;
	}

	.gmf-card {
		padding: 28px 20px 32px !important;
	}
}

@media (max-width: 640px) {
	.gmf:not(#_) .gmf-card form[id^="rfmp_"] > .mollie_forms_field_row {
		grid-column: 1 / -1 !important;
	}

	.gmf:not(#_) .gmf-card #dmm_form > p:has(input[name="dmm_method"]) {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.gmf:not(#_) .gmf-card #dmm_form > p:has(> #dmm_name, > #dmm_email) {
		grid-column: 1 / -1;
	}

	.gmf:not(#_) .gmf-card :is(.et_pb_contact_form, ul.gform_fields, .gm-row, .dic-form__row, .ginput_complex) {
		grid-template-columns: minmax(0, 1fr);
	}

	.gmf:not(#_) .gmf-card :is(.et_pb_contact_form > [data-id="name"], .et_pb_contact_form > [data-id="email"], ul.gform_fields > li.gf_left_half, ul.gform_fields > li.gf_right_half),
	.gmf:not(#_) .gmf-card form[id^="rfmp_"] > .mollie_forms_field_row:has(> [name$="_field_0"], > [name$="_field_1"], > [name$="_field_2"], > [name$="_field_5"], > [name$="_field_6"]) {
		grid-column: 1 / -1;
	}

	.gmf:not(#_) .gmf-card form[id^="rfmp_"] > .mollie_forms_field_row:has(> [name$="_field_3"], > [name$="_field_4"]) {
		grid-column: span 6;
	}

	.gmf:not(#_) .gmf-card .gm-row {
		gap: 18px !important;
	}

	.gmf:not(#_) .gmf-card .gm-row .mb-3,
	.gmf:not(#_) .gmf-card .gm-col-md-6 {
		margin-bottom: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gmf *,
	.gmf *::before,
	.gmf *::after,
	.gmf-panel::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Band variant: states on the dark card ------------------------------------- */
/* Inline error text and icon in light red: 7.9 : 1 on the dark green card */
.gmf--band:not(#_):not(#_) .gmf-card .dic-wrap:not(.dic-form) .mb-3.has-error:not(.is-focused)::after {
	color: #ffb4ab;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb4ab' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
}

/* Only the inline message under the field: the summary bar above the form is
 * hidden while it repeats that message (forms.js). Other notices (e.g. "al
 * aangemeld" with the unsubscribe link, a connection error) still show. */
.gmf--band:not(#_):not(#_) .gmf-card #messageBox.gmf-summary-hidden {
	display: none !important;
}

/* Focus visible against the dark card */
.gmf--band:not(#_):not(#_) .gmf-card .gmf-input:focus {
	box-shadow: 0 0 0 4px var(--gmf-brand), 0 16px 30px -18px rgba(0, 0, 0, 0.5) !important;
}

.gmf--band:not(#_):not(#_) .gmf-card :is(button, .gform_button):focus-visible {
	outline-color: #ffffff !important;
}

/* Without JavaScript the labels sit above the fields, on the dark card */
.gmf--band:not(.gmf-js):not(#_) .gmf-card label {
	color: var(--gm-mint-100, #cfe9e1) !important;
}

.gmf--band:not(.gmf-js):not(#_) .gmf-card label .text-danger {
	color: #ffb4ab !important;
}

/* Confirmation on the dark card */
.gmf--band:not(#_):not(#_) .gmf-card #successContent:not(.d-none) {
	min-height: 0 !important;
	color: var(--gm-mint-100, #cfe9e1) !important;
}

.gmf--band:not(#_):not(#_) .gmf-card #successTitle {
	color: var(--gmf-brand) !important;
}

.gmf--band:not(#_):not(#_) .gmf-card #successDesc {
	color: var(--gm-mint-100, #cfe9e1) !important;
}

@media (prefers-reduced-motion: reduce) {
	.gmf--band > .gmf-card::after {
		transition: none !important;
	}
}