/* ============================================================
   FAQ PAGE — LKP UTAMA JAYA
   File: assets/css/faq.css
   ============================================================ */

/* ============================================================
   1. HERO SECTION
   ============================================================ */
.faq-hero-section {
	margin-top: 60px;
	margin-bottom: 80px;
}

.faq-hero {
	text-align: center;
	max-width: 780px;
	margin: 0 auto;
}

.faq-hero-title {
	font-family: var(--poppins);
	font-size: 44px;
	font-weight: 700;
	color: var(--heading);
	line-height: 1.25;
	margin-bottom: 20px;
	margin-top: 12px;
}

.faq-hero-desc {
	font-family: var(--nunito);
	font-size: 17px;
	font-weight: 400;
	color: var(--p-panjang);
	line-height: 1.7;
	margin-bottom: 32px;
}

.faq-hero-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
}

.faq-hero-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	color: var(--primary);
	border: 2px solid var(--primary);
	border-radius: 100px;
	font-family: var(--poppins);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.faq-hero-link:hover {
	background-color: var(--primary);
	color: var(--bg-white);
	transform: translateY(-2px);
}

/* ============================================================
   2. SECTION HEAD CENTER (shared)
   ============================================================ */
.faq-cabang-section,
.faq-main-section,
.faq-cta-section {
	margin-bottom: 100px;
}

/* ============================================================
   3. CABANG CARD
   ============================================================ */
.faq-cabang-card {
	background-color: var(--bg-white);
	border: 2px solid var(--blue-soft-2);
	border-radius: 24px;
	padding: 32px;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: all 0.4s ease;
	position: relative;
	overflow: hidden;
}

.faq-cabang-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--yellow));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
}

.faq-cabang-card:hover {
	border-color: var(--primary);
	transform: translateY(-6px);
	box-shadow: 0 20px 40px -12px rgba(24, 95, 255, 0.2);
}

.faq-cabang-card:hover::before {
	transform: scaleX(1);
}

.faq-cabang-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.faq-cabang-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background-color: var(--blue-soft-1);
	color: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	transition: all 0.3s ease;
}

.faq-cabang-card:hover .faq-cabang-icon {
	background-color: var(--primary);
	color: var(--bg-white);
}

.faq-cabang-badge {
	display: inline-block;
	background-color: var(--blue-soft-1);
	color: var(--primary);
	font-family: var(--nunito);
	font-size: 12px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 100px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.faq-cabang-name {
	font-family: var(--poppins);
	font-size: 22px;
	font-weight: 700;
	color: var(--heading);
	margin-bottom: 20px;
	line-height: 1.3;
}

.faq-cabang-info {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.faq-cabang-info li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-family: var(--nunito);
	font-size: 14px;
	font-weight: 500;
	color: var(--p-panjang);
	line-height: 1.6;
}

.faq-cabang-info-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background-color: var(--blue-soft-1);
	color: var(--primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 14px;
}

.faq-cabang-info-icon .svg-icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
	display: block;
}

.faq-cabang-action {
	display: flex;
	gap: 10px;
	padding-top: 20px;
	border-top: 1px solid var(--blue-soft-2);
}

.faq-cabang-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 100px;
	font-family: var(--poppins);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	flex: 1;
	white-space: nowrap;
}

.faq-cabang-btn-primary {
	background-color: var(--primary);
	color: var(--bg-white);
	border: 2px solid var(--primary);
}

.faq-cabang-btn-primary:hover {
	background-color: var(--heading);
	border-color: var(--heading);
	color: var(--bg-white);
	transform: translateY(-2px);
}

.faq-cabang-btn-outline {
	background-color: transparent;
	color: var(--primary);
	border: 2px solid var(--primary);
}

.faq-cabang-btn-outline:hover {
	background-color: var(--primary);
	color: var(--bg-white);
	transform: translateY(-2px);
}

.faq-cabang-btn .svg-icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
	display: block;
}

/* ============================================================
   4. FAQ MAIN SECTION — KATEGORI HEADER
   ============================================================ */
.faq-kategori-block {
	margin-bottom: 48px;
}

.faq-kategori-block:last-child {
	margin-bottom: 0;
}

.faq-kategori-head {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 24px;
	background-color: var(--blue-soft-1);
	border-radius: 20px;
	margin-bottom: 20px;
	border-left: 4px solid var(--primary);
}

