/**
 * FAQ Shortcode Styles
 * Responsive design with smooth chevron animations
 */

.faq-container {
	font-family: "Roboto", sans-serif !important;
}

.faq-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 2rem;
	color: #1a202c;
	text-align: center;
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.faq-item {
	overflow: hidden;
}

.faq-question {
	width: 100%;
	padding: 10px;
	background-color: transparent !important;
	color: black !important;
	text-transform: none !important;
	font-weight: normal !important;
	font-family: "Roboto", sans-serif !important;
	font-size: 16px !important;
	border-bottom: 1px solid #E8E8E8;
	border-radius: 0px !important;
	text-align: left;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.1rem;
	font-weight: 600;
	color: #1f2124;
	transition: all 0.3s ease;
	gap: 1rem;
}

.faq-question:hover, .faq-question:focus, .faq-question:active {
	border-color: #E8E8E8 !important;
}

.faq-text {
	flex: 1;
	line-height: 1.5;
}

.faq-chevron {
	flex-shrink: 0;
	transition: transform 0.3s ease;
	color: #1f2124;
}

.faq-chevron svg {
	display: block;
}

.faq-question[aria-expanded="true"] .faq-chevron {
	transform: rotate(-180deg);
	color: #2d3748;
}

.faq-answer {
	border-top: 1px solid #e2e8f0;
}

.faq-answer[hidden] {
	display: none;
}

.faq-answer-content {
	padding: 10px;
	color: black;
	line-height: 1.6;
}

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

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

/* Smooth height animation for answer */
.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
	opacity: 0;
}

.faq-answer:not([hidden]) {
	max-height: 500px;
	opacity: 1;
	transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

/* Responsive design */
@media (max-width: 768px) {
	.faq-container {
		padding: 1rem;
	}
}

@media (max-width: 480px) {
	.faq-question {
		font-size: 0.95rem;
		padding: 0.875rem;
	}
	
	.faq-answer-content {
		padding: 0.875rem;
		font-size: 0.95rem;
	}
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
	.faq-chevron,
	.faq-answer,
	.faq-item,
	.faq-question {
		transition: none;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.faq-item {
		border-color: #000;
	}
	
	.faq-question {
		color: #000;
	}
	
	.faq-answer {
		border-color: #000;
	}
}
