/* ========================================================================
   FAQ Page Styles - Viska Theme
   ======================================================================== */

.faq-page {
	background: #fff;
}

.faq-hero {
	position: relative;
	padding: clamp(48px, 10vw, 80px) 0 clamp(32px, 8vw, 48px);
	background: #fff;
	display: flex;
	align-items: center;
}

.faq-hero-inner {
	position: relative;
	z-index: 1;
	max-width: min(960px, 90vw);
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 4vw, 20px);
}

.faq-hero-eyebrow {
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(13px, 3vw, 15px);
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: #078521;
	margin: 0;
}

.faq-hero h1 {
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(32px, 6vw, 48px);
	font-weight: 500;
	line-height: 1.1;
	color: #000;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.faq-hero p {
	margin: 0 auto;
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(16px, 4.5vw, 18px);
	color: #666;
	max-width: clamp(520px, 70vw, 640px);
}

.faq-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(48px, 10vw, 80px) clamp(24px, 6vw, 40px);
}

.faq-section {
	margin-bottom: clamp(48px, 12vw, 72px);
}

.faq-section:last-of-type {
	margin-bottom: 0;
}

.faq-section--search {
	margin-top: clamp(16px, 4vw, 32px);
}

/* Search Bar */
.faq-search {
	margin-bottom: 3rem;
}

.faq-search-wrapper {
	position: relative;
	max-width: 600px;
	margin: 0 auto;
}

.faq-search-icon {
	position: absolute;
	left: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	pointer-events: none;
}

#faqSearch {
	width: 100%;
	padding: 1rem 3.5rem 1rem 3.5rem;
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(14px, 4vw, 16.8px);
	border: 1px solid #ddd;
	border-radius: 0;
	background: #fff;
	transition: all 0.3s ease;
}

#faqSearch:focus {
	outline: none;
	border-color: #078521;
	box-shadow: 0 4px 12px rgba(7, 133, 33, 0.1);
}

#faqSearch::placeholder {
	color: #999;
}

.faq-search-clear {
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 0.5rem;
	cursor: pointer;
	color: #999;
	transition: color 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.faq-search-clear:hover {
	color: #000;
}

.faq-search-results-count {
	text-align: center;
	margin-top: 1rem;
	font-size: 0.875rem;
	color: #666;
}

/* Popular Questions */
.faq-popular {
	margin-bottom: 3rem;
}

.faq-popular h2 {
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(16px, 4.5vw, 20px);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #000;
}

.faq-popular h2 svg {
	color: #078521;
	stroke: #078521;
}

.faq-popular-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
}

.faq-popular-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.5rem;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: left;
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(13px, 3.5vw, 15px);
	color: #000;
}

.faq-popular-item:hover {
	border-color: #078521;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(7, 133, 33, 0.1);
}

.faq-popular-item svg {
	flex-shrink: 0;
	color: #078521;
	transition: transform 0.3s ease;
}

.faq-popular-item:hover svg {
	transform: translateX(4px);
}

/* Category Tabs */
.faq-categories {
	margin-bottom: 2rem;
	position: sticky;
	top: 89px;
	background: #fff;
	z-index: 10;
	padding: 1rem 0;
	margin-left: -1.5rem;
	margin-right: -1.5rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.faq-categories-mobile {
	display: block;
}

.faq-categories-mobile label {
	display: block;
	margin-bottom: 0.5rem;
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(13px, 3.5vw, 15px);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #000;
}

.faq-select-wrapper {
	position: relative;
}

.faq-select-wrapper select {
	width: 100%;
	padding: 0.875rem 3rem 0.875rem 1rem;
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(14px, 4vw, 16.8px);
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	appearance: none;
	color: #000;
}

.faq-select-wrapper svg {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #999;
}

.faq-categories-desktop {
	display: none;
}

/* FAQ Items */
.faq-items {
	margin-bottom: 3rem;
}

.faq-category-section {
	margin-bottom: 3rem;
	scroll-margin-top: 200px;
}

.faq-category-section[style*="display: none"] {
	display: none !important;
}

.faq-category-title {
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(18px, 5vw, 24px);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding-top: 2rem;
	margin-bottom: 1.5rem;
	color: #000;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #078521;
}

/* FAQ Accordion */
.faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.faq-item {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 0;
	overflow: hidden;
	scroll-margin-top: 120px;
	transition: all 0.3s ease;
}

.faq-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
	border-color: #078521;
}

