@media (min-width: 769px) {
	.faq-page #wrap {
		min-width: 0;
	}

	.faq-page #container {
		width: auto;
		max-width: 1180px;
		padding-left: 20px;
		padding-right: 20px;
		box-sizing: border-box;
	}
}

.faq-page,
.faq-page * {
	box-sizing: border-box;
}

.faq-page {
	color: var(--mt-ink);
	line-height: 1.7;
	margin-bottom: 40px;
}

.faq-page p {
	margin: 0;
}

/* ---------- Page header ---------- */

.faq-page__header {
	margin: 8px 0 28px;
}

.faq-page__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	color: var(--mt-muted);
	font-size: 12.5px;
	font-weight: 600;
}

.faq-page__breadcrumb li {
	display: inline-flex;
	align-items: center;
}

.faq-page__breadcrumb li + li::before {
	content: "›";
	margin-right: 8px;
	color: var(--mt-muted);
}

.faq-page__breadcrumb a {
	color: var(--mt-muted);
	text-decoration: none;
}

.faq-page__breadcrumb a:hover {
	color: var(--mt-navy-800);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.faq-page__title,
#container .faq-page__title {
	margin: 0;
	color: var(--mt-navy-950);
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: 0;
}

.faq-page__lead {
	margin: 12px 0 0;
	color: var(--mt-muted);
	font-size: 15px;
	line-height: 1.85;
}

/* ---------- Category navigation ---------- */

.faq-categories {
	margin: 0 0 56px;
}

.faq-categories__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.faq-categories__list li {
	margin: 0;
}

.faq-categories__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	color: var(--mt-navy-950);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	height: 100%;
}

.faq-categories__link::after {
	content: "→";
	color: var(--mt-muted);
	font-size: 13px;
	font-weight: 700;
}

/* ---------- FAQ sections ---------- */

.faq-section {
	margin: 0 0 56px;
	scroll-margin-top: 88px;
}

.faq-section__head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--mt-line);
}

.faq-section__title,
#container .faq-section__title {
	margin: 0;
	color: var(--mt-navy-950);
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 700;
	line-height: 1.34;
	letter-spacing: 0;
}

/* ---------- FAQ items (accordion) ---------- */

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.faq-item__question {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	color: var(--mt-navy-950);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.55;
}

.faq-item__question::-webkit-details-marker,
.faq-item__question::marker {
	display: none;
	content: "";
}

.faq-item__q-label {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--mt-purple-100);
	color: var(--mt-navy-800);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
	margin-top: 3px;
}

.faq-item__q-text {
	flex: 1 1 auto;
}

.faq-item__icon {
	flex-shrink: 0;
	position: relative;
	width: 22px;
	height: 22px;
	margin-top: 4px;
	transition: transform 0.2s ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
	content: "";
	position: absolute;
	background: var(--mt-navy-800);
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-item__icon::before {
	top: calc(50% - 1px);
	left: 0;
	right: 0;
	height: 2px;
}

.faq-item__icon::after {
	top: 0;
	bottom: 0;
	left: calc(50% - 1px);
	width: 2px;
}

.faq-item[open] .faq-item__icon::after {
	opacity: 0;
	transform: rotate(90deg);
}

.faq-item__answer {
	padding: 0 22px 22px 70px;
	color: var(--mt-ink);
	font-size: 14.5px;
	line-height: 1.95;
	border-top: 1px solid var(--mt-line);
}

.faq-item__answer-inner {
	padding-top: 16px;
	position: relative;
}

.faq-item__answer-inner::before {
	content: "A";
	position: absolute;
	top: 16px;
	left: -48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--mt-navy-800);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.faq-item__answer p {
	margin: 0 0 12px;
}

.faq-item__answer p:last-child {
	margin-bottom: 0;
}

.faq-item__answer ul,
.faq-item__answer ol {
	margin: 8px 0 12px 1.5em;
	padding: 0;
}

.faq-item__answer li {
	margin: 0 0 6px;
}

.faq-item__answer a {
	color: var(--mt-navy-800);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.faq-item__answer a:hover {
	color: var(--mt-navy-950);
	text-decoration-thickness: 2px;
}

.faq-item__answer strong {
	color: var(--mt-navy-950);
	font-weight: 700;
}

/* ---------- Contact thank-you page (thanks.php) ---------- */
html.contact-thanks-html,
html:has(body.contact-thanks-page) {
	height: auto !important;
	min-height: 0 !important;
}

body.contact-thanks-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	height: auto !important;
	margin: 0;
}

body.contact-thanks-page > #wrap {
	min-height: 0 !important;
	height: auto !important;
}

body.contact-thanks-page #container {
	padding-bottom: 50px !important;
}

/* Push CTA + footer to viewport bottom; keep breadcrumb/title at top of #wrap */
body.contact-thanks-page .free-trial-cta--before-site-footer {
	margin-top: auto;
	flex-shrink: 0;
}

body.contact-thanks-page #footer {
	flex-shrink: 0;
	padding-bottom: 0 !important;
}

@media only screen and (max-width: 768px) {
	body.contact-thanks-page #footer {
		padding-bottom: 0 !important;
	}
}

.contact-thanks {
	margin: 0 0 24px;
}

.contact-thanks__card {
	padding: 40px 44px;
	text-align: center;
}

.contact-thanks__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.contact-thanks__message {
	margin: 0 0 12px;
	color: var(--mt-ink);
	font-size: 15px;
	line-height: 1.85;
}

.contact-thanks__message:last-of-type {
	margin-bottom: 28px;
}

.contact-thanks__actions {
	margin: 0;
}

/* Match #header.site-header .header-btn.cta (see css/common.css) */
.contact-thanks a.header-btn.cta {
	display: inline-block;
	padding: 9px 20px;
	border-radius: 6px;
	border: 1px solid #1e2d6e;
	color: #ffffff;
	background: #1e2d6e;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.contact-thanks a.header-btn.cta:hover {
	background: #2d3f94;
	border-color: #2d3f94;
	color: #ffffff;
	text-decoration: none;
}

@media (max-width: 600px) {
	.contact-thanks__card {
		padding: 28px 22px;
	}

	.contact-thanks__home {
		width: 100%;
	}
}

/* ---------- Inline contact form ---------- */

.faq-divider {
	border: none;
	border-top: 2px solid var(--mt-line);
	margin: 56px 0 48px;
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
	.faq-page__header {
		margin-bottom: 24px;
	}

	.faq-categories__list {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	}
}

@media (max-width: 600px) {
	.faq-categories__list {
		grid-template-columns: 1fr;
	}

	.faq-item__question {
		padding: 16px 18px;
		font-size: 15px;
		gap: 12px;
	}

	.faq-item__q-label {
		width: 22px;
		height: 22px;
		font-size: 12px;
	}

	.faq-item__answer {
		padding: 0 18px 18px 58px;
		font-size: 14px;
	}

	.faq-item__answer-inner::before {
		left: -42px;
		width: 22px;
		height: 22px;
		font-size: 12px;
	}

}