.faq-kategori-icon-wrap {
	flex-shrink: 0;
}

.faq-kategori-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background-color: var(--primary);
	color: var(--bg-white);
	border-radius: 14px;
	font-family: var(--poppins);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 8px 16px -4px rgba(24, 95, 255, 0.4);
}

.faq-kategori-title-wrap {
	flex: 1;
	min-width: 0;
}

.faq-kategori-label {
	font-family: var(--nunito);
	font-size: 12px;
	font-weight: 600;
	color: var(--primary);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 2px;
	line-height: 1;
}

.faq-kategori-title {
	font-family: var(--poppins);
	font-size: 20px;
	font-weight: 700;
	color: var(--heading);
	margin-bottom: 0;
	line-height: 1.3;
}

.faq-kategori-count {
	font-family: var(--nunito);
	font-size: 13px;
	font-weight: 600;
	color: var(--p-pendek);
	background-color: var(--bg-white);
	padding: 6px 14px;
	border-radius: 100px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ============================================================
   5. FAQ ACCORDION
   ============================================================ */
.faq-accordion .faq-item {
	background-color: var(--bg-white);
	border: 2px solid var(--blue-soft-2);
	border-radius: 16px !important;
	margin-bottom: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq-accordion .faq-item:last-child {
	margin-bottom: 0;
}

.faq-accordion .faq-item:hover {
	border-color: var(--primary);
}

.faq-accordion .faq-item:has(.faq-button:not(.collapsed)) {
	border-color: var(--primary);
	box-shadow: 0 10px 24px -8px rgba(24, 95, 255, 0.15);
}

/* ============================================================
   BUTTON — dengan chevron SVG
   ============================================================ */
.faq-accordion .faq-button {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	background-color: var(--bg-white);
	color: var(--heading);
	font-family: var(--poppins);
	font-size: 16px;
	font-weight: 600;
	padding: 22px 64px 22px 24px; /* kanan 64px untuk chevron */
	border: none;
	box-shadow: none !important;
	border-radius: 16px !important;
	line-height: 1.5;
	text-align: left;
	cursor: pointer;
	transition: all 0.3s ease;
}

.faq-accordion .faq-button:focus {
	box-shadow: none !important;
	outline: none;
	border: none;
}

.faq-accordion .faq-button:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

/* Chevron icon — inline SVG via CSS */
.faq-accordion .faq-button::after {
	/* RESET FontAwesome */
	content: "" !important;
	font-family: inherit !important;
	background-image: none;

	/* SVG chevron-down (primary blue) */
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23185fff' d='M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;

	/* Layout */
	position: absolute;
	right: 24px;
	top: 50%;
	width: 32px;
	height: 32px;
	margin: 0;
	transform: translateY(-50%);
	border-radius: 10px;
	background-color: var(--blue-soft-1);
	transition: transform 0.3s ease, background-color 0.3s ease, background-image 0.3s ease;

	/* Visibility */
	display: block !important;
	visibility: visible;
	opacity: 1;
	flex-shrink: 0;
}

/* Hover state */
.faq-accordion .faq-button:hover {
	color: var(--primary);
	background-color: var(--blue-soft-1);
}

.faq-accordion .faq-button:hover::after {
	background-color: var(--primary);
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23ffffff' d='M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z'/%3E%3C/svg%3E");
}

/* Active/Open state */
.faq-accordion .faq-button:not(.collapsed) {
	background-color: var(--blue-soft-1);
	color: var(--primary);
}

.faq-accordion .faq-button:not(.collapsed)::after {
	transform: translateY(-50%) rotate(180deg);
	background-color: var(--primary);
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23ffffff' d='M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z'/%3E%3C/svg%3E");
}

/* Button text */
.faq-button-text {
	flex: 1;
	text-align: left;
	line-height: 1.5;
}

/* Body */
.faq-accordion .faq-body {
	background-color: var(--blue-soft-1);
	padding: 4px 24px 24px 24px;
	border-top: 1px solid rgba(24, 95, 255, 0.15);
}

.faq-body-inner {
	font-family: var(--nunito);
	font-size: 15px;
	font-weight: 400;
	color: var(--p-panjang);
	line-height: 1.75;
	padding-top: 20px;
	position: relative;
}

/* Bullet point sebelum body text */
.faq-body-inner::before {
	content: "";
	position: absolute;
	left: 0;
	top: 28px;
	width: 4px;
	height: calc(100% - 28px);
	background-color: var(--primary);
	border-radius: 2px;
	opacity: 0.3;
}

.faq-body-inner {
	padding-left: 16px;
}

/* ============================================================
   6. CTA SECTION (BOTTOM)
   ============================================================ */
.faq-cta {
	background-color: var(--heading);
	border-radius: 30px;
	padding: 50px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	position: relative;
	overflow: hidden;
}

.faq-cta::before {
	content: "";
	position: absolute;
	top: -50%;
	right: -10%;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(24, 95, 255, 0.35) 0%, transparent 70%);
	pointer-events: none;
}

.faq-cta-content {
	position: relative;
	z-index: 1;
	max-width: 560px;
}

.faq-cta-title {
	font-family: var(--poppins);
	font-size: 26px;
	font-weight: 700;
	color: var(--bg-white);
	margin-bottom: 10px;
	line-height: 1.3;
}

.faq-cta-desc {
	font-family: var(--nunito);
	font-size: 15px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.7;
	margin-bottom: 0;
}

.faq-cta-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.faq-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	border-radius: 100px;
	font-family: var(--poppins);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	border: 2px solid transparent;
}

