/* ============================================================
   Quick Move-In Landing Page — quick-move-in.css
   McArthur Homes | Brand: Navy #1B365D · Gold #FEBF00
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
	--navy:        #1B365D;
	--navy-dark:   #122444;
	--navy-light:  #2a4d80;
	--gold:        #FEBF00;
	--gold-dark:   #d9a200;
	--accent-blue: #92ACD5;
	--white:       #ffffff;
	--off-white:   #F7F9FC;
	--text-main:   #1B365D;
	--text-muted:  #5a6e88;
	--border:      #d4dde9;
	--card-shadow: 0 4px 24px rgba(27,54,93,0.10);
	--radius-sm:   8px;
	--radius-md:   16px;
	--radius-lg:   32px;
	--font-display: "Proxima Nova", "proxima-nova", sans-serif;
	--font-body:    "Proxima Nova", "proxima-nova", sans-serif;
	--max-width:    1304px;
	--section-pad:  80px;
	/* Clearance for the site's fixed Elementor header (102px) plus a 24px
	   gap, so the sticky map doesn't slide underneath it. Bump this if the
	   header's height changes. */
	--qmi-sticky-top: 126px;
}

/* The WP admin bar pushes the fixed header down by its own height. */
body.admin-bar {
	--qmi-sticky-top: 158px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
.qmi-page *,
.qmi-page *::before,
.qmi-page *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.qmi-page {
	font-family: var(--font-body);
	color: var(--text-main);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

/* ── Utility Buttons ──────────────────────────────────────── */
.qmi-btn {
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: var(--radius-lg);
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.qmi-btn--primary {
	background: var(--navy);
	color: var(--white);
	border-color: var(--navy);
}
.qmi-btn--primary:hover {
	background: var(--navy-dark);
	border-color: var(--navy-dark);
}

.qmi-btn--gold {
	background: var(--gold);
	color: #1B365D!important;
	border-color: var(--gold);
	font-family: "Proxima Nova";
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 165%;
	text-align: center;
}
.qmi-btn--gold:hover {
	background: var(--gold-dark);
	border-color: var(--gold-dark);
}

.qmi-btn--outline {
	font-family: "Proxima Nova"!important;
	font-size: 18px!important;
	font-style: normal!important;
	font-weight: 600!important;
	line-height: 165%!important;
	background: transparent!important;
	color: var(--navy)!important;
	border-color: none!important;
	text-decoration: underline!important;
}
.qmi-btn--outline:hover {
	background: var(--navy)!important;
	color: var(--white)!important;
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.qmi-hero {
	background: #FBF8F6;
	/* Horizontal padding matches .qmi-grid-section so the hero content lines up
	   with the cards below. Keep these two in sync. */
	padding: 60px 24px 30px;
}

.qmi-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 60px;
	/* width:100% is load-bearing — without it this box shrink-to-fits its text
	   and never reaches max-width. margin:0 auto replaces a justify-self:center
	   that did nothing, since .qmi-hero is a block, not a grid container. */
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
}

.qmi-hero__headline {
	font-weight: 700;
	color: var(--navy);
	font-family: "Proxima Nova";
	font-size: 48px;
	font-style: normal;
	line-height: 105%;
	margin-bottom: 36px;
}

.qmi-hero__sub {
	font-family: "Proxima Nova";
	font-size: 28px;
	font-style: normal;
	font-weight: 400;
	line-height: 135%;
	color: var(--navy);
}

.qmi-hero__sub br {
	display: block;
}

.qmi-hero__sub strong {
	font-weight: 600;
}

@media only screen and (min-width: 1024px) {
	.qmi-hero {
		padding: 90px 24px 40px;
	}

	.qmi-hero__headline {
		font-family: "Proxima Nova";
		font-size: 70px;
		font-style: normal;
		font-weight: 700;
		line-height: 125%;
		margin-bottom: 18px;
	}

	.qmi-hero__sub br {
		display: none;
	}
}

/* ── Filter Bar ───────────────────────────────────────────── */
.qmi-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	background: #B8C9E1;
	border-radius: 60px;
	padding: 16px;
}

.qmi-filter__group {
	flex: 1;
	width: 100%;
}

.qmi-filter__select {
	appearance: none;
	-webkit-appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231B365D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
	background-size: 16px;
	border: 2px solid #4E6D9E;
	border-radius: 60px;
	padding: 13px 44px 13px 20px;
	color: #1B365D;
	font-family: "Proxima Nova";
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 165%;
	cursor: pointer;
	width: 100%;
	transition: border-color 0.2s;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.qmi-filter__select option {
	color: var(--Navy, #1B365D);
	font-family: "Proxima Nova";
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 165%;
}

.qmi-filter__select:focus {
	outline: none;
	border-color: var(--navy);
}

/* ── Mobile filter toggle ─────────────────────────────────── */
/* Wraps the toggle and the panel so the pair sits tight together instead of
   inheriting .qmi-hero__inner's 60px gap. */
.qmi-filter-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Hidden above 900px, where the bar is always on screen. Styling deliberately
   mirrors .qmi-filter__select so the toggle reads as one more filter control —
   keep the two in sync.
   Scoped through .qmi-filter-wrap purely for specificity: the theme's reset.css
   styles bare `button` at (0,1,0) and Elementor's kit at (0,1,1), both of which
   would otherwise beat a lone class selector. */
.qmi-filter-wrap .qmi-filter-toggle {
	display: none;
}

.qmi-filter__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.qmi-filter__actions button,
.qmi-filter__actions a {
	min-width: 158px;
	border: 2px solid #1B365D;
}

.qmi-filter__apply {
	background: var(--gold) !important;
	color: var(--navy) !important;
	border: none !important;
	border-radius: 34px !important;
	padding: 24px 36px !important;
	font-family: "Proxima Nova" !important;
	font-size: 18px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	white-space: nowrap !important;
	line-height: 1 !important;
	display: inline-block !important;
	text-align: center !important;
	text-decoration: none !important;
	margin-left: 36px ;
}

.qmi-filter__apply:hover {
	background: var(--gold-dark) !important;
}

.qmi-filter__reset {
	font-family: "Proxima Nova";
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	text-decoration: none;
	padding: 22px 34px;
	border-radius: 35px;
	border: 2px solid #4E6D9E;
	background: #FFF;
	transition: all 0.2s;
	white-space: nowrap;
	display: inline-block;
	text-align: center;
	line-height: 1;
	color: var(--navy);
}

.qmi-filter__reset:hover {
	background: transparent;
	border-color: var(--navy);
	color: var(--navy);
}

@media only screen and (min-width: 1024px) {
	.qmi-filter__group {
		max-width: 100%;
	}

	.qmi-filter__actions {
		margin-left: auto;
		margin-top: unset;
	}
}

/* ════════════════════════════════════════════════════════════
   HOMES GRID
   ════════════════════════════════════════════════════════════ */
.qmi-grid-section {
	padding: 40px 24px 60px;
	background: #FBF8F6;
}

.qmi-grid-section__inner {
	max-width: var(--max-width);
	margin: 0 auto;
}

.qmi-grid-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 28px;
}

.qmi-grid-count {
	font-size: 0.9rem;
	color: var(--text-muted);
	font-weight: 500;
}

/* ── Split: cards left, map right ─────────────────────────── */
/* Stacks below 1200px (see RESPONSIVE) rather than the usual 1023px: at
   1024px each half is only ~470px, which leaves the two card columns too
   narrow to read. */
.qmi-split {
	display: grid;
	/* 60/40 rather than an even split: at 50/50 the two card columns land
	   around 300px, which is narrower than the 340px the cards were designed
	   for. The map reads fine at the smaller share. */
	grid-template-columns: 3fr 2fr;
	gap: 40px;
	align-items: start;
}

.qmi-split__map {
	/* align-self is load-bearing for the sticky below — a grid item stretches
	   to the row height by default, and a full-height box has nothing to
	   stick within. */
	position: sticky;
	top: var(--qmi-sticky-top);
	align-self: start;
	height: calc(100vh - var(--qmi-sticky-top) - 24px);
	max-height: 760px;
}

/* .qmi-map itself is styled in qmi-map.css — shared with [communities_map]. */

/* ── No map: no API key, or nothing plottable ─────────────── */
.qmi-split--nomap {
	grid-template-columns: 1fr;
}

.qmi-split--nomap .qmi-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qmi-grid {
	display: grid;
	/* Two cards max — the other half of the row belongs to the map.
	   minmax(0, …) instead of a bare 1fr so a long title can't blow the
	   column past its share. */
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	transition: opacity 0.3s ease;
}

.qmi-grid.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* ── Card ─────────────────────────────────────────────────── */
.qmi-card {
	background: var(--white);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
	border-radius: 15px;
	border: 2px solid #92ACD5;
	background: #FFF;
	
	backdrop-filter: blur(4px);
}

.qmi-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(27,54,93,0.16);
}

.qmi-card__image-wrap {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16/10;
}

.qmi-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.qmi-card:hover .qmi-card__image {
	transform: scale(1.04);
}

/* Ribbon badge */
/* .qmi-card__badge lives in qmi-badge.css — shared with [home_badge]. Only its
   placement inside the card belongs here; the shortcode's absolute mode keeps
   its neutral 0,0 anchor. 1.5rem lines the ribbon up with .qmi-card__location
   below it — keep the two in step. */
.qmi-card__image-wrap .qmi-card__badge--absolute {
	left: 1.5rem;
}

.qmi-card__location {
	position: absolute;
	bottom: 0px;
	left: 24px;
	display: flex;
	align-items: center;
	gap: 5px;
	border-radius: 5px 5px 0 0;
	background: #4E6D9E;
	padding: 8px 12px 12px 12px;
	font-family: "Proxima Nova";
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 145%;
	color: #FBF8F6;

}

.qmi-card__banner {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(27, 54, 93, 0.88);
	color: var(--white);
	font-family: "Proxima Nova";
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 10px 16px;
	backdrop-filter: blur(4px);
}

.qmi-card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.qmi-card__title {
	font-family: #1B365D;
	font-weight: 700;
	margin-bottom: 6px;
	line-height: 1.2;
	font-family: "Proxima Nova";
	font-size: 36px;
	font-style: normal;
	font-weight: 600;
	line-height: 125%;;
}

.qmi-card__title a {
	color: #1B365D!important;
font-weight: 700;
margin-bottom: 6px;
line-height: 1.2;
font-family: "Proxima Nova";
font-size: 36px;
font-style: normal;
font-weight: 600;
line-height: 125%;;
}
.qmi-card__title a:hover { color: var(--navy-light); }

.qmi-card__community {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.qmi-card__price {
	font-family: "Proxima Nova";
	font-size: 24px;
	font-style: normal;
	font-weight: 600;
	line-height: 135%;
	color: #4E6D9E;
	padding-bottom: 28px;
}


.qmi-card__specs {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
	padding-top: 28px;
	border-top: 1px solid var(--border);
	gap: 20px;
}

.qmi-card__spec {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #4E6D9E;
	font-family: "Proxima Nova";
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 145%;
}

.qmi-card__spec svg {
	color: var(--navy);
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}


/* ── No Results ───────────────────────────────────────────── */
.qmi-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 24px;
	color: var(--text-muted);
	font-size: 1rem;
}

.qmi-reset-btn {
	background: none;
	border: none;
	color: var(--navy);
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	font-family: var(--font-body);
}

/* ════════════════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════════════════ */
.qmi-faq {
	padding: 60px 72px;
	background: #FBF8F6;
}

.qmi-faq__inner {
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: start;
	max-width: 1304px;
}

/* ── FAQ Image Carousel ───────────────────────────────────── */
.qmi-faq__image {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--off-white);
	box-shadow: var(--card-shadow);
	height: 100%;
	max-width: 656px;
}

.qmi-faq__carousel {
	position: absolute;
	inset: 0;
}

.qmi-faq__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.qmi-faq__slide.is-active {
	opacity: 1;
}

.qmi-faq__dots {
	position: absolute;
	bottom: 16px;
	left: 20px;
	display: flex;
	gap: 6px;
	z-index: 10;
	align-items: center;
}

.qmi-faq__dot {
	width: 12px!important;
	height: 12px!important;
	border-radius: 50%;
	background: #EEE3DB;
	border: none;
	cursor: pointer;
	padding: 0!important;
	transition: width 0.3s ease, border-radius 0.3s ease;
	flex-shrink: 0;
}

.qmi-faq__dot.is-active {
	width: 27px!important;
	border-radius: 6px;
}

.qmi-faq__dot:hover {
	opacity: 0.8;
}

/* ── FAQ Content ──────────────────────────────────────────── */
.qmi-faq__title {
	font-family: "Proxima Nova";
	font-size: 40px;
	font-style: normal;
	font-weight: 600;
	line-height: 125%;
	margin-bottom: 28px;
}

/* ── Accordion ────────────────────────────────────────────── */
.qmi-accordion {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 32px;
}

.qmi-accordion__item {
	border-bottom: 1px solid var(--border);
}

.qmi-accordion__item:first-child {
	border-top: 1px solid var(--border);
}

.qmi-accordion__q {
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 4px;
	color: #4E6D9E;
	font-family: "Proxima Nova";
	font-size: 20px;
	font-style: normal;
	font-weight: 800;
	line-height: 125%;
	cursor: pointer;
}

.qmi-accordion__icon {
	flex-shrink: 0;
	margin-left: 16px;
	transition: transform 0.3s ease;
	display: block;
}

details[open] .qmi-accordion__q .qmi-accordion__icon {
	transform: rotate(180deg);
}

.qmi-accordion__a {
	padding: 0 4px 18px;
	color: #4E6D9E;
	font-family: "Proxima Nova";
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 145%;
}

.qmi-faq__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
}

