/**
 * Home FAQs panel styles.
 */

.panel-home-faqs {
	position: relative;
	padding: 104px 0 12rem 0;
	background: #f4f4f6;
	overflow: hidden;
}

.panel-home-faqs__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.panel-home-faqs__watermark {
	position: absolute;
	left: 6.25%;
	bottom: -11.56%;
	width: min(366px, 25.4vw);
	height: auto;
	opacity: 1;
}

.panel-home-faqs__inner {
	position: relative;
	z-index: 2;
}

.panel-home-faqs__layout {
	display: grid;
	grid-template-columns: minmax(0, 397px) minmax(0, 763px);
	justify-content: space-between;
	gap: 40px 80px;
	align-items: start;
}

.panel-home-faqs__intro {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.panel-home-faqs__heading {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.panel-home-faqs__title {
	margin: 0;
	color: var(--ppi-navy, #1a1a4a);
	font-size: clamp(36px, 4vw, 49px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.735px;
}

.panel-home-faqs__intro-text {
	color: var(--ppi-navy, #1a1a4a);
	font-size: 20px;
	font-weight: 300;
	line-height: 1.4;
	letter-spacing: 0.4px;
}

.panel-home-faqs__intro-text p {
	margin: 0;
}

.panel-home-faqs__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 5px 21px;
	border: 2px solid var(--ppi-blue, #089ef7);
	border-radius: 30px;
	background: transparent;
	color: var(--ppi-navy, #1a1a4a);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
	align-self: flex-start;
}

.panel-home-faqs__button:hover,
.panel-home-faqs__button:focus {
	background-color: var(--ppi-blue, #089ef7);
	color: #fff;
	text-decoration: none;
}

/* Accordion */
.panel-home-faqs__accordion {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: 763px;
	justify-self: end;
}

.panel-home-faqs__item {
	background: #fff;
}

.panel-home-faqs__question {
	margin: 0;
}

.panel-home-faqs__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	min-height: 80px;
	padding: 26px 32px;
	border: 0;
	background: transparent;
	color: var(--ppi-navy, #1a1a4a);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.panel-home-faqs__question-text {
	flex: 1 1 auto;
	font-size: 25px;
	font-weight: 400;
	line-height: 1.1;
}

.panel-home-faqs__icon {
	flex-shrink: 0;
	width: 21px;
	height: 12px;
	background: url("../../images/faqs-chevron.svg") center / contain no-repeat;
	transform: rotate(180deg);
	transition: transform 0.2s ease;
}

.panel-home-faqs__item.is-open .panel-home-faqs__icon {
	transform: rotate(0);
}

.panel-home-faqs__item.is-open .panel-home-faqs__trigger {
	padding-bottom: 20px;
}

.panel-home-faqs__panel {
	padding: 0 32px 32px;
}

.panel-home-faqs__item.is-open .panel-home-faqs__panel {
	border-top: 1px solid var(--ppi-blue, #089ef7);
	padding-top: 20px;
}

.panel-home-faqs__answer {
	color: var(--ppi-navy, #1a1a4a);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0.32px;
}

.panel-home-faqs__answer p {
	margin: 0;
}

.panel-home-faqs__answer p + p {
	margin-top: 1em;
}

@media (max-width: 1024px) {
	.panel-home-faqs__layout {
		grid-template-columns: 1fr;
	}

	.panel-home-faqs__accordion {
		max-width: none;
		justify-self: stretch;
	}

	.panel-home-faqs__intro {
		gap: 40px;
	}
}

@media (max-width: 767px) {
	.panel-home-faqs {
		padding: 64px 0;
	}

	.panel-home-faqs__watermark {
		left: 0;
		width: 240px;
		opacity: 0.6;
	}

	.panel-home-faqs__trigger {
		min-height: 0;
		padding: 24px 20px;
	}

	.panel-home-faqs__question-text {
		font-size: 20px;
	}

	.panel-home-faqs__panel,
	.panel-home-faqs__item.is-open .panel-home-faqs__panel {
		padding-left: 20px;
		padding-right: 20px;
	}
}
