/**
 * FAQ block styles
 */

.ct-faq {
	background-color: var(--color-white);
}

.ct-cta-form + .ct-faq {
	margin-top: -80px;
}

.container.cta-faq__wrapper {
	position: relative;
	padding-top: 80px;
	padding-bottom: 120px;
	border-bottom-left-radius: 60px;
	border-bottom-right-radius: 60px;
	overflow: hidden;
	z-index: 1;
	bottom: -40px;
	background-color: var(--color-white);
}

.ct-faq__inner {
	position: relative;
}

.ct-faq__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.ct-faq__bg-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ct-faq__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 40px;
	text-align: center;
}

.ct-faq__badge {
	margin-bottom: 18px;
}

.ct-faq__title {
	margin: 0;
	color: var(--color-bg-deepest);
}

.ct-faq__accordion {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ct-faq__item {
	padding: 16px 16px 16px 24px;
	background: var(--color-white);
	border: 1px solid var(--color-light-200);
	border-radius: 16px;
}

.ct-faq__item-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
}

.ct-faq__item-icon {
	position: relative;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--color-light-100);
}

.ct-faq__item-icon::before {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 8H16' stroke='%23464362' stroke-width='1.8'/%3E%3Cpath d='M8 0L8 16' stroke='%23464362' stroke-width='1.8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition: transform 0.2s ease;
}

.ct-faq__item.is-open .ct-faq__item-icon::before {
	transform: rotate(45deg);
}

.ct-faq__item-title {
	font-weight: 700;
	font-size: 20px;
	line-height: 100%;
	text-transform: uppercase;
	color: var(--color-bg-deepest);
}

.ct-faq__item-text {
	padding: 4px 52px 4px 0;
	font-weight: 400;
	font-size: 16px;
	line-height: 130%;
	color: var(--color-bg-deepest);
}

.ct-faq__item-content {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease;
}

@media (max-width: 768px) {

	.ct-cta-form + .ct-faq {
		margin-top: 0;
	}
	
	.container.cta-faq__wrapper {
		padding-top: 32px;
		padding-bottom: 32px;
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
		bottom: 0;
	}

	.ct-faq__bg-image {
		object-position: right;
	}

	.ct-faq__header {
		margin-bottom: 24px;
	}

	.ct-faq__badge {
		margin-bottom: 12px;
	}

	.ct-faq__accordion {
		gap: 8px;
	}

	.ct-faq__item {
		padding: 16px;
	}

	.ct-faq__item-title {
		font-size: 16px;
	}

	.ct-faq__item-text {
		padding: 8px 0 2px;
	}

	.ct-faq__item-icon {
		width: 28px;
		height: 28px;
		align-self: flex-start;
	}
}
