/* Yhteydenottolomake (Contact Form 7 #276) — selkeä, luettava ja rauhallinen.
   Teeman lomaketyylit ovat vahvoja, joten tärkeimmät arvot pakotetaan. */

.qodef-custom-form form,
.edgtf-custom-form form,
.wpcf7 form{
	max-width:540px !important;
}

.qodef-custom-form .wpcf7,
.edgtf-custom-form .wpcf7{
	max-width:540px !important;
	font-size:16px !important;
	line-height:1.55 !important;
}

/* Pieni kortti lomakkeen ympärille, jotta se erottuu sivun muusta sisällöstä. */
.qodef-custom-form .wpcf7 form,
.edgtf-custom-form .wpcf7 form,
.wpcf7 form.wpcf7-form{
	padding:22px 22px 20px !important;
	background:#fff !important;
	border:1px solid rgba(23,23,23,.08) !important;
	border-radius:20px !important;
	box-shadow:0 22px 44px -34px rgba(23,23,23,.55) !important;
}

.qodef-custom-form p,
.edgtf-custom-form p{
	margin:0 !important;
}

.qodef-custom-form br,
.edgtf-custom-form br{
	display:none !important;
}

.qodef-custom-form .wpcf7-form-control-wrap,
.edgtf-custom-form .wpcf7-form-control-wrap{
	display:block !important;
	margin:0 0 14px !important;
}

