/**
 * FAQ Accordion block styles.
 * BEM methodology. Desktop 1440px.
 *
 * @package Harmony
 */

.faq {
	width: 100%;
	padding: 120px 0 0;
}

.faq__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 46px;
}

.faq__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 32px;
}

.faq__label {
	display: flex;
	align-items: center;
	gap: 8px;
}

.faq__label-dot {
	width: 6px;
	height: 6px;
	background: var(--blue-284d8a);
	flex-shrink: 0;
}

.faq__label-text {
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 15px;
	text-transform: lowercase;
	color: var(--blue-284d8a);
}

.faq__title {
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 32px;
	line-height: 119%;
	text-transform: uppercase;
	color: var(--black-292929);
	margin:0;
	max-width: 670px;
	width: 100%;
}

.faq__items {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.faq__item {
	display: flex;
	border-top: 1px solid var(--line-dadada);
	border-bottom: 1px solid var(--line-dadada);
	margin-bottom: -1px;
}

.faq__item-left {
	display: flex;
	align-items: flex-start;
	width: 50%;
	padding: 32px 0;
	border-right: 1px solid var(--line-dadada);
}

.faq__item-label {
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 18px;
	color: var(--black-292929);
}

.faq__item-right {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 50%;
	padding: 32px 0 32px 32px;
}

.faq__item-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	cursor: pointer;
}

.faq__item-title {
	font-family: var(--font-family);
	font-weight: 400;
	font-size: 16px;
	line-height: 125%;
	color: var(--grey-808080);
	margin: 0;
	flex: 1;
}

.faq__item-icon {
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	flex-shrink: 0;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.faq__icon-plus,
.faq__icon-close {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: opacity 0.3s, transform 0.3s;
}

.faq__icon-plus {
	opacity: 1;
	transform: rotate(0deg);
}

.faq__icon-close {
	opacity: 0;
	transform: rotate(90deg);
}

.faq__item.is-open .faq__icon-plus {
	opacity: 0;
	transform: rotate(90deg);
}

.faq__item.is-open .faq__icon-close {
	opacity: 1;
	transform: rotate(0deg);
}

.faq__item-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, opacity 0.3s;
	opacity: 0;
	padding: 0;
}

.faq__item.is-open .faq__item-body {
	max-height: 1000px;
	opacity: 1;
	padding: 24px 0 0 0;
}

.faq__item-answer {
	font-family: var(--font-family);
	font-weight: 400;
	font-size: 16px;
	line-height: 119%;
	color: var(--black-292929);
	margin: 0 0 24px 0;
	max-width: 470px;
}

.faq__item-answer p {
	margin: 0 0 16px 0;
}

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

.faq__item-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	background: var(--blue-284d8a);
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 13px;
	text-transform: uppercase;
	color: var(--white-ffffff);
	text-decoration: none;
	transition: opacity 0.2s;
	width: fit-content;
}

.faq__item-button:hover {
	opacity: 0.9;
}

@media (max-width: 1440px){
	.faq__title {
		max-width: 50%;
	}
}

/* Mobile: 550px and below */
@media (max-width: 769px) {
	.faq {
		padding: 60px 0 0;
	}

	.faq__inner {
		padding: 0;
		margin-left: auto;
		margin-right: auto;
	}

	.faq__header {
		flex-direction: column;
		gap: 8px;
		margin-bottom: 28px;
		padding: 0 14px;
	}

	.faq__title {
		font-size: 32px;
		max-width: none;
	}

	.faq__item {
		display: grid;
		grid-template-columns: 1fr 26px;
		grid-template-rows: auto auto auto;
		gap: 4px 32px;
		align-items: start;
		padding: 13px 14px 0;
		min-height: 43px;
	}

	.faq__item-right {
		display: contents;
	}

	.faq__item-header {
		display: contents;
	}

	.faq__item-left {
		grid-column: 1;
		grid-row: 1;
		width: auto;
		padding: 0;
		border: none;
	}

	.faq__item-label {
		font-size: 18px;
		font-weight: 600;
		color: #282828;
	}

	.faq__item-title {
		grid-column: 1;
		grid-row: 2;
		font-size: 14px;
		font-weight: 500;
		color: #282828;
		margin: 0;
	}

	.faq__item:not(:has(.faq__item-left)) .faq__item-title {
		grid-row: 1;
	}

	.faq__item:not(:has(.faq__item-left)) .faq__item-icon {
		grid-row: 1 / 2;
	}

	.faq__item:not(:has(.faq__item-left)) .faq__item-body {
		grid-row: 2;
	}

	.faq__item-icon {
		grid-column: 2;
		grid-row: 1 / 3;
		align-self: center;
		width: 26px;
		height: 26px;
		margin: -30px -40px 0 0;
		padding: 0;
		background-color: var(--white-ffffff);
	}

	.faq__item-icon svg {
		width: 25px;
        height: 25px;
	}

	.faq__item-body {
		grid-column: 1 / -1;
		grid-row: 3;
		padding: 10px 0 0 0;
	}

	.faq__item.is-open .faq__item-body {
		padding: 16px 0 16px 0;
	}

	.faq__item-answer {
		font-size: 14px;
		max-width: none;
		margin-bottom: 16px;
	}

	.faq__item-answer p {
		margin-bottom: 12px;
	}
}
