/* This stylesheet override some default Bootstrap's styling */

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	background-color: #ffffff;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: hidden;
}

.site-main {
	width: 100%;
	flex: 1 0 auto;
	padding: 0.75rem 0 1.5rem;
}

.container {
	width: 100%;
	max-width: 100%;
	padding-left: 1rem;
	padding-right: 1rem;
	margin-left: auto;
	margin-right: auto;
}

.container-narrow {
	width: 100%;
	max-width: 100%;
	padding-left: 1rem;
	padding-right: 1rem;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 576px) {
	.container-narrow {
		max-width: 480px;
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

@media (min-width: 768px) {
	.site-main {
		padding: 1.25rem 0 2rem;
	}

	.container-narrow {
		max-width: 520px;
	}
}

@media (min-width: 992px) {
	.container-narrow {
		max-width: 560px;
	}
}

/* Page header */
.page-header {
	margin-bottom: 0.5rem;
}

.page-header__title {
	display: block;
	font-size: clamp(1.125rem, 4.5vw, 1.5rem);
	line-height: 1.3;
	color: #1a1a2e !important;
}

.page-header__subtitle {
	display: block;
	margin-top: 0.35rem;
	font-size: clamp(0.8125rem, 3.2vw, 1rem);
	font-weight: 400;
	color: #6c757d;
	line-height: 1.45;
}

/* Carousel hero — gambar penuh tanpa crop (mobile & desktop) */
.carousel-hero-shell {
	border-radius: 0.5rem;
	background: #f8f9fa;
	overflow: hidden;
}

.carousel-banner--full .carousel-inner {
	overflow: visible !important;
	height: auto !important;
}

.carousel-banner--full .carousel-item {
	float: none !important;
	margin-right: 0 !important;
	width: 100% !important;
	background: #f8f9fa;
}

.carousel-banner--full.carousel-fade .carousel-item {
	display: none;
}

.carousel-banner--full.carousel-fade .carousel-item.active {
	display: block !important;
	position: relative;
}

.carousel-hero-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto !important;
	max-height: none !important;
	object-fit: unset !important;
	vertical-align: top;
}

/* Form (Lander & steps) */
.lander-form .input-group-text {
	min-width: 4.5rem;
	justify-content: center;
	font-size: 0.875rem;
}

.lander-form .form-control {
	font-size: 1rem;
	min-height: 2.75rem;
}

.lander-form .input-group-text img {
	height: 1.25rem;
	width: auto;
	flex-shrink: 0;
}

.lander-form .input-group-text {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.lander-form .btn-submit {
	width: 100%;
	max-width: 100%;
	min-height: 2.75rem;
	font-size: 1rem;
	font-weight: 600;
	padding: 0.625rem 1rem;
}

@media (max-width: 575.98px) {
	.lander-form .input-group.flex-column-mobile,
	.auth-step .input-group.flex-column-mobile {
		flex-direction: column;
		align-items: stretch;
	}

	.lander-form .input-group.flex-column-mobile > .input-group-text,
	.lander-form .input-group.flex-column-mobile > .form-control,
	.auth-step .input-group.flex-column-mobile > .input-group-text,
	.auth-step .input-group.flex-column-mobile > .form-control {
		width: 100%;
		border-radius: 0;
	}

	.lander-form .input-group.flex-column-mobile > .input-group-text,
	.auth-step .input-group.flex-column-mobile > .input-group-text {
		border-bottom: 0;
		border-radius: 0.375rem 0.375rem 0 0 !important;
	}

	.lander-form .input-group.flex-column-mobile > .form-control,
	.auth-step .input-group.flex-column-mobile > .form-control {
		border-radius: 0 0 0.375rem 0.375rem !important;
	}
}

/* OTP / password steps */
.auth-step .form-control {
	font-size: 1rem;
	min-height: 2.75rem;
	text-align: center;
	letter-spacing: 0.15em;
}

.auth-step p {
	font-size: clamp(0.875rem, 3.5vw, 1rem);
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}

.auth-step .btn {
	width: 100%;
	min-height: 2.75rem;
}

#wrong {
	font-size: 0.875rem;
}

.btn-mk {
	color: #fff;
	background-color: #3776eb;
}

.table {
	background-color: #fff;
}

.table-status td {
	background-color: #fff8e8;
}

.text_asat {
	font-size: small;
	font-weight: normal;
	color: #838383;
}

.link-mk {
	color: #39447a;
	text-decoration: none;
}

.link-mk:hover {
	text-decoration: underline;
}

.card {
	margin-bottom: 0.5em;
}

.card-title {
	border-bottom: 1px dotted #E8E6E6;
	padding-bottom: 0.5em;
	font-size: 1rem;
}

footer {
	background-color: #3776eb;
}

footer .list-group-item, footer .list-group-item:hover {
	background: none;
	border: none;
}

footer a.nav-link {
	color: white;
	padding-top: 0;
}

footer a.nav-link:hover {
	text-decoration: underline;
}

/* Success recipients feed */
.success-stories {
	margin-top: 1.5rem;
}

.success-stories__header {
	text-align: center;
	margin-bottom: 1rem;
}

.success-stories__header h3 {
	font-size: 1.125rem;
	font-weight: 700;
	color: #1a1a2e;
	margin-bottom: 0.25rem;
}

.success-stories__header p {
	font-size: 0.8125rem;
	color: #6c757d;
	margin-bottom: 0.75rem;
}

.success-stories__counter {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #198754;
	background: #d1e7dd;
	padding: 0.35rem 0.75rem;
	border-radius: 50rem;
}

.success-stories__counter .bi {
	font-size: 0.875rem;
}

.success-stories__feed {
	width: 100%;
	max-width: 100%;
	padding: 0;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.success-stories__feed::before {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, #198754, #20c997, #3776eb);
}

.success-stories__list {
	list-style: none;
	padding: 0.5rem 0.75rem;
	margin: 0;
}

.success-stories__list li {
	margin: 0;
	padding: 0;
}

.success-stories__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 0.5rem;
	border-radius: 10px;
	transition: background-color 0.2s ease;
}

.success-stories__item:hover {
	background-color: #f8f9fa;
}

.success-stories__avatar-wrap {
	position: relative;
	flex-shrink: 0;
}

.success-stories__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px #198754;
}

