/* LearningBL Customer Testimonials Carousel */
.lbt4-section,
.lbt4-section * {
	box-sizing: border-box;
}

.lbt4-section {
	--lbt4-primary: #4f46e5;
	--lbt4-primary-dark: #3730a3;
	--lbt4-star: #f5b301;
	--lbt4-text: #172033;
	--lbt4-muted: #697386;
	--lbt4-border: #e6e9f0;
	--lbt4-bg: #f8faff;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	padding: 8px 0 12px;
	color: var(--lbt4-text);
	font-family: inherit;
}

.lbt4-heading-wrap {
	text-align: center;
	margin: 0 auto 22px;
	padding: 0 14px;
}

.lbt4-heading {
	margin: 0 0 6px;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.2;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.lbt4-subheading {
	margin: 0 auto 10px;
	color: var(--lbt4-muted);
	font-size: 15px;
	line-height: 1.55;
}

.lbt4-average {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 600;
}

.lbt4-stars {
	color: var(--lbt4-star);
	letter-spacing: 1px;
	white-space: nowrap;
	font-size: 15px;
	line-height: 1;
}

.lbt4-carousel {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	position: relative;
	overflow: hidden;
	padding: 3px 0 0;
	touch-action: pan-y;
}

.lbt4-viewport {
	width: 100%;
	overflow: hidden;
	padding: 0 1px 8px;
}

.lbt4-track {
	display: flex;
	align-items: stretch;
	gap: 16px;
	width: max-content;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	user-select: none;
	cursor: grab;
}

.lbt4-track.lbt4-is-dragging {
	cursor: grabbing;
	transition: none !important;
}

.lbt4-card {
	flex: 0 0 calc((100vw - 48px) / 3);
	width: calc((100vw - 48px) / 3);
	max-width: 420px;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--lbt4-border);
	border-radius: 20px;
	padding: 18px;
	box-shadow: 0 8px 28px rgba(30, 41, 59, 0.07);
	display: flex;
	flex-direction: column;
	min-height: 190px;
	height: 190px;
	overflow: hidden;
}

.lbt4-card-top {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.lbt4-avatar-wrap {
	flex: 0 0 44px;
}

.lbt4-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: block;
	object-fit: cover;
	border: 1px solid #edf0f5;
}

.lbt4-avatar-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef2ff;
	color: var(--lbt4-primary-dark);
	font-size: 18px;
	font-weight: 750;
}

.lbt4-person {
	min-width: 0;
	flex: 1;
}

.lbt4-name-row {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	flex-wrap: wrap;
}

.lbt4-name {
	font-size: 15px;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.lbt4-verified {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 10px;
	line-height: 1;
	padding: 4px 6px;
	border-radius: 999px;
	background: #ecfdf3;
	color: #16834a;
	font-weight: 700;
	white-space: nowrap;
}

.lbt4-rating {
	margin-top: 6px;
}

.lbt4-feedback {
	margin: 14px 0 9px;
	color: #3d4656;
	font-size: 13px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	flex: 1;
	word-break: break-word;
}

.lbt4-date {
	display: block;
	color: #8992a3;
	font-size: 11px;
	line-height: 1.2;
}

.lbt4-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 44px;
	margin-top: 3px;
}

.lbt4-arrow {
	width: 34px;
	height: 34px;
	border: 1px solid var(--lbt4-border);
	border-radius: 50%;
	background: #fff;
	color: #344054;
	font-size: 24px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 0 3px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(30, 41, 59, 0.07);
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.lbt4-arrow:hover {
	transform: translateY(-1px);
	box-shadow: 0 7px 16px rgba(30, 41, 59, 0.12);
	background: #fafbff;
}

.lbt4-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 40px;
}

.lbt4-dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c9ced8;
	cursor: pointer;
	transition: width .2s ease, border-radius .2s ease, background .2s ease;
}

.lbt4-dot.is-active {
	width: 20px;
	border-radius: 8px;
	background: var(--lbt4-primary);
}

.lbt4-empty {
	text-align: center;
	border: 1px dashed var(--lbt4-border);
	border-radius: 16px;
	padding: 24px;
	color: var(--lbt4-muted);
}

