/**
 * ENE Testimonials — submission form (native rebuild of Real Testimonials Pro's form).
 *
 * Markup and class names mirror Pro 1:1, so all existing child-theme rules
 * (custom.css / _custom.css: "#testimonialForm ...") keep applying unchanged.
 *
 * This file supplies what Pro's form.css + per-form dynamic CSS used to provide,
 * so nothing changes visually once the Pro plugin is deactivated.
 */

/* ---------- Base structure (was: Pro form.css) ---------- */
.sp-tpro-fronted-form .sp-tpro-form-field {
	margin-bottom: 24px;
}
.sp-tpro-fronted-form .sp-tpro-form-field .sp-testimonial-input-field {
	position: relative;
}
.sp-tpro-fronted-form .sp-tpro-form-field input:focus,
.sp-tpro-fronted-form .sp-tpro-form-field textarea:focus {
	outline: none;
}
.sp-tpro-fronted-form .sp-tpro-form-field input[type="text"],
.sp-tpro-fronted-form .sp-tpro-form-field input[type="email"] {
	width: 100%;
	max-width: 450px;
	border: 1px solid #dddddd;
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1;
	box-sizing: border-box;
}
.sp-tpro-fronted-form .sp-tpro-form-field textarea {
	width: 100%;
	max-width: 450px;
	border: 1px solid #dddddd;
	padding: 10px 14px;
	font-size: 14px;
	border-radius: 4px;
	margin-bottom: -8px;
	box-sizing: border-box;
}
.sp-tpro-fronted-form .sp-tpro-form-field label {
	margin-bottom: 5px;
}
.sp-tpro-fronted-form .sp-tpro-form-field .tpro_client_before,
.sp-tpro-fronted-form .sp-tpro-form-field .tpro_client_after {
	font-family: Roboto, sans-serif;
	color: #444444;
	font-size: 13px;
	font-style: italic;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0em;
	white-space: pre;
}
.sp-tpro-fronted-form .sp-tpro-form-field .tpro_client_before.tpro-before-rating {
	position: absolute;
	bottom: -5px;
	left: 0;
}
.sp-tpro-fronted-form .sp-tpro-form-field .sp-testimonial-input-field .sp-maximum_length {
	font-family: Roboto, sans-serif;
	font-size: 12px;
	font-style: italic;
	font-weight: 400;
	float: right;
	margin-top: 4px;
}
.sp-testimonial-form-container span.sp-required-asterisk-symbol {
	font-size: 18px;
	margin-left: 2px;
	color: rgb(226 35 22);
	font-weight: 400;
}
.tpro-location-wrapper {
	display: flex;
	gap: 10px;
}

/* Submit button + preloader wrapper */
.sp-tpro-fronted-form .sp-tpro-form-field .sp-testimonial-input-field.sp-tpro-form-submit-button {
	position: relative;
	display: flex;
}
.sp-tpro-fronted-form .sp-tpro-form-field .sp-tpro-form-submit-button .submit-button-wrapper {
	display: flex;
	align-items: center;
	flex-flow: row-reverse;
}
.sp-tpro-fronted-form .sp-tpro-form-submit-button input[type='submit'],
.sp-tpro-fronted-form .sp-tpro-form-submit-button input[type='submit']:focus {
	border: none;
	outline: none;
	cursor: pointer;
}

/* Validation + result messages */
.sp-tpro-fronted-form .sp-tpro-form-field .sp-tpro-form-error-msg {
	color: #f44336;
	font-size: 14px;
	font-weight: 400;
	margin-top: 5px;
	display: inline-block;
}
.sp-tpro-fronted-form .sp-tpro-form-field label.error {
	font-size: 14px !important;
	color: rgb(226 35 22) !important;
	font-weight: 400;
	margin-left: 10px;
	float: right;
}
.sp-tpro-fronted-form .sp-testimonial-form-container .sp-testimonial-form-successful-msg,
.sp-tpro-fronted-form .sp-testimonial-form-container .sp-testimonial-form-error-msg {
	color: #270;
	margin: 10px 0;
	text-align: center;
}
.sp-tpro-fronted-form .sp-testimonial-form-container .sp-testimonial-form-error-msg {
	color: #cd3c3c;
}

/* ---------- Star rating mechanics (was: Pro form.css) ----------
   Radios are printed 5→1 and labels float right, so they read 1→5 on screen
   and "~ label" colours every star up to the selected one. */
