/* =========================================================
   Cek Sertifikat - Frontend Style
   Primary color: #8B0102
   Font: Manrope
   ========================================================= */

.ceksert-wrapper {
	--ceksert-primary: #8B0102;
	--ceksert-primary-dark: #6e0102;
	--ceksert-bg: #ffffff;
	--ceksert-border: #e5e5e5;
	--ceksert-text: #2b2b2b;
	--ceksert-muted: #6b6b6b;

	font-family: 'Manrope', sans-serif;
	width: 100%;
	max-width: 640px;
	margin: 24px auto;
	box-sizing: border-box;
}

.ceksert-wrapper *,
.ceksert-wrapper *::before,
.ceksert-wrapper *::after {
	box-sizing: border-box;
}

.ceksert-box {
	background: var(--ceksert-bg);
	border: 1px solid var(--ceksert-border);
	border-top: 4px solid var(--ceksert-primary);
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.ceksert-title {
	font-family: 'Manrope', sans-serif;
	font-weight: 800;
	font-size: 22px;
	color: var(--ceksert-primary);
	margin: 0 0 6px 0;
}

.ceksert-subtitle {
	font-size: 14px;
	color: var(--ceksert-muted);
	margin: 0 0 20px 0;
	line-height: 1.5;
}

.ceksert-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ceksert-input {
	flex: 1 1 240px;
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	padding: 12px 14px;
	border: 1.5px solid var(--ceksert-border);
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s ease;
	min-width: 0;
}

.ceksert-input:focus {
	border-color: var(--ceksert-primary);
}

.ceksert-btn {
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	font-size: 15px;
	color: #fff;
	background: #8B0102;
	border: none;
	border-radius: 5px;
	padding: 12px 22px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
	white-space: nowrap;
	flex: 0 0 auto;
}

.ceksert-btn:hover {
	background: var(--ceksert-primary-dark);
}

.ceksert-btn:active {
	transform: scale(0.98);
}

.ceksert-loading {
	margin-top: 16px;
	font-size: 14px;
	color: var(--ceksert-muted);
}

/* ===== Result Card ===== */
.ceksert-result-card {
	margin-top: 22px;
	border: 1px solid var(--ceksert-border);
	border-radius: 10px;
	overflow: hidden;
	animation: ceksertFadeIn 0.25s ease;
}

@keyframes ceksertFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ceksert-result-header {
	background: var(--ceksert-primary);
	color: #fff;
	padding: 14px 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.ceksert-result-header h4 {
	margin: 0;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 16px;
}

.ceksert-badge {
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
}

.ceksert-badge.valid {
	background: #2e7d32;
}

.ceksert-badge.expired {
	background: #444;
}

.ceksert-result-body {
	padding: 18px;
	background: #fff;
}

.ceksert-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--ceksert-border);
	font-size: 14px;
	flex-wrap: wrap;
}

.ceksert-row:last-of-type {
	border-bottom: none;
}

.ceksert-row .label {
	color: var(--ceksert-muted);
	font-weight: 500;
}

.ceksert-row .value {
	color: var(--ceksert-text);
	font-weight: 700;
	text-align: right;
}

.ceksert-download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 16px;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #fff;
	background: var(--ceksert-primary);
	text-decoration: none;
	padding: 12px;
	border-radius: 8px;
	transition: background 0.2s ease;
}

.ceksert-download:hover {
	background: var(--ceksert-primary-dark);
	color: #fff;
}

.ceksert-error {
	margin-top: 18px;
	background: #fdecec;
	border: 1px solid #f3b8b8;
	color: var(--ceksert-primary);
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
	.ceksert-box {
		padding: 20px;
		border-radius: 10px;
	}

	.ceksert-title {
		font-size: 19px;
	}

	.ceksert-form {
		flex-direction: column;
	}

	.ceksert-btn {
		width: 100%;
	}

	.ceksert-result-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.ceksert-row .value {
		text-align: left;
	}

	.ceksert-row {
		flex-direction: column;
		gap: 2px;
	}
}
