/*
 * CLS Lead Forms - mobile-first. Warna mengikuti skin tema Smarty:
 * hijau #309bae (stm "green"), biru #00aaff, navy #011b3a.
 */

/* ---------- Layout halaman: pengantar, how-to 1 baris, form, bantuan ---------- */
.cls-lf-wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 28px 0 44px;
}
@media (min-width: 768px) {
	.cls-lf-wrap {
		padding: 48px 0 70px;
	}
}
.cls-lf-intro {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.55;
	text-align: center;
	color: #595959;
}
/* How-to: selalu satu baris. HP = nomor di atas label; layar lebar = nomor & label sejajar. */
.cls-lf-steps {
	display: flex;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.cls-lf-steps li {
	position: relative;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0 4px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	color: #011b3a;
}
.cls-lf-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 13px;
	left: calc(50% + 20px);
	right: calc(-50% + 20px);
	height: 2px;
	background: #d6e8eb;
}
.cls-lf-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	font-size: 14px;
	color: #fff;
	background: #309bae;
	border-radius: 50%;
}
@media (min-width: 768px) {
	.cls-lf-intro {
		margin-bottom: 26px;
		font-size: 18px;
	}
	.cls-lf-steps {
		align-items: center;
		margin-bottom: 30px;
	}
	.cls-lf-steps li {
		flex: 0 0 auto;
		flex-direction: row;
		gap: 10px;
		padding: 0;
		font-size: 15px;
		text-align: left;
	}
	.cls-lf-steps li:not(:last-child) {
		flex: 1 1 auto;
	}
	.cls-lf-steps li:not(:last-child)::after {
		position: static;
		flex: 1 1 auto;
		min-width: 24px;
		margin: 0 14px 0 4px;
	}
}
.cls-lf-support {
	margin: 18px 0 0;
	font-size: 14px;
	text-align: center;
	color: #808080;
}
.cls-lf-support a {
	font-weight: 700;
	color: #309bae;
}

/* ---------- Kartu form ---------- */
.cls-lf {
	position: relative;
	padding: 22px 16px 26px;
	text-align: left;
	background: #fff;
	border-top: 4px solid #309bae;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(1, 27, 58, .1);
}
@media (min-width: 768px) {
	.cls-lf {
		padding: 34px 36px 38px;
	}
}
.cls-lf-legend {
	margin: 0 0 6px;
	font-size: 13px;
	color: #595959;
}
.cls-lf-req {
	color: #c62828;
}
.cls-lf-section {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 30px 0 16px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #309bae;
}
.cls-lf-section::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #e3e8ec;
}
.cls-lf-legend + .cls-lf-section,
.cls-lf-notice + .cls-lf-legend + .cls-lf-section {
	margin-top: 12px;
}
.cls-lf-field {
	margin: 0 0 20px;
}
.cls-lf-field > label,
.cls-lf-field legend {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #011b3a;
}
.cls-lf-field fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.cls-lf-help {
	display: block;
	margin: -2px 0 6px;
	font-size: 13px;
	color: #595959;
}
.cls-lf .form-control {
	display: block;
	width: 100%;
	height: auto;
	min-height: 48px;
	padding: 11px 14px;
	font-size: 16px; /* 16px mencegah iOS zoom otomatis saat fokus */
	line-height: 1.4;
	color: #333;
	background: #f9fafb;
	border: 1px solid #d5dae0;
	border-radius: 4px;
	box-shadow: none;
	transition: border-color .2s, background-color .2s;
	-webkit-appearance: none;
	appearance: none;
}
.cls-lf select.form-control {
	padding-right: 38px;
	background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23309bae' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.cls-lf textarea.form-control {
	min-height: 96px;
	resize: vertical;
}
.cls-lf .form-control:focus {
	background-color: #fff;
	border-color: #309bae;
	outline: 3px solid rgba(48, 155, 174, .18);
	outline-offset: 0;
}
.cls-lf-options {
	display: grid;
	gap: 8px;
}
.cls-lf-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 11px 14px;
	font-weight: 400;
	line-height: 1.4;
	background: #fff;
	border: 1px solid #d5dae0;
	border-radius: 4px;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}
