/* --- MAIN CONTAINER (Black Mode) --- */
.veloz-warranty-form {
	background-color: #000 !important;
	color: #fff !important;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	max-width: 1100px;
	margin: 0 auto;
	padding: 60px 40px;
	box-sizing: border-box;
}
.veloz-warranty-form * { box-sizing: border-box; }

/* --- INPUT FIELDS & DROPDOWNS --- */
.veloz-warranty-form input[type="text"],
.veloz-warranty-form input[type="email"],
.veloz-warranty-form input[type="tel"],
.veloz-warranty-form input[type="date"],
.veloz-warranty-form select {
	background-color: #000 !important;
	color: #fff !important;
	border: none !important;
	width: 100%;
	height: 60px;
	padding: 0 20px !important;
	margin: 0 !important;
	font-size: 16px !important; /* Prevents iOS Zoom */
	text-transform: uppercase;
	outline: none;
	border-radius: 0 !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

/* --- DROPDOWN ARROW FIX --- */
.select-wrap {
	position: relative;
	width: 100%;
	border-bottom: 1px solid #888;
}
.select-wrap::after {
	content: '▼';
	font-size: 10px;
	color: #fff;
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}
.veloz-warranty-form select {
	font-weight: 700;
	cursor: pointer;
	background-image: none !important;
}
.veloz-warranty-form select::-ms-expand { display: none; }

/* Placeholders */
.veloz-warranty-form ::placeholder { 
	color: #888 !important; 
	opacity: 1; 
	font-weight: 500; 
}

/* --- LAYOUT (Desktop Grid) --- */
.form-row {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	margin-bottom: 50px;
	align-items: start;
}

.row-label {
	font-weight: 700;
	color: #888;
	font-size: 15px;
	padding-top: 22px;
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.row-content { width: 100%; }

/* --- GRID BOXES --- */
.grid-box {
	border: 1px solid #fff;
	display: flex;
	flex-direction: column;
	width: 100%;
}
.grid-line { display: flex; width: 100%; }

.g-cell {
	position: relative;
	display: flex;
	align-items: center;
	border-right: 1px solid #fff;
}
.g-cell:last-child { border-right: none; }
.border-bot { border-bottom: 1px solid #fff; }

.w-20 { width: 20%; }
.w-16 { width: 16.6667%; }
.w-25 { width: 25%; }
.w-33 { width: 33.3333%; }
.w-50 { width: 50%; }

/* --- CHECKBOXES --- */
.check-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 30px; 
	padding-top: 15px;
}
.check-wrap {
	display: flex !important;
	align-items: center !important;
	gap: 12px; 
}
.check-label {
	color: #888;
	font-weight: 700;
	font-size: 16px;
	line-height: 1; 
	padding-top: 2px;
}
.check-wrap .veloz-warranty-form__field,
.check-wrap .veloz-warranty-form__label {
	margin: 0 !important; 
	padding: 0 !important;
	display: flex !important; 
	align-items: center !important;
	width: auto !important;
}
.veloz-warranty-form input[type="checkbox"] {
	appearance: none; 
	-webkit-appearance: none;
	width: 18px !important; 
	height: 18px !important; 
	border: 2px solid #fff !important;
	background: #000 !important;
	cursor: pointer;
	display: block !important;
	margin: 0 !important;
}
.veloz-warranty-form input[type="checkbox"]:checked { 
	background: #fff !important; 
}

/* --- OTHER INPUT --- */
.other-line {
	border-bottom: 1px solid #888;
	width: 100%;
}
.other-line input::placeholder {
	font-weight: 700;
	color: #fff !important;
	font-size: 16px;
	text-transform: none;
}

/* --- SUBMIT BUTTON --- */
.submit-container {
	display: flex;
	justify-content: flex-end;
	padding-top: 120px; 
	padding-bottom: 40px;
}
.veloz-warranty-form__submit {
	background: #e0e0e0 !important;
	color: #000 !important;
	width: auto !important;
	padding: 22px 80px !important;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 0;
	letter-spacing: 1px;
	border: none !important;
	margin-top: 0 !important;
}
.veloz-warranty-form__submit:hover { 
	background: #fff !important; 
}

.veloz-warranty-form__notice {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	margin-bottom: 1rem;
	font-weight: 600;
}

.veloz-warranty-form__notice--success {
	background: #e3f6ed;
	color: #1f8d55;
	border: 1px solid #99dbb6;
}

.veloz-warranty-form__notice--error {
	background: #fdecec;
	color: #c0392b;
	border: 1px solid #f5a5a5;
}

.veloz-warranty-form__field--full {
	grid-column: 1 / -1;
}

.veloz-warranty-form__help {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: #666;
	font-style: italic;
}

.veloz-warranty-form input[type="file"] {
	background-color: #000 !important;
	color: #888 !important;
	border: none !important;
	border-bottom: 1px solid #888 !important;
	width: 100%;
	height: 60px;
	padding: 0 20px !important;
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 500;
	outline: none;
	border-radius: 0 !important;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	line-height: 60px;
}

.veloz-warranty-form input[type="file"]::file-selector-button {
	background-color: #e0e0e0 !important;
	color: #000 !important;
	border: none !important;
	padding: 12px 24px !important;
	margin-right: 16px !important;
	font-weight: 700;
	font-size: 14px !important;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 0;
	letter-spacing: 0.5px;
	height: 36px;
	line-height: 1;
	vertical-align: middle;
}

.veloz-warranty-form input[type="file"]::file-selector-button:hover {
	background-color: #fff !important;
}

/* Style the file name text */
.veloz-warranty-form input[type="file"]::-webkit-file-upload-button {
	background-color: #e0e0e0 !important;
	color: #000 !important;
	border: none !important;
	padding: 12px 24px !important;
	margin-right: 16px !important;
	font-weight: 700;
	font-size: 14px !important;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 0;
	letter-spacing: 0.5px;
	height: 36px;
	line-height: 1;
}

.veloz-warranty-form input[type="file"]::-webkit-file-upload-button:hover {
	background-color: #fff !important;
}

/* Image grid for labeled image inputs */
.veloz-warranty-form .image-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
	margin-top: 6px;
}
.veloz-warranty-form .image-grid-item label {
	display: block;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
}
.veloz-warranty-form .image-grid-item input[type="file"] {
	width: 100%;
	height: 60px;
}

.veloz-warranty-form__image-preview {
	margin-top: 1rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 0.75rem;
}

.veloz-warranty-form__image-preview-item {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid #e0e0e0;
}

.veloz-warranty-form__image-preview-item img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
}