.lbt4-form-wrap {
	max-width: 760px;
	margin: 34px auto 0;
	padding: 24px;
	background: var(--lbt4-bg);
	border: 1px solid #e9edfb;
	border-radius: 20px;
}

.lbt4-form-heading {
	margin-bottom: 17px;
}

.lbt4-form-heading h3 {
	margin: 0 0 4px;
	font-size: 21px;
	line-height: 1.3;
}

.lbt4-form-heading p {
	margin: 0;
	color: var(--lbt4-muted);
	font-size: 13px;
}

.lbt4-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.lbt4-field {
	min-width: 0;
}

.lbt4-field-full {
	grid-column: 1 / -1;
}

.lbt4-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 650;
}

.lbt4-field label > span:not(.lbt4-optional) {
	color: #dc3545;
}

.lbt4-optional {
	color: var(--lbt4-muted);
	font-weight: 400;
}

.lbt4-field input[type="text"],
.lbt4-field input[type="email"],
.lbt4-field input[type="file"],
.lbt4-field textarea {
	width: 100%;
	border: 1px solid #d8ddea;
	background: #fff;
	border-radius: 11px;
	padding: 10px 12px;
	font: inherit;
	font-size: 14px;
	color: var(--lbt4-text);
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.lbt4-field input[type="text"]:focus,
.lbt4-field input[type="email"]:focus,
.lbt4-field input[type="file"]:focus,
.lbt4-field textarea:focus {
	border-color: #8b8ff3;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, .10);
}

.lbt4-field textarea {
	resize: vertical;
	min-height: 105px;
}

.lbt4-field small {
	display: block;
	margin-top: 5px;
	color: var(--lbt4-muted);
	font-size: 11px;
}

.lbt4-rating-picker {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	min-height: 40px;
}

.lbt4-star-btn {
	border: 0;
	background: transparent;
	color: #c8ccd4;
	padding: 2px;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: transform .12s ease, color .12s ease;
}

.lbt4-star-btn:hover,
.lbt4-star-btn.is-selected {
	color: var(--lbt4-star);
	transform: scale(1.04);
}

.lbt4-form-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 17px;
	flex-wrap: wrap;
}

.lbt4-submit {
	border: 0;
	border-radius: 11px;
	background: var(--lbt4-primary);
	color: #fff;
	padding: 11px 18px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 7px 16px rgba(79, 70, 229, .22);
	transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.lbt4-submit:hover {
	background: var(--lbt4-primary-dark);
	transform: translateY(-1px);
}

.lbt4-submit:disabled {
	opacity: .65;
	cursor: wait;
	transform: none;
}

.lbt4-form-status {
	font-size: 13px;
	color: var(--lbt4-muted);
}

.lbt4-form-status.is-success {
	color: #16834a;
	font-weight: 650;
}

.lbt4-form-status.is-error {
	color: #c62828;
	font-weight: 600;
}

@media (max-width: 900px) {
	.lbt4-card {
		flex-basis: calc((100vw - 32px) / 2);
		width: calc((100vw - 32px) / 2);
	}
}

@media (max-width: 640px) {
	.lbt4-section {
		padding-top: 2px;
	}
	.lbt4-heading-wrap {
		margin-bottom: 17px;
	}
	.lbt4-heading {
		font-size: 25px;
	}
	.lbt4-subheading {
		font-size: 13px;
	}
	.lbt4-carousel {
		padding-left: 0;
		padding-right: 0;
	}
	.lbt4-viewport {
		padding-left: 0;
		padding-right: 0;
	}
	.lbt4-track {
		gap: 12px;
	}
	.lbt4-card {
		flex-basis: calc(88vw - 10px);
		width: calc(88vw - 10px);
		min-width: 0;
		height: 188px;
		min-height: 188px;
		padding: 16px;
	}
	.lbt4-form-wrap {
		margin-top: 25px;
		padding: 18px 15px;
		border-radius: 16px;
	}
	.lbt4-form-grid {
		grid-template-columns: 1fr;
		gap: 13px;
	}
	.lbt4-field-full {
		grid-column: auto;
	}
	.lbt4-controls {
		margin-top: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lbt4-track {
		transition: none !important;
	}
	.lbt4-arrow,
	.lbt4-star-btn,
	.lbt4-submit {
		transition: none !important;
	}
}
