@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

.vc-widget {
	--vc-navy: #0F3D5C;
	--vc-navy-deep: #0A2740;
	--vc-teal: #2FB8C6;
	--vc-amber: #FFB63A;
	--vc-ink: #14181C;
	--vc-paper: #F6F8F9;
	--vc-line: #E3E8EB;

	max-width: 480px;
	margin: 0 auto;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--vc-line);
	box-shadow: 0 8px 30px rgba(15, 61, 92, 0.14);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: #fff;
}

/* Header ------------------------------------------------------------ */

.vc-header {
	position: relative;
	background:
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) 0 0 / 16px 16px,
		linear-gradient(135deg, var(--vc-navy) 0%, var(--vc-navy-deep) 100%);
	color: #fff;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 22px;
	overflow: hidden;
}

.vc-header::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.18) 100%);
	pointer-events: none;
}

.vc-header-icon {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 12px;
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.vc-header-text {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.vc-header h2 {
	margin: 0;
	font-family: 'Big Shoulders Display', 'Inter', sans-serif;
	font-size: 28px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color:white;
}

.vc-header-live {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 7px 0 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: rgba(255, 255, 255, 0.78);
}

.vc-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--vc-teal);
	box-shadow: 0 0 0 0 rgba(47, 184, 198, 0.6);
	animation: vc-pulse 1.8s ease-in-out infinite;
	flex-shrink: 0;
}

@keyframes vc-pulse {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(47, 184, 198, 0.55); }
	50% { opacity: 0.55; box-shadow: 0 0 0 4px rgba(47, 184, 198, 0); }
}

/* Form ---------------------------------------------------------------- */

.vc-form {
	background: #fff;
	padding: 22px 20px 18px;
}

.vc-input-row {
	display: flex;
	gap: 10px;
}

.vc-plate-wrap {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
	background: linear-gradient(180deg, #fbdf5a, #f3c521);
	border: 2px solid var(--vc-ink);
	border-radius: 10px;
	overflow: hidden;
}

.vc-plate-gb {
	flex-shrink: 0;
	width: 30px;
	background: #12558f;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.5px;
}

.vc-reg-input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: none;
	font-family: 'Inter', sans-serif;
	font-size: 25px;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 15px 8px;
	color: var(--vc-ink);
}

.vc-reg-input::placeholder {
	color: #52504a;
	opacity: 0.6;
}

.vc-reg-input:focus {
	outline: none;
}

/* Scanning sweep plays on load; re-triggered on focus */
.vc-plate-wrap::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -40%;
	width: 40%;
	background: linear-gradient(90deg, transparent, rgba(47, 184, 198, 0.55), transparent);
	animation: vc-scan 3.2s ease-in-out 1;
	pointer-events: none;
}

.vc-plate-wrap:focus-within {
	border-color: var(--vc-navy);
	box-shadow: 0 0 0 3px rgba(47, 184, 198, 0.22);
}

.vc-plate-wrap:focus-within::before {
	animation: vc-scan 1.6s ease-in-out infinite;
}

@keyframes vc-scan {
	0% { left: -40%; opacity: 0; }
	15% { opacity: 1; }
	85% { opacity: 1; }
	100% { left: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.vc-plate-wrap::before { animation: none; display: none; }
	.vc-live-dot { animation: none; }
}

.vc-search-btn {
	width: 62px;
	flex-shrink: 0;
	background: linear-gradient(180deg, var(--vc-teal), #23a0ad);
	border: 2px solid var(--vc-navy);
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.vc-search-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(47, 184, 198, 0.35);
}

.vc-search-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.vc-hint {
	margin: 12px 2px 0;
	font-size: 13px;
	color: #5b6670;
	line-height: 1.4;
}

/* Result --------------------------------------------------------------- */

.vc-result {
	padding: 0  !important;
	margin-bottom: 20px
}

.vc-result:empty {
	padding: 0;
}

.vc-error {
	background: #fdecea;
	border: 1px solid #f5c2c0;
	color: #9c2a26;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
}

.vc-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #5b6670;
	font-size: 14px;
	padding: 8px 0;
}

.vc-card {
	border: 1px solid var(--vc-line);
	border-radius: 12px;
	padding: 16px;
	background: var(--vc-paper);
}

.vc-card-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--vc-navy);
	margin: 0 0 4px;
}

.vc-card-sub {
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 14px;
}

.vc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
}

.vc-field-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #9ca3af;
	margin-bottom: 2px;
}

.vc-field-value {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.vc-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
}

.vc-badge-valid {
	background: #e6f4ea;
	color: #1e7e34;
}

.vc-badge-invalid {
	background: #fdecea;
	color: #9c2a26;
}

.vc-mot-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vc-mot-row {
	border: 1px solid var(--vc-line);
	border-radius: 8px;
	padding: 10px 12px;
	background: #fff;
}

.vc-mot-row-head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.vc-mot-date {
	font-size: 13px;
	font-weight: 600;
	color: #111827;
}

.vc-mot-mileage {
	font-size: 12px;
	color: #6b7280;
	margin-left: auto;
}

.vc-mot-defects {
	margin: 8px 0 0;
	padding-left: 18px;
	font-size: 12px;
	color: #6b7280;
}

.vc-mot-defects li {
	margin-bottom: 2px;
}
