/* FAQ module — mobile-first. Sidebar is omitted entirely on mobile server-side
   (wp_is_mobile()), not hidden via CSS, so there's no extra markup here for it. */

.myio-faq {
	padding: 32px 0 40px;
	background: linear-gradient(180deg, #fff8f3 0%, #fff 100%);
}

.myio-faq__head {
	text-align: center;
	margin-bottom: 24px;
}

.myio-faq__eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ff4d72;
}

.myio-faq__heading {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1.3;
}

.myio-faq__desc {
	margin: 0 auto;
	max-width: 480px;
	font-size: 13px;
	color: #666;
}

.myio-faq__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Sidebar (desktop/tablet only — see PHP) ── */

.myio-faq__sidebar {
	background: #fff0f3;
	border-radius: 16px;
	padding: 28px 22px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.myio-faq__sidebar-icon {
	display: inline-flex;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #ffd9e1;
	color: #ff4d72;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.myio-faq__sidebar-icon svg {
	width: 22px;
	height: 22px;
}

.myio-faq__sidebar-title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 800;
	color: #1a1a1a;
}

.myio-faq__sidebar-sub {
	margin: 0 0 18px;
	font-size: 13px;
	color: #777;
}

.myio-faq__contacts {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	text-align: left;
}

.myio-faq__contacts li {
	border-top: 1px solid #ffe0e6;
	padding: 12px 0;
}

.myio-faq__contacts li:first-child {
	border-top: none;
}

.myio-faq__contacts li > a,
.myio-faq__contacts li > span {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #1a1a1a;
	font-size: 13px;
}

.myio-faq__contact-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
}

.myio-faq__contact-icon svg {
	width: 16px;
	height: 16px;
}

.myio-faq__contact-icon--whatsapp { color: #25d366; }
.myio-faq__contact-icon--support { color: #ff4d72; }
.myio-faq__contact-icon--email { color: #ff4d72; }

.myio-faq__contacts small {
	color: #888;
	font-weight: 400;
}

.myio-faq__contact-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	justify-content: center;
	padding: 12px 0;
	border-radius: 999px;
	background: #ff4d72;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.myio-faq__contact-cta svg {
	width: 16px;
	height: 16px;
}

/* ── Accordion list ── */

.myio-faq__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.myio-faq__item {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.myio-faq__item-head {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: none;
	border: none;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.myio-faq__item-num {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #f5f5f5;
	color: #999;
	font-size: 11px;
	font-weight: 700;
}

.myio-faq__item.is-open .myio-faq__item-num {
	background: #ffd9e1;
	color: #ff4d72;
}

.myio-faq__item-question {
	flex: 1;
	font-size: 13px;
	font-weight: 700;
	color: #1a1a1a;
}

.myio-faq__item-chevron {
	flex-shrink: 0;
	display: flex;
	color: #999;
	transition: transform 0.2s ease;
}

.myio-faq__item-chevron svg {
	width: 16px;
	height: 16px;
}

.myio-faq__item.is-open .myio-faq__item-chevron {
	transform: rotate(180deg);
	color: #ff4d72;
}

.myio-faq__item-body {
	display: none;
	padding: 0 16px 16px 54px;
}

.myio-faq__item.is-open .myio-faq__item-body {
	display: block;
}

.myio-faq__item-body p {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #666;
}

/* ── Tablet and up ── */
@media (min-width: 768px) {
	.myio-faq {
		padding: 48px 0 56px;
	}

	.myio-faq__heading {
		font-size: 30px;
	}

	.myio-faq__desc {
		font-size: 15px;
	}

	.myio-faq__body {
		flex-direction: row;
		align-items: flex-start;
		gap: 28px;
	}

	.myio-faq__sidebar {
		flex: 0 0 280px;
		position: sticky;
		top: 20px;
	}

	.myio-faq__list {
		flex: 1;
	}

	.myio-faq__item-question {
		font-size: 15px;
	}

	.myio-faq__item-body {
		padding-left: 58px;
	}

	.myio-faq__item-body p {
		font-size: 14px;
	}
}
