/* VC FAQ Toggle — frontend styles
   All colors/spacing driven by CSS custom properties set inline per shortcode instance. */

.vcft-wrap {
	--vcft-primary: #0b1e3d;
	--vcft-accent: #c9a227;
	--vcft-text: #1c1c1c;
	--vcft-bg: #ffffff;
	--vcft-radius: 10px;
	--vcft-speed: 350ms;
	box-sizing: border-box;
	font-family: inherit;
}
.vcft-wrap *,
.vcft-wrap *::before,
.vcft-wrap *::after {
	box-sizing: border-box;
}

.vcft-item {
	background: var(--vcft-bg);
	color: var(--vcft-text);
}

.vcft-question-heading {
	margin: 0;
	font-size: 1em;
	font-weight: 400;
}

.vcft-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	font: inherit;
	padding: 18px 20px;
	color: var(--vcft-primary);
	font-weight: 600;
	font-size: 1.05em;
	transition: color var(--vcft-speed) ease, background-color var(--vcft-speed) ease;
}
.vcft-wrap .vcft-icon-pos--left .vcft-question {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.vcft-question:focus-visible {
	outline: 2px solid var(--vcft-accent);
	outline-offset: -2px;
}

.vcft-question-text {
	flex: 1;
}

/* Icon */
.vcft-icon {
	position: relative;
	flex: none;
	width: 22px;
	height: 22px;
}
.vcft-icon-bar {
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--vcft-accent);
	border-radius: 2px;
	transform: translate(-50%, -50%);
	transition: transform var(--vcft-speed) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--vcft-speed) ease, background-color var(--vcft-speed) ease;
}
.vcft-icon-bar--h {
	width: 100%;
	height: 2px;
}
.vcft-icon-bar--v {
	width: 2px;
	height: 100%;
}

/* Default (closed) icon = plus. Open state transforms depending on icon style. */

/* plus -> cross (X) */
.vcft-icon--plus-cross .vcft-item.is-open .vcft-icon-bar--h {
	transform: translate(-50%, -50%) rotate(45deg);
}
.vcft-icon--plus-cross .vcft-item.is-open .vcft-icon-bar--v {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* plus -> minus */
.vcft-icon--plus-minus .vcft-item.is-open .vcft-icon-bar--v {
	transform: translate(-50%, -50%) scaleY(0);
	opacity: 0;
}

/* chevron: hide the plus bars, use a rotating chevron drawn with the same two bars as a V shape */
.vcft-icon--chevron .vcft-icon-bar--h,
.vcft-icon--chevron .vcft-icon-bar--v {
	width: 10px;
	height: 2px;
	top: 40%;
}
.vcft-icon--chevron .vcft-icon-bar--h {
	left: 35%;
	transform: translate(-50%, -50%) rotate(45deg);
}
.vcft-icon--chevron .vcft-icon-bar--v {
	left: 65%;
	transform: translate(-50%, -50%) rotate(-45deg);
	width: 10px;
	height: 2px;
}
.vcft-icon--chevron .vcft-icon {
	transition: transform var(--vcft-speed) ease;
}
.vcft-icon--chevron .vcft-item.is-open .vcft-icon {
	transform: rotate(180deg);
}

/* arrow: same rotate treatment, distinct visual weight via accent bg circle handled in card/boxed designs */
.vcft-icon--arrow .vcft-icon-bar--h,
.vcft-icon--arrow .vcft-icon-bar--v {
	width: 9px;
	height: 2px;
	top: 42%;
}
.vcft-icon--arrow .vcft-icon-bar--h {
	left: 34%;
	transform: translate(-50%, -50%) rotate(45deg);
}
.vcft-icon--arrow .vcft-icon-bar--v {
	left: 66%;
	transform: translate(-50%, -50%) rotate(-45deg);
}
.vcft-icon--arrow .vcft-icon {
	transition: transform var(--vcft-speed) ease;
}
.vcft-icon--arrow .vcft-item.is-open .vcft-icon {
	transform: rotate(180deg);
}

/* Smooth expand/collapse using CSS grid-rows trick — no JS height math needed */
.vcft-answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--vcft-speed) cubic-bezier(0.4, 0, 0.2, 1);
}
.vcft-item.is-open .vcft-answer {
	grid-template-rows: 1fr;
}
.vcft-answer-inner {
	overflow: hidden;
	min-height: 0;
}
.vcft-answer-inner > * {
	padding: 0 20px 20px;
	margin: 0;
	line-height: 1.65;
}
.vcft-answer-inner > *:first-child {
	margin-top: 0;
}

/* ============ DESIGN: classic ============ */
.vcft-design--classic .vcft-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.vcft-design--classic .vcft-item:first-child {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.vcft-design--classic .vcft-item.is-open .vcft-question {
	color: var(--vcft-accent);
}

/* ============ DESIGN: minimal (underline grows on open) ============ */
.vcft-design--minimal .vcft-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	position: relative;
}
.vcft-design--minimal .vcft-question {
	padding-left: 0;
	padding-right: 0;
}
.vcft-design--minimal .vcft-item::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 2px;
	width: 0;
	background: var(--vcft-accent);
	transition: width var(--vcft-speed) ease;
}
.vcft-design--minimal .vcft-item.is-open::after {
	width: 100%;
}
.vcft-design--minimal .vcft-answer-inner > * {
	padding-left: 0;
	padding-right: 0;
}

/* ============ DESIGN: card (each item its own elevated card) ============ */
.vcft-design--card {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.vcft-design--card .vcft-item {
	border-radius: var(--vcft-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.06);
	overflow: hidden;
	transition: box-shadow var(--vcft-speed) ease, transform var(--vcft-speed) ease;
}
.vcft-design--card .vcft-item.is-open {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.vcft-design--card .vcft-item.is-open .vcft-question {
	background: color-mix(in srgb, var(--vcft-primary) 6%, transparent);
}

/* ============ DESIGN: bordered-accent (left accent bar highlights on open) ============ */
.vcft-design--bordered-accent {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vcft-design--bordered-accent .vcft-item {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-left: 3px solid transparent;
	border-radius: 4px;
	transition: border-left-color var(--vcft-speed) ease;
}
.vcft-design--bordered-accent .vcft-item.is-open {
	border-left-color: var(--vcft-accent);
}

/* ============ DESIGN: boxed-shadow (single boxed container, dividers inside) ============ */
.vcft-design--boxed-shadow {
	border-radius: var(--vcft-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(0, 0, 0, 0.06);
	overflow: hidden;
}
.vcft-design--boxed-shadow .vcft-item + .vcft-item {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.vcft-design--boxed-shadow .vcft-item.is-open .vcft-question {
	background: color-mix(in srgb, var(--vcft-primary) 5%, transparent);
}

/* Radius applies to first design's fully-boxed container variants */
.vcft-design--card .vcft-item,
.vcft-design--boxed-shadow {
	border-radius: var(--vcft-radius);
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
	.vcft-answer,
	.vcft-icon-bar,
	.vcft-icon,
	.vcft-item::after,
	.vcft-item {
		transition-duration: 1ms !important;
	}
}

.vcft-empty {
	opacity: 0.7;
	font-style: italic;
}
