/* Block - Forms: Gravity Forms styled like the design's form controls (forms.css: .cs-form-box--clean, .cs-form--icons).
   The wrapper (.mm-gf) switches off Gravity Forms' reset and Orbital look and keeps its layout grid.
   Also loaded with Block - Contact. */

/* ---------- Layout: one 16px rhythm, 24px before the button ---------- */
.mm-gf .gform_wrapper .gform_fields {
	row-gap: 16px;
	column-gap: 16px;
}
.mm-gf .gform_wrapper .gfield {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.mm-gf .gform_wrapper .gform_footer,
.mm-gf .gform_wrapper .gform_page_footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
}
.mm-gf .gform_required_legend,
.mm-gf .gform_heading {
	display: none;
}
.mm-gf .gform_ajax_spinner {
	width: 20px;
	height: 20px;
}
.mm-gf > .cs-form-note {
	margin: 16px 0 0;
}
@media (max-width: 639px) {
	.mm-gf .gform_wrapper .gform_fields > .gfield {
		grid-column: 1 / -1;
	}
}

/* ---------- Labels (screen reader only when the field hides them, like the design) ---------- */
.mm-gf .gfield_label,
.mm-gf .gform-field-label--type-sub {
	display: block;
	margin: 0 0 8px;
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--heading);
}
.mm-gf .field_sublabel_below .gform-field-label--type-sub {
	margin: 8px 0 0; /* Sub-labels below the inputs (the forms' Sub-Label Placement). */
}
.mm-gf .gfield_required {
	margin-left: 4px;
	color: var(--primary);
}
.mm-gf .gfield_required .gfield_required_text,
.mm-gf .gfield_required .gfield_required_custom {
	margin: 0;
	font-size: 0;
}
.mm-gf .gfield_required .gfield_required_text::before {
	content: "*";
	font-size: 12px;
}
.mm-gf .hidden_label > .gfield_label,
.mm-gf .hidden_label > legend.gfield_label,
.mm-gf .screen-reader-text,
.mm-gf .gfield_visibility_hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.mm-gf .gfield_description,
.mm-gf .ginput_counter {
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted);
}

/* ---------- Fields: white, hairline border, red focus ring ---------- */
.mm-gf .gfield input:is([type="text"], [type="email"], [type="tel"], [type="number"], [type="url"], [type="password"], [type="date"], [type="search"]),
.mm-gf .gfield select,
.mm-gf .gfield textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 18px;
	font-family: var(--font-primary);
	font-size: 15px;
	line-height: normal;
	color: var(--heading);
	background-color: var(--white);
	border: 1px solid var(--border);
	border-radius: 0;
	box-shadow: rgba(0, 0, 0, .04) 0 1px 2px 0;
	transition: border-color .2s ease, box-shadow .2s ease;
	appearance: none;
}
.mm-gf .gfield textarea {
	height: 140px;
	min-height: 140px;
	padding-top: 16px;
	padding-bottom: 16px;
	line-height: 1.6;
	resize: vertical;
}
.mm-gf .gfield input::placeholder,
.mm-gf .gfield textarea::placeholder {
	color: #94a3b8;
	opacity: 1;
}
.mm-gf .gfield input:hover,
.mm-gf .gfield select:hover,
.mm-gf .gfield textarea:hover {
	border-color: var(--border-strong);
}
.mm-gf .gfield input:focus,
.mm-gf .gfield select:focus,
.mm-gf .gfield textarea:focus {
	outline: none;
	border-color: var(--primary);
	background-color: var(--white);
	box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .08);
}
.mm-gf .gfield select {
	padding-right: 44px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230f172b' stroke-width='1.75' stroke-linecap='square'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 14px;
}
.mm-gf .gfield select[multiple] {
	height: auto;
	min-height: 140px;
	padding: 12px 18px;
	background-image: none;
}
/* Select still on its placeholder: grey like the other placeholders */
.mm-gf .gfield select:has(option.gf_placeholder:checked) {
	color: #94a3b8;
}
.mm-gf .gfield select option {
	color: var(--heading);
}

