/* ================================================
   FAQ Component
   ================================================ */

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 13px;
	counter-reset: faq-counter;
}

.faq-item {
	border-radius: 8px;
	overflow: hidden;
	background-color: #ffffff;
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
	border: 1px solid transparent;
	transition: box-shadow 0.3s ease, transform 0.3s ease,
		background-color 0.3s ease, border-color 0.3s ease;
	counter-increment: faq-counter;
}

.faq-item--active {
	background-color: var(--brand-secondary);
	box-shadow: 0 4px 16px rgba(190, 24, 93, 0.18);
	border-color: #ffeff3;
}

.faq-item__header {
	width: 100%;
	background: transparent;
	border: none;
	padding: 26px 24px;
	text-align: left;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.faq-item__title {
	font-family: var(--font-primary);
	font-size: var(--fs-350);
	font-weight: 600;
	line-height: 1.3;
	color: var(--gray-900);
	margin: 0;
}

.faq-item__title::before {
	content: counter(faq-counter, decimal-leading-zero) ". ";
	font-weight: 600;
	margin-right: 8px;
	color: var(--brand-primary);
}

.faq-item--active .faq-item__title {
	color: #ffffff;
	font-weight: 600;
}

.faq-item--active .faq-item__title::before {
	color: #ffffff;
}

.faq-item__icon {
	position: relative;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-left: 20px;
}

.faq-item__icon::before,
.faq-item__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background-color: #d3d3d3;
	border-radius: 60px;
}

.faq-item__icon::before {
	width: 16px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.faq-item__icon::after {
	width: 2px;
	height: 16px;
	transform: translate(-50%, -50%);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item--active .faq-item__icon::before,
.faq-item--active .faq-item__icon::after {
	background-color: #ffffff;
}

.faq-item--active .faq-item__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

.faq-item__header:hover {
	background-color: rgba(0, 0, 0, 0.02);
}

.faq-item--active .faq-item__header:hover {
	background-color: rgba(255, 255, 255, 0.05);
}

.faq-item__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item--active .faq-item__content {
	max-height: 500px;
	padding: 0 30px 30px 30px;
}

.faq-item__description {
	font-family: var(--font-primary);
	font-size: var(--fs-300);
	font-weight: 400;
	color: #ffffff;
	line-height: 1.55;
	margin: 0;
}

/* Responsive */
@media (min-width: 576px) and (max-width: 991px) {
	.faq-list {
		gap: 12px;
	}

	.faq-item__header {
		padding: 22px 20px;
	}

	.faq-item__title {
		font-size: var(--fs-300);
		line-height: 1.3;
	}

	.faq-item--active .faq-item__content {
		padding: 0 25px 25px 25px;
	}

	.faq-item__description {
		font-size: var(--fs-200);
		line-height: 1.5;
	}
}

@media (max-width: 575px) {
	.faq-list {
		gap: 10px;
	}

	.faq-item__header {
		padding: 18px 16px;
	}

	.faq-item__title {
		font-size: var(--fs-300);
		line-height: 1.3;
	}

	.faq-item__icon {
		width: 14px;
		height: 14px;
		margin-left: 15px;
	}

	.faq-item__icon::before {
		width: 14px;
	}

	.faq-item__icon::after {
		height: 14px;
	}

	.faq-item--active .faq-item__content {
		padding: 0 20px 20px 20px;
	}

	.faq-item__description {
		font-size: var(--fs-200);
		line-height: 1.5;
	}

	/* Mobile-only style for active FAQ item: white card with primary border */
	.faq-item {
		background-color: #ffffff;
		box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
		border: 1px solid transparent;
	}

	.faq-item--active {
		background-color: #ffffff;
		box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
		border-color: var(--brand-primary);
	}

	.faq-item--active .faq-item__title {
		color: var(--gray-900);
	}

	.faq-item--active .faq-item__title::before {
		color: var(--brand-primary);
	}

	.faq-item--active .faq-item__description {
		color: var(--gray-800);
	}

	.faq-item--active .faq-item__icon::before,
	.faq-item--active .faq-item__icon::after {
		background-color: #d3d3d3;
	}
}
