/* ==========================================================================
 * Gravity Forms — base theme look (inc/gravity-forms.php)
 *
 * Works with every Gravity Forms style: Orbital (2.7+), Gravity Forms 2.5
 * theme, and legacy. Orbital colours are also set through the
 * gform_default_styles filter; the rules below cover the rest and win over
 * Gravity Forms' own per-form styles (hence the !important on colours).
 *
 * Inputs: Graphite fill, Gunmetal border, square corners, green focus.
 * Labels: Barlow Condensed caps. Submit: solid green theme button.
 * ======================================================================= */

.gform_wrapper {
	--mm-gf-input-bg: var(--wp--preset--color--accent-2, #151815);
	--mm-gf-border: var(--wp--preset--color--accent-6, #2a2e2a);
	--mm-gf-text: var(--wp--preset--color--contrast, #fff);
	--mm-gf-muted: var(--wp--preset--color--accent-4, #a9afa9);
	--mm-gf-accent: var(--wp--preset--color--accent-1, #f24e1e);
	--mm-gf-base: var(--wp--preset--color--base, #0a0a0a);
	--mm-gf-error: #ff8a80;
	--mm-gf-btn-hover-bg: var(--wp--preset--color--contrast, #fff);
	--mm-gf-btn-hover-text: var(--wp--preset--color--base, #0a0a0a);

	/* Orbital variables (Gravity Forms 2.7+). */
	--gf-color-primary: var(--mm-gf-accent);
	--gf-color-primary-rgb: 255, 102, 0;
	--gf-color-primary-contrast: var(--mm-gf-base);
	--gf-color-primary-darker: #5fb61a;
	--gf-color-primary-lighter: #97e04f;
	--gf-color-secondary: var(--mm-gf-input-bg);
	--gf-color-secondary-contrast: var(--mm-gf-text);
	--gf-color-in-ctrl: var(--mm-gf-input-bg);
	--gf-color-in-ctrl-contrast: var(--mm-gf-text);
	--gf-color-in-ctrl-dark: var(--mm-gf-border);
	--gf-color-in-ctrl-light: var(--mm-gf-input-bg);
	--gf-color-out-ctrl-dark: var(--mm-gf-text);
	--gf-color-out-ctrl-light: var(--mm-gf-border);
	--gf-color-danger: var(--mm-gf-error);
	--gf-ctrl-bg-color: var(--mm-gf-input-bg);
	--gf-ctrl-border-color: var(--mm-gf-border);
	--gf-ctrl-color: var(--mm-gf-text);
	--gf-ctrl-label-color-primary: var(--mm-gf-text);
	--gf-ctrl-label-color-secondary: var(--mm-gf-muted);
	--gf-ctrl-desc-color: var(--mm-gf-muted);
	--gf-ctrl-placeholder-color: var(--mm-gf-muted);
	--gf-radius: 0;
	--gf-ctrl-radius: 0;
	--gf-ctrl-btn-radius: 0;
	--gf-font-family-base: var(--wp--preset--font-family--barlow);

	font-family: var(--wp--preset--font-family--barlow);
	color: var(--mm-gf-text);
}

/* ---------- Title, description, headings ---------- */
.gform_wrapper .gform_title {
	margin: 0 0 12px;
	color: var(--mm-gf-text) !important;
}

.gform_wrapper .gform_description,
.gform_wrapper .gsection_description,
.gform_wrapper .gfield_description,
.gform_wrapper .ginput_complex label,
.gform_wrapper .gform-field-label--type-sub,
.gform_wrapper .instruction,
.gform_wrapper .ginput_counter {
	color: var(--mm-gf-muted) !important;
	font-size: 15px;
}

.gform_wrapper .gsection {
	border-bottom: 1px solid var(--mm-gf-border) !important;
}

/* ---------- Labels ---------- */
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label:not(.gform-field-label--type-sub):not(.gform-field-label--type-inline),
.gform_wrapper legend.gfield_label {
	margin-bottom: 10px !important;
	font-family: var(--wp--preset--font-family--barlow-condensed) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	line-height: 1.2 !important;
	text-transform: uppercase;
	color: var(--mm-gf-text) !important;
}

/* Choice labels (checkboxes / radios) stay in body type. */
.gform_wrapper .gchoice label,
.gform_wrapper .gform-field-label--type-inline {
	font-family: var(--wp--preset--font-family--barlow) !important;
	font-size: 17px !important;
	color: var(--mm-gf-text) !important;
}

.gform_wrapper .gfield_required,
.gform_wrapper .gfield_required .gfield_required_asterisk,
.gform_wrapper .gfield_required_text {
	color: var(--mm-gf-accent) !important;
}

/* ---------- Inputs ---------- */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="password"],
.gform_wrapper input[type="date"],
.gform_wrapper input[type="search"],
.gform_wrapper select,
.gform_wrapper textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	padding: 13px 16px !important; /* 13 + 24 line + 13 + 2 border = 52px, same as dropdowns and the button. */
	border: 1px solid var(--mm-gf-border) !important;
	border-radius: 0 !important;
	background-color: var(--mm-gf-input-bg) !important;
	box-shadow: none !important;
	font-family: var(--wp--preset--font-family--barlow) !important;
	font-size: 17px !important;
	line-height: 1.4 !important;
	color: var(--mm-gf-text) !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gform_wrapper textarea {
	min-height: 160px;
	resize: vertical;
}

.gform_wrapper select {
	padding-right: 44px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%237DD62E' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E") !important;
	background-position: right 16px center !important;
	background-repeat: no-repeat !important;
	background-size: 14px 9px !important;
	-webkit-appearance: none;
	appearance: none;
}

/* Dropdowns: same height, text size and colour as the text fields.
 * Fixed 52px box with the text centred by line-height (Safari ignores the
 * centring browsers otherwise apply), whatever control size (sm/md/lg) or
 * padding the Gravity Forms theme sets. Doubled class beats its rules. */
.gform_wrapper.gform_wrapper select:not([multiple]) {
	box-sizing: border-box !important;
	height: 52px !important;
	min-height: 52px !important;
	block-size: 52px !important;
	padding: 0 44px 0 16px !important;
	font-family: var(--wp--preset--font-family--barlow) !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	line-height: 50px !important;
	color: var(--mm-gf-text) !important;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Placeholder choice ("Select grade") looks like the text fields' placeholders. */
.gform_wrapper.gform_wrapper select:has(option.gf_placeholder:checked),
.gform_wrapper.gform_wrapper select:has(option[value=""]:checked) {
	color: var(--mm-gf-muted) !important;
}

.gform_wrapper select option {
	background: var(--mm-gf-input-bg);
	color: var(--mm-gf-text) !important;
}

.gform_wrapper ::placeholder {
	color: var(--mm-gf-muted) !important;
	opacity: 1;
}

.gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):hover,
.gform_wrapper select:hover,
.gform_wrapper textarea:hover {
	border-color: #3a3f3a !important;
}

.gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
	border-color: var(--mm-gf-accent) !important;
	box-shadow: 0 0 0 1px var(--mm-gf-accent) !important;
	outline: none !important;
}

/* Keyboard users still get the theme's focus ring. */
.gform_wrapper input:not([type="submit"]):not([type="button"]):focus-visible,
.gform_wrapper select:focus-visible,
.gform_wrapper textarea:focus-visible {
	outline: 2px solid var(--mm-gf-accent) !important;
	outline-offset: 2px !important;
}

/* Checkboxes, radios, consent */
.gform_wrapper input[type="checkbox"],
.gform_wrapper input[type="radio"] {
	accent-color: var(--mm-gf-accent);
	width: 20px;
	height: 20px;
}

/* Chrome autofill keeps the dark fill. */
.gform_wrapper input:-webkit-autofill,
.gform_wrapper textarea:-webkit-autofill,
.gform_wrapper select:-webkit-autofill {
	-webkit-text-fill-color: var(--mm-gf-text);
	-webkit-box-shadow: 0 0 0 1000px var(--mm-gf-input-bg) inset !important;
	caret-color: var(--mm-gf-text);
}

/* ---------- Buttons: submit / next = solid green theme button ---------- */
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button[type="submit"],
.gform_wrapper .gform_footer .gform_button,
.gform_wrapper .gform_page_footer .gform_next_button,
.gform_wrapper .gform_page_footer input[type="submit"],
.gform_wrapper .gform_page_footer button[type="submit"],
.gform_wrapper .gform_page_footer .gform_button,
.gform_wrapper .gform-theme-button:not(.gform-theme-button--secondary):not(.gform_previous_button) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto;
	box-sizing: border-box !important;
	height: 52px !important;
	min-height: 52px !important;
	block-size: 52px !important;
	margin: 0 !important;
	padding: 0 36px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--mm-gf-accent) !important;
	box-shadow: none !important;
	font-family: var(--wp--preset--font-family--barlow-condensed) !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	letter-spacing: 0.1em !important;
	line-height: 1 !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	color: var(--mm-gf-base) !important;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_footer button[type="submit"]:hover,
.gform_wrapper .gform_footer .gform_button:hover,
.gform_wrapper .gform_page_footer .gform_next_button:hover,
.gform_wrapper .gform_page_footer input[type="submit"]:hover,
.gform_wrapper .gform_page_footer button[type="submit"]:hover,
.gform_wrapper .gform_page_footer .gform_button:hover,
.gform_wrapper .gform-theme-button:not(.gform-theme-button--secondary):not(.gform_previous_button):hover {
	background: var(--mm-gf-btn-hover-bg) !important;
	color: var(--mm-gf-btn-hover-text) !important;
}

/* White ring so focus shows against the green. */
.gform_wrapper .gform_footer input[type="submit"]:focus-visible,
.gform_wrapper .gform_footer button[type="submit"]:focus-visible,
.gform_wrapper .gform_footer .gform_button:focus-visible,
.gform_wrapper .gform_page_footer .gform_next_button:focus-visible,
.gform_wrapper .gform_page_footer .gform_button:focus-visible {
	outline: 2px solid var(--mm-gf-text) !important;
	outline-offset: 3px !important;
}

/* Previous / secondary = outline button, like the theme's Outline style. */
.gform_wrapper .gform_page_footer .gform_previous_button,
.gform_wrapper .gform-theme-button--secondary,
.gform_wrapper .gform_save_link.button {
	display: inline-flex !important;
	align-items: center;
	padding: 15px 32px !important;
	border: 2px solid var(--mm-gf-accent) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: var(--wp--preset--font-family--barlow-condensed) !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	color: var(--mm-gf-text) !important;
	cursor: pointer;
}

.gform_wrapper .gform_page_footer .gform_previous_button:hover,
.gform_wrapper .gform-theme-button--secondary:hover,
.gform_wrapper .gform_save_link.button:hover {
	background: var(--mm-gf-accent) !important;
	color: var(--mm-gf-base) !important;
}

.gform_wrapper .gform_footer,
.gform_wrapper .gform_page_footer {
	margin-top: 15px !important;
	padding: 0 !important;
}

/* File upload button */
.gform_wrapper .gform_drop_area,
.gform_wrapper .gform-theme-field-control.gform_drop_area {
	border: 1px dashed var(--mm-gf-border) !important;
	border-radius: 0 !important;
	background: var(--mm-gf-input-bg) !important;
	color: var(--mm-gf-muted) !important;
}

.gform_wrapper .gform_button_select_files {
	border: 2px solid var(--mm-gf-accent) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--mm-gf-text) !important;
}

/* ---------- Validation ---------- */
.gform_wrapper .gform_validation_errors,
.gform_wrapper .validation_error {
	margin-bottom: 24px !important;
	padding: 16px 20px !important;
	border: 1px solid var(--mm-gf-error) !important;
	border-left-width: 4px !important;
	border-radius: 0 !important;
	background: rgba(255, 138, 128, 0.08) !important;
	box-shadow: none !important;
}

.gform_wrapper .gform_validation_errors > h2,
.gform_wrapper .gform_validation_errors .gform_submission_error,
.gform_wrapper .validation_error {
	font-family: var(--wp--preset--font-family--barlow) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	color: var(--mm-gf-error) !important;
}

.gform_wrapper .gform_validation_errors .gform-icon,
.gform_wrapper .gform_validation_errors svg {
	color: var(--mm-gf-error) !important;
	fill: currentColor;
}

.gform_wrapper .gform_validation_errors ol a {
	color: var(--mm-gf-error) !important;
	text-decoration: underline;
}

.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error select,
.gform_wrapper .gfield_error textarea {
	border-color: var(--mm-gf-error) !important;
}

.gform_wrapper .gfield_error .gfield_label,
.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message {
	color: var(--mm-gf-error) !important;
}

.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message {
	margin-top: 8px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-size: 15px !important;
}

/* ---------- Confirmation ---------- */
.gform_confirmation_message {
	padding: 24px 28px;
	border-left: 4px solid var(--wp--preset--color--accent-1, #f24e1e);
	background: var(--wp--preset--color--accent-2, #151815);
	font-size: 18px;
	color: var(--wp--preset--color--contrast, #fff);
}

/* ---------- Multi-page progress ---------- */
.gform_wrapper .gf_progressbar {
	border-radius: 0 !important;
	background: var(--mm-gf-input-bg) !important;
}

.gform_wrapper .gf_progressbar_percentage {
	border-radius: 0 !important;
	background: var(--mm-gf-accent) !important;
	color: var(--mm-gf-base) !important;
}

.gform_wrapper .gf_progressbar_title,
.gform_wrapper .gf_step_label {
	color: var(--mm-gf-muted) !important;
}

.gform_wrapper .gf_step_active .gf_step_number {
	border-color: var(--mm-gf-accent) !important;
	background: var(--mm-gf-accent) !important;
	color: var(--mm-gf-base) !important;
}

/* Spinner */
.gform_wrapper .gform_ajax_spinner,
.gform_wrapper .gform-loader {
	border-left-color: var(--mm-gf-accent) !important;
}

@media (prefers-reduced-motion: reduce) {
	.gform_wrapper input,
	.gform_wrapper select,
	.gform_wrapper textarea,
	.gform_wrapper .gform_button {
		transition: none !important;
	}
}

/* ---------- Light form card (Section Builder "mm-form-panel") ---------- */
.mm-form-panel .gform_wrapper,
.gform_wrapper.mm-gf-light {
	--mm-gf-input-bg: var(--wp--preset--color--light, #f3f4f0);
	--mm-gf-border: #d9dcd6;
	--mm-gf-text: var(--wp--preset--color--base, #0a0a0a);
	--mm-gf-muted: var(--wp--preset--color--ink, #4a504a);
	--mm-gf-error: #b3261e;
	--mm-gf-btn-hover-bg: var(--wp--preset--color--base, #0a0a0a);
	--mm-gf-btn-hover-text: var(--wp--preset--color--contrast, #fff);
}
.mm-form-panel .gform_wrapper .gfield_required,
.mm-form-panel .gform_wrapper .gfield_required .gfield_required_asterisk {
	color: var(--wp--preset--color--green-dark, #0a51a1) !important;
}
.mm-form-panel .gform_wrapper select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%230A51A1' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E") !important;
}

/* ---------- Field spacing: 15px between rows ---------- */
.gform_wrapper.gform_wrapper {
	--gf-form-gap-y: 15px;
	--gf-field-gap-y: 15px;
}
.gform_wrapper.gform_wrapper .gform_fields {
	row-gap: 15px !important;
}
/* Older form markup spaces fields with margins instead of a grid gap. */
.gform_wrapper.gform_wrapper .gform_fields > .gfield {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.gform_wrapper.gform_legacy_markup_wrapper ul.gform_fields > li.gfield + li.gfield {
	margin-top: 15px !important;
}

/* Hide the '"*" indicates required fields' note above the form. */
.gform_wrapper .gform_required_legend {
	display: none !important;
}

/* ==========================================================================
 * Magic Moving look (overrides the base rules above)
 * Light by default: white inputs, mist border, navy text, Inter labels,
 * 10px corners, orange gradient submit. Glass variant in .mm-glass-form.
 * ======================================================================= */
.gform_wrapper.gform_wrapper {
	--mm-gf-input-bg: #fff;
	--mm-gf-border: var(--wp--preset--color--accent-6, #DFE7F1);
	--mm-gf-text: var(--wp--preset--color--base, #062B57);
	--mm-gf-muted: var(--wp--preset--color--ink, #5A6B80);
	--mm-gf-accent: var(--wp--preset--color--green-dark, #0A51A1);
	--mm-gf-base: #fff;
	--mm-gf-error: #C62A0F;
	--mm-gf-label: var(--wp--preset--color--base, #062B57);
	--gf-radius: 10px;
	--gf-ctrl-radius: 10px;
	--gf-ctrl-btn-radius: 12px;
	--gf-color-primary-rgb: 10, 81, 161;
	--gf-color-primary-darker: #083F80;
	--gf-color-primary-lighter: #0D63C4;
	--gf-font-family-base: var(--wp--preset--font-family--barlow);
	--gf-form-gap-y: 14px;
	--gf-field-gap-y: 14px;
	--gf-form-gap-x: 14px;
	--gf-field-gap-x: 14px;
}
.gform_wrapper.gform_wrapper .gform_fields { row-gap: 14px !important; column-gap: 14px !important; }
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label:not(.gform-field-label--type-sub):not(.gform-field-label--type-inline),
.gform_wrapper legend.gfield_label {
	margin-bottom: 6px !important;
	font-family: var(--wp--preset--font-family--barlow) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--mm-gf-label) !important;
}
.gform_wrapper .gfield_required,
.gform_wrapper .gfield_required .gfield_required_asterisk { color: var(--wp--preset--color--accent-1, #F24E1E) !important; }
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="password"],
.gform_wrapper input[type="date"],
.gform_wrapper input[type="search"],
.gform_wrapper select,
.gform_wrapper textarea {
	min-height: 48px !important;
	padding: 12px 14px !important;
	border-radius: 10px !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
}
.gform_wrapper select {
	padding-block: 0 !important;
	line-height: 46px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%235A6B80' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E") !important;
}
.gform_wrapper ::placeholder { color: var(--wp--preset--color--accent-4, #8A97A8) !important; opacity: 1; }

.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button[type="submit"],
.gform_wrapper .gform_footer .gform_button,
.gform_wrapper .gform_page_footer .gform_next_button,
.gform_wrapper .gform_page_footer input[type="submit"],
.gform_wrapper .gform_page_footer button[type="submit"],
.gform_wrapper .gform_page_footer .gform_button,
.gform_wrapper .gform-theme-button:not(.gform-theme-button--secondary):not(.gform_previous_button) {
	height: 54px !important;
	min-height: 54px !important;
	block-size: 54px !important;
	padding: 0 28px !important;
	border-radius: 12px !important;
	background: linear-gradient(90deg, #FF7A3D 0%, #F24E1E 100%) !important;
	box-shadow: 0 10px 24px -4px rgba(255, 107, 43, 0.4) !important;
	font-family: var(--wp--preset--font-family--barlow) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #fff !important;
	transition: filter 0.15s ease, transform 0.15s ease !important;
}
.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_footer button[type="submit"]:hover,
.gform_wrapper .gform_footer .gform_button:hover,
.gform_wrapper .gform-theme-button:not(.gform-theme-button--secondary):not(.gform_previous_button):hover {
	background: linear-gradient(90deg, #FF7A3D 0%, #F24E1E 100%) !important;
	color: #fff !important;
	filter: brightness(1.06);
	transform: translateY(-1px);
}
/* Full-width submit in form cards */
.mm-glass-form .gform_wrapper .gform_footer,
.mm-form-card .gform_wrapper .gform_footer,
.mm-form-panel .gform_wrapper .gform_footer { margin-top: 18px !important; padding: 0 !important; }
.mm-glass-form .gform_wrapper .gform_footer :is(input, button)[type="submit"],
.mm-form-card .gform_wrapper .gform_footer :is(input, button)[type="submit"],
.mm-form-panel .gform_wrapper .gform_footer :is(input, button)[type="submit"] { width: 100% !important; }

/* Glass card (hero quote form): white labels, white inputs */
.mm-glass-form .gform_wrapper {
	--mm-gf-border: transparent;
	--mm-gf-label: rgba(255, 255, 255, 0.88);
	--mm-gf-muted: rgba(255, 255, 255, 0.72);
	--mm-gf-error: #FFB4A6;
	color: rgba(255, 255, 255, 0.85);
}
.mm-glass-form .gform_wrapper input:not([type="submit"]):not([type="button"]),
.mm-glass-form .gform_wrapper select,
.mm-glass-form .gform_wrapper textarea { color: var(--wp--preset--color--base, #062B57) !important; }
.mm-glass-form .gform_wrapper .gfield_required,
.mm-glass-form .gform_wrapper .gfield_required .gfield_required_asterisk { color: var(--wp--preset--color--gold, #FFC14D) !important; }
.mm-glass-form .gform_confirmation_message { color: #fff; font-weight: 600; }

/* Date field: the calendar toggle is a plain icon, not an orange button. */
.gform_wrapper.gform_wrapper .gform-datepicker-toggle.gform-theme-button {
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	block-size: auto !important;
	padding: 4px !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--wp--preset--color--accent-4, #8A97A8) !important;
	transform: none !important;
	filter: none !important;
}

/* Phones (Figma "Mobile v2 — Home"): the quote form sits on a light panel.
 * From / To side by side, date full width, Service hidden (it keeps its
 * default "Moving + Packing"), Name / Phone side by side. */
@media (max-width: 767px) {
	.mm-glass-form .gform_wrapper.gform_wrapper {
		--mm-gf-border: #D3DDEA;
		--mm-gf-label: #0E1A2B;
		--mm-gf-muted: #5A6B80;
		--mm-gf-error: #C62A0F;
		color: var(--wp--preset--color--ink, #5A6B80);
	}
	.mm-glass-form .gform_wrapper .gfield_label,
	.mm-glass-form .gform_wrapper .gform-field-label:not(.gform-field-label--type-sub) {
		font-weight: 500 !important;
		color: #0E1A2B !important;
	}
	.mm-glass-form .gform_wrapper .gfield_required,
	.mm-glass-form .gform_wrapper .gfield_required .gfield_required_asterisk { color: var(--wp--preset--color--accent-1, #F24E1E) !important; }
	.mm-glass-form .gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="hidden"]),
	.mm-glass-form .gform_wrapper select {
		border: 1px solid #D3DDEA !important;
		border-radius: 12px !important;
	}
	.mm-glass-form .gform_wrapper.gform_wrapper .gform_fields {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 10px !important;
		row-gap: 14px !important;
	}
	.mm-glass-form .gform_wrapper .gform_fields > .gfield { grid-column: span 1 !important; }
	.mm-glass-form .gform_wrapper .gform_fields > .gfield--type-date,
	.mm-glass-form .gform_wrapper .gform_fields > .gfield--width-full { grid-column: 1 / -1 !important; }
	.mm-glass-form .gform_wrapper .gform_fields > .gfield--type-select { display: none !important; }
	.mm-glass-form .gform_wrapper .gform_fields > .gform_validation_container { display: none !important; }
	.mm-glass-form .gform_wrapper .gform_footer { margin-top: 14px !important; }
	.mm-glass-form .gform_confirmation_message { color: #062B57; }
}

/* Date input full width with the calendar icon inside it, on the right. */
.gform_wrapper .ginput_container_date { position: relative; display: block !important; }
.gform_wrapper .ginput_container_date input.datepicker { width: 100% !important; padding-right: 44px !important; }
.gform_wrapper .ginput_container_date .gform-datepicker-toggle {
	position: absolute !important;
	top: 50%;
	right: 10px;
	margin: 0 !important;
	transform: translateY(-50%) !important;
}
