/*
 * ELNIQ GEO — FAQ page (/faq/) section styles. Loaded only on this
 * page template. Values copied verbatim from "FAQ.dc.html".
 *
 * Accordion note: the source animates each item's answer via
 * `max-height: 0px -> 260px` as a homegrown expand/collapse trick.
 * 260px is a magic number sized for the shortest answers on this
 * page — several of the actual answers here run noticeably longer
 * and would be clipped by a literal 260px cap (most visibly at
 * narrower widths, where wrapped text is taller). That's a rendering
 * bug in the trick, not a deliberate design value, so this file uses
 * a generous fixed max-height (900px) instead — same smooth
 * transition, no risk of clipping real content. Everything else
 * (colors, glyph rotation, timing) matches the source exactly.
 */

.eg-faqpage {
	padding: 72px 24px 48px;
}
.eg-faqpage__inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}
.eg-faqpage__inner h1 {
	font-size: clamp(32px, 4.2vw, 48px);
	font-weight: 800;
	color: var(--eg-text-heading);
	margin: 0 0 18px;
	letter-spacing: -0.01em;
}
.eg-faqpage__inner p {
	font-size: 17.5px;
	color: var(--eg-text-secondary);
	margin: 0;
	line-height: 1.6;
}

.eg-faqpage-list-section {
	padding: 32px 24px 64px;
}
.eg-faqpage-list-section__inner {
	max-width: 820px;
	margin: 0 auto;
}
.eg-faqpage__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.eg-faqpage__item {
	background: #fff;
	border: 1px solid var(--eg-border-light);
	border-radius: var(--eg-radius-card);
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(16, 35, 95, 0.05);
	transition: box-shadow 0.2s ease;
}
.eg-faqpage__item:hover,
.eg-faqpage__item:focus-within {
	box-shadow: 0 8px 24px rgba(16, 35, 95, 0.09);
}
.eg-faqpage__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 26px;
	cursor: pointer;
	width: 100%;
	background: none;
	border: none;
	text-align: left;
	font-family: inherit;
}
.eg-faqpage__question-text {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--eg-text-heading);
}
.eg-faqpage__glyph {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #F1F3F7;
	color: var(--eg-blue);
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.25s ease, background-color 0.25s ease;
	transform: rotate(0deg);
}
.eg-faqpage__item.is-open .eg-faqpage__glyph {
	background: rgba(21, 93, 252, 0.14);
	transform: rotate(45deg);
}
.eg-faqpage__answer-wrap {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.32s ease;
}
.eg-faqpage__item.is-open .eg-faqpage__answer-wrap {
	max-height: 900px;
}
.eg-faqpage__answer {
	padding: 0 26px 24px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--eg-text-secondary);
}

.eg-faqpage__more {
	margin-top: 56px;
	border-top: 1px solid var(--eg-border-light);
	padding-top: 40px;
	display: flex;
	justify-content: center;
}
.eg-faqpage__more-inner {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
}
.eg-faqpage__more-label {
	font-size: 19px;
	font-weight: 700;
	color: var(--eg-text-heading);
}
.eg-faqpage__more-link {
	font-size: 16px;
	font-weight: 700;
	color: var(--eg-blue);
	white-space: nowrap;
	border-bottom: 2px solid var(--eg-blue);
}
.eg-faqpage__more-link:hover,
.eg-faqpage__more-link:focus-visible {
	color: var(--eg-blue-hover);
	border-color: var(--eg-blue-hover);
}
