
/* =====================================================
 * Custom FAQ Accordion — Styles
 * Prefix: .cfaq-
 * ===================================================== */
.cfaq-wrapper {
	box-sizing: border-box;
	width: 100%;
	color: #14213d;
	padding: 60px 40px;
	background-color: transparent;
}

.cfaq-wrapper *, .cfaq-wrapper *::before, .cfaq-wrapper *::after {
	box-sizing: border-box;
}

/* ---------- Heading ---------- */
.cfaq-heading {
	color: #1aab5f;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 32px 0;
}

/* ---------- Grid (flex columns) ---------- */
.cfaq-grid {
	display: flex;
	gap: var(--cfaq-col-gap, 16px);
	width: 100%;
	align-items: flex-start;
}

.cfaq-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--cfaq-row-gap, 16px);
	min-width: 0;
}

/* ---------- Item (entrance animation) ---------- */
.cfaq-item {
	display: flex;
	flex-direction: column;
	width: 100%;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .45s ease, transform .45s ease;
}

.cfaq-item.cfaq-visible {
	opacity: 1;
	transform: translateY(0);
}

.cfaq-wrapper.cfaq-no-animate .cfaq-item {
	opacity: 1;
	transform: none;
	transition: none;
}

/* ---------- Question (pill button) ---------- */

/* High-specificity chain beats Elementor kit-level button overrides */
.cfaq-wrapper .cfaq-question, .cfaq-wrapper .cfaq-col .cfaq-question, .cfaq-wrapper .cfaq-item .cfaq-question {
	display: flex !important;
	align-items: flex-start !important;
	justify-content: space-between !important;
	gap: 12px !important;
	width: 100% !important;
	padding: 18px 24px !important;
	background-color: #1aab5f !important;
	color: #14213d !important;
	border: none !important;
	border-radius: 8px !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-align: left !important;
	cursor: pointer !important;
	transition: background-color .2s ease !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	white-space: normal !important;
	word-break: break-word !important;
	overflow-wrap: break-word !important;
	overflow: visible !important;
	text-overflow: unset !important;
	height: auto !important;
	min-height: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.cfaq-wrapper .cfaq-question:hover, .cfaq-wrapper .cfaq-col .cfaq-question:hover {
	background-color: #0d9e52 !important;
}

.cfaq-wrapper .cfaq-question:focus {
	outline: none !important;
}

.cfaq-wrapper .cfaq-question:focus-visible {
	outline: 2px solid #14213d !important;
	outline-offset: 2px !important;
}

.cfaq-wrapper .cfaq-question[aria-expanded="true"], .cfaq-wrapper .cfaq-col .cfaq-question[aria-expanded="true"] {
	background-color: #0d9e52 !important;
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
}

.cfaq-wrapper .cfaq-question-text, .cfaq-question .cfaq-question-text, .cfaq-wrapper .cfaq-question .cfaq-question-text {
	flex: 1 1 0 !important;
	width: 0 !important;
	min-width: 0 !important;
	max-width: 100% !important;
	white-space: normal !important;
	word-break: break-word !important;
	overflow-wrap: break-word !important;
	overflow: hidden !important;
	text-overflow: unset !important;
	display: block !important;
}

/* ---------- Icon (chevron) ---------- */
.cfaq-icon {
	display: inline-flex;
	align-items: flex-start;
	justify-content: center;
	flex: 0 0 auto;
	color: #14213d;
	line-height: 0;
	padding-top: 3px;
}

.cfaq-icon svg {
	display: block;
	width: 18px;
	height: 18px;
	transition: transform .3s ease;
}

.cfaq-question[aria-expanded="true"] .cfaq-icon svg {
	transform: rotate(180deg);
}

/* ---------- Answer ---------- */
.cfaq-answer {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height .35s ease, opacity .25s ease;
	background-color: transparent;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

.cfaq-answer.is-open {
	opacity: 1;
}

.cfaq-answer-inner {
	padding: 16px 24px 8px 24px;
	color: #374151;
	font-size: 15px;
	line-height: 1.65;
}

.cfaq-answer-inner p {
	margin: 0 0 12px 0;
}

.cfaq-answer-inner p:last-child {
	margin-bottom: 0;
}

/* ---------- Responsive: stack columns on mobile ---------- */
@media (max-width: 767px) {
	.cfaq-wrapper {
		padding: 32px 16px;
	}
	
	.cfaq-grid {
		flex-direction: column;
		gap: 0;
		width: 100%;
		max-width: 100%;
		margin: 0 auto;
	}
	
	.cfaq-col {
		gap: 12px;
		padding: 0;
		width: 100%;
	}
	
	.cfaq-col + .cfaq-col {
		margin-top: 12px;
	}
	
	.cfaq-heading {
		font-size: 24px;
		margin-bottom: 24px;
		padding: 0;
	}
	
	.cfaq-question {
		padding: 16px 20px;
		font-size: 15px;
		width: 100%;
		white-space: normal;
		word-break: break-word;
		height: auto;
		min-height: 0;
		text-align: left;
		align-items: flex-start;
	}
	
	.cfaq-question-text {
		text-align: left;
	}
	
	.cfaq-answer-inner {
		padding: 14px 20px 6px 20px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cfaq-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
	
	.cfaq-icon svg {
		transition: none;
	}
	
	.cfaq-answer {
		transition: max-height .35s ease;
	}
}
