/* Widget FAQ (TICKET-064) — akordeon bernomor, tombol bulat +/×, kotak ajakan. */

.akn-faq {
	--akn-faq-ink: #2A1B14;
	--akn-faq-muted: #7A6A60;
	--akn-faq-line: #EADFD6;
	--akn-faq-accent: #C0573A;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	color: var(--akn-faq-ink);
	overflow-x: clip;
}
.akn-faq *,
.akn-faq *::before,
.akn-faq *::after { box-sizing: border-box; }

.akn-faq .akn-faq__item { min-width: 0; padding-block: 28px; border-bottom: 1px solid var(--akn-faq-line); }
.akn-faq .akn-faq__q {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 0;
	font: inherit;
	text-align: left;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	white-space: normal;
}
.akn-faq .akn-faq__q:hover,
.akn-faq .akn-faq__q:focus { background: transparent; color: inherit; outline: none; box-shadow: none; }
.akn-faq .akn-faq__q:focus-visible { outline: 2px solid var(--akn-faq-accent); outline-offset: 6px; }

.akn-faq .akn-faq__num {
	flex: 0 0 var(--akn-faq-numw, 96px);
	font-family: ui-monospace, SFMono-Regular, monospace;
	font-size: 13px;
	letter-spacing: .12em;
	color: var(--akn-faq-accent);
}
.akn-faq .akn-faq__ico { display: inline-flex; font-size: 22px; line-height: 1; }
.akn-faq .akn-faq__ico svg, .akn-faq .akn-faq__ico i { width: 1em; height: 1em; font-size: inherit; color: inherit; fill: currentColor; }
.akn-faq--no-num .akn-faq__q { gap: 0; }
.akn-faq .akn-faq__text { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; white-space: normal; font-size: 26px; line-height: 1.3; font-weight: 500; color: var(--akn-faq-ink); }

/* Tombol bulat: + saat tertutup, × saat terbuka. */
.akn-faq .akn-faq__toggle {
	position: relative;
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	margin-left: auto;
	color: var(--akn-faq-accent);
	background: #F4E7DB;
	border-radius: 50%;
	transition: background .25s ease, color .25s ease;
}
.akn-faq .akn-faq__toggle::before,
.akn-faq .akn-faq__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transform: translate(-50%, -50%);
	transition: transform .25s ease;
}
.akn-faq .akn-faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.akn-faq .akn-faq__item.is-open .akn-faq__toggle { color: #fff; background: var(--akn-faq-accent); }
.akn-faq .akn-faq__item.is-open .akn-faq__toggle::before { transform: translate(-50%, -50%) rotate(45deg); }
.akn-faq .akn-faq__item.is-open .akn-faq__toggle::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Jawaban: buka tutup halus. */
.akn-faq .akn-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.akn-faq .akn-faq__a > div { overflow: hidden; }
.akn-faq .akn-faq__item.is-open .akn-faq__a { grid-template-rows: 1fr; }
.akn-faq .akn-faq__answer { margin: 0; padding: 20px 76px 0 calc(var(--akn-faq-numw, 96px) + 24px); font-size: 17px; line-height: 1.6; color: var(--akn-faq-muted); }
.akn-faq--no-num .akn-faq__answer { padding-left: 0; }

/* Kotak ajakan */
.akn-faq .akn-faq__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 48px;
	padding: 28px 40px;
	background: #F8DEC4;
	border-radius: 28px;
}
.akn-faq .akn-faq__cta-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.akn-faq .akn-faq__cta-title { font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--akn-faq-ink); }
.akn-faq .akn-faq__cta-text { font-size: 16px; color: #6A5648; }
.akn-faq .akn-faq__cta-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 32px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: #fff;
	background: var(--akn-faq-accent);
	border: 1px solid transparent;
	border-radius: 999px;
	transition: background .2s ease, color .2s ease;
}
.akn-faq .akn-faq__cta-btn:hover { color: #fff; background: #9F4128; }

@media (max-width: 767px) {
	.akn-faq { --akn-faq-numw: 36px; }
	.akn-faq .akn-faq__q { gap: 14px; }
	.akn-faq .akn-faq__text { font-size: 19px; }
	.akn-faq .akn-faq__toggle { width: 40px; height: 40px; }
	.akn-faq .akn-faq__answer { padding: 14px 0 0 calc(var(--akn-faq-numw, 36px) + 14px); font-size: 15px; }
	.akn-faq--no-num .akn-faq__answer { padding-left: 0; }
	.akn-faq .akn-faq__cta { flex-direction: column; align-items: flex-start; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.akn-faq .akn-faq__a,
	.akn-faq .akn-faq__toggle,
	.akn-faq .akn-faq__toggle::before,
	.akn-faq .akn-faq__toggle::after { transition: none; }
}

/* Elegan: kartu terpisah dan chevron, memakai markup/interaction yang sama. */
.akn-faq--elegant { --akn-faq-ink: #301f32; --akn-faq-muted: #756875; --akn-faq-accent: #b43e70; --akn-faq-numw: 40px; }
.akn-faq--elegant .akn-faq__list { display: grid; gap: 16px; }
.akn-faq--elegant .akn-faq__item { padding: 28px 32px; border: 1px solid var(--akn-faq-line); border-radius: 28px; background: #fff; }
.akn-faq--elegant .akn-faq__num { font-family: Georgia, serif; font-size: 26px; font-style: italic; letter-spacing: 0; }
.akn-faq--elegant .akn-faq__text { font-size: 22px; }
.akn-faq--elegant .akn-faq__toggle,
.akn-faq--elegant .akn-faq__item.is-open .akn-faq__toggle { background: transparent; color: var(--akn-faq-accent); }
.akn-faq--elegant .akn-faq__toggle::before { width: 14px; height: 14px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 0; background: transparent; transform: translate(-50%, -70%) rotate(45deg); }
.akn-faq--elegant .akn-faq__item.is-open .akn-faq__toggle::before { transform: translate(-50%, -30%) rotate(225deg); }
.akn-faq--elegant .akn-faq__toggle::after { display: none; }
@media (max-width: 767px) {
	.akn-faq--elegant { --akn-faq-numw: 28px; }
	.akn-faq--elegant .akn-faq__item { padding: 20px 16px; border-radius: 22px; }
	.akn-faq--elegant .akn-faq__num { font-size: 22px; }
	.akn-faq--elegant .akn-faq__text { font-size: 18px; }
}