/* ════════════════════════════════════════════════════════════
   BRAND STRIP
   ════════════════════════════════════════════════════════════ */
.qmi-brand-strip {
	background: #FBF8F6;
	padding: 60px 72px 90px;
}

.qmi-brand-strip__inner {
	max-width: 1304px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 3fr 6fr;
	gap: 60px;
	align-items: flex-start;
	background: linear-gradient(180deg, #132641 0.42%, #1B365D 100%);
	border-radius: 25px;
	border: 6px solid #92ACD5;
	padding: 52px 60px;
}

.qmi-brand-strip__left {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.qmi-brand-strip__left a {
	max-width: 266px;
}

.qmi-brand-strip__right .qmi-btn--gold {
	display: none;
}

.qmi-brand-strip__left h2 {
	font-family: "Proxima Nova";
	font-size: 32px;
	font-style: normal;
	font-weight: 600;
	line-height: 135%;
	color: #F6F6F7;
}

.qmi-brand-strip__right p {
	color: #FFF !important;
	font-family: "Proxima Nova";
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 145%;
}

/* ════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════ */
.qmi-contact {
	position: relative;
	padding: 90px 120px 60px 120px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.qmi-contact__overlay {
	position: absolute;
	inset: 0;
	background: rgba(18, 36, 68, 0.75);
	z-index: 0;
}

.qmi-contact__inner {
	position: relative;
	z-index: 1;
	max-width: 1304px;
	margin: 0 auto;
	display: flex;
	gap: 120px;
	align-items: start;
}

.qmi-contact__title {
	color: #FBF8F6;
	font-family: "Proxima Nova";
	font-size: 40px;
	font-style: normal;
	font-weight: 600;
	line-height: 125%;
	margin-bottom: 12px;
	text-wrap: nowrap;
}

.qmi-contact__text p {
	color: #FBF8F6!important;
	font-family: "Proxima Nova";
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 125%;
	max-width: 382px;
}


.qmi-contact__text p a {
	text-decoration-line: underline;
	text-decoration-style: solid;
	text-decoration-skip-ink: none;
	text-decoration-thickness: auto;
	text-underline-offset: auto;
	color: #FBF8F6!important;
}

.qmi-contact__form {
	background: var(--white);
	border-radius: var(--radius-md);
	padding: 40px;
	box-shadow: var(--card-shadow);
}

/* HubSpot overrides */
.qmi-contact__form .hs-form .hs-input {
	width: 100% !important;
	border: 2px solid var(--border) !important;
	border-radius: var(--radius-sm) !important;
	padding: 12px 14px !important;
	font-family: var(--font-body) !important;
	font-size: 0.9rem !important;
	color: var(--navy) !important;
}

.qmi-contact__form .hs-form .hs-button {
	background: var(--gold) !important;
	color: var(--navy) !important;
	border: none !important;
	border-radius: var(--radius-lg) !important;
	font-family: var(--font-body) !important;
	font-weight: 700 !important;
	padding: 13px 32px !important;
	cursor: pointer !important;
}

/* ── Contact Form iFrame ──────────────────────────────────── */
.qmi-contact__form {
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

.qmi-contact__iframe {
	width: 100%;
	display: block;
	border: none;
	border-radius: 1.5625rem;
	box-shadow: 8px 8px 12px 0 rgba(0, 0, 0, 0.10);
	height: 1500px;
}

@media only screen and (min-width: 500px) {
	.qmi-contact__iframe {
		height: 1400px;
	}
}

@media only screen and (min-width: 600px) {
	.qmi-contact__iframe {
		height: 1350px;
	}
}

@media only screen and (min-width: 690px) {
	.qmi-contact__iframe {
		height: 940px;
	}
}

@media only screen and (min-width: 1025px) {
	.qmi-contact__iframe {
		height: 950px;
	}
}

/* ════════════════════════════════════════════════════════════
   LOADING SPINNER
   ════════════════════════════════════════════════════════════ */
.qmi-spinner {
	display: none;
	width: 40px;
	height: 40px;
	border: 3px solid var(--border);
	border-top-color: var(--navy);
	border-radius: 50%;
	animation: qmi-spin 0.8s linear infinite;
	margin: 40px auto;
}

.qmi-spinner.is-visible { display: block; }

@keyframes qmi-spin {
	to { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
   
   @media only screen and (max-width: 1400px) {
	   .qmi-brand-strip__inner {
		   grid-template-columns: 5fr 6fr;
	   }
   }

/* Below this the two halves are too narrow to hold two readable cards, so the
   map stops being a column and becomes a banner above the listings. */
@media (max-width: 1200px) {
	.qmi-split {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.qmi-split__map {
		/* Source order is list-then-map; pull the map above the cards here. */
		order: -1;
		position: static;
		height: 320px;
		max-height: none;
	}
}

@media (max-width: 1023px) {
	.qmi-split--nomap .qmi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.qmi-split--nomap .qmi-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 900px) {
	.qmi-faq__inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.qmi-brand-strip__inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 40px 32px;
	}

	.qmi-filter-wrap .qmi-filter-toggle {
		display: block;
		width: 100%;
		appearance: none;
		-webkit-appearance: none;
		text-align: center;
		background: #fff;
		border: 2px solid #4E6D9E;
		border-radius: 60px;
		padding: 1.5rem 2.25rem;
		color: #1B365D;
		font-family: "Proxima Nova";
		font-size: 18px;
		font-style: normal;
		font-weight: 600;
		line-height: 1;
		cursor: pointer;
		transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	}

	/* :focus as well as :focus-visible — Elementor's kit paints a pink background
	   on plain :focus, which would otherwise show through on tap. */
	.qmi-filter-wrap .qmi-filter-toggle:hover,
	.qmi-filter-wrap .qmi-filter-toggle:focus,
	.qmi-filter-wrap .qmi-filter-toggle:focus-visible,
	.qmi-filter-wrap .qmi-filter-toggle:active {
		outline: none;
		background: var(--navy);
		border-color: var(--navy);
		color: #fff;
	}

	/* Slide down / up. Animating grid-template-rows between 0fr and 1fr resolves
	   to the form's natural height, so nothing here has to guess a max-height —
	   which matters because the community dropdown is conditionally rendered. */
	.qmi-filter-panel {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows 0.3s ease;
	}

	.qmi-filter-panel.is-open {
		grid-template-rows: 1fr;
	}

	.qmi-filter-panel > .qmi-filter {
		overflow: hidden;
		/* Grid items floor at min-content without this, so the row never reaches 0. */
		min-height: 0;
		/* Block padding has to go too, or the collapsed panel keeps its 16px top and
		   bottom and leaves a 32px sliver — min-height only zeroes the content box.
		   Animated in step with the row so the slide stays smooth. */
		padding-top: 0;
		padding-bottom: 0;
		/* Keeps the collapsed controls out of the tab order. visibility transitions
		   discretely: instant on the way in, held until the slide finishes on the
		   way out. */
		visibility: hidden;
		transition: visibility 0.3s, padding 0.3s ease;
	}

	.qmi-filter-panel.is-open > .qmi-filter {
		visibility: visible;
		padding-top: 16px;
		padding-bottom: 16px;
	}

	.qmi-filter {
		flex-direction: column;
		align-items: stretch;
		border-radius: 24px;
		gap: 8px;
	}

	.qmi-filter__group {
		width: 100%;
	}

	.qmi-filter__select {
		width: 100%;
	}

	.qmi-filter__actions {
		flex-direction: column;
		gap: 8px;
		width: 100%;
		margin-top: 36px;
	}

	.qmi-filter__apply, .qmi-btn--outline {
		width: 100% !important;
		text-align: center !important;
		justify-content: center !important;
		margin-left: unset;
		
	}

	.qmi-filter__reset {
		width: 100%;
		text-align: center;
	}

	.qmi-contact__title {
		text-wrap: wrap;
	}

	.qmi-hero {
		padding-top: 40px;
		padding-bottom: 20px;
		padding-left: 24px;
		padding-right: 24px;
	}

	.qmi-grid-section {
		padding-top: 30px;
		padding-bottom: 30px;
	}

	.qmi-faq {
		padding-top: 30px;
		padding-bottom: 30px;
		padding-left: 15px;
		padding-right: 15px;
	}

	.qmi-faq__image {
		height: 360px;
	}

	.qmi-brand-strip {
		padding-top: 30px;
		padding-bottom: 30px;
		padding-left: 15px;
		padding-right: 15px;
	}

	.qmi-brand-strip__left a {
		display: none;
	}

	.qmi-brand-strip__right .qmi-btn--gold {
		display: inline-block;
		margin-top: 20px;
		width: 100%;
	}

	.qmi-contact {
		padding-top: 60px;
		padding-bottom: 60px;
		padding-left: 15px;
		padding-right: 15px;
	}

	.qmi-contact__inner {
		flex-direction: column;
		gap: 40px;
	}
}

@media (max-width: 640px) {
	:root { --section-pad: 52px; }

	.qmi-faq__image {
		order: 2;
	}

	.qmi-grid {
		grid-template-columns: 1fr;
	}

	.qmi-hero {
		padding-top: 40px;
	}

	.qmi-contact__form {
		padding: 24px 18px;
	}

	.qmi-faq__actions {
		flex-direction: column;
		align-items: flex-start;
	}
}

.qmi-filter__apply.desktop { display: inline-block !important;	margin-left: unset!important; }
.qmi-filter__apply.mobile  { display: none !important; }

@media (max-width: 1023px) {
	.qmi-filter__apply.desktop { display: none !important; }
	.qmi-filter__apply.mobile  { display: inline-block !important; }
	
}