/*
 * Dynamic FAQ widget.
 * Every color and size is a custom property so the Elementor widget's Style controls can override it.
 */

.sg-faq {
	--sg-faq-heading-align: center;
	--sg-faq-heading-justify: center;
	--sg-faq-subtitle: #1b1b1b;
	--sg-faq-subtitle-gap: 14px;
	--sg-faq-subtitle-icon: #0b2d49;
	--sg-faq-subtitle-icon-size: 10px;
	--sg-faq-subtitle-icon-gap: 6px;
	--sg-faq-title: #1b1b1b;
	--sg-faq-title-gap: 26px;

	--sg-faq-search-align: center;
	--sg-faq-search-width: 320px;
	--sg-faq-search-height: 32px;
	--sg-faq-search-gap: 32px;
	--sg-faq-search-text: #1b1b1b;
	--sg-faq-search-placeholder: #8a8f98;
	--sg-faq-search-bg: #ffffff;
	--sg-faq-search-border: #d9dce1;
	--sg-faq-search-focus-bg: var(--sg-faq-search-bg);
	--sg-faq-search-focus-border: #0b2d49;
	--sg-faq-search-border-width: 1px;
	--sg-faq-search-radius: 0px;
	--sg-faq-search-padding: 12px;
	--sg-faq-search-icon: #1b1b1b;
	--sg-faq-search-icon-size: 14px;

	--sg-faq-gap: 12px;
	--sg-faq-item-bg: #ffffff;
	--sg-faq-item-border: #dfe3ea;
	--sg-faq-item-hover-bg: var(--sg-faq-item-bg);
	--sg-faq-item-hover-border: var(--sg-faq-item-border);
	--sg-faq-item-active-bg: #f6f7fb;
	--sg-faq-item-active-border: var(--sg-faq-item-border);
	--sg-faq-item-border-width: 1px;
	--sg-faq-item-radius: 0px;

	--sg-faq-question: #6b7280;
	--sg-faq-question-hover: #1b1b1b;
	--sg-faq-question-active: #111111;

	--sg-faq-answer: #8a8f98;
	--sg-faq-answer-link: #12487c;
	--sg-faq-paragraph-gap: 0.8em;

	--sg-faq-icon: #6b7280;
	--sg-faq-icon-active: #111111;
	--sg-faq-icon-size: 30px;
	--sg-faq-icon-gap: 20px;

	--sg-faq-empty: #6b7280;
	--sg-faq-speed: 300ms;

	--sg-faq-more-radius: 0px;
	--sg-faq-more-icon-gap: 8px;
	--sg-faq-more-icon-size: 16px;
}

.sg-faq *,
.sg-faq *::before,
.sg-faq *::after {
	box-sizing: border-box;
}

.sg-faq .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sg-faq [hidden] {
	display: none !important;
}

/* Heading */

.sg-faq .sg-faq__header {
	text-align: var(--sg-faq-heading-align);
}

.sg-faq .sg-faq__subtitle {
	display: flex;
	align-items: center;
	justify-content: var(--sg-faq-heading-justify);
	gap: var(--sg-faq-subtitle-icon-gap);
	margin: 0 0 var(--sg-faq-subtitle-gap);
	padding: 0;
	color: var(--sg-faq-subtitle);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

.sg-faq .sg-faq__subtitle-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: var(--sg-faq-subtitle-icon-size);
	color: var(--sg-faq-subtitle-icon);
	line-height: 1;
}

.sg-faq .sg-faq__title {
	margin: 0 0 var(--sg-faq-title-gap);
	padding: 0;
	color: var(--sg-faq-title);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.12;
	text-transform: uppercase;
}

/* Icons (shared) */

.sg-faq .sg-faq__subtitle-icon svg,
.sg-faq .sg-faq__subtitle-icon img,
.sg-faq .sg-faq__search-icon svg,
.sg-faq .sg-faq__search-icon img,
.sg-faq .sg-faq__icon svg,
.sg-faq .sg-faq__icon img {
	display: block;
	width: 100%;
	height: auto;
}

