/* Certificate Verification - front end styles */

.cv-wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px 16px;
	box-sizing: border-box;
}

.cv-wrapper * {
	box-sizing: border-box;
}

/* Form */

.cv-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	text-align: center;
}

.cv-label {
	font-size: 18px;
	font-weight: 600;
	color: #1f2430;
	margin-bottom: 4px;
}

.cv-input {
	width: 100%;
	height: 70px;
	padding: 0 24px;
	font-size: 18px;
	border: 2px solid #e0e2e8;
	border-radius: 8px;
	background-color: #ffffff;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	outline: none;
}

.cv-input:focus {
	border-color: #2d46c3;
	box-shadow: 0 0 0 4px rgba(45, 70, 195, 0.12);
}

.cv-btn {
	width: 100%;
	max-width: 320px;
	height: 60px;
	margin-top: 8px;
	border: none;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 600;
	color: #ffffff;
	cursor: pointer;
	background: linear-gradient(90deg, #d94b45 0%, #2d46c3 100%);
	background-size: 200% auto;
	transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 6px 16px rgba(45, 70, 195, 0.25);
}

.cv-btn:hover {
	background-position: right center;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(45, 70, 195, 0.3);
}

.cv-btn:active {
	transform: translateY(0);
}

.cv-btn:disabled {
	cursor: not-allowed;
	opacity: 0.7;
	transform: none;
}

/* Result area */

.cv-result {
	margin-top: 28px;
}

.cv-alert {
	padding: 18px 20px;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 600;
	text-align: center;
	animation: cv-fade-in 0.3s ease;
}

.cv-alert-success {
	background-color: #e8f8ef;
	color: #16794f;
	border: 1px solid #b8ecd0;
}

.cv-alert-error {
	background-color: #fdecec;
	color: #b3261e;
	border: 1px solid #f6c4c1;
}

/* Certificate card */

.cv-card {
	margin-top: 18px;
	padding: 8px 24px;
	background-color: #ffffff;
	border: 1px solid #e6e8ee;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(20, 22, 40, 0.06);
	animation: cv-fade-in 0.35s ease;
}

.cv-card-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	padding: 16px 0;
	border-bottom: 1px solid #eef0f5;
}

.cv-card-row:last-child {
	border-bottom: none;
}

.cv-card-label {
	font-weight: 600;
	color: #6b7280;
	min-width: 200px;
}

.cv-card-value {
	color: #1f2430;
	font-weight: 500;
	text-align: right;
	flex: 1;
}

@keyframes cv-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */

@media (max-width: 600px) {
	.cv-input {
		height: 60px;
		font-size: 16px;
	}

	.cv-btn {
		height: 54px;
		font-size: 16px;
		max-width: 100%;
	}

	.cv-card-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.cv-card-value {
		text-align: left;
	}
}