/* Checkboxes and radios: the design's square boxes and round radios */
.mm-gf .gfield_checkbox,
.mm-gf .gfield_radio {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 22px;
}
.mm-gf .gchoice {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.mm-gf .gchoice input[type="checkbox"],
.mm-gf .gchoice input[type="radio"],
.mm-gf .ginput_container_consent input[type="checkbox"] {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1px solid var(--border-strong);
	border-radius: 0;
	background: var(--white) no-repeat center / 14px;
	appearance: none;
	cursor: pointer;
	transition: var(--transition);
}
.mm-gf .gchoice input[type="radio"] {
	border-radius: 50%;
}
.mm-gf .gchoice input[type="checkbox"]:checked,
.mm-gf .ginput_container_consent input[type="checkbox"]:checked {
	border-color: var(--secondary);
	background-color: var(--secondary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E");
}
.mm-gf .gchoice input[type="radio"]:checked {
	border-color: var(--secondary);
	background-image: radial-gradient(var(--secondary) 0 4px, transparent 4.5px);
	background-size: auto;
}
.mm-gf .gchoice label,
.mm-gf .ginput_container_consent label {
	font-size: 13px;
	color: var(--muted);
	cursor: pointer;
}
.mm-gf .ginput_container_consent {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* ---------- Leading icon (field CSS class mm-icon-{bootstrap icon}), hairline divider, red on focus ---------- */
.mm-gf .ginput_container:has(> .mm-gf-icon) {
	position: relative;
}
.mm-gf .ginput_container > .mm-gf-icon {
	position: absolute;
	top: 50%;
	left: 18px;
	z-index: 1;
	font-size: 16px;
	line-height: 1;
	color: var(--secondary);
	transform: translateY(-50%);
	pointer-events: none;
	transition: color .2s ease;
}
.mm-gf .ginput_container:has(> .mm-gf-icon)::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 48px;
	z-index: 1;
	width: 1px;
	height: 20px;
	background: var(--border);
	pointer-events: none;
}
.mm-gf .ginput_container:has(> .mm-gf-icon) :is(input, textarea) {
	padding-left: 62px;
}
.mm-gf .ginput_container_textarea > .mm-gf-icon {
	top: 19px;
	transform: none;
}
.mm-gf .mm-icon-chat-left-text textarea,
.mm-gf .ginput_container_textarea:has(> .mm-gf-icon) textarea {
	height: 150px;
	min-height: 150px;
}
/* Gravity Forms' theme sets min-block-size: 12rem on textarea.medium (.gform-theme--foundation .gfield textarea.medium),
   which outranks the rules above and stretched every textarea to 192px. Same heights, more specific. */
.mm-gf .gform-theme--foundation .gfield textarea.textarea {
	min-block-size: 140px;
}
.mm-gf .gform-theme--foundation .mm-icon-chat-left-text textarea.textarea,
.mm-gf .gform-theme--foundation .ginput_container_textarea:has(> .mm-gf-icon) textarea.textarea {
	min-block-size: 150px;
}
.mm-gf .ginput_container:has(> .mm-gf-icon):focus-within > .mm-gf-icon {
	color: var(--primary);
}
.mm-gf .ginput_container:has(> .mm-gf-icon):focus-within::before {
	background: rgba(var(--primary-rgb), .35);
}

/* ---------- Section fields: the design's step headings (red dot, hairline under, step pill) ---------- */
.mm-gf .gform_wrapper .gfield--type-section {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 20px 0 0;
	padding: 0 0 14px;
	border: 0;
	border-bottom: 1px solid var(--border-light);
}
.mm-gf .gform_wrapper .gfield--type-section:first-child {
	margin-top: 0;
}
.mm-gf .gfield--type-section::before {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	margin: 0 4px;
	border-radius: 50%;
	background: var(--primary);
	box-shadow: 0 0 0 5px rgba(var(--primary-rgb), .15);
}
.mm-gf .gsection_title {
	margin: 0;
	padding: 0;
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--heading);
}
.mm-gf .gsection_description {
	margin: 0 0 0 auto;
	padding: 5px 12px;
	border-radius: 40px;
	font-family: var(--font-heading);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--primary);
	background: var(--primary-tint-10);
}
@media (max-width: 575px) {
	.mm-gf .gsection_description {
		padding: 4px 10px;
		font-size: 10px;
	}
}