.sg-faq .sg-faq__subtitle-icon svg:not([fill="none"]),
.sg-faq .sg-faq__search-icon svg:not([fill="none"]),
.sg-faq .sg-faq__icon svg:not([fill="none"]) {
	fill: currentColor;
}

.sg-faq .sg-faq__subtitle-icon i {
	font-size: var(--sg-faq-subtitle-icon-size);
}

.sg-faq .sg-faq__search-icon i {
	font-size: var(--sg-faq-search-icon-size);
}

.sg-faq .sg-faq__icon i {
	font-size: calc(var(--sg-faq-icon-size) * 0.7);
}

/* Search */

/* --sg-faq-search-offset: 0 = left, 0.5 = center, 1 = right. */
.sg-faq .sg-faq__search {
	position: relative;
	width: var(--sg-faq-search-width);
	max-width: 100%;
	margin: 0 0 var(--sg-faq-search-gap) calc((100% - min(var(--sg-faq-search-width), 100%)) * var(--sg-faq-search-offset, 0.5));
}

.sg-faq .sg-faq__search-input,
.sg-faq .sg-faq__search-input:focus {
	box-shadow: none;
	outline: none;
}

.sg-faq .sg-faq__search-input {
	display: block;
	width: 100%;
	height: var(--sg-faq-search-height);
	min-height: 0;
	margin: 0;
	padding: 0 calc(var(--sg-faq-search-padding) + var(--sg-faq-search-icon-size) + 8px) 0 var(--sg-faq-search-padding);
	border: var(--sg-faq-search-border-width) solid var(--sg-faq-search-border);
	border-radius: var(--sg-faq-search-radius);
	background: var(--sg-faq-search-bg);
	color: var(--sg-faq-search-text);
	font-family: inherit;
	font-size: 12px;
	line-height: 1.2;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.sg-faq .sg-faq__search-input::placeholder {
	color: var(--sg-faq-search-placeholder);
	opacity: 1;
}

.sg-faq .sg-faq__search-input:focus {
	border-color: var(--sg-faq-search-focus-border);
	background: var(--sg-faq-search-focus-bg);
}

.sg-faq .sg-faq__search-icon {
	position: absolute;
	top: 50%;
	right: var(--sg-faq-search-padding);
	display: inline-flex;
	width: var(--sg-faq-search-icon-size);
	color: var(--sg-faq-search-icon);
	line-height: 1;
	pointer-events: none;
	transform: translateY(-50%);
}

/* Items */

.sg-faq .sg-faq__list {
	display: flex;
	flex-direction: column;
	gap: var(--sg-faq-gap);
}

.sg-faq .sg-faq__item {
	border: var(--sg-faq-item-border-width) solid var(--sg-faq-item-border);
	border-radius: var(--sg-faq-item-radius);
	background: var(--sg-faq-item-bg);
	overflow: hidden;
	transition: background-color var(--sg-faq-speed) ease, border-color var(--sg-faq-speed) ease;
}

.sg-faq .sg-faq__item:hover {
	border-color: var(--sg-faq-item-hover-border);
	background: var(--sg-faq-item-hover-bg);
}

.sg-faq .sg-faq__item.is-open {
	border-color: var(--sg-faq-item-active-border);
	background: var(--sg-faq-item-active-bg);
}

.sg-faq .sg-faq__heading {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
}

/* Question button (resets the theme's default button styles) */

.sg-faq .sg-faq__question,
.sg-faq .sg-faq__question:hover,
.sg-faq .sg-faq__question:focus {
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.sg-faq .sg-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sg-faq-icon-gap);
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	color: var(--sg-faq-question);
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	cursor: pointer;
	transition: color 0.2s ease;
}

.sg-faq .sg-faq__question:hover {
	color: var(--sg-faq-question-hover);
}

.sg-faq .sg-faq__item.is-open .sg-faq__question {
	color: var(--sg-faq-question-active);
}

.sg-faq .sg-faq__question:focus-visible {
	outline: 2px solid var(--sg-faq-question-active);
	outline-offset: -4px;
}

