/**
 * KS LP CTA 7 — Frontend & Editor Styles
 * Adapted from section1-hkpp.html (Haji Khusus Pindah PIN)
 *
 * @package KS_LP_Blocks
 */

.kslp-cta7-section {
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
	width: 100%;
	background: #031e15;
	color: #ffffff;
}

.kslp-cta7-section * {
	box-sizing: border-box;
}

/* Ensure KS LP CTA 7 styles take precedence over parent KS LP Blank block */
.kslp-blank-block .kslp-cta7-section {
	background: #031e15 !important;
	color: #ffffff !important;
}

.kslp-blank-block .kslp-cta7-section h2,
.kslp-blank-block .kslp-cta7-section h3,
.kslp-blank-block .kslp-cta7-section p,
.kslp-blank-block .kslp-cta7-section b,
.kslp-blank-block .kslp-cta7-section small {
	margin-top: 0;
	margin-bottom: 0;
}

/* SVG icon utility matching section1-hkpp */
.kslp-cta7-section svg.i {
	width: 1em;
	height: 1em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Phone-width container; sits centered on wide desktop */
.kslp-cta7-container {
	position: relative;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 430px;
	overflow: hidden;
	background: #031e15;
}

/* S1 Body: background with Foto Serah-Terima */
.kslp-cta7-body {
	position: relative;
	min-height: 780px;
	display: flex;
	flex-direction: column;
	background-color: #06392a;
	background-position: center min(0px, calc((390px - min(100vw, 430px)) * 1.23));
	background-size: max(100%, 390px) auto;
	background-repeat: no-repeat;
}

/* S1 Top: Header & Problem Cards */
.kslp-cta7-top {
	padding: 27.3px 23.4px 0;
	position: relative;
	z-index: 2;
}

/* Headline */
.kslp-cta7-title {
	margin: 0;
	font-weight: 800;
	font-size: 45px;
	line-height: 1.07;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
	word-break: break-word;
}

.kslp-cta7-title-part1,
.kslp-cta7-title-part2 {
	display: block;
}

.kslp-cta7-title-highlight {
	display: block;
	color: #f5c936;
	font-size: 42.9px;
	margin-top: 0.04em;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

/* "Tapi..." Badge */
.kslp-cta7-badge-wrap {
	display: block;
	margin-top: 0.14em;
}

.kslp-cta7-badge {
	display: inline-block;
	color: #0b4d36;
	background: #ffffff;
	border-radius: 12px;
	padding: 0.02em 0.35em 0.1em;
	font-size: 42.9px;
	line-height: 1.1;
	user-select: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* 3 Problem Cards (Pains Grid) */
.kslp-cta7-pains {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 9.4px;
	margin-top: 19.5px;
}

.kslp-cta7-pain {
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 14px;
	padding: 11.7px 6.2px 12.5px;
	text-align: center;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	height: 123px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
	transition: transform 0.2s ease;
}

.kslp-cta7-pain:hover {
	transform: translateY(-2px);
}

.kslp-cta7-pain .kslp-cta7-pain-ic {
	width: 42.9px;
	height: 42.9px;
	max-width: 52px;
	max-height: 52px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	display: grid;
	place-items: center;
	margin: 0 auto 7px;
	font-size: 21.1px;
	flex-shrink: 0;
	color: #ffffff;
}

.kslp-cta7-pain .kslp-cta7-pain-ic svg {
	width: 1em;
	height: 1em;
}

.kslp-cta7-pain b,
.kslp-cta7-pain .kslp-cta7-pain-title {
	display: block;
	font-size: 12.5px;
	white-space: nowrap;
	line-height: 1.25;
	font-weight: 700;
	margin: 0 0 2px 0;
	color: #ffffff;
}

.kslp-cta7-pain p,
.kslp-cta7-pain .kslp-cta7-pain-desc {
	font-size: 11.3px;
	line-height: 1.3;
	color: #e3ece6;
	margin: 0;
}

/* S1 Gap (Reveals handover photo in the middle) */
.kslp-cta7-gap {
	flex: 1;
	min-height: 200px;
	height: 190px;
}

/* S1 Bottom: Solution & Steps */
.kslp-cta7-bottom {
	padding: 0 23.4px 22px;
	text-align: center;
	background: linear-gradient(to bottom, rgba(4, 41, 29, 0) 0%, rgba(4, 41, 29, 0.55) 30%, rgba(4, 41, 29, 0.75) 100%);
	position: relative;
	z-index: 2;
}

.kslp-cta7-bottom .kslp-cta7-t1 {
	font-size: 21.4px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 2px 0;
	color: #ffffff;
}

.kslp-cta7-bottom .kslp-cta7-t2 {
	font-size: 20.3px;
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 2px 0;
	color: #ffffff;
}

.kslp-cta7-bottom .kslp-cta7-t3 {
	font-size: 25px;
	font-weight: 700;
	color: #e8c477;
	line-height: 1.25;
	margin-top: 2px;
	margin-bottom: 0;
}

/* Flow: 3 Steps with Arrows */
.kslp-cta7-flow {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 11.7px;
	margin-top: 23.4px;
}

.kslp-cta7-flow .kslp-cta7-st {
	width: 81.9px;
	max-width: 100px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.kslp-cta7-flow .kslp-cta7-ring {
	width: 58.5px;
	height: 58.5px;
	max-width: 72px;
	max-height: 72px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.75);
	display: grid;
	place-items: center;
	margin: 0 auto 7.8px;
	font-size: 27.3px;
	flex-shrink: 0;
	color: #ffffff;
	transition: transform 0.2s ease;
}

.kslp-cta7-flow .kslp-cta7-ring:hover {
	transform: scale(1.08);
}

.kslp-cta7-flow .kslp-cta7-ring svg {
	width: 1em;
	height: 1em;
}

.kslp-cta7-flow small,
.kslp-cta7-flow .kslp-cta7-step-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #ffffff;
}

.kslp-cta7-flow .kslp-cta7-arr {
	color: #e8c477;
	font-size: 23.4px;
	margin-top: 15.6px;
	line-height: 1;
	user-select: none;
}

/* Optional CTA Button */
.kslp-cta7-button-wrap {
	text-align: center;
	margin-top: 20px;
}

.kslp-cta7-button {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	padding: 12px 24px;
	border-radius: 12px;
	background: #1faa53;
	color: #ffffff !important;
	box-shadow: 0 6px 16px rgba(31, 170, 83, 0.28);
	transition: transform 0.15s ease;
	cursor: pointer;
}

.kslp-cta7-button:hover,
.kslp-cta7-button:active {
	transform: scale(0.98);
}

.kslp-cta7-button-main {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.kslp-cta7-button-sub {
	font-size: 12px;
	font-weight: 500;
	opacity: 0.88;
	margin-top: 2px;
	line-height: 1.2;
}

/* S1 Fade: Gradient blending bottom to cream/next section */
.kslp-cta7-fade {
	height: 121px;
	background: linear-gradient(to bottom, rgba(4, 41, 29, 0.75) 0%, #0a3627 30%, #2c5f4b 52%, #8fae9c 76%, #dfe5dc 100%);
	width: 100%;
}

/* Responsive adjustments for very small screens (< 380px) */
@media (max-width: 380px) {
	.kslp-cta7-top {
		padding: 20px 14px 0;
	}
	.kslp-cta7-title {
		font-size: 35px !important;
	}
	.kslp-cta7-title-highlight,
	.kslp-cta7-badge {
		font-size: 34px !important;
	}
	.kslp-cta7-pains {
		gap: 6px;
	}
	.kslp-cta7-pain {
		padding: 8px 4px 10px;
		height: auto;
		min-height: 110px;
	}
	.kslp-cta7-pain .kslp-cta7-pain-ic {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}
	.kslp-cta7-pain b {
		font-size: 11px;
	}
	.kslp-cta7-pain p {
		font-size: 10px;
	}
	.kslp-cta7-bottom {
		padding: 0 14px 18px;
	}
	.kslp-cta7-bottom .kslp-cta7-t1 {
		font-size: 18px;
	}
	.kslp-cta7-bottom .kslp-cta7-t2 {
		font-size: 17px;
	}
	.kslp-cta7-bottom .kslp-cta7-t3 {
		font-size: 21px;
	}
	.kslp-cta7-flow {
		gap: 6px;
	}
	.kslp-cta7-flow .kslp-cta7-st {
		width: 72px;
	}
	.kslp-cta7-flow .kslp-cta7-ring {
		width: 46px;
		height: 46px;
		font-size: 21px;
	}
	.kslp-cta7-flow small {
		font-size: 12px;
	}
}
