/* The contact form's photo upload (#contact-2251 .tb-photos), J&J Remastering's (autoexpress.lt's car-photo upload,
   North Shore Hauling 655eedc) in this site's look: a dashed white box the height of the other fields with the cloud
   icon, the picked photos listed under it with a round x each, the limits line under them. Greys and the error red
   (#585b5d, #b01f18) are the form's own and pass 4.5:1 on the section's cream (#FBF5F1). */
#contact-2251 .tb-photos {
	grid-column: span 12;
	margin-bottom: 0.75rem;
}
#contact-2251 .tb-photos-label {
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.5em;
	color: var(--headerColor);
}
#contact-2251 .file-upload-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
#contact-2251 .file-upload-label {
	cursor: pointer;
	display: block;
	width: 100%;
	box-sizing: border-box;
	position: relative;
}
#contact-2251 .file-upload-button {
	font-size: 1rem;
	line-height: 1.5em;
	width: 100%;
	height: clamp(2.875rem, 5.5vw, 3.5rem);
	padding: 0 1.5rem;
	box-sizing: border-box;
	background-color: #fff;
	color: var(--bodyTextColor);
	border: 2px dashed #c9bdb4;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	transition: border-color 0.3s, color 0.3s;
}
#contact-2251 .file-upload-button img {
	width: 20px;
	height: 20px;
	flex: none;
}
#contact-2251 .file-upload-wrapper:has(.file-upload-input:hover) .file-upload-button {
	border-color: var(--primary);
	color: var(--primary);
}
/* The real input lies over the box, invisible, so a tap anywhere on the box opens the picker; the box shows its focus. */
#contact-2251 .file-upload-input {
	cursor: pointer;
	width: 100%;
	height: clamp(2.875rem, 5.5vw, 3.5rem);
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
}
#contact-2251 .file-upload-wrapper:has(.file-upload-input:focus-visible) .file-upload-button {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}
#contact-2251 .file-upload-wrapper:has([aria-invalid="true"]) .file-upload-button {
	border-color: #b01f18;
}
#contact-2251 .form-text-muted {
	font-size: 0.8125rem;
	line-height: 1.5em;
	margin-top: 0.375rem;
	color: #585b5d;
	display: block;
	text-align: left;
}
#contact-2251 .file-list {
	width: 100%;
	margin: 0.75rem 0 0;
}
#contact-2251 .file-list-title {
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.5em;
	margin-bottom: 0.5rem;
	color: var(--headerColor);
}
#contact-2251 .file-item {
	margin-bottom: 0.5rem;
	padding: 0.5rem 0.5rem 0.5rem 0.75rem;
	background-color: #fff;
	border: 1px solid #e9e1db;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}
#contact-2251 .file-name {
	font-size: 0.875rem;
	line-height: 1.4em;
	color: var(--bodyTextColor);
	flex: 1;
	word-break: break-word;
}
#contact-2251 .file-remove-btn {
	font-family: Arial, sans-serif;
	font-size: 1.2rem;
	line-height: 1;
	width: 24px;
	height: 24px;
	background-color: #b01f18;
	color: #fff;
	border: none;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
	cursor: pointer;
	transition: background-color 0.3s, transform 0.2s;
}
#contact-2251 .file-remove-btn:hover {
	background-color: #8c1812;
	transform: scale(1.1);
}
#contact-2251 .file-remove-btn:active {
	transform: scale(0.95);
}
#contact-2251 .file-remove-btn:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}
#contact-2251 .tb-field-error {
	font-size: 0.875rem;
	line-height: 1.5em;
	margin-top: 0.25rem;
	color: #b01f18;
	display: block;
}
#contact-2251 .tb-field-error[hidden] {
	display: none;
}