.sg-faq--icon-left .sg-faq__question {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.sg-faq .sg-faq__question-text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.sg-faq .sg-faq__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: var(--sg-faq-icon-size);
	color: var(--sg-faq-icon);
	line-height: 1;
	transition: color 0.2s ease;
}

.sg-faq .sg-faq__item.is-open .sg-faq__icon {
	color: var(--sg-faq-icon-active);
}

.sg-faq .sg-faq__icon-closed,
.sg-faq .sg-faq__icon-opened {
	display: inline-flex;
	width: 100%;
	transition: transform var(--sg-faq-speed) ease;
}

.sg-faq .sg-faq__icon-opened,
.sg-faq .sg-faq__item.is-open .sg-faq__icon-closed {
	display: none;
}

.sg-faq .sg-faq__item.is-open .sg-faq__icon-opened {
	display: inline-flex;
}

.sg-faq--rotate-icon .sg-faq__item.is-open .sg-faq__icon-closed {
	display: inline-flex;
	transform: rotate(180deg);
}

/* Answer: animates height with grid rows, no JavaScript measuring */

.sg-faq .sg-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--sg-faq-speed) ease;
}

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

.sg-faq .sg-faq__answer-inner {
	min-height: 0;
	overflow: hidden;
}

.sg-faq .sg-faq__answer-content {
	padding: 0 20px 18px;
	color: var(--sg-faq-answer);
	font-size: 13px;
	line-height: 1.8;
}

.sg-faq .sg-faq__answer-content > :first-child {
	margin-top: 0;
}

.sg-faq .sg-faq__answer-content > :last-child {
	margin-bottom: 0;
}

.sg-faq .sg-faq__answer-content p {
	margin: 0 0 var(--sg-faq-paragraph-gap);
}

.sg-faq .sg-faq__answer-content a {
	color: var(--sg-faq-answer-link);
}

/* No results */

.sg-faq .sg-faq__empty {
	margin: 0;
	padding: 20px 0;
	color: var(--sg-faq-empty);
	font-size: 14px;
	text-align: center;
}

/* Show more */

.sg-faq .sg-faq__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.sg-faq .sg-faq__more {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sg-faq-more-icon-gap);
	margin: 0;
	padding: 12px 28px;
	border: 1px solid #0b2d49;
	border-radius: var(--sg-faq-more-radius);
	background: #0b2d49;
	color: #ffffff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.sg-faq .sg-faq__more:hover,
.sg-faq .sg-faq__more:focus {
	background: #0080eb;
	border-color: #0080eb;
	color: #ffffff;
}

.sg-faq .sg-faq__more-content {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sg-faq-more-icon-gap);
}

.sg-faq .sg-faq__more-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--sg-faq-more-icon-size);
	line-height: 1;
}

.sg-faq .sg-faq__more-icon svg,
.sg-faq .sg-faq__more-icon i {
	display: block;
	width: 1em;
	height: 1em;
}

.sg-faq .sg-faq__more-icon svg {
	fill: currentColor;
}

/* Elementor-style button loader on click. */
.sg-faq .sg-faq__more-loader {
	display: none;
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.sg-faq .sg-faq__more-spinner {
	display: block;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: sg-faq-spin 0.7s linear infinite;
}

.sg-faq .sg-faq__more.is-loading {
	pointer-events: none;
	cursor: wait;
}

.sg-faq .sg-faq__more.is-loading .sg-faq__more-content {
	visibility: hidden;
}

.sg-faq .sg-faq__more.is-loading .sg-faq__more-loader {
	display: inline-flex;
}

@keyframes sg-faq-spin {
	to {
		transform: rotate(360deg);
	}
}

.sg-faq-editor-empty {
	padding: 16px;
	border: 1px dashed #c3c4c7;
	color: #757575;
	font-size: 13px;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.sg-faq .sg-faq__answer,
	.sg-faq .sg-faq__item,
	.sg-faq .sg-faq__icon-closed {
		transition: none;
	}
}

@media (max-width: 767px) {
	.sg-faq .sg-faq__title {
		font-size: 28px;
	}

	.sg-faq .sg-faq__question-text {
		font-size: 15px;
	}
}