/* ---------- List field: the design's part / quantity rows with round add and remove buttons ---------- */
.mm-gf .gform_wrapper .gfield_list_header {
	display: none;
}
.mm-gf .gform_wrapper .gfield_list_group {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 16px;
	margin: 0;
}
.mm-gf .gform_wrapper .gfield_list_group > .gform-grid-col {
	padding: 0;
	inline-size: auto;
}
.mm-gf .gfield_list_group + .gfield_list_group {
	margin-top: 16px;
}
.mm-gf .gform_wrapper .gfield_list_group_item {
	flex: 1 1 0;
	min-width: 0;
}
/* Gravity Forms pushes the cells after the first down 4px; the flex gap does the spacing here. */
.mm-gf .gform_wrapper .gfield_list_group .gfield_list_group_item {
	margin: 0;
}
.mm-gf .gform_wrapper .gfield_list_group_item:nth-child(2):nth-last-child(2) {
	flex: 0 0 140px;
}
.mm-gf .gfield_list_group_item::before {
	display: none;
}
.mm-gf .gform_wrapper .gfield_list_icons {
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
}
.mm-gf .gfield_list_icons button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	font-size: 0;
	line-height: 1;
	color: var(--white);
	background: var(--primary);
	box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12);
	cursor: pointer;
	transition: var(--transition);
}
.mm-gf .gfield_list_icons button::before {
	font-size: 16px;
	font-family: bootstrap-icons !important;
	-webkit-text-stroke: 1px currentColor;
}
.mm-gf .gfield_list_icons .add_list_item::before {
	content: "\f64d";
}
.mm-gf .gfield_list_icons .delete_list_item::before {
	content: "\f2ea";
}
.mm-gf .gfield_list_icons button:hover {
	color: var(--white);
	background: var(--heading);
	box-shadow: 0 0 0 4px rgba(15, 23, 43, .1);
}
.mm-gf .gfield_list_icons .delete_list_item {
	color: var(--primary);
	background: var(--primary-tint-10);
	box-shadow: none;
}
.mm-gf .gfield_list_icons .delete_list_item[style*="hidden"] {
	display: none;
}
.mm-gf .gfield_list_icons button:is(:disabled, .gfield_icon_disabled) {
	opacity: .4;
	cursor: default;
}
/* Phones: the part name on its own row, quantity and the buttons below (as specific as the rules above, so they win). */
@media (max-width: 575px) {
	.mm-gf .gform_wrapper .gfield_list_group {
		flex-wrap: wrap;
	}
	.mm-gf .gform_wrapper .gfield_list_group_item:first-child {
		flex: 1 1 100%;
	}
	.mm-gf .gform_wrapper .gfield_list_group_item:nth-child(2):nth-last-child(2) {
		flex: 1 1 0;
	}
}

/* ---------- Validation and confirmation ---------- */
.mm-gf .gform_wrapper .gform_validation_errors {
	border-bottom: 0;
	margin: 0 0 20px;
	border-radius: 0;
	box-shadow: none;
	padding: 14px 18px;
	border: 0;
	border-left: 3px solid var(--primary);
	background: var(--primary-tint-10);
}
.mm-gf .gform_wrapper.gform-theme .gform_validation_errors {
	border: 0;
	border-left: 3px solid var(--primary); /* Gravity Forms' theme otherwise paints its own orange-red border. */
}
.mm-gf .gform_wrapper .gform_validation_errors:focus {
	outline: none; /* Gravity Forms focuses the summary so screen readers announce it; no ring on a status box. */
}
.mm-gf .gform_wrapper .gform_validation_errors .gform_submission_error {
	display: block;
	margin: 0;
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 600;
	color: var(--heading);
}
.mm-gf .gform_wrapper .gform_validation_errors .gform-icon,
.mm-gf .gform_wrapper .gform_validation_errors ol {
	display: none;
}
.mm-gf .gfield_validation_message,
.mm-gf .validation_message {
	margin-top: 6px;
	font-size: 13px;
	color: var(--primary);
}
.mm-gf .gform_wrapper .gfield_error :is(input, select, textarea) {
	border-color: var(--primary);
}
.mm-gf .gform_confirmation_message {
	padding: 20px 24px;
	border-left: 3px solid var(--primary);
	background: var(--bg-light);
	color: var(--heading);
}

