/* FAQ Advanced Widget */
.ct-faq-advanced {
	--ct-faq-accent: #facc15;
	--ct-faq-active: #ca8a04;
	width: 100%;
	max-width: 896px;
	margin: 0 auto;
	direction: rtl;
}

.ct-faq-advanced *,
.ct-faq-advanced *::before,
.ct-faq-advanced *::after {
	box-sizing: border-box;
}

.ct-faq-advanced button {
	font-family: inherit;
}

/* Reset Consultio global button styles (theme primary/gradient). */
.ct-faq-advanced .faq-button,
.ct-faq-advanced .faq-button:hover,
.ct-faq-advanced .faq-button:focus,
.ct-faq-advanced .faq-button:active {
	background-image: none;
	box-shadow: none;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	height: auto;
	color: inherit;
}

.ct-faq-advanced .faq-header {
	margin-bottom: 40px;
	text-align: center;
}

.ct-faq-advanced .faq-title {
	margin: 0 0 12px;
	color: #1e293b;
	font-size: 30px;
	line-height: 36px;
	font-weight: 800;
}

.ct-faq-advanced .faq-description {
	margin: 0;
	color: #64748b;
	font-size: 14px;
	line-height: 20px;
}

.ct-faq-advanced .faq-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ct-faq-advanced .faq-card {
	position: relative;
	overflow: hidden;
	background-color: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 16px;
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	transition: box-shadow 300ms ease;
}

.ct-faq-advanced .faq-card:hover {
	box-shadow:
		0 4px 6px -1px rgb(0 0 0 / 0.1),
		0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.ct-faq-advanced .faq-card__bar {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 4px;
	background-color: var(--ct-faq-accent, #facc15);
	transform-origin: top;
	transform: scaleY(0);
	transition: transform 300ms ease;
}

.ct-faq-advanced .faq-card__bar.is-open {
	transform: scaleY(1);
}

.ct-faq-advanced .faq-button {
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 20px;
	color: inherit;
	background-color: #ffffff;
	background-image: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	cursor: pointer;
	text-align: right;
}

.ct-faq-advanced .faq-button:hover,
.ct-faq-advanced .faq-button:focus,
.ct-faq-advanced .faq-button:active {
	color: inherit;
	background-color: #ffffff;
	background-image: none;
	background-position: 0%;
	text-decoration: none;
}

.ct-faq-advanced .faq-question-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.ct-faq-advanced .faq-icon-box {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	color: #64748b;
	background-color: #f8fafc;
	transition:
		color 300ms ease,
		background-color 300ms ease;
}

.ct-faq-advanced .faq-card:hover .faq-icon-box {
	background-color: #f1f5f9;
}

.ct-faq-advanced .faq-icon-box.is-open {
	color: var(--ct-faq-active, #ca8a04);
	background-color: #fefce8;
}

.ct-faq-advanced .faq-icon,
.ct-faq-advanced .faq-icon-box i,
.ct-faq-advanced .faq-icon-box svg {
	width: 24px;
	height: 24px;
	font-size: 20px;
	line-height: 1;
}

.ct-faq-advanced .faq-text {
	text-align: right;
	min-width: 0;
}

.ct-faq-advanced .faq-question {
	display: block;
	color: #1e293b;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	transition: color 150ms ease;
}

.ct-faq-advanced .faq-question.is-open {
	color: var(--ct-faq-active, #ca8a04);
}

.ct-faq-advanced .faq-category {
	display: block;
	margin-top: 4px;
	color: #94a3b8;
	font-size: 12px;
	line-height: 16px;
	font-weight: 300;
}

.ct-faq-advanced .faq-arrow-box {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 9999px;
	color: #94a3b8;
	background-color: #f8fafc;
	transition:
		color 300ms ease,
		background-color 300ms ease;
}

.ct-faq-advanced .faq-card:hover .faq-arrow-box {
	background-color: #f1f5f9;
}

.ct-faq-advanced .faq-arrow-box.is-open {
	color: var(--ct-faq-active, #ca8a04);
	background-color: #fef3c7;
}

.ct-faq-advanced .faq-arrow {
	width: 20px;
	height: 20px;
	transition: transform 300ms ease;
}

.ct-faq-advanced .faq-arrow.is-open {
	transform: rotate(180deg);
}

.ct-faq-advanced .faq-answer-panel {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition:
		max-height 300ms ease,
		opacity 300ms ease;
}

.ct-faq-advanced .faq-answer-panel.is-open {
	max-height: 800px;
	opacity: 1;
}

.ct-faq-advanced .faq-answer-wrapper {
	padding: 4px 20px 20px;
	margin-right: 72px;
	color: #475569;
	font-size: 14px;
	line-height: 2;
}

.ct-faq-advanced .faq-answer-box {
	position: relative;
	padding: 16px;
	background-color: #f8fafc;
	border: 1px solid #f1f5f9;
	border-radius: 12px;
}

.ct-faq-advanced .faq-answer-box strong {
	font-weight: 700;
}

@media (min-width: 768px) {
	.ct-faq-advanced .faq-description {
		font-size: 16px;
		line-height: 24px;
	}

	.ct-faq-advanced .faq-question {
		font-size: 18px;
		line-height: 28px;
	}

	.ct-faq-advanced .faq-answer-wrapper {
		font-size: 16px;
		line-height: 2;
	}
}

@media (max-width: 575px) {
	.ct-faq-advanced .faq-answer-wrapper {
		margin-right: 0;
	}
}
