/*
 * Cash 4 Race Cars: styles not covered by the captured WordPress CSS (wp.css).
 * The valuation form copies the computed styles of the live Forminator form.
 */

/* Images rendered by EmDash's <Image> component */
.wp-block-image img,
.wp-block-gallery img {
	height: auto;
	max-width: 100%;
}
.wp-block-column .wp-block-image img {
	width: 100%;
}

/* ---- Valuation form (Forminator "default" design) ---- */
.c4-form {
	font-family: "Lato", sans-serif;
	color: #333;
	margin: 0;
	text-align: left;
}
.c4-row {
	display: flex;
	flex-wrap: wrap;
	column-gap: 30px;
}
.c4-field {
	flex: 0 0 100%;
	margin: 0 0 30px;
	min-width: 0;
}
.c4-field.c4-half {
	flex: 1 1 calc(50% - 15px);
}
@media (max-width: 782px) {
	.c4-field,
	.c4-field.c4-half {
		flex-basis: 100%;
		margin-bottom: 20px;
	}
}
.c4-label {
	display: block;
	margin: 0 0 0;
	padding: 0;
	font-family: "Lato", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.7em;
	color: #333;
}
.c4-required {
	margin-left: 3px;
	color: #e04562;
}
.c4-form input[type="text"],
.c4-form input[type="email"],
.c4-form input[type="tel"],
.c4-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 9px;
	border: 1px solid #666;
	border-radius: 2px;
	background: #fff;
	color: #000;
	font-family: "Lato", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3em;
	outline: none;
	transition: border-color 0.2s;
}
.c4-form textarea {
	height: 140px;
	min-height: 140px;
	line-height: 1.25em;
	resize: vertical;
}
.c4-form select {
	display: block;
	width: 100%;
	height: 40px;
	box-sizing: border-box;
	margin: 0;
	padding: 0 34px 0 4px;
	border: 1px solid #777771;
	border-radius: 2px;
	background: #ededed
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23333' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E")
		no-repeat right 12px center;
	color: #333;
	font-family: "Lato", sans-serif;
	font-size: 16px;
	line-height: 38px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}
.c4-form input:focus,
.c4-form textarea:focus,
.c4-form select:focus {
	border-color: #254deb;
}
.c4-field.has-error input,
.c4-field.has-error textarea,
.c4-field.has-error select,
.c4-field.has-error .c4-upload {
	border-color: #e04562;
}
.c4-error {
	display: block;
	color: #e04562;
	font-size: 12px;
	line-height: 2em;
}
.c4-error:empty {
	display: none;
}
.c4-form-error {
	margin: 0 0 30px;
	padding: 12px 16px;
	border-left: 4px solid #e04562;
	background: #fbe8ec;
	color: #333;
	font-size: 15px;
}

/* Upload drop zone */
.c4-upload {
	position: relative;
	box-sizing: border-box;
	padding: 29px;
	border: 1px dashed #333;
	border-radius: 2px;
	text-align: center;
	font-size: 12px;
	line-height: 1.5;
	color: #333;
}
.c4-upload.is-dragover {
	background: #f8f8f8;
	border-color: #254deb;
}
.c4-upload-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}
.c4-upload-icon {
	display: block;
	width: 30px;
	height: 30px;
	margin: 0 auto 5px;
	color: #333;
	line-height: 0;
}
.c4-upload-text {
	display: block;
	font-size: 13px;
	line-height: 1.7em;
}
.c4-upload-link {
	display: inline;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #e04562;
	text-decoration: underline;
	cursor: pointer;
}
.c4-upload-list {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}
.c4-upload-list:not(:empty) {
	margin-top: 16px;
}
.c4-upload-list li {
	padding: 6px 0;
	border-top: 1px solid #e6e6e6;
	font-size: 14px;
}
.c4-upload-remove {
	margin-left: 8px;
	padding: 2px 8px;
	border: 1px solid #ccc;
	border-radius: 2px;
	background: #fff;
	color: #333;
	font-size: 12px;
	cursor: pointer;
}

/* Honeypot */
.c4-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Submit button */
.c4-submit-row {
	margin: 0;
}
.c4-submit {
	min-width: 100px;
	margin: 0;
	padding: 10px;
	border: 0;
	border-radius: 2px;
	background-color: #ffd400;
	color: #111;
	font-family: "Lato", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45em;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.c4-submit:hover,
.c4-submit:focus {
	background-color: #111;
	color: #ffd400;
}
.c4-submit-busy,
.is-submitting .c4-submit-label {
	display: none;
}
.is-submitting .c4-submit-busy {
	display: inline;
}
.is-submitting .c4-submit {
	opacity: 0.7;
	pointer-events: none;
}
@media (max-width: 782px) {
	.c4-submit {
		width: 100%;
	}
}

/* Forminator puts ~16px more space above the form than the block gap */
.forminator-guttenberg {
	margin-top: 40px !important;
}
.c4-field[hidden] {
	display: none;
}