.sp-tpro-fronted-form .sp-tpro-client-rating {
	float: left;
}
.sp-tpro-fronted-form .sp-tpro-client-rating > input {
	visibility: hidden;
	display: none;
	width: 0;
	height: 0;
	position: absolute;
	clip: rect(0, 0, 0, 0);
	margin: 0;
	padding: 0;
}
.sp-tpro-fronted-form .sp-tpro-client-rating > label {
	float: right;
	display: block;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font-size: 150%;
	line-height: 1.2;
	color: #d4d4d4;
	width: 1em;
}
.sp-tpro-fronted-form .sp-tpro-client-rating > label .ene-tstf-star {
	display: block;
	width: 1em;
	height: 1em;
}
.sp-tpro-fronted-form .sp-tpro-client-rating > input:checked ~ label {
	color: #f3bb00;
}
.sp-tpro-fronted-form .sp-tpro-client-rating:not(:checked) > label:hover,
.sp-tpro-fronted-form .sp-tpro-client-rating:not(:checked) > label:hover ~ label,
.sp-tpro-fronted-form .sp-tpro-client-rating > input:checked + label:hover,
.sp-tpro-fronted-form .sp-tpro-client-rating > input:checked + label:hover ~ label,
.sp-tpro-fronted-form .sp-tpro-client-rating > input:checked ~ label:hover,
.sp-tpro-fronted-form .sp-tpro-client-rating > input:checked ~ label:hover ~ label,
.sp-tpro-fronted-form .sp-tpro-client-rating > label:hover ~ input:checked ~ label {
	color: #de7202;
}

/* ---------- Per-form appearance (was: Pro's inline dynamic CSS for form 3712) ---------- */
#testimonial_form_3712.sp-tpro-fronted-form {
	display: flex;
	justify-content: left;
}
#testimonial_form_3712.sp-tpro-fronted-form .sp-testimonial-form-container {
	padding: 0;
	border: 0 none transparent;
	border-radius: 0;
	background-color: transparent;
	max-width: 100%;
}
#testimonial_form_3712.sp-tpro-fronted-form .sp-tpro-form-field .sp-testimonial-input-field:not(.sp-tpro-form-submit-button) input,
#testimonial_form_3712.sp-tpro-fronted-form .sp-tpro-form-field textarea {
	border: 0 none #191717;
	border-radius: 0;
	background-color: transparent;
	box-sizing: border-box;
	max-width: 100% !important;
}
#testimonial_form_3712.sp-tpro-fronted-form .sp-tpro-form-field label {
	font-size: 16px;
	color: #191717;
	font-weight: 500;
}
#testimonial_form_3712.sp-tpro-fronted-form .sp-tpro-form-field.sp-tpro-form-content .sp-testimonial-input-field .sp-maximum_length,
#testimonial_form_3712.sp-tpro-fronted-form .sp-tpro-form-field.sp-tpro-form-title .sp-testimonial-input-field .sp-maximum_length {
	position: absolute;
	right: 0;
	top: -28px;
}
#testimonial_form_3712.sp-tpro-fronted-form .sp-tpro-form-submit-button input[type='submit'] {
	color: #191717;
	background: transparent;
	padding: 15px 30px;
	font-size: 14px;
	transition: all 0.25s;
	text-decoration: none;
	line-height: 1;
	border-radius: 4px;
}
#testimonial_form_3712.sp-tpro-fronted-form .sp-tpro-form-submit-button input[type='submit']:hover {
	color: #191717;
	background: transparent;
}
#testimonial_form_3712.sp-tpro-fronted-form .sp-tpro-client-rating:not(:checked) > label {
	color: #bbc2c7;
	font-size: 16px;
}
#testimonial_form_3712.sp-tpro-fronted-form .sp-tpro-client-rating > input:checked ~ label {
	color: #6e7048;
}
#testimonial_form_3712.sp-tpro-fronted-form .sp-tpro-client-rating:not(:checked) > label:hover,
#testimonial_form_3712.sp-tpro-fronted-form .sp-tpro-client-rating:not(:checked) > label:hover ~ label {
	color: #6e7048;
}
#testimonial_form_3712.sp-tpro-fronted-form .sp-tpro-form-field.tpro-star-rating-field {
	margin-bottom: 40px;
}

/* Submitting state */
.sp-tpro-fronted-form.ene-tstf-busy .sp-tpro-form-submit-button input[type='submit'] {
	opacity: 0.5;
	pointer-events: none;
}