.faq-cta-btn-primary {
	background-color: #25d366;
	color: var(--bg-white);
	border-color: #25d366;
}

.faq-cta-btn-primary:hover {
	background-color: #128c7e;
	border-color: #128c7e;
	color: var(--bg-white);
	transform: translateY(-2px);
	box-shadow: 0 15px 30px -8px rgba(37, 211, 102, 0.5);
}

.faq-cta-btn-outline {
	background-color: transparent;
	color: var(--bg-white);
	border-color: rgba(255, 255, 255, 0.5);
}

.faq-cta-btn-outline:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: var(--bg-white);
	color: var(--bg-white);
	transform: translateY(-2px);
}

/* ============================================================
   7. RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
	.faq-hero-title {
		font-size: 34px;
	}

	.faq-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 40px 30px;
	}

	.faq-cta-title {
		font-size: 22px;
	}
}

@media (max-width: 768px) {
	.faq-hero-section {
		margin-top: 30px;
		margin-bottom: 50px;
	}

	.faq-hero-title {
		font-size: 26px;
	}

	.faq-hero-desc {
		font-size: 15px;
	}

	.faq-hero-actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.faq-hero-actions .tombol-primary,
	.faq-hero-link {
		width: 100%;
		justify-content: center;
	}

	.faq-cabang-section,
	.faq-main-section,
	.faq-cta-section {
		margin-bottom: 60px;
	}

	.faq-cabang-card {
		padding: 24px;
	}

	.faq-cabang-name {
		font-size: 18px;
	}

	.faq-cabang-action {
		flex-direction: column;
	}

	.faq-cabang-btn {
		width: 100%;
	}

	/* Kategori header — stack */
	.faq-kategori-head {
		flex-wrap: wrap;
		padding: 16px 18px;
		gap: 12px;
	}

	.faq-kategori-number {
		width: 40px;
		height: 40px;
		font-size: 15px;
		border-radius: 12px;
	}

	.faq-kategori-title {
		font-size: 16px;
	}

	.faq-kategori-label {
		font-size: 11px;
	}

	.faq-kategori-count {
		font-size: 11px;
		padding: 4px 10px;
		width: 100%;
		text-align: center;
	}

	/* Button */
	.faq-accordion .faq-button {
		font-size: 14px;
		padding: 18px 54px 18px 18px;
	}

	.faq-accordion .faq-button::after {
		right: 16px;
		width: 28px;
		height: 28px;
		background-size: 14px 14px;
	}

	/* Body */
	.faq-accordion .faq-body {
		padding: 4px 18px 20px 18px;
	}

	.faq-body-inner {
		font-size: 14px;
		padding-left: 12px;
	}

	/* CTA */
	.faq-cta {
		padding: 32px 24px;
		border-radius: 24px;
	}

	.faq-cta-title {
		font-size: 18px;
	}

	.faq-cta-desc {
		font-size: 14px;
	}

	.faq-cta-actions {
		width: 100%;
		flex-direction: column;
	}

	.faq-cta-btn {
		width: 100%;
		justify-content: center;
	}
}
