@font-face {
	font-family: 'EMprintRegular';
	src: url('../fonts/EMprint/EMprint-Regular.ttf');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'EMprintSemiBold';
	src: url('../fonts/EMprint/EMprint-Semibold.ttf');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'EMprintBold';
	src: url('../fonts/EMprint/EMprint-Bold.ttf');
	font-weight: normal;
	font-style: normal;
}

/* Base styles */
html,
body {
	font-family: 'EMprintRegular';
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
	font-size: 14px;
	background-color: #eee;
	overflow-x: hidden;
}

.emprint-semibold {
	font-family: 'EMprintSemiBold';
}

.text-header-home {
	font-family: 'EMprintSemiBold';
	color: #fff;
	text-align: center;
	margin-top: 1rem;
	font-weight: 100 !important;
}

.text-header-page {
	font-family: 'EMprintSemiBold';
	color: #fff;
	text-align: center;
	margin-top: 1rem;
	font-weight: 100 !important;
}

.header-logo.federal-oil {
	height: 40px;
	width: auto;
	max-height: 100%;
	/* supaya tidak overflow navbar */
}

:root {
	--ds-text: #172b4d;
	--ds-text-disabled: #adb5bd;
	--ds-background-input: #ffffff;
	--ds-background-input-hovered: #f9fafb;
	--ds-background-disabled: #e9ecef;
	--ds-border-input: rgba(9, 30, 66, 0.14);
	--ds-border-focused: rgba(13, 110, 253, 0.8);

	--bs-input-color: var(--ds-text);
	--bs-input-bg: var(--ds-background-input);
	--bs-input-border-color: var(--ds-border-input);
	--bs-input-hover-bg: var(--ds-background-input-hovered);
	--bs-input-focus-color: var(--ds-text);
	--bs-input-focus-bg: var(--ds-background-input);
	--bs-input-focus-border-color: var(--ds-border-focused);
	--bs-input-disabled-color: var(--ds-text-disabled);
	--bs-input-disabled-bg: var(--ds-background-disabled);
	--bs-input-disabled-border-color: var(--ds-border-disabled, #ced4da);
}

.select2-container--bootstrap-5 .select2-selection {
	display: block;
	width: 100%;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4285714286;
	color: var(--bs-input-color);
	background-color: var(--bs-input-bg);
	background-clip: padding-box;
	border: 2px solid var(--bs-input-border-color);
	border-radius: 0.25rem;
	transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
	appearance: none;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
	color: var(--bs-input-focus-color);
	background-color: var(--bs-input-focus-bg);
	border-color: var(--bs-input-focus-border-color);
	box-shadow: 0 0 0 0.1rem rgba(13, 110, 253, 0.25);
	outline: none;
}

.select2-container--bootstrap-5 .select2-selection__arrow {
	top: 50%;
	transform: translateY(-50%);
	right: 0.75rem;
}

.select2-container--bootstrap-5 .select2-selection__placeholder {
	color: #6c757d;
	opacity: 0.85;
}

.select2-container--bootstrap-5.select2-container--disabled .select2-selection {
	color: var(--bs-input-disabled-color);
	background-color: var(--bs-input-disabled-bg);
	border-color: var(--bs-input-disabled-border-color);
	cursor: not-allowed;
	opacity: 0.8;
}

.select2-dropdown {
	border: 2px solid var(--bs-input-border-color);
	border-radius: 0.25rem;
	background-color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.select2-results__option {
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	color: var(--ds-text);
	cursor: pointer;
}

.select2-results__option--highlighted.select2-results__option--selectable {
	background-color: #0d6efd;
	color: #fff;
}

.mobile-container {
	max-width: 500px;
	margin: 0 auto;
	background: white;
	overflow: hidden;
	position: relative;
}

.stepper-floating {
	position: fixed;
	top: 45%;
	left: calc(50% - min(245px, 48vw));
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	z-index: 10;
	pointer-events: none;
}

.nav-step {
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	min-height: 64px;
}

.dot-wrapper {
	width: 22px;
	height: 22px;
	position: relative;
	flex-shrink: 0;
}

.dot {
	width: 5px;
	height: 5px;
	background-color: #bcbcbc;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: all 0.3s ease;
}

.nav-step.active .dot {
	background-color: #FFF;
	width: 12px;
	height: 12px;
}

.label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 13px;
	color: #fff;
	text-align: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	line-height: 1.1;
	max-width: 1em;
	white-space: nowrap;
}

.nav-step.active .label {
	opacity: 1;
	font-weight: bold;
}

/* Kurangi jarak antar nav-step yang tidak aktif */
.nav-step.no-label {
	gap: 2px;
	min-height: 20px;
	/* opsional, agar lebih rapat */
}

.nav-step.no-label .label {
	display: none;
}

section {
	min-height: 100svh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2rem 1rem;
	color: white;
}

section.red {
	background-color: #dc3545;
}

section.blue {
	background-color: #0e316a;
}

section {
	position: relative;
	z-index: 1;
}

/* Blur/overlay hanya di section yang tidak aktif */
section.blurred::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.25);
	z-index: 2;
	pointer-events: none;
}

