/* ==========================================================================
   MaxxedOut — FAQ
   ========================================================================== */

.mxo-scope.mxo-faq { --faq-card: var(--mx-mist); }
.mxo-scope.mxo-faq.mxo-surface--mist { --faq-card: var(--mx-white); }
.mxo-scope.mxo-faq.mxo-surface--navy,
.mxo-scope.mxo-faq.mxo-surface--blue { --faq-card: var(--s-card-2); }

.mxo-scope.mxo-faq--split .mxo-faq__in {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
	gap: clamp(40px, 6vw, 100px);
	align-items: start;
}
.mxo-scope.mxo-faq--split .mxo-faq__side {
	position: sticky;
	top: calc(var(--mxo-header-h, 80px) + 32px);
	display: grid;
	gap: 36px;
}
.mxo-scope.mxo-faq--split .mxo-faq__head { margin-bottom: 0; }
.mxo-scope.mxo-faq--stacked .mxo-faq__main {
	max-width: 880px;
	margin-inline: auto;
}

/* tabs */
.mxo-scope .mxo-faq__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}
.mxo-scope.mxo-faq--stacked .mxo-faq__tabs { justify-content: center; }
.mxo-scope .mxo-faq__tab {
	padding: 11px 20px;
	font-size: 15px;
	font-weight: 600;
	color: var(--s-ink);
	background: var(--faq-card);
	border-radius: 999px;
	transition: color 0.25s var(--mx-ease), background-color 0.25s var(--mx-ease);
}
.mxo-scope .mxo-faq__tab:hover { color: var(--s-accent); }
.mxo-scope .mxo-faq__tab.is-active {
	color: var(--mx-white);
	background: var(--mx-blue);
}

/* accordion */
.mxo-scope .mxo-faq__list { border-top: 1px solid var(--s-line); }
.mxo-scope .mxo-faq__item {
	border-bottom: 1px solid var(--s-line);
}
.mxo-scope .mxo-faq__item.is-hidden { display: none; }
.mxo-scope .mxo-faq__h { margin: 0; }
.mxo-scope .mxo-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 26px 0;
	font-size: 19.5px;
	font-weight: 650;
	font-stretch: 102%;
	line-height: 1.4;
	letter-spacing: -0.005em;
	text-align: left;
	color: var(--s-ink);
	transition: color 0.25s var(--mx-ease);
}
.mxo-scope .mxo-faq__q:hover,
.mxo-scope .mxo-faq__item.is-open .mxo-faq__q { color: var(--s-accent); }
.mxo-scope .mxo-faq__icon {
	position: relative;
	display: block;
	width: 38px;
	height: 38px;
	flex: none;
	background: var(--faq-card);
	border-radius: 50%;
	transition: background-color 0.3s var(--mx-ease);
}
.mxo-scope .mxo-faq__icon i {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 2px;
	margin: -1px 0 0 -7px;
	background: var(--s-accent);
	border-radius: 2px;
	transition: transform 0.4s var(--mx-ease-expo), background-color 0.3s var(--mx-ease);
}
.mxo-scope .mxo-faq__icon i:nth-child(2) { transform: rotate(90deg); }
.mxo-scope .mxo-faq__item.is-open .mxo-faq__icon { background: var(--mx-blue); }
.mxo-scope .mxo-faq__item.is-open .mxo-faq__icon i { background: var(--mx-white); }
.mxo-scope .mxo-faq__item.is-open .mxo-faq__icon i:nth-child(2) { transform: rotate(0deg); }

.mxo-scope .mxo-faq__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.5s var(--mx-ease-expo);
}
.mxo-scope .mxo-faq__item.is-open .mxo-faq__panel { grid-template-rows: 1fr; }
.mxo-scope .mxo-faq__a {
	min-height: 0;
	overflow: hidden;
	font-size: 17px;
	line-height: 1.75;
	color: var(--s-body);
}
.mxo-scope .mxo-faq__a p {
	max-width: 70ch;
	padding: 0 62px 28px 0;
	opacity: 0;
	transform: translate3d(0, -6px, 0);
	transition: opacity 0.35s var(--mx-ease), transform 0.5s var(--mx-ease-expo);
}
.mxo-scope .mxo-faq__item.is-open .mxo-faq__a p {
	opacity: 1;
	transform: none;
	transition-delay: 0.08s;
}

/* help card */
.mxo-scope .mxo-faq__card {
	display: flex;
	gap: 18px;
	padding: 28px;
	background: var(--faq-card);
	border-radius: var(--mx-radius-lg);
}
.mxo-scope .mxo-faq__card--inline { margin-top: 44px; }
.mxo-scope .mxo-faq__card-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	flex: none;
	color: var(--mx-white);
	background: var(--mx-blue);
	border-radius: 50%;
}
.mxo-scope .mxo-faq__card-body {
	display: grid;
	gap: 8px;
	min-width: 0;
}
.mxo-scope .mxo-faq__card-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--s-ink);
}
.mxo-scope .mxo-faq__card-text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--s-body);
}
.mxo-scope .mxo-faq__card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	padding-top: 12px;
}
.mxo-scope .mxo-faq__card .mxo-phone__icon { width: 44px; height: 44px; }
.mxo-scope.mxo-faq.mxo-surface--white .mxo-faq__card .mxo-phone__icon { background: var(--mx-white); }
.mxo-scope .mxo-faq__card .mxo-phone__num { font-size: 19px; }

@media (max-width: 1024px) {
	.mxo-scope.mxo-faq--split .mxo-faq__in { grid-template-columns: minmax(0, 1fr); }
	.mxo-scope.mxo-faq--split .mxo-faq__side { position: static; }
	.mxo-scope.mxo-faq--split .mxo-faq__card { order: 3; }
	.mxo-scope.mxo-faq--split .mxo-faq__in { display: flex; flex-direction: column; }
	.mxo-scope.mxo-faq--split .mxo-faq__side { display: contents; }
	.mxo-scope.mxo-faq--split .mxo-faq__head { order: 1; }
	.mxo-scope.mxo-faq--split .mxo-faq__main { order: 2; width: 100%; }
}
@media (max-width: 767px) {
	.mxo-scope .mxo-faq__q { font-size: 17.5px; padding: 22px 0; gap: 16px; }
	.mxo-scope .mxo-faq__a { font-size: 16.5px; }
	.mxo-scope .mxo-faq__a p { padding-right: 0; }
	.mxo-scope .mxo-faq__card { flex-direction: column; padding: 24px; }
	.mxo-scope .mxo-faq__tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: calc(var(--mx-gutter) * -1);
		padding-inline: var(--mx-gutter);
		scrollbar-width: none;
	}
	.mxo-scope .mxo-faq__tabs::-webkit-scrollbar { display: none; }
	.mxo-scope .mxo-faq__tab { white-space: nowrap; }
}
