/**
 * GeoUp FAQs Frontend Styles
 *
 * Minimal, theme-agnostic styling for FAQ accordion and list.
 */

.geoup-faqs {
	max-width: 800px;
	margin: 2em auto;
}

/* FAQ Item */
.geoup-faq-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.geoup-faq-item:first-child {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Accordion Button */
.geoup-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 4px;
	margin: 0;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.4;
	color: inherit;
	text-align: left;
	font-family: inherit;
	transition: color 0.15s ease;
}

button.geoup-faq-question:hover {
	color: #2563eb;
}

button.geoup-faq-question:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 4px;
}

/* Chevron icon */
.geoup-faq-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-left: 12px;
	transition: transform 0.2s ease;
}

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

/* Answer */
.geoup-faq-answer {
	overflow: hidden;
}

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

.geoup-faq-answer > div {
	padding: 0 4px 16px;
	font-size: 0.95em;
	line-height: 1.7;
	color: inherit;
	opacity: 0.8;
}

.geoup-faq-answer p {
	margin: 0 0 0.75em;
}

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

/* List Style */
.geoup-faqs--list .geoup-faq-item {
	padding: 16px 4px;
}

.geoup-faqs--list h3.geoup-faq-question {
	font-size: 1.05em;
	margin: 0 0 8px;
	padding: 0;
}
