/* ============================================
   FAQ Accordion Block — Frontend Styles
   ============================================ */

.taskipfb-faq {
	width: 100%;
	background: #ffffff;
	font-family: var( --taskipfb-offer-font );
}

.taskipfb-faq-container {
	margin: 0 auto;
	padding: 0 32px;
	width: 100%;
	box-sizing: border-box;
}

/* ── Header ── */
.taskipfb-faq-header {
	text-align: center;
	margin-bottom: 52px;
}

.taskipfb-faq-badge {
	display: inline-block;
	padding: 6px 20px;
	border: 1.5px solid #10b981;
	border-radius: 999px;
	color: #10b981;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 20px;
	line-height: 1.4;
}

.taskipfb-faq-heading {
	font-size: 38px;
	font-weight: 800;
	color: #111827;
	margin: 0 0 16px;
	line-height: 1.2;
}

.taskipfb-faq-desc {
	font-size: 15px;
	color: #6b7280;
	margin: 0 auto;
	max-width: 520px;
	line-height: 1.7;
}

/* ── FAQ List ── */
.taskipfb-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ── FAQ Item ── */
.taskipfb-faq-item {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
}

/* ── Trigger (button) ── */
.taskipfb-faq-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 20px 24px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	appearance: none;
	-webkit-appearance: none;
}

.taskipfb-faq-trigger:focus-visible {
	outline: 2px solid #10b981;
	outline-offset: -2px;
	border-radius: 12px;
}

.taskipfb-faq-question {
	font-size: 15px;
	font-weight: 600;
	color: #111827;
	line-height: 1.4;
	flex: 1;
}

/* ── Chevron ── */
.taskipfb-faq-chevron {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.taskipfb-faq-chevron-icon {
	transition: transform 0.3s ease;
}

.taskipfb-faq-item--open .taskipfb-faq-chevron-icon {
	transform: rotate( 180deg );
}

/* ── Answer wrap (animated) ── */
.taskipfb-faq-answer-wrap {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.taskipfb-faq-item--open .taskipfb-faq-answer-wrap {
	max-height: 600px;
}

/* ── Answer text ── */
.taskipfb-faq-answer {
	padding: 0 24px 20px;
	font-size: 14px;
	line-height: 1.75;
	color: #4b5563;
}

/* ── Responsive ── */
@media ( max-width: 1024px ) {
	.taskipfb-faq-container {
		padding: 0 24px;
	}

	.taskipfb-faq-heading {
		font-size: 30px;
	}

	.taskipfb-faq-header {
		margin-bottom: 40px;
	}
}

@media ( max-width: 640px ) {
	.taskipfb-faq-container {
		padding: 0 16px;
	}

	.taskipfb-faq-heading {
		font-size: 24px;
	}

	.taskipfb-faq-header {
		margin-bottom: 32px;
	}

	.taskipfb-faq-trigger {
		padding: 16px 18px;
	}

	.taskipfb-faq-answer {
		padding: 0 18px 16px;
	}
}
