/*
 * FAQ accordion section — homepage [mr_faq], "Patient Inquiries" v7 design.
 * Every question bar is permanently dark-plum (not just when open) — that's
 * the reference's actual design, reproduced exactly.
 * Depends on: log-home-v7-shared.css
 */

.faq-wrap {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.faq-item {
	border: 1px solid rgba(212, 197, 232, .5);
	border-radius: 12px;
	overflow: hidden;
}

.faq-q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	background: #1e1440;
	border: none;
	color: #fff;
	text-align: left;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
}

@media (min-width: 768px) {
	.faq-q { padding: 24px; font-size: 20px; }
}

.faq-q .q-toggle {
	flex-shrink: 0;
	display: flex;
	color: #ffe088;
	transition: transform .3s;
}

.faq-q .q-toggle .icon {
	width: 20px;
	height: 20px;
}

.faq-item.open .faq-q .q-toggle { transform: rotate(45deg); }

.faq-a {
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s var(--ease, ease);
	background: #f8f5fb;
}

.faq-a p {
	margin: 0;
	padding: 16px 20px;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #4a3570;
}

@media (min-width: 768px) {
	.faq-a p { padding: 24px; font-size: 16px; }
}

/* ---- Reference layout: intro column + light accordion (home_page_7) ---- */
.v7-faq-grid { display: grid; gap: 28px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 1024px) {
	.v7-faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
}
.v7-faq-intro p { font-family: 'Manrope', sans-serif; font-size: 16px; line-height: 1.65; color: #4a3570; margin: 14px 0 0; max-width: 28rem; }
.v7-faq-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; }
.v7-faq-grid .faq-wrap { max-width: none; margin: 0; gap: 14px; }
.v7-faq-grid .faq-item { background: #fff; border: 1px solid #e3d9f0; border-radius: 18px; transition: border-color .3s, box-shadow .3s, background .3s; }
.v7-faq-grid .faq-item:hover { border-color: #d4c5e8; }
.v7-faq-grid .faq-item.open { background: #fbf9fd; border-color: #ccbff6; box-shadow: 0 20px 40px -28px rgba(30, 20, 64, .4); }
.v7-faq-grid .faq-q { background: transparent; color: #1e1440; padding: 18px; font-size: clamp(17.5px, 1rem + .3vw, 21px); font-weight: 500; line-height: 1.3; }
@media (min-width: 768px) { .v7-faq-grid .faq-q { padding: 22px 26px; } }
.v7-faq-grid .faq-q .q-toggle { width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: #f4eef9; color: #2a1a4d; transition: transform .35s, background .3s, color .3s; }
.v7-faq-grid .faq-q .q-toggle .icon { width: 16px; height: 16px; }
.v7-faq-grid .faq-item.open .faq-q .q-toggle { background: #1e1440; color: #ffe088; }
.v7-faq-grid .faq-a { background: transparent; }
.v7-faq-grid .faq-a p, .v7-faq-grid .faq-a { font-size: 15px; line-height: 1.68; }
