/**
 * Frontend Styles
 * Vehicle Verification Manager
 * Design moderne inspiré de recherche.html
 */

/* Container */
.verifcar-search-container {
	max-width: 900px;
	margin: 2rem auto;
	padding: 0 1rem;
}

/* Form Wrapper */
.verif-car-form-wrapper {
	background-color: #ffffff;
	border-radius: 1rem;
	padding: 2rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	position: relative;
	background: linear-gradient(#fff, #fff) padding-box,
	            linear-gradient(90deg, 
	                #196CF2 0%, 
	                #ffffff 25%, 
	                #196CF2 50%, 
	                #ffffff 75%, 
	                #196CF2 100%) border-box;
	border: 2px solid transparent;
	background-size: 100% 100%, 400% 100%;
	animation: borderMove 20s linear infinite;
}

@keyframes borderMove {
	0% {
		background-position: 0 0, 0 0;
	}
	100% {
		background-position: 0 0, 400% 0;
	}
}

/* Form Content */
.verif-car-form-content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Input Wrapper */
.verif-car-input-wrapper {
	flex: 1;
}

/* Input */
.verif-car-input {
	width: 100%;
	height: 62px;
	padding: 0 1.5rem;
	font-size: 1.125rem;
	font-weight: 500;
	border: 2px solid #DCDCDE;
	border-radius: 0.75rem;
	outline: none;
	transition: border-color 0.2s ease;
	font-family: 'Inter', sans-serif;
	box-sizing: border-box;
}

.verif-car-input:focus {
	border-color: #196CF2;
}

.verif-car-input::placeholder {
	color: #9ca3af;
}

.verif-car-input.error {
	border-color: #dc2626;
}

/* Button */
.verif-car-button {
	background-color: #196CF2;
	color: #ffffff;
	padding: 1.25rem 2.5rem;
	font-size: 1.125rem;
	font-weight: 700;
	border: none;
	border-radius: 0.75rem;
	cursor: pointer;
	white-space: nowrap;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	font-family: 'Inter', sans-serif;
}

.verif-car-button:hover:not(:disabled) {
	background-color: #0944A1;
	transform: scale(1.05);
}

.verif-car-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.verif-car-button .button-arrow {
	width: 20px;
	height: 20px;
	transition: transform 0.2s ease;
}

.verif-car-button:hover:not(:disabled) .button-arrow {
	transform: translateX(3px);
}

/* Button Loading State */
.verif-car-button.loading .button-text {
	display: none;
}

.verif-car-button.loading .button-arrow {
	display: none;
}

.verif-car-button .button-loader {
	display: none;
}

.verif-car-button.loading .button-loader {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.verif-car-button .spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Helper Text */
.verif-car-helper-text {
	font-size: 0.875rem;
	color: #6b7280;
	margin-top: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: 'Inter', sans-serif;
}

.verif-car-helper-text svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* Messages */
.verif-car-form-messages {
	margin-top: 1.5rem;
}

.verif-car-message {
	padding: 1rem 1.25rem;
	border-radius: 0.75rem;
	margin-bottom: 1rem;
	font-size: 0.95rem;
	font-family: 'Inter', sans-serif;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.verif-car-message.success {
	background: #d1fae5;
	border: 2px solid #10b981;
	color: #065f46;
}

.verif-car-message.error {
	background: #fee2e2;
	border: 2px solid #ef4444;
	color: #991b1b;
}

.verif-car-message.info {
	background: #dbeafe;
	border: 2px solid #3b82f6;
	color: #1e40af;
}

/* Responsive */
@media (min-width: 768px) {
	.verif-car-form-content {
		flex-direction: row;
	}

	.verif-car-button {
		width: auto;
	}
}

@media (max-width: 767px) {
	.verif-car-form-wrapper {
		padding: 1.5rem;
	}

	.verif-car-input {
		height: 54px;
		padding: 0 1.25rem;
		font-size: 1rem;
	}

	.verif-car-button {
		padding: 1rem 2rem;
		font-size: 1rem;
		width: 100%;
	}

	.verif-car-helper-text {
		font-size: 0.8125rem;
	}
}
