/**
 * WFS FAQ — Clean 2-column grid
 *
 * @package WpFaqSchema
 */

/* ===========================
   Wrapper
   =========================== */
.wfs-faq {
	--wfs-bg:          #f5f5f7;
	--wfs-bg-hover:    #eaeaec;
	--wfs-accent:      #19A881;
	--wfs-accent-soft: rgba(25, 168, 129, 0.10);
	--wfs-text:        #1d1d1f;
	--wfs-text-muted:  #6e6e73;
	--wfs-border:      rgba(0, 0, 0, 0.08);
	--wfs-radius:      16px;
	--wfs-ease:        cubic-bezier(0.4, 0, 0.2, 1);

	max-width: 1120px;
	margin: 0 auto;
	padding: 40px 0px;
	font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* ===========================
   Optional title
   =========================== */
.wfs-faq__title {
	margin: 0 0 32px;
	text-align: center;
}

/* ===========================
   Grid
   =========================== */
.wfs-faq__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	counter-reset: faq-counter;
}

/* ===========================
   Item card
   =========================== */
.wfs-faq__item {
	counter-increment: faq-counter;
	background: var(--wfs-bg);
	border-radius: var(--wfs-radius);
	overflow: hidden;
}

/* ===========================
   Question button
   =========================== */
.wfs-faq__question {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 22px 20px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s var(--wfs-ease);
}

.wfs-faq__question:focus {
	outline: none;
}

.wfs-faq__question:hover {
	background-color: var(--wfs-bg-hover);
}

/* Number badge */
.wfs-faq__num {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wfs-accent-soft);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--wfs-accent);
	letter-spacing: 0.01em;
	transition: background-color 0.2s var(--wfs-ease), color 0.2s var(--wfs-ease);
}

.wfs-faq__num::before {
	content: counter(faq-counter, decimal-leading-zero);
}

.wfs-faq__item.is-open .wfs-faq__num {
	background: var(--wfs-accent);
	color: #fff;
}

/* Question text */
.wfs-faq__q-text {
	flex: 1;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

/* Chevron */
.wfs-faq__chevron {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--wfs-text-muted);
	transition: transform 0.3s var(--wfs-ease), color 0.2s var(--wfs-ease);
}

.wfs-faq__item.is-open .wfs-faq__chevron {
	transform: rotate(180deg);
	color: var(--wfs-accent);
}

/* ===========================
   Answer — animated via grid rows
   =========================== */
.wfs-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s var(--wfs-ease);
}

.wfs-faq__item.is-open .wfs-faq__answer {
	grid-template-rows: 1fr;
}

.wfs-faq__answer-inner {
	overflow: hidden;
}

/* ===========================
   Answer body
   =========================== */
.wfs-faq__a-body {
	border-top: 1px solid var(--wfs-border);
	padding: 16px 20px 20px;
}

.wfs-faq__a-content {
	font-size: 15px;
	line-height: 1.6;
}

.wfs-faq__a-content p {
	margin: 0 0 10px;
}

.wfs-faq__a-content p:last-child {
	margin-bottom: 0;
}

.wfs-faq__a-content a {
	color: var(--wfs-accent);
	text-decoration: none;
	font-weight: 500;
}

.wfs-faq__a-content a:hover {
	text-decoration: underline;
}

.wfs-faq__a-content ul,
.wfs-faq__a-content ol {
	margin: 0 0 10px;
	padding-left: 18px;
}

.wfs-faq__a-content li {
	margin-bottom: 4px;
}

.wfs-faq__a-content strong {
	font-weight: 600;
}

/* ===========================
   Mobile
   =========================== */
@media (max-width: 640px) {
	.wfs-faq {
		padding: 24px 16px;
	}

	.wfs-faq__grid {
		grid-template-columns: 1fr;
	}

	.wfs-faq__title {
		font-size: 22px;
		margin-bottom: 20px;
	}
}

/* ===========================
   Reduced motion
   =========================== */
@media (prefers-reduced-motion: reduce) {
	.wfs-faq__answer,
	.wfs-faq__chevron,
	.wfs-faq__question {
		transition-duration: 0.01ms !important;
	}
}