/* ==========================================================================
   GF Faq widget
   ========================================================================== */

/* Header */
.gf-faq__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 36px;
	text-align: center;
}

.gf-faq__title {
	margin: 0;
	font-family: var(--gf-font-alt);
	font-size: var(--gf-h2);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -.02em;
	color: var(--gf-navy);
}

.gf-faq__subtitle {
	max-width: 1476px;
	margin: 0;
	font-family: var(--gf-font-body);
	font-size: var(--gf-body);
	line-height: var(--gf-body-lh);
	letter-spacing: -.02em;
	color: var(--gf-black);
}

/* List */
.gf-faq__list {
	margin: 0 auto;
}

.gf-faq__item {
	border-bottom: 1px solid #dcdcdc;
}

.gf-faq__heading {
	margin: 0;
	font: inherit;
}

.gf-faq__question,
.gf-faq__question:hover,
.gf-faq__question:focus {
	background: transparent;
	color: #151515;
}

.gf-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	width: 100%;
	padding: 36px 0;
	border: 0;
	border-radius: 0;
	font-family: var(--gf-font-alt);
	font-size: var(--gf-h4);
	font-weight: 500;
	line-height: 1.16;
	letter-spacing: -.02em;
	text-align: left;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	transition: color .2s ease;
}

.gf-faq__question:hover,
.gf-faq__item.is-open .gf-faq__question {
	color: var(--gf-black);
}

.gf-faq__question:focus-visible {
	outline: 2px solid var(--gf-black);
	outline-offset: 4px;
}

/* Icon (rotates when open) */
.gf-faq__icon {
	--gf-faq-icon: 22px;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--gf-faq-icon);
	height: var(--gf-faq-icon);
	margin-right: min(163px, 9.18%); /* Figma: chevron ends 163px before the divider's end */
	font-size: var(--gf-faq-icon);
	color: #000;
	transition: transform .3s ease;
}

.gf-faq__icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.gf-faq__chevron {
	display: block;
	width: 60%;
	height: 60%;
	margin-top: -30%;
	border-right: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
	transform: rotate(45deg);
}

.gf-faq__item.is-open .gf-faq__icon {
	transform: rotate(180deg);
}

/* Answer (animated open/close) */
.gf-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .35s ease;
}

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

.gf-faq__answer-clip {
	min-height: 0;
	overflow: hidden;
	visibility: hidden;
	transition: visibility .35s;
}

.gf-faq__item.is-open .gf-faq__answer-clip {
	visibility: visible;
}

.gf-faq__answer-inner {
	max-width: 1418px;
	padding: 0 70px 30px 0;
	font-family: var(--gf-font-body);
	font-size: var(--gf-body);
	line-height: var(--gf-body-lh);
	letter-spacing: -.02em;
	color: var(--gf-black);
}

.gf-faq__answer-inner p {
	margin: 0 0 1em;
}

.gf-faq__answer-inner > :last-child {
	margin-bottom: 0;
}

.gf-faq__answer-inner a {
	color: var(--gf-navy);
}

/* First question sits closer to the header (Figma 530:14231) */
.gf-faq__item:first-child .gf-faq__question {
	padding-top: 10px;
}

/* Responsive */
@media (max-width: 767px) {
	.gf-faq__head {
		margin-bottom: 24px;
	}

	.gf-faq__subtitle br {
		display: none;
	}

	.gf-faq__question {
		gap: 16px;
		padding: 20px 0;
		font-size: 18px;
	}

	.gf-faq__icon {
		--gf-faq-icon: 18px;
		margin-right: 4px;
	}

	.gf-faq__answer-inner {
		padding: 0 0 24px;
	}
}

/* ==========================================================================
   Split layout: navy info panel (left) + card accordion (right)
   ========================================================================== */
.gf-faq--split {
	--gf-faq-panel: 40%;
	--gf-faq-panel-text: #fff;
}

.gf-faq__grid {
	display: grid;
	grid-template-columns: 50% 50%;
	gap: 30px;
	align-items: start;
}

/* Panel */
.gf-faq__panel {
	position: sticky;
	top: calc(var(--gf-header-offset, 98px) + 20px);
	overflow: hidden;
	isolation: isolate;
	padding: clamp(26px, 2.6vw, 40px);
	border-radius: 24px;
	background-color: var(--gf-navy-deep);
	background-image:
		radial-gradient(120% 80% at 100% 0%, rgba(43, 38, 104, .95) 0%, rgba(43, 38, 104, 0) 60%),
		radial-gradient(80% 60% at 0% 100%, rgba(226, 43, 43, .18) 0%, rgba(226, 43, 43, 0) 70%);
	color: var(--gf-faq-panel-text);
}

.gf-faq__panel-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-position: center;
	background-size: cover;
}

.gf-faq__panel-bg + .gf-faq__graphic,
.gf-faq__panel-bg ~ .gf-faq__panel-inner {
	position: relative;
}

.gf-faq__panel:has(.gf-faq__panel-bg)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(160deg, rgba(5, 2, 47, .92) 0%, rgba(43, 38, 104, .86) 100%);
}

.gf-faq__graphic {
	position: absolute;
	top: -28px;
	right: -36px;
	z-index: -1;
	width: clamp(170px, 15vw, 240px);
	height: auto;
	color: #fff;
	pointer-events: none;
	opacity: 0.6;
}

