/**
 * SynerFlow FAQ - Frontend Styles
 */

/* ==========================================================================
   Color Scheme Variables
   ========================================================================== */

:root {
	/* Primary Colors - Imprezza Theme */
	--primary-color1: #022E5F;
	--primary-dark: #001C42;
	--primary-light: #0345A0;

	/* Functional Colors */
	--accent-yellow: #FFD600;
	--accent-yellow-hover: #ECB800;

	/* UI Colors */
	--bg-primary: #ffffff;
	--text-primary: var(--primary-color1);
	--text-secondary: #666666;
	--border-light: #e5e7eb;
	--border-hover: var(--primary-color1);

	/* State Colors */
	--focus-ring: rgba(2, 46, 95, 0.1);
	--hover-opacity: 0.5;

	/* Animation */
	--transition-speed: all 0.3s ease;
}

/* ==========================================================================
   FAQ Search
   ========================================================================== */
.sf-faq-search-wrapper {
	position: relative;
	margin: 0 auto 20px;
	max-width: 800px;
}

.sf-faq-search {
	width: 100%;
	padding: 12px 16px 12px 44px !important;
	border: 1px solid var(--border-light);
	background: var(--bg-primary);
	font: 16px/24px 'Ubuntu', sans-serif;
	color: var(--text-primary);
	transition: var(--transition-speed);
	box-sizing: border-box;
}

.sf-faq-search-wrapper::before {
	content: "🔍";
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	color: var(--text-primary);
	opacity: 0.5;
	pointer-events: none;
}

.sf-faq-search:focus {
	outline: none;
	border-color: var(--border-hover);
	box-shadow: 0 0 0 2px var(--focus-ring);
}

.sf-faq-search::placeholder {
	color: var(--text-primary);
	opacity: 0.6;
}

@media (max-width: 768px) {
	.sf-faq-search-wrapper {
		margin-bottom: 16px;
		padding: 0 16px;
	}
	.sf-faq-search {
		padding: 10px 14px 10px 40px !important;
		font-size: 15px;
	}
	.sf-faq-search-wrapper::before {
		left: 14px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.sf-faq-search-wrapper {
		padding: 0 8px;
		margin-bottom: 12px;
	}
	.sf-faq-search {
		padding: 8px 12px 8px 36px !important;
		font-size: 14px;
	}
	.sf-faq-search-wrapper::before {
		left: 12px;
	}
}

/* ==========================================================================
   Accordion
   ========================================================================== */

.w-tabs.accordion {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	background: var(--bg-primary);
}

.w-tabs-sections {
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
}

/* Sections */
.w-tabs-section {
	border-bottom: 1px solid var(--border-light);
	background: var(--bg-primary);
	transition: var(--transition-speed);
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
}

.w-tabs-section:last-child {
	border-bottom: none;
}

/* Headers */
.w-tabs-section-header {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
	/* display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 16px 0;
	background: transparent;
	border: none;
	text-align: left;
	font: 500 16px 'Ubuntu', sans-serif;
	color: var(--text-primary);
	cursor: pointer;
	transition: var(--transition-speed);
	margin: 0;
	box-sizing: border-box; */
}

.w-tabs-section-header:hover {
	opacity: var(--hover-opacity);
}

.w-tabs-section-header.active,
.w-tabs-section-header[aria-expanded="true"] {
	color: var(--text-primary);
}

/* Title & Control */
.w-tabs-section-title {
	margin: 0;
	flex: 1;
	font-weight: 500;
}

.sf-faq-accordion-wrapper .sf-faq-question-text {
	margin: 0;
	line-height: 1.5;
}

.w-tabs-section-control {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	position: relative;
	margin-left: 16px;
	transition: var(--transition-speed);
}

/* Chevron icon met pseudo-elements */
.w-tabs-section-control::before,
.w-tabs-section-control::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 2px;
	background: var(--text-primary);
	border-radius: 1px;
	transition: var(--transition-speed);
}

.w-tabs-section-control::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.w-tabs-section-control::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Position the lines to form a V */
.w-tabs-section-control::before {
	left: calc(50% - 3px);
}

.w-tabs-section-control::after {
	left: calc(50% + 3px);
}

/* Rotate chevron when expanded */
.w-tabs-section-header[aria-expanded="true"] .w-tabs-section-control {
	transform: rotate(180deg);
}

/* ==========================================================================
   WPBakery Section Content
   ========================================================================== */

.w-tabs-section-content {
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
	background: transparent;
	border: none;
	border-top: none;
	box-shadow: none;
}