.faq-item.highlight {
	animation: faqHighlight 2s ease;
}

@keyframes faqHighlight {
	0%, 100% {
		background: #fff;
	}
	50% {
		background: #f0f9f3;
	}
}

.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	transition: all 0.2s ease;
}

.faq-question:hover {
	background: rgba(7, 133, 33, 0.03);
}

.faq-question-text {
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(14px, 4vw, 16.8px);
	font-weight: 500;
	color: #000;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.faq-popular-badge {
	color: #f59e0b;
	fill: #f59e0b;
	flex-shrink: 0;
}

.faq-toggle-icon {
	flex-shrink: 0;
	color: #078521;
	transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
	transform: rotate(180deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease;
}

.faq-answer-content {
	padding: 0 1.5rem 1.5rem;
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(14px, 4vw, 16.8px);
	color: #666;
	line-height: 1.7;
}

.faq-answer-content p {
	margin-bottom: 1rem;
}

.faq-answer-content p:last-child {
	margin-bottom: 0;
}

.faq-answer-content strong {
	color: #000;
	font-weight: 500;
}

.faq-answer-content ul, .faq-answer-content ol {
	margin-left: 1.25rem;
	margin-bottom: 1rem;
}

.faq-answer-content li {
	margin-bottom: 0.5rem;
}

.faq-answer-content a {
	color: #078521;
	text-decoration: underline;
}

.faq-answer-content a:hover {
	color: #000;
}

/* No Results */
.faq-no-results {
	text-align: center;
	padding: 4rem 2rem;
}

.faq-no-results svg {
	color: #999;
	margin-bottom: 1.5rem;
}

.faq-no-results h3 {
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(18px, 5vw, 24px);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 0.75rem;
	color: #000;
}

.faq-no-results p {
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(14px, 4vw, 16.8px);
	color: #666;
}

/* Contact CTA */
.faq-cta {
	text-align: center;
	padding: 3rem 2rem;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #ddd;
}

.faq-cta h3 {
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(18px, 5vw, 24px);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 0.75rem;
	color: #000;
}

.faq-cta p {
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(14px, 4vw, 16.8px);
	color: #666;
	margin-bottom: 1.5rem;
}

.faq-cta-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(14px, 4vw, 16.8px);
	background: #078521;
	color: #fff;
	border: none;
	border-radius: 0;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.faq-cta-button:hover {
	background: #000;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	color: #fff;
}

.faq-cta-button svg {
	flex-shrink: 0;
}

/* Desktop Styles */
@media (min-width: 768px) {
	.faq-container {
		padding: 4rem 2rem;
	}

	.faq-search {
		margin-bottom: 4rem;
	}

	.faq-popular {
		margin-bottom: 4rem;
	}

	.faq-popular-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.faq-categories-mobile {
		display: none;
	}

	.faq-categories-desktop {
		display: flex;
		gap: 0.75rem;
		overflow-x: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding-bottom: 0.5rem;
	}

	.faq-categories-desktop::-webkit-scrollbar {
		display: none;
	}

	.faq-category-tab {
		padding: 0.75rem 1.5rem;
		font-family: 'Open Sans', sans-serif;
		font-size: clamp(13px, 3.5vw, 15px);
		font-weight: 500;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		background: #fff;
		border: 1px solid #ddd;
		border-radius: 0;
		cursor: pointer;
		transition: all 0.3s ease;
		color: #000;
		white-space: nowrap;
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}

	.faq-category-tab:hover {
		border-color: #078521;
		background: rgba(7, 133, 33, 0.05);
	}

	.faq-category-tab.active {
		background: #078521;
		color: #fff;
		border-color: #078521;
	}

	.faq-category-count {
		font-size: 0.8125rem;
		opacity: 0.8;
	}

	.faq-item {
		border-radius: 0;
	}

	.faq-question {
		padding: 1.5rem 2rem;
	}

	.faq-answer-content {
		padding: 0 2rem 2rem;
	}
}

@media (min-width: 1024px) {
	.faq-popular-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