.blurred {
	backdrop-filter: blur(4px);
	background-color: rgba(0, 0, 0, 0.1);
	/* <- tidak terlalu gelap */
}

footer {
	text-align: center;
	font-size: 12px;
	padding: 1rem;
}

header img {
	height: 32px;
}

.content-area {
	position: relative;
	z-index: 1;
}

.tata-cara-floating {
	position: fixed;
	top: 50%;
	right: calc(50% - min(250px, 50vw) + env(safe-area-inset-right, 0px));
	/* 250px adalah setengah dari lebar container */
	transform: translateY(-50%);
	z-index: 10;
	pointer-events: auto;
}

.btn-tata-cara {
	background: none;
	border: none;
	padding: 0;
}

.tata-cara-modal {
	background-color: #f4f4f4;
}

.tata-cara-number-wrapper {
	width: 64px;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
	display: flex;
	align-items: end;
	justify-content: center;
}

.tata-cara-number-box {
	font-family: EMprintSemiBold;
	color: #e7e9ed;
	font-size: 6rem;
	font-weight: 700;
	line-height: 1;
	opacity: 0.9;
	margin-bottom: -20px;
}

.tata-cara-text-box {
	font-size: 1.1rem;
}

.button-yuk-klik {
	background: linear-gradient(to bottom, #001b4d, #000c2e);
	color: white;
	font-weight: bold;
	padding: 12px 28px;
	font-size: 18px;
	border-radius: 50px;
	border: 2px solid #00aaff;
	box-shadow: 0 0 10px #00aaff;
	text-shadow: 0 0 6px white;
	transition: box-shadow 0.3s ease;
	cursor: pointer;
	width: 100%;
	max-width: 400px;
	/* optional: batasi lebar maksimum */
	margin: 0 auto;
	/* center di tengah jika display block */
	display: block;
}

.button-yuk-klik:hover {
	box-shadow: 0 0 15px #00aaff, 0 0 25px #00aaff;
}

.syarat-box {
	max-height: 80vh;
	overflow-y: auto;
	scrollbar-width: thin;
	/* Firefox */
	scrollbar-color: #ccc transparent;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* Webkit (Chrome, Edge, Safari) */
.syarat-box::-webkit-scrollbar {
	width: 6px;
}

.syarat-box::-webkit-scrollbar-thumb {
	background-color: #ccc;
	border-radius: 10px;
}

.syarat-box::-webkit-scrollbar-track {
	background-color: transparent;
}

.syarat-content p {
	margin-bottom: 1rem;
}

.form-container {
	max-width: 400px;
	margin: auto;
	padding: 2rem;
	background-color: #ffffff;
	border-radius: 1rem;
	border: 1px solid #ddd;
}

.floating-group {
	position: relative;
	margin-bottom: 1.5rem;
}

.floating-input {
	width: 100%;
	border: none;
	border-bottom: 2px solid #aaa;
	border-radius: 0;
	padding: 0.75rem 0.5rem 0.25rem;
	font-size: 1rem;
	background: transparent;
	color: #000;
}

.floating-label {
	position: absolute;
	top: 0.75rem;
	left: 0.5rem;
	font-size: 1rem;
	color: #aaa;
	transition: all 0.2s ease;
	pointer-events: none;
}

.floating-input:focus+.floating-label,
.floating-input.has-value+.floating-label {
	top: -0.5rem;
	font-size: 0.75rem;
	color: #000;
}

.floating-input:focus {
	outline: none;
	box-shadow: none;
	border-color: #000;
}

/* Sembunyikan placeholder */
.kode-unik-input::placeholder {
	color: transparent;
}

.floating-input::placeholder {
	color: transparent;
}

.btn-scan {
	background-color: #d62828;
	color: #fff;
	font-weight: bold;
	width: 100%;
	padding: 0.75rem;
	font-size: 1rem;
	border-radius: 0.5rem;
	border: none;
	margin-bottom: 1rem;
}

.scan-box {
	border-radius: 0.75rem;
	border: 1px solid #ddd;
	padding: 1rem;
	background-color: #fff;
}

.btn-scan {
	background-color: #d62828;
	color: white;
	font-weight: bold;
	font-size: 1rem;
	width: 100%;
	padding: 0.75rem;
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: none;
}

.kode-unik-input {
	border: none;
	border-bottom: 2px solid #ccc;
	border-radius: 0;
	width: 100%;
	padding: 0.5rem;
	margin-top: 0.5rem;
	text-align: center;
	background-color: transparent;
	color: #000;
}

.kode-unik-input::placeholder {
	color: #ccc;
	font-style: italic;
}

.kode-unik-input:focus {
	outline: none;
	box-shadow: none;
	border-color: #aaa;
}

.cek-data-form {
	width: 100%;
	max-width: 98vw;
	padding: 2rem;
}

.cek-data-input {
	border-radius: .6rem;
	padding: 0.75rem 1rem;
	border: none;
	text-align: center;
	font-size: 1rem;
	width: 100%;
	margin-bottom: 1.5rem;
}

.btn-cek-data, .btn-kirim-data {
	background-color: #003366;
	color: #fff;
	font-weight: 500;
	padding: 0.5rem 2rem;
	border-radius: .6rem;
}

.cek-data-btn-lg, .kirim-data-btn-lg {
	font-size: 1.2rem;
	padding: 0.75rem 1rem;
	margin: 0 auto;
	display: block;
}

.btn-cek-data:hover {
	background-color: #002244;
	border: 1px solid #fff;
}

.cek-data-subtitle {
	font-size: 1rem;
	color: #fff;
	margin-bottom: 1.5rem;
}

.floating-group.container-input-data-diri {
	margin-bottom: .2rem;
}

.error-container {
	margin-left: .6rem;
}

.error-container-cek-pemenang {
	color: #FFF;
	margin-left: .6rem;
}

/* Sembunyikan wrapper turnstile tapi jangan di-display:none (bisa error) */
div[data-cf-class="turnstile"] {
	/* opacity: 0;
	height: 0;
	overflow: hidden;
	transition: opacity 0.3s ease; */
}

.selected-row-cek-pemenang {
	background-color: red !important;
	color: #FFF !important;
}

.selected-cell-cek-pemenang {
	background-color: red !important;
	color: #FFF !important;
}

/* Tambahkan ini bila ingin efeknya benar-benar clean */
.turnstile-container {
	height: 0 !important;
	overflow: hidden !important;
}

/* Visible state */
.turnstile-visible {
	opacity: 1 !important;
	height: auto !important;
	pointer-events: auto !important;
}

/* Hidden state */
.turnstile-hidden {
	opacity: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;

	/* Fade dulu (0.6s), lalu shrink mulai setelah 0.6s */
	transition:
		opacity 1s ease,
		height 0.8s ease 1s;
}

#submitBtn.loading .submit-text {
	opacity: 0.5;
}

#submitBtn.loading .spinner-border {
	display: inline-block !important;
}