/* Hidden state */
.w-tabs-section-content[aria-hidden="true"],
.w-tabs-section-content[style*="display: none"] {
	max-height: 0;
	opacity: 0;
}

/* Visible state */
.w-tabs-section-content[aria-hidden="false"],
.w-tabs-section-content[style*="display: block"],
.w-tabs-section-content:not([style*="display: none"]) {
	max-height: 1000px;
	opacity: 1;
}

/* ==========================================================================
   WPBakery Section Content Inner Wrapper
   ========================================================================== */

.w-tabs-section-content-h {
	padding: 0px 16px 16px 0;
	box-sizing: border-box;
}

/* Clearfix voor i-cf class */
.i-cf::after {
	content: "";
	display: table;
	clear: both;
}

/* ==========================================================================
   FAQ Answer Content Styling - Scoped to SF FAQ Container
   ========================================================================== */

.sf-faq-accordion-wrapper .faq .w-tabs-section-content,
.sf-faq-accordion-wrapper .faq-section .w-tabs-section-content {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0.1px;
	color: var(--primary-color1);
}

.sf-faq-accordion-wrapper .faq .w-tabs-section-content,
.sf-faq-accordion-wrapper .faq-section .w-tabs-section-content {
	padding: 0px 16px 16px 0 !important;
}

.sf-faq-accordion-wrapper .faq .w-tabs-section button.w-tabs-section-header:hover,
.sf-faq-accordion-wrapper .faq-section .w-tabs-section button.w-tabs-section-header:hover {
	background: transparent !important;
	opacity: .5;
	color: var(--primary-color1) !important;
}

.sf-faq-accordion-wrapper .faq,
.sf-faq-accordion-wrapper .faq-section {
	margin-bottom: 60px;
}

.w-tabs-section-content p {
	font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0.1px;
	color: var(--sf-text);
	margin: 0 0 16px 0;
}

.w-tabs-section-content p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Focus States voor Accessibility
   ========================================================================== */

.w-tabs-section-header:focus {
	outline: none;
	box-shadow: none;
}

.w-tabs-section-header:focus-visible {
	outline: 2px solid var(--sf-primary);
	outline-offset: 2px;
}

/* Verwijder eventuele borders bij active state */
.w-tabs-section-header:active,
.w-tabs-section-header:focus {
	border: none;
	box-shadow: none;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Mobile devices */
@media (max-width: 768px) {
	.w-tabs.accordion {
		margin: 0 16px;
		border-radius: 0;
		border-left: none;
		border-right: none;
	}

	.w-tabs-section-header {
		padding: 14px 0;
		font-size: 15px;
	}

	.w-tabs-section-content-h {
		padding: 0px 12px 14px 0;
	}

	.w-tabs-section-content p {
		font-size: 15px;
		line-height: 22px;
	}

	.w-tabs-section-control {
		width: 20px;
		height: 20px;
		margin-left: 12px;
	}

	.w-tabs-section-control::before,
	.w-tabs-section-control::after {
		width: 10px;
		height: 2px;
	}
}

/* Small mobile devices */
@media (max-width: 480px) {
	.w-tabs.accordion {
		margin: 0 8px;
	}

	.w-tabs-section-header {
		padding: 12px 0;
		font-size: 14px;
	}

	.w-tabs-section-content-h {
		padding: 0px 8px 12px 0;
	}

	.w-tabs-section-content p {
		font-size: 14px;
		line-height: 20px;
	}
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	.w-tabs.accordion {
		box-shadow: none;
		border: 1px solid #ddd;
	}

	.w-tabs-section-content[aria-hidden="true"],
	.w-tabs-section-content[style*="display: none"] {
		display: none !important;
	}

	.w-tabs-section-control {
		display: none;
	}
}

/* ==========================================================================
   High Contrast Mode Support
   ========================================================================== */

@media (prefers-contrast: high) {
	.w-tabs-section {
		border-bottom-width: 2px;
	}

	.w-tabs-section-header:focus {
		outline-width: 3px;
	}
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.w-tabs-section-header,
	.w-tabs-section-content,
	.w-tabs-section-control {
		transition: none;
	}
}


/* ==========================================================================
   RTL Support
   ========================================================================== */

[dir="rtl"] .w-tabs-section-header {
	text-align: right;
}

[dir="rtl"] .w-tabs-section-control {
	margin-left: 0;
	margin-right: 16px;
}

[dir="rtl"] .w-tabs-section-content-h {
	padding: 0px 0px 16px 16px;
}