.cls-lf-option:hover {
	border-color: #309bae;
}
.cls-lf-option:has(input:checked) {
	background: #f0f8f9;
	border-color: #309bae;
}
.cls-lf-consent {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid #edf0f3;
}
.cls-lf-consent .cls-lf-option,
.cls-lf-consent .cls-lf-option:has(input:checked) {
	padding: 0;
	font-size: 14px;
	background: none;
	border: 0;
}
.cls-lf-option input[type="radio"],
.cls-lf-option input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #309bae;
}
.cls-lf-other {
	flex-wrap: wrap;
	align-items: center;
}
.cls-lf-other .form-control {
	flex: 1 1 160px;
	min-height: 40px;
	padding: 6px 10px;
}
.cls-lf-field.has-error .form-control,
.cls-lf-field.has-error .cls-lf-option {
	border-color: #c62828;
}
.cls-lf-error {
	margin: 6px 0 0;
	font-size: 14px;
	color: #c62828;
}
.cls-lf-notice {
	margin: 0 0 20px;
	padding: 12px 14px;
	color: #7a1d1d;
	background: #fdecea;
	border-left: 4px solid #c62828;
	border-radius: 4px;
}
.cls-lf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.cls-lf .cls-lf-submit {
	display: block;
	width: 100%;
	max-width: none;
	margin-top: 8px;
	padding: 0 24px;
	line-height: 52px;
	font-weight: 700;
	border-width: 2px;
	border-style: solid;
	border-radius: 0;
}
.cls-lf .cls-lf-submit[disabled] {
	opacity: .65;
	cursor: wait;
}
/* Pilihan pendek (Ya/Tidak/Mungkin): selebar isinya, satu baris kalau muat - aman di HP 320px. */
.cls-lf-radio .cls-lf-options {
	display: flex;
	flex-wrap: wrap;
}
.cls-lf-radio .cls-lf-option {
	flex: 1 1 auto;
	justify-content: center;
	gap: 8px;
	padding-left: 12px;
	padding-right: 12px;
}
.cls-lf-radio .cls-lf-other {
	flex-basis: 100%;
	justify-content: flex-start;
}
@media (min-width: 768px) {
	.cls-lf-checkbox .cls-lf-options {
		grid-template-columns: repeat(2, 1fr);
	}
	.cls-lf-checkbox .cls-lf-other {
		grid-column: 1 / -1;
	}
	.cls-lf .cls-lf-submit {
		display: inline-block;
		width: auto;
		min-width: 240px;
	}
}

/* ---------- Halaman terima kasih ---------- */
.cls-lf-ty {
	max-width: 860px;
	margin: 0 auto;
	padding: 56px 0 70px;
	text-align: center;
}
.cls-lf-ty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	margin-bottom: 22px;
	color: #fff;
	background: #309bae;
	border-radius: 50%;
	box-shadow: 0 0 0 10px rgba(48, 155, 174, .15);
}
.cls-lf-ty .stm-title {
	margin-bottom: 0;
}
.cls-lf-ty .stm-separator {
	margin: 18px 0 22px;
}
.cls-lf-ty__message {
	max-width: 720px;
	margin: 0 auto 2px;
	font-size: 18px;
	line-height: 1.6;
	color: #595959;
	text-wrap: balance; /* di HP terbelah rata, bukan menyisakan 1-2 kata di baris bawah */
}
.cls-lf-ty__hours {
	margin: 8px 0 32px;
	font-size: 15px;
	color: #808080;
}
.cls-lf-ty__ask {
	max-width: 520px;
	margin: 0 auto;
	padding: 24px 20px 26px;
	background: #f3f8f9;
	border-radius: 6px;
}
.cls-lf-ty__ask p {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
	color: #011b3a;
}
.cls-lf-ty__ask .stm-btn {
	max-width: none;
}
@media (max-width: 767px) {
	.cls-lf-ty {
		padding-top: 36px;
	}
	.cls-lf-ty__ask .stm-btn {
		width: 100%;
	}
}