.gf-faq__orbit {
	transform-origin: 120px 120px;
	animation: gf-faq-orbit 14s linear infinite;
}

@keyframes gf-faq-orbit {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.gf-faq__orbit { animation: none; }
}

.gf-faq__panel-inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.gf-faq--split .gf-faq__head {
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	text-align: left;
}

.gf-faq__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	font-family: var(--gf-font-alt);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gf-gold);
}

.gf-faq__eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gf-red);
}

.gf-faq--split .gf-faq__title {
	max-width: 11em;
	font-size: clamp(30px, 2.6vw, 42px);
	line-height: 1.12;
	color: var(--gf-faq-panel-text);
}

.gf-faq--split .gf-faq__subtitle {
	max-width: 46ch;
	font-size: 15px;
	line-height: 1.65;
	color: var(--gf-faq-panel-text);
	opacity: .78;
}

.gf-faq--split .gf-faq__subtitle br {
	display: none;
}

.gf-faq__points {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gf-faq__points li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--gf-font-body);
	font-size: 14px;
	line-height: 1.45;
	color: var(--gf-faq-panel-text);
}

.gf-faq__tick {
	position: relative;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(227, 213, 138, .16);
}

.gf-faq__tick::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 8px;
	width: 5px;
	height: 9px;
	border-right: 2px solid var(--gf-gold);
	border-bottom: 2px solid var(--gf-gold);
	transform: rotate(45deg);
}

.gf-faq__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 16px;
	background: rgba(255, 255, 255, .07);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.gf-faq__cta-copy {
	display: grid;
	gap: 2px;
}

.gf-faq__cta-title,
.gf-faq__cta-text {
	margin: 0;
}

.gf-faq__cta-title {
	font-family: var(--gf-font-alt);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--gf-faq-panel-text);
}

.gf-faq__cta-text {
	font-family: var(--gf-font-body);
	font-size: 13px;
	line-height: 1.5;
	color: var(--gf-faq-panel-text);
	opacity: .72;
}

.gf-faq__cta-phone,
.gf-faq__cta-phone:hover {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	font-family: var(--gf-font-body);
	font-size: 14px;
	font-weight: 700;
	color: var(--gf-gold);
	text-decoration: none;
}

.gf-faq__cta-btn {
	flex-shrink: 0;
}

/* Card accordion */
.gf-faq--split .gf-faq__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: none;
	margin: 0;
}

.gf-faq--split .gf-faq__item {
	border: 1px solid transparent;
	border-radius: 16px;
	background: #f5f5f9;
	transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.gf-faq--split .gf-faq__item:hover {
	background: #efeff6;
}

.gf-faq--split .gf-faq__item.is-open {
	border-color: rgba(43, 38, 104, .1);
	background: #fff;
	box-shadow: 0 14px 36px -18px rgba(5, 2, 47, .28);
}

.gf-faq--split .gf-faq__question,
.gf-faq--split .gf-faq__item:first-child .gf-faq__question {
	gap: 16px;
	padding: 14px 16px 14px 16px;
	font-size: 16px;
	line-height: 1.3;
}

.gf-faq__num {
	flex-shrink: 0;
	min-width: 26px;
	font-family: var(--gf-font-alt);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--gf-navy);
	opacity: .4;
	transition: opacity .3s ease, color .3s ease;
}

.gf-faq__item.is-open .gf-faq__num {
	color: var(--gf-red);
	opacity: 1;
}

.gf-faq--split .gf-faq__question-text {
	flex: 1;
}

.gf-faq--split .gf-faq__icon {
	--gf-faq-icon: 32px;
	margin-right: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(43, 38, 104, .12);
	font-size: 14px;
	color: var(--gf-navy);
	transition: transform .3s ease, background-color .3s ease, color .3s ease;
}

.gf-faq--split .gf-faq__chevron {
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-width: 0 2px 2px 0;
}

.gf-faq--split .gf-faq__item.is-open .gf-faq__icon {
	background: var(--gf-navy);
	color: #fff;
	box-shadow: none;
}

.gf-faq--split .gf-faq__answer-inner {
	max-width: none;
	padding: 0 60px 16px 60px;
	font-size: 15px;
	line-height: 1.7;
}

.gf-faq--split .gf-faq__question:focus-visible {
	outline-offset: -2px;
	border-radius: 16px;
}

@media (max-width: 1024px) {
	.gf-faq__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gf-faq__panel {
		position: relative;
		top: auto;
	}

	.gf-faq--split .gf-faq__title {
		max-width: none;
	}
}

@media (max-width: 767px) {
	.gf-faq__panel {
		border-radius: 18px;
	}

	.gf-faq__graphic {
		width: 150px;
		opacity: .7;
	}

	.gf-faq--split .gf-faq__question,
	.gf-faq--split .gf-faq__item:first-child .gf-faq__question {
		gap: 12px;
		padding: 16px;
		font-size: 16px;
	}

	.gf-faq--split .gf-faq__icon {
		--gf-faq-icon: 28px;
	}

	.gf-faq--split .gf-faq__answer-inner {
		padding: 0 16px 18px 54px;
	}

	.gf-faq__cta-btn {
		width: 100%;
		justify-content: center;
	}
}