/* ---------- Button and note side by side (membership form) ---------- */
.mm-gf--foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px; /* As the design's .cs-form-box__foot: a note that does not fit beside the button wraps 12px under it. */
}
.mm-gf--foot .gform_wrapper,
.mm-gf--foot .gform_wrapper > form {
	display: contents;
}
.mm-gf--foot .gform_wrapper > *,
.mm-gf--foot .gform_wrapper > form > *,
.mm-gf--foot > * {
	flex: 0 0 100%;
	min-width: 0;
}
/* 24px from the last field to the button: 12px here plus the 12px row gap. */
.mm-gf--foot .gform_wrapper > form > .gform_body {
	margin-bottom: 12px;
}
.mm-gf--foot .gform_wrapper > form > .gform_footer {
	flex: 0 0 auto;
	margin-top: 0;
}
.mm-gf--foot > .cs-form-note {
	flex: 0 1 auto;
	margin: 0;
}

/* ---------- Dark sections ---------- */
.bg-dark .mm-gf .gfield_label,
.bg-dark .mm-gf .gsection_title {
	color: var(--white);
}
.bg-dark .mm-gf .gfield input:is([type="text"], [type="email"], [type="tel"], [type="number"], [type="url"], [type="password"], [type="date"], [type="search"]),
.bg-dark .mm-gf .gfield select,
.bg-dark .mm-gf .gfield textarea {
	color: var(--white);
	border-color: rgba(255, 255, 255, .16);
	background-color: rgba(255, 255, 255, .06);
	box-shadow: none;
}
.bg-dark .mm-gf .gfield input:focus,
.bg-dark .mm-gf .gfield select:focus,
.bg-dark .mm-gf .gfield textarea:focus {
	border-color: var(--primary);
	background-color: rgba(255, 255, 255, .08);
	box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .2);
}
.bg-dark .mm-gf .gfield input::placeholder,
.bg-dark .mm-gf .gfield textarea::placeholder,
.bg-dark .mm-gf .gfield select:has(option.gf_placeholder:checked) {
	color: rgba(255, 255, 255, .55);
}
.bg-dark .mm-gf .gfield select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.75' stroke-linecap='square'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
}
.bg-dark .mm-gf .gfield select option {
	color: var(--heading);
}
.bg-dark .mm-gf .ginput_container > .mm-gf-icon {
	color: rgba(255, 255, 255, .6);
}
.bg-dark .mm-gf .ginput_container:has(> .mm-gf-icon)::before {
	background: rgba(255, 255, 255, .16);
}
.bg-dark .mm-gf .ginput_container:has(> .mm-gf-icon):focus-within > .mm-gf-icon {
	color: var(--primary);
}
.bg-dark .mm-gf .gform_wrapper .gfield--type-section {
	border-bottom-color: rgba(255, 255, 255, .12);
}
.bg-dark .mm-gf .gfield--type-section::before {
	box-shadow: 0 0 0 5px rgba(var(--primary-rgb), .3);
}
.bg-dark .mm-gf .gsection_description {
	color: var(--white);
	background: rgba(255, 255, 255, .08);
}
.bg-dark .mm-gf .gfield_list_icons button:hover {
	color: var(--heading);
	background: var(--white);
}
.bg-dark .mm-gf .gfield_list_icons .delete_list_item {
	color: var(--white);
	background: rgba(255, 255, 255, .1);
}
.bg-dark .mm-gf .gchoice label,
.bg-dark .mm-gf .ginput_container_consent label,
.bg-dark .mm-gf .gfield_description {
	color: rgba(255, 255, 255, .7);
}
.bg-dark .mm-gf .gfield_description.validation_message {
	color: var(--primary-on-dark); /* Errors stay red (the lighter red for dark backgrounds), not the grey help text. */
}
.bg-dark .mm-gf .gform_validation_errors .gform_submission_error,
.bg-dark .mm-gf .gform_confirmation_message {
	color: var(--white);
}
.bg-dark .mm-gf .gform_confirmation_message {
	background: rgba(255, 255, 255, .06);
}

/* ---------- Editor: no form chosen yet ---------- */
.mm-gf-notice {
	margin: 0;
	padding: 20px 24px;
	border: 1px dashed var(--border-strong);
	font-size: 14px;
	color: var(--muted);
	background: var(--bg-light);
}
.bg-dark .mm-gf-notice {
	border-color: rgba(255, 255, 255, .3);
	color: rgba(255, 255, 255, .75);
	background: rgba(255, 255, 255, .04);
}