/* Kentät */
.qodef-custom-form input.wpcf7-form-control,
.qodef-custom-form textarea.wpcf7-form-control,
.qodef-custom-form select.wpcf7-form-control,
.edgtf-custom-form input.wpcf7-form-control,
.edgtf-custom-form textarea.wpcf7-form-control,
.edgtf-custom-form select.wpcf7-form-control{
	display:block !important;
	width:100% !important;
	max-width:100% !important;
	height:54px !important;
	min-height:0 !important;
	margin:0 !important;
	padding:0 18px !important;
	font-family:inherit !important;
	font-size:16px !important;
	font-weight:400 !important;
	line-height:54px !important;
	letter-spacing:normal !important;
	text-transform:none !important;
	color:#171717 !important;
	background:#fff !important;
	border:1px solid rgba(23,23,23,.22) !important;
	border-radius:14px !important;
	box-shadow:inset 0 1px 2px rgba(23,23,23,.04) !important;
	box-sizing:border-box !important;
	transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.qodef-custom-form input.wpcf7-form-control:hover,
.qodef-custom-form textarea.wpcf7-form-control:hover,
.edgtf-custom-form input.wpcf7-form-control:hover,
.edgtf-custom-form textarea.wpcf7-form-control:hover{
	border-color:rgba(23,23,23,.34) !important;
}

/* rows="10" tekee kentästä liian korkean, joten korkeus kiinnitetään. */
.qodef-custom-form textarea.wpcf7-form-control,
.edgtf-custom-form textarea.wpcf7-form-control{
	height:160px !important;
	min-height:160px !important;
	line-height:1.6 !important;
	padding:15px 18px !important;
	resize:vertical;
}

/* Vihjeteksti (placeholder) — aiemmin liian hailakka, nyt selvästi luettava. */
.qodef-custom-form input.wpcf7-form-control::placeholder,
.qodef-custom-form textarea.wpcf7-form-control::placeholder,
.edgtf-custom-form input.wpcf7-form-control::placeholder,
.edgtf-custom-form textarea.wpcf7-form-control::placeholder{
	color:#5b6169 !important;
	opacity:1 !important;
	font-weight:400 !important;
}

.qodef-custom-form input.wpcf7-form-control:focus,
.qodef-custom-form textarea.wpcf7-form-control:focus,
.edgtf-custom-form input.wpcf7-form-control:focus,
.edgtf-custom-form textarea.wpcf7-form-control:focus{
	border-color:#17BB21 !important;
	box-shadow:0 0 0 4px rgba(23,187,33,.16) !important;
	outline:none !important;
}

/* Virheellinen kenttä */
.qodef-custom-form .wpcf7-not-valid,
.edgtf-custom-form .wpcf7-not-valid,
.wpcf7-form-control.wpcf7-not-valid{
	border-color:#c0392b !important;
	box-shadow:0 0 0 4px rgba(192,57,43,.12) !important;
}

/* Lähetä-painike */
.qodef-custom-form .edgtf-btn-border,
.edgtf-custom-form .edgtf-btn-border{
	display:none !important;
}

.qodef-custom-form input.wpcf7-submit,
.edgtf-custom-form input.wpcf7-submit{
	display:inline-block !important;
	width:auto !important;
	min-width:180px !important;
	height:52px !important;
	margin:8px 0 0 !important;
	padding:0 36px !important;
	font-family:inherit !important;
	font-size:16px !important;
	font-weight:700 !important;
	line-height:52px !important;
	letter-spacing:.02em !important;
	text-transform:none !important;
	color:#171717 !important;
	background:#ffd34f !important;
	border:0 !important;
	border-radius:999px !important;
	box-shadow:0 12px 24px -14px rgba(0,0,0,.55) !important;
	cursor:pointer;
	transition:background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.qodef-custom-form input.wpcf7-submit:hover,
.edgtf-custom-form input.wpcf7-submit:hover{
	background:#ffdf7a !important;
	color:#171717 !important;
	transform:translateY(-1px);
	box-shadow:0 16px 26px -14px rgba(0,0,0,.5) !important;
}

.qodef-custom-form input.wpcf7-submit:active,
.edgtf-custom-form input.wpcf7-submit:active{
	transform:translateY(0);
}

.qodef-custom-form input.wpcf7-submit:focus-visible,
.edgtf-custom-form input.wpcf7-submit:focus-visible{
	outline:3px solid rgba(23,187,33,.45) !important;
	outline-offset:3px;
}

/* Ilmoitukset */
.qodef-custom-form .wpcf7-not-valid-tip,
.edgtf-custom-form .wpcf7-not-valid-tip{
	margin-top:7px !important;
	font-size:13.5px !important;
	line-height:1.4 !important;
	color:#b3261e !important;
}

.qodef-custom-form .wpcf7-response-output,
.edgtf-custom-form .wpcf7-response-output{
	margin:18px 0 0 !important;
	padding:13px 16px !important;
	font-size:14px !important;
	color:#1c5b23 !important;
	background:#eef7ee !important;
	border:1px solid rgba(28,91,35,.14) !important;
	border-radius:14px !important;
}

.qodef-custom-form .wpcf7 form.invalid .wpcf7-response-output,
.edgtf-custom-form .wpcf7 form.invalid .wpcf7-response-output{
	color:#8a2b22 !important;
	background:#fbeeec !important;
	border-color:rgba(138,43,34,.16) !important;
}

/* WP Armour -hunajapurkin "alt_s"-kenttä: näkymättömäksi ja pois
   automaattitäytöstä, jotta selaimen lomaketäyttö ei merkitse viestiä roskaksi. */
#altEmail_container,
.altEmail_container{
	display:none !important;
}

/* reCAPTCHA ei saa venyttää lomaketta (jos tunniste otetaan joskus takaisin). */
.qodef-custom-form .wpcf7-recaptcha,
.edgtf-custom-form .wpcf7-recaptcha{
	margin:0 0 14px !important;
	transform:scale(.92);
	transform-origin:left top;
}

/* Cloudflare Turnstile -vahvistus. Varataan korkeus, jotta sivu ei hyppää. */
.kp-turnstile-row{
	display:flex;
	justify-content:flex-start;
	align-items:flex-start;
	min-height:65px;
	max-width:100%;
	margin:0 0 14px;
}

.kp-turnstile-row .cf-turnstile{
	flex:0 0 auto;
}

/*
 * Turnstilen iframe on kiinteästi 300 px leveä, joten kapealla kännykällä se
 * valuu lomakkeen yli. Skaalataan widget vasemmasta yläkulmasta ja estetään
 * rivin ylivuoto, jotta sivulle ei tule vaakavieritystä. Negatiivinen
 * marginaali poistaa skaalauksen jättämän tyhjän tilan.
 */
@media only screen and (max-width:480px){
	.kp-turnstile-row{
		overflow:hidden;
		min-height:58px;
	}

	.kp-turnstile-row .cf-turnstile{
		transform:scale(.88);
		transform-origin:left top;
		margin-bottom:-8px;
	}
}

@media only screen and (max-width:380px){
	.kp-turnstile-row{
		min-height:52px;
	}

	.kp-turnstile-row .cf-turnstile{
		transform:scale(.8);
		margin-bottom:-13px;
	}
}

@media only screen and (max-width:340px){
	.kp-turnstile-row{
		min-height:47px;
	}

	.kp-turnstile-row .cf-turnstile{
		transform:scale(.72);
		margin-bottom:-18px;
	}
}