#successPrize {
	font-size: 2rem;
	line-height: 1.3;
}

#successModal .modal-content {
	background-color: #004990 !important; /* Biru tua custom */
}

#successModal .btn-danger {
	background-color: #dc3545; /* Bootstrap danger */
	border: 2px solid #fff;
}

.spin-icon {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}
/* start max-width --------------------------------------------------------------------------------- */

@media (max-width: 480px) {

}

/* X-Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
	.text-header-home {
		font-size: 40px;
		max-width: 98%;
		line-height: 1.9;
	}

	.text-header-page {
		font-size: 24px;
		max-width: 100%;
		line-height: 4rem;
	}

	.turnstile-wrapper {
		width: 100%;
		max-width: 250px;
		/* atau sesuai kebutuhan */
		overflow: hidden;
	}

	.turnstile-wrapper iframe {
		transform: scale(0.9);
		/* sesuaikan skalanya */
		transform-origin: 0 0;
	}
}

/* max-width:579.98px */

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
	.modal-xs-custom {
		max-width: 460px;
		margin: auto;
	}
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {}

/* X-Large devices (large desktops, less than 1400px) */
@media (max-width: 1399.98px) {}

/* end max-width --------------------------------------------------------------------------------- */
/* start min-width --------------------------------------------------------------------------------- */
@media (min-width: 576px) {
	.text-header-home {
		font-size: 50px;
		max-width: 90%;
	}

	.text-header-page {
		font-size: 35px;
		max-width: 95%;
	}
}