.success-stories__avatar-wrap::after {
	content: "";
	position: absolute;
	bottom: 0;
	right: 0;
	width: 12px;
	height: 12px;
	background: #198754;
	border: 2px solid #fff;
	border-radius: 50%;
}

.success-stories__body {
	flex: 1;
	min-width: 0;
}

.success-stories__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.15rem;
}

.success-stories__name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #212529;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.success-stories__badge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	font-size: 0.625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #198754;
	background: #e8f5e9;
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
}

.success-stories__msg {
	font-size: 0.8125rem;
	color: #495057;
	margin: 0;
	line-height: 1.35;
}

.success-stories__msg strong {
	color: #198754;
	font-weight: 600;
}

.success-stories__meta {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.6875rem;
	color: #adb5bd;
	margin-top: 0.15rem;
}

.success-stories__meta .bi {
	font-size: 0.75rem;
}

@media (max-width: 575.98px) {
	.success-stories {
		margin-top: 1.25rem;
	}

	.success-stories__header h3 {
		font-size: 1rem;
	}

	.success-stories__header p {
		font-size: 0.75rem;
		padding: 0 0.25rem;
	}

	.success-stories__counter {
		font-size: 0.6875rem;
		padding: 0.3rem 0.625rem;
	}

	.success-stories__list {
		padding: 0.375rem 0.5rem;
	}

	.success-stories__item {
		gap: 0.625rem;
		padding: 0.5rem 0.25rem;
	}

	.success-stories__avatar {
		width: 40px;
		height: 40px;
	}

	.success-stories__top {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.success-stories__name {
		font-size: 0.875rem;
		max-width: 100%;
	}

	.success-stories__badge {
		font-size: 0.5625rem;
	}

	.success-stories__msg {
		font-size: 0.75rem;
	}

	.success-stories__meta {
		flex-wrap: wrap;
		font-size: 0.625rem;
	}
}

@media (min-width: 768px) {
	.success-stories__header h3 {
		font-size: 1.25rem;
	}
}

/* Loading spinner */
.loading {
	position: fixed;
	z-index: 999;
	height: 2em;
	width: 2em;
	overflow: show;
	margin: auto;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

.loading::before {
	content: '';
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(rgba(20, 20, 20, 0.8), rgba(0, 0, 0, 0.8));
}

.loading:not(:required) {
	font: 0/0 a;
	color: transparent;
	text-shadow: none;
	background-color: transparent;
	border: 0;
}

.loading:not(:required)::after {
	content: '';
	display: block;
	font-size: 10px;
	width: 1em;
	height: 1em;
	margin-top: -0.5em;
	animation: spinner 150ms infinite linear;
	border-radius: 0.5em;
	box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
}

@keyframes spinner {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}