/* Certificate Verifier - Frontend styles */
/* All classes are prefixed with cv- to avoid theme conflicts.
   No generic class names (.button, .container, .input, etc.) are targeted. */

.cv-verify-container {
	max-width: 520px;
	margin: 2em auto;
	padding: 0 12px;
	box-sizing: border-box;
}

.cv-verify-container *,
.cv-verify-container *::before,
.cv-verify-container *::after {
	box-sizing: border-box;
}

.cv-verify-card {
	background: #ffffff;
	border: 1px solid #e2e5e9;
	border-radius: 12px;
	padding: 32px 28px;
	box-shadow: 0 4px 18px rgba(20, 30, 50, 0.06);
}

.cv-verify-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
	color: #1c2530;
}

.cv-verify-subtitle {
	margin: 0 0 24px;
	text-align: center;
	color: #667085;
	font-size: 14px;
}

.cv-verify-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #344054;
	margin-bottom: 6px;
}

.cv-verify-input-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.cv-verify-input {
	flex: 1 1 220px;
	min-width: 0;
	padding: 12px 14px;
	font-size: 15px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #fff;
	color: #1c2530;
}

.cv-verify-input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.cv-verify-button {
	flex: 0 0 auto;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #1e5eff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease;
	white-space: nowrap;
}

.cv-verify-button:hover:not(:disabled) {
	background: #174ed1;
}

.cv-verify-button:disabled {
	opacity: 0.7;
	cursor: default;
}

.cv-verify-field-error {
	margin: 8px 0 0;
	color: #c62828;
	font-size: 13px;
	min-height: 1em;
}

.cv-result {
	margin-top: 22px;
	border-radius: 10px;
	padding: 20px;
	animation: cv-fade-in 0.2s ease;
}

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

.cv-result-valid {
	background: #f1fbf3;
	border: 1px solid #b8e6c1;
}

.cv-result-invalid {
	background: #fdf2f2;
	border: 1px solid #f3c1c1;
}

.cv-result-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 14px;
}

.cv-result-valid .cv-result-heading {
	color: #1a7f37;
}

.cv-result-invalid .cv-result-heading {
	color: #c62828;
}

.cv-result-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 14px;
	color: #fff;
	flex: 0 0 auto;
}

.cv-result-valid .cv-result-icon {
	background: #1a7f37;
}

.cv-result-invalid .cv-result-icon {
	background: #c62828;
}

.cv-result-message {
	margin: 0;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.5;
}

.cv-result-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 20px;
}

.cv-result-field-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	margin: 0 0 2px;
}

.cv-result-field-value {
	font-size: 15px;
	font-weight: 600;
	color: #1c2530;
	margin: 0;
	word-break: break-word;
}

@media (max-width: 480px) {
	.cv-verify-card {
		padding: 24px 18px;
	}

	.cv-verify-input-row {
		flex-direction: column;
	}

	.cv-verify-button {
		width: 100%;
	}

	.cv-result-fields {
		grid-template-columns: 1fr;
	}
}
