/*
 * Contact page.
 *
 * Loaded only on the contact page, via inc/enqueue.php. Every selector is
 * kf-contact- prefixed.
 */

.kf-contact {
	padding: 48px 0 64px;
}

.kf-contact__header {
	margin: 0 0 28px;
}

.kf-contact__title {
	position: relative;
	display: inline-block;
	margin: 0;
	padding-bottom: 20px;
	font-size: 28px;
	line-height: 1.25;
	color: #1f2933;
}

.kf-contact__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: calc((100% + 14px) / 2);
	height: 2px;
	background: #0f9d78;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(15, 157, 120, .35);
}

.kf-contact__intro {
	margin-top: 16px;
	font-size: 16px;
	color: #5c6b73;
}

.kf-contact__notice {
	margin: 0 0 24px;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
}

.kf-contact__notice--success {
	background: rgba(15, 157, 120, .1);
	color: #0c7d5f;
}

.kf-contact__notice--error {
	background: rgba(224, 83, 61, .1);
	color: #e0533d;
}

.kf-contact__layout {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 32px;
	align-items: start;
}

.kf-contact__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 32px;
	background: #f3f9f7;
	border-radius: 12px;
}

.kf-contact__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kf-contact__row label {
	font-size: 14px;
	font-weight: 600;
	color: #1f2933;
}

.kf-contact__row input,
.kf-contact__row textarea {
	padding: 11px 14px;
	font: inherit;
	font-size: 15px;
	color: #1f2933;
	background: #ffffff;
	border: 1px solid #e2e8e6;
	border-radius: 8px;
}

.kf-contact__row input:focus,
.kf-contact__row textarea:focus {
	outline: none;
	border-color: #0f9d78;
}

.kf-contact__form button {
	align-self: flex-start;
}

.kf-contact__aside {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.kf-contact__info {
	padding: 24px;
	background: #f3f9f7;
	border-radius: 12px;
}

.kf-contact__info h2 {
	margin: 0 0 10px;
	font-size: 18px;
	color: #1f2933;
}

.kf-contact__info a {
	color: #0c7d5f;
	font-weight: 600;
	text-decoration: none;
}

.kf-contact__info a:hover {
	text-decoration: underline;
}

.kf-contact__note {
	margin: 8px 0 0;
	font-size: 13px;
	color: #5c6b73;
}

.kf-contact__map {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e2e8e6;
}

.kf-contact__map iframe {
	display: block;
	width: 100%;
	height: 280px;
	border: 0;
}

.kf-contact__facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid #e2e8e6;
}

.kf-contact__fact {
	text-align: center;
}

.kf-contact__fact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	background: #f3f9f7;
	color: #0f9d78;
	border-radius: 50%;
}

.kf-contact__fact-icon svg {
	width: 24px;
	height: 24px;
}

.kf-contact__fact h3 {
	margin: 0 0 4px;
	font-size: 15px;
	color: #1f2933;
}

.kf-contact__fact p {
	margin: 0;
	font-size: 14px;
	color: #5c6b73;
}

@media (max-width: 780px) {
	.kf-contact__layout {
		grid-template-columns: 1fr;
	}

	.kf-contact__facts {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.kf-contact__form {
		padding: 22px 18px;
	}

	.kf-contact__title {
		font-size: 24px;
	}

	.kf-contact__facts {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}
