/**
 * FAQ front styles.
 */

.pf-faq {
	--pf-brand: #0a3c6b;
	--pf-gold: #91805b;
	--pf-cream: #faf9f8;
	--pf-text: #1e2f3f;
	--pf-muted: rgba(30, 47, 63, 0.72);
	--pf-border: rgba(10, 60, 107, 0.12);
	--pf-radius: 1.75rem;
	--pf-shadow: 0 12px 32px -18px rgba(10, 60, 107, 0.18);
	color: var(--pf-text);
	font-family: "Open Sans", system-ui, sans-serif;
	line-height: 1.55;
}

.pf-faq__intro {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
	.pf-faq__intro {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
}

.pf-faq__eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--pf-gold);
}

.pf-faq__heading {
	margin: 0.75rem 0 0;
	font-family: Lato, "Open Sans", sans-serif;
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	font-weight: 900;
	line-height: 1.15;
	color: var(--pf-brand);
}

.pf-faq__subtitle {
	margin: 1rem 0 0;
	max-width: 36rem;
	font-size: 16px;
	color: var(--pf-muted);
}

.pf-faq__search {
	position: relative;
	display: block;
	width: 100%;
	max-width: 28rem;
}

.pf-faq__search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(10, 60, 107, 0.45);
	pointer-events: none;
	display: flex;
}

.pf-faq__search-input {
	width: 100%;
	border: 2px solid rgba(10, 60, 107, 0.2);
	border-radius: 999px;
	background: #fff;
	padding: 0.85rem 2.75rem 0.85rem 2.75rem;
	font-size: 15px;
	color: var(--pf-text);
	outline: none;
	transition: border-color 0.15s ease;
}

.pf-faq__search-input::placeholder {
	color: rgba(30, 47, 63, 0.45);
}

.pf-faq__search-input:focus {
	border-color: var(--pf-brand);
}

.pf-faq__search-clear {
	position: absolute;
	right: 0.65rem;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: rgba(10, 60, 107, 0.45);
	padding: 0.4rem;
	border-radius: 999px;
	cursor: pointer;
	display: flex;
}

.pf-faq__search-clear:hover {
	background: rgba(10, 60, 107, 0.06);
	color: var(--pf-brand);
}

.pf-faq__layout {
	display: grid;
	gap: 1.5rem;
}

.pf-faq__layout--with-cats {
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.pf-faq__layout--with-cats {
		grid-template-columns: minmax(0, 1fr) 280px;
		align-items: start;
	}

	.pf-faq__aside {
		order: 2;
		position: sticky;
		top: 7rem;
	}

	.pf-faq__main {
		order: 1;
		min-width: 0;
	}
}

.pf-faq__panel {
	overflow: hidden;
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius);
	background: #fff;
	box-shadow: var(--pf-shadow);
}

.pf-faq__panel-head {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.25rem 1.35rem;
	border-bottom: 1px solid var(--pf-border);
}

@media (min-width: 640px) {
	.pf-faq__panel-head {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		padding: 1.35rem 1.75rem;
	}
}

.pf-faq__panel-label {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--pf-gold);
}

.pf-faq__panel-title {
	margin: 0.25rem 0 0;
	font-family: Lato, "Open Sans", sans-serif;
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	font-weight: 700;
	color: var(--pf-brand);
}

.pf-faq__panel-count {
	margin: 0;
	font-size: 14px;
	color: rgba(30, 47, 63, 0.55);
}

.pf-faq__list {
	padding: 0.35rem 0.5rem 0.75rem;
}

@media (min-width: 768px) {
	.pf-faq__list {
		padding: 0.35rem 0.75rem 0.85rem;
	}
}

.pf-faq__item {
	border-bottom: 1px solid var(--pf-border);
	padding: 0 0.75rem;
}

.pf-faq__item:last-child {
	border-bottom: 0;
}

.pf-faq__question {
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	padding: 1rem 2rem 1rem 0;
	cursor: pointer;
	position: relative;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pf-brand);
}

.pf-faq__question::-webkit-details-marker {
	display: none;
}

.pf-faq__cat-tag {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pf-gold);
}

.pf-faq__question-text {
	padding-right: 0.5rem;
}

.pf-faq__chevron {
	position: absolute;
	right: 0;
	top: 1.15rem;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid var(--pf-brand);
	border-bottom: 2px solid var(--pf-brand);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	opacity: 0.7;
}

.pf-faq__item[open] .pf-faq__chevron {
	top: 1.35rem;
	transform: rotate(225deg);
}

.pf-faq.is-cat-filtered .pf-faq__cat-tag {
	display: none;
}

.pf-faq__answer {
	padding: 0 0 1rem;
	font-size: 15px;
	line-height: 1.65;
	color: var(--pf-muted);
}

.pf-faq__answer strong {
	font-weight: 700;
	color: var(--pf-brand, #0a3c6b);
}

.pf-faq__answer p {
	margin: 0 0 0.75rem;
}

.pf-faq__answer p:last-child {
	margin-bottom: 0;
}

.pf-faq__empty {
	padding: 3rem 1.5rem;
	text-align: center;
}

.pf-faq__empty-title {
	margin: 0;
	font-family: Lato, "Open Sans", sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--pf-brand);
}

.pf-faq__empty-text {
	margin: 0.5rem 0 0;
	font-size: 15px;
	color: var(--pf-muted);
}

.pf-faq__empty-btn {
	margin-top: 1.25rem;
	border: 0;
	border-radius: 999px;
	background: var(--pf-brand);
	color: var(--pf-cream);
	padding: 0.65rem 1.25rem;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.pf-faq__empty-btn:hover {
	opacity: 0.92;
}

.pf-faq__cats {
	border-radius: var(--pf-radius);
	background: var(--pf-brand);
	color: var(--pf-cream);
	padding: 1.25rem;
	box-shadow: 0 12px 32px -18px rgba(10, 60, 107, 0.25);
}

.pf-faq__cats-label {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--pf-gold);
}

.pf-faq__cats-list {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.25rem;
}

.pf-faq__cat {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	border: 0;
	border-radius: 0.85rem;
	background: transparent;
	color: rgba(250, 249, 248, 0.9);
	padding: 0.65rem 0.75rem;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.pf-faq__cat:hover {
	background: rgba(250, 249, 248, 0.1);
}

.pf-faq__cat.is-active {
	background: var(--pf-gold);
	color: var(--pf-brand);
}

.pf-faq__cat-count {
	font-variant-numeric: tabular-nums;
	font-size: 12px;
	opacity: 0.7;
}

.pf-faq__item[hidden],
.pf-faq__empty[hidden],
.pf-faq__search-clear[hidden] {
	display: none !important;
}