.veloz-warranty-form__image-preview-item button {
	position: absolute;
	top: 4px;
	right: 4px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #ccc;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.veloz-warranty-form__image-preview-item button:hover {
	background: #fdecec;
	border-color: #c0392b;
	color: #c0392b;
}

.veloz-warranty-form__image-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 0.5rem;
}

.veloz-warranty-form__image-item {
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid #e0e0e0;
	transition: transform 0.2s, box-shadow 0.2s;
}

.veloz-warranty-form__image-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.veloz-warranty-form__image-item img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 300px;
	object-fit: cover;
}

/* --- WARRANTY VIEW PAGE STYLING --- */
body.veloz-warranty-view {
	background-color: #000 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.veloz-warranty-view #wpadminbar,
body.veloz-warranty-view .site-header,
body.veloz-warranty-view .site-footer,
body.veloz-warranty-view .site-main,
body.veloz-warranty-view .content-area,
body.veloz-warranty-view .site-content,
body.veloz-warranty-view .entry-content {
	background-color: #000 !important;
	color: #fff !important;
}

.veloz-warranty-view__container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 60px 40px;
	background-color: #000 !important;
	color: #fff !important;
	min-height: 100vh;
}

.veloz-warranty-view__title {
	margin-bottom: 2rem;
	color: #fff !important;
	font-size: 2rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Warranty view grid cells styling */
.veloz-warranty-view .g-cell {
	color: #fff !important;
	padding: 20px !important;
	font-size: 15px;
	line-height: 1.8;
	min-height: 60px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	word-wrap: break-word;
	overflow-wrap: break-word;
	word-break: break-word;
}

.veloz-warranty-view .g-cell strong {
	white-space: nowrap;
}

.veloz-warranty-view .g-cell strong {
	color: #888;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: block;
	margin-bottom: 8px;
}

.veloz-warranty-view .g-cell > div,
.veloz-warranty-view .g-cell {
	color: #fff !important;
}

/* Fix spacing in warranty view */
.veloz-warranty-view .form-row {
	margin-bottom: 50px;
}

.veloz-warranty-view .row-label {
	color: #888 !important;
}

.veloz-warranty-view .grid-box {
	border: 1px solid #fff;
}

.veloz-warranty-view .g-cell {
	border-right: 1px solid #fff;
	align-items: flex-start !important;
	padding-top: 20px;
	padding-bottom: 20px;
}

.veloz-warranty-view .g-cell:last-child {
	border-right: none;
}

/* Image gallery in warranty view */
.veloz-warranty-view .veloz-warranty-form__image-gallery {
	margin-top: 1rem;
}

.veloz-warranty-view .veloz-warranty-form__image-item {
	border: 2px solid #fff !important;
}

.veloz-warranty-view .veloz-warranty-form__image-item img {
	border-radius: 0;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
	.veloz-warranty-form { padding: 40px 20px; }
	
	.form-row { 
		display: flex;
		flex-direction: column;
		gap: 5px; 
		margin-bottom: 50px;
	}
	
	.row-label { 
		padding-top: 0; 
		margin-bottom: 15px;
		font-size: 14px; 
		color: #666;
		width: 100%;
		display: block;
	}

	.grid-line { flex-direction: column; }
	.g-cell, .w-20, .w-25, .w-33, .w-50 { width: 100%; }

	.g-cell {
		border-right: none !important;
		border-bottom: 1px solid #fff;
	}
	.grid-line:last-child .g-cell:last-child { border-bottom: none; }
	
	.check-container { gap: 20px; }
	
	.submit-container { 
		justify-content: center; 
		padding-top: 60px;
	}
	.submit-container .veloz-warranty-form__submit { width: 100% !important; }
}

