/* ==========================================================================
   Forms: Fluent Forms (Inherit Theme Style) in brand form cards.
   Card = white, orange top rule, sharp corners; sidebar variant = navy.
   ========================================================================== */
.mm-form-card {
	position: relative;
	background: #fff;
	color: var(--mm-ink);
	padding: clamp(24px, 3vw, 40px);
	border-top: 4px solid var(--mm-orange);
	box-shadow: var(--mm-shadow);
}
.mm-form-card > * { margin: 0 !important; }
.mm-form-card > * + * { margin-top: 1.1rem !important; }
.mm-form-card__title {
	font-family: var(--mm-display) !important;
	font-weight: 400 !important;
	font-size: clamp(1.6rem, 2.4vw, 2.2rem) !important;
	line-height: 1 !important;
	letter-spacing: .01em !important;
	text-transform: uppercase;
	color: var(--mm-navy) !important;
}
.mm-form-card__sub { color: var(--mm-muted); }
.mm-form-card__note { font-size: .875rem; color: var(--mm-muted); display: flex; gap: 8px; align-items: center; }
.mm-form-card__note::before { content: ""; width: 14px; height: 14px; background: var(--mm-orange); -webkit-mask: url("../../icons/shield.svg") center / contain no-repeat; mask: url("../../icons/shield.svg") center / contain no-repeat; }

/* --------------------------------------------------------------------------
   Fluent Forms fields
   -------------------------------------------------------------------------- */
