/* Almax FAQ module */

.almax-faq {
	--almax-faq-navy: #071d49;
	--almax-faq-orange: #f08000;
	--almax-faq-border: #dde1ea;
	--almax-faq-bg: #f9f9f9;
	max-width: 100%;
}

.almax-faq__group + .almax-faq__group {
	margin-top: 2rem;
}

.almax-faq__group-title {
	margin: 0 0 0.85rem;
	color: var(--almax-faq-navy);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.almax-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.almax-faq__item {
	margin: 0;
	border: 1px solid var(--almax-faq-border);
	background: #fff;
}

.almax-faq__item--static {
	padding: 1.1rem 1.25rem;
}

.almax-faq__question {
	margin: 0;
	color: var(--almax-faq-navy);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.4;
}

.almax-faq__item--static .almax-faq__question {
	margin-bottom: 0.55rem;
}

.almax-faq__answer {
	color: var(--almax-faq-navy);
	font-size: 0.98rem;
	line-height: 1.55;
}

.almax-faq__answer > *:first-child {
	margin-top: 0;
}

.almax-faq__answer > *:last-child {
	margin-bottom: 0;
}

/* Accordion (details/summary) */
.almax-faq__item--accordion {
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.almax-faq__item--accordion[open] {
	border-color: var(--almax-faq-orange);
	box-shadow: 0 1px 0 rgba(240, 128, 0, 0.12);
}

.almax-faq__item--accordion > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	cursor: pointer;
	list-style: none;
	user-select: none;
	background: var(--almax-faq-bg);
	transition: background-color 0.2s ease;
}

.almax-faq__item--accordion > summary::-webkit-details-marker {
	display: none;
}

.almax-faq__item--accordion > summary::marker {
	content: '';
}

.almax-faq__item--accordion > summary:hover {
	background: #f3f4f7;
}

.almax-faq__item--accordion > summary:focus-visible {
	outline: 2px solid var(--almax-faq-orange);
	outline-offset: -2px;
}

.almax-faq__question-text {
	flex: 1;
}

.almax-faq__icon {
	position: relative;
	flex: 0 0 1.1rem;
	width: 1.1rem;
	height: 1.1rem;
}

.almax-faq__icon::before,
.almax-faq__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--almax-faq-orange);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.almax-faq__icon::before {
	width: 100%;
	height: 2px;
	transform: translate(-50%, -50%);
}

.almax-faq__icon::after {
	width: 2px;
	height: 100%;
	transform: translate(-50%, -50%);
}

.almax-faq__item--accordion[open] > summary {
	background: #fff;
	border-bottom: 1px solid var(--almax-faq-border);
}

.almax-faq__item--accordion[open] .almax-faq__icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(90deg);
}

.almax-faq__item--accordion .almax-faq__answer {
	padding: 1rem 1.15rem 1.15rem;
}

@media (prefers-reduced-motion: reduce) {
	.almax-faq__item--accordion,
	.almax-faq__item--accordion > summary,
	.almax-faq__icon::before,
	.almax-faq__icon::after {
		transition: none;
	}
}
