/*
 * Site-specific styles for kanssasi.fi.
 *
 * The first block is the "Additional CSS" that was set in the WordPress
 * Customizer on the old site, carried over unchanged so the look matches.
 * Selectors that referred to Contact Form 7 (.wpcf7-*) now target the
 * plain .contact-form markup instead.
 */

/* ---- Carried over from the WordPress Customizer ---- */

.site-info {
	display: none;
}

b,
strong {
	letter-spacing: 0.1em;
	font-weight: 600;
}

ul {
	list-style: disc;
	margin-left: 20px;
}

@media screen and (max-width: 768px) {
	.has-header-image.twentyseventeen-front-page .custom-header {
		height: 45vh;
	}

	.has-header-image .custom-header-media img {
		height: 350px;
		min-height: 0;
	}
}

@media screen and (max-width: 480px) {
	.has-header-image.twentyseventeen-front-page .custom-header {
		height: 25vh;
	}

	.has-header-image .custom-header-media img {
		height: 240px;
		min-height: 0;
	}
}

h5 {
	color: #000;
}

/* ---- Contact form (replaces Contact Form 7) ---- */

.contact-form {
	margin-right: 25px;
	margin-top: 25px;
}

.contact-form p {
	margin: 0 0 20px;
}

.contact-form label {
	margin: 0;
	letter-spacing: 0.1em;
	font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
	max-height: 30px;
}

.contact-form textarea {
	max-height: 100px;
}

.contact-form button[type="submit"] {
	background-color: #b3c9ad;
	text-align: center;
	text-transform: uppercase;
	margin-bottom: 15px;
	width: auto;
	padding: 12px 12px;
	letter-spacing: 2px;
	font-size: 12px;
	line-height: 1;
}

.contact-form button[type="submit"][disabled] {
	opacity: 0.6;
	cursor: wait;
}

/* Spam trap field: hidden from people, visible to bots. */
.contact-form .hp-field {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-status {
	margin: 0 0 20px;
	padding: 0.8em 1em;
	border: 2px solid transparent;
}

.form-status:empty {
	display: none;
}

.form-status.is-success {
	border-color: #b3c9ad;
}

.form-status.is-error {
	border-color: #dc3232;
}

/* ---- Map embed ---- */

.map-embed iframe {
	width: 100%;
	height: 600px;
	border: 0;
}

/* ---- Thank-you and 404 pages ---- */

.simple-page .site-content {
	padding: 5em 0;
}

/* ---- In-page navigation ---- */

/* The menu links jump to sections on this page; keep the section start
   clear of the sticky nav bar. --nav-offset is set by js/site.js. */
.twentyseventeen-panel {
	scroll-margin-top: var(--nav-offset, 0px);
}