.frm-fluent-form { --ff-gap: 14px; container-type: inline-size; font-family: var(--mm-body); }
.frm-fluent-form .ff-el-group { margin-bottom: var(--ff-gap) !important; }
.frm-fluent-form .ff-t-container { display: flex; flex-wrap: wrap; gap: 0 var(--ff-gap); }
.frm-fluent-form .ff-t-cell { flex: 1 1 200px !important; width: auto !important; max-width: 100%; padding: 0 !important; min-width: 0; }
/* 4-field rows: all four in a row when they fit, otherwise 2 + 2 (never 3 + 1) */
@container (max-width: 841px) {
	.frm-fluent-form .ff-t-container:has(> .ff-t-cell:nth-child(4):last-child) > .ff-t-cell { flex-basis: max(200px, calc(50% - var(--ff-gap))) !important; }
}
.frm-fluent-form .ff-el-input--label { margin-bottom: 6px !important; }
.frm-fluent-form .ff-el-input--label label {
	font-family: var(--mm-cond);
	font-size: .8125rem !important;
	font-weight: 700 !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mm-navy);
}
.frm-fluent-form .ff-el-is-required.asterisk-right label::after { color: var(--mm-orange) !important; margin-left: 3px; }
.frm-fluent-form .ff-el-form-control {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px !important;
	border: 1px solid transparent !important;
	border-bottom: 2px solid var(--mm-navy) !important;
	border-radius: 0 !important;
	background: var(--mm-sand) !important;
	color: var(--mm-ink) !important;
	font: 400 1rem/1.4 var(--mm-body) !important;
	box-shadow: none !important;
	transition: border-color .25s, background-color .25s;
}
.frm-fluent-form .ff-el-form-control::placeholder { color: #8a9496; opacity: 1; }
.frm-fluent-form .ff-el-form-control:hover { background: #f1e6d7 !important; }
.frm-fluent-form .ff-el-form-control:focus { outline: none; border-bottom-color: var(--mm-orange) !important; background: #fff !important; box-shadow: 0 0 0 1px var(--mm-orange) inset !important; }
.frm-fluent-form select.ff-el-form-control {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 42px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052A31' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 16px !important;
}
.frm-fluent-form select.ff-el-form-control:has(option[value=""]:checked) { color: #8a9496 !important; }
.frm-fluent-form select.ff-el-form-control option { color: var(--mm-ink); }
/* intl-tel-input (phone): flag sprite paths are relative to the plugin */
.frm-fluent-form .iti { width: 100%; --iti-path-flags-1x: url("/wp-content/plugins/fluentformpro/public/libs/intl-tel-input/img/flags.webp"); --iti-path-flags-2x: url("/wp-content/plugins/fluentformpro/public/libs/intl-tel-input/img/flags@2x.webp"); --iti-path-globe-1x: url("/wp-content/plugins/fluentformpro/public/libs/intl-tel-input/img/globe.webp"); --iti-path-globe-2x: url("/wp-content/plugins/fluentformpro/public/libs/intl-tel-input/img/globe@2x.webp"); }
.frm-fluent-form .iti input.ff-el-form-control { padding-left: 54px !important; }
/* terms checkbox */
.frm-fluent-form .ff-el-tc { font-size: .875rem; line-height: 1.5; color: var(--mm-muted); }
.frm-fluent-form .ff-el-tc label { display: flex !important; gap: 12px; align-items: flex-start; }
.frm-fluent-form input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mm-orange); border-radius: 0; }
/* submit */
.frm-fluent-form .ff_submit_btn_wrapper { margin-top: 6px !important; }
.frm-fluent-form .ff-btn-submit {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 58px;
	padding: 14px 24px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--mm-orange) !important;
	color: #fff !important;
	font-family: var(--mm-cond) !important;
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	letter-spacing: .08em !important;
	text-transform: uppercase !important;
	cursor: pointer;
	transition: color .4s var(--mm-ease);
}
.frm-fluent-form .ff-btn-submit::before { content: ""; position: absolute; inset: -2px -30%; background: var(--mm-navy); transform: translateX(-102%) skewX(-29deg); transition: transform .55s var(--mm-ease); z-index: -1; }
.frm-fluent-form .ff-btn-submit:hover::before { transform: translateX(0) skewX(-29deg); }
.frm-fluent-form .ff-btn-submit::after { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--mm-i-arrow) center / contain no-repeat; mask: var(--mm-i-arrow) center / contain no-repeat; transition: transform .4s var(--mm-ease); }
.frm-fluent-form .ff-btn-submit:hover::after { transform: translateX(4px); }
.frm-fluent-form .ff-btn-submit:disabled { opacity: .6; }
/* messages */
.frm-fluent-form .error, .frm-fluent-form .text-danger { color: #b3261e !important; font-size: .8125rem; margin-top: 6px; font-weight: 500; }
.frm-fluent-form .ff-el-is-error .ff-el-form-control { border-bottom-color: #b3261e !important; }
.ff-message-success {
	border: 0 !important;
	box-shadow: none !important;
	padding: 28px 24px !important;
	background: var(--mm-navy) !important;
	color: #fff !important;
	font-family: var(--mm-display);
	font-size: 1.75rem;
	line-height: 1.05;
	text-transform: uppercase;
	text-align: center;
}
.ff-errors-in-stack { color: #b3261e; }
.grecaptcha-badge { visibility: hidden; }

/* Navy variant (sidebar quote card) */
.mm-sidebar__quote { background: var(--mm-navy); color: #fff; box-shadow: none; }
.mm-sidebar__quote .frm-fluent-form .ff-el-input--label label { color: #fff; }
.mm-sidebar__quote .frm-fluent-form .ff-el-form-control { background: #fff !important; border-bottom-color: var(--mm-orange) !important; }
.mm-sidebar__quote .frm-fluent-form .ff-el-tc { color: rgb(255 255 255 / .72); }
.mm-sidebar__quote .frm-fluent-form .ff-btn-submit::before { background: #fff; }
.mm-sidebar__quote .frm-fluent-form .ff-btn-submit:hover { color: var(--mm-navy) !important; }

/* Simple form pages (request-a-quote, contact2) */
.mm-form-page { padding: calc(var(--wp--custom--header--height) + clamp(48px, 7vw, 96px)) var(--mm-gutter) var(--mm-section); background: var(--mm-navy); position: relative; overflow: hidden; isolation: isolate; }
.mm-form-page::before { content: ""; position: absolute; right: -6vw; top: 12%; width: clamp(260px, 36vw, 560px); aspect-ratio: 400 / 345; background: var(--mm-orange); -webkit-mask: url("../../brand/elements/pattern-lines.svg") center / contain no-repeat; mask: url("../../brand/elements/pattern-lines.svg") center / contain no-repeat; z-index: -1; }
.mm-form-page__card { max-width: 920px; margin-inline: auto; }
.mm-form-page__card h1.mm-form-card__title, .mm-form-page__card h2.mm-form-card__title { font-size: var(--wp--preset--font-size--heading-lg) !important; }
