/* Contact page (contact.html). Loads after style.css and shop.css. */

.shop-contact-page .mkd-content {
	background: #f9f9f9;
}

.contact-page {
	padding: 50px 0 100px;
}

/* ---------- Intro ---------- */

.contact-intro {
	max-width: 760px;
	margin: 0 0 60px;
}

.contact-eyebrow {
	margin: 0 0 14px;
	color: #929292;
	font-family: Catamaran, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.contact-page .contact-title {
	margin: 0 0 20px;
	color: #080808;
	font-family: Catamaran, sans-serif;
	font-size: 44px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 6px;
	text-transform: uppercase;
}

.contact-lead {
	margin: 0;
	color: #929292;
	font-size: 18px;
	line-height: 1.75;
}

/* ---------- Layout: details + map on the left, form on the right ---------- */

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	align-items: stretch;
	gap: 40px;
}

.contact-side {
	display: flex;
	flex-direction: column;
	gap: 40px;
	min-width: 0;
}

/* Without a map the details panel is as tall as the form; with a map, the map takes up the rest */
.contact-side .contact-details {
	flex: 1 0 auto;
}

.contact-side.has-map .contact-details {
	flex: 0 0 auto;
}

.contact-panel {
	box-sizing: border-box;
	padding: 56px;
	background: #fff;
}

.contact-page .contact-panel__title {
	margin: 0 0 30px;
	color: #080808;
	font-size: 18px;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.contact-panel__text {
	margin: -14px 0 30px;
	color: #929292;
	font-size: 16px;
	line-height: 1.7;
}

/* ---------- Contact details ---------- */

.contact-list {
	display: grid;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: start;
	gap: 18px;
}

.contact-item__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: #f3f3f3;
	color: #080808;
}

.contact-item__icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.contact-item__body {
	min-width: 0;
	padding-top: 2px;
}

.contact-page .contact-item__label {
	margin: 0 0 6px;
	color: #080808;
	font-family: Catamaran, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.contact-item__value {
	display: block;
	margin: 0;
	color: #929292 !important;
	font-size: 17px;
	line-height: 1.65;
	white-space: pre-line;
	overflow-wrap: anywhere;
	transition: color .2s;
}

a.contact-item__value:hover {
	color: #080808 !important;
}

.contact-item__link {
	display: inline-block;
	margin-top: 8px;
	border-bottom: 1px solid currentColor;
	color: #080808 !important;
	font-family: Catamaran, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: color .2s;
}

.contact-item__link:hover {
	color: #929292 !important;
}

.contact-follow {
	margin-top: 40px;
	padding-top: 34px;
	border-top: 1px solid #ebebeb;
}

.contact-page .contact-follow .contact-item__label {
	margin-bottom: 16px;
}

.contact-review {
	margin-top: 40px;
	padding-top: 34px;
	border-top: 1px solid #ebebeb;
}

.contact-review__text {
	margin: 0 0 20px;
	color: #929292;
	font-size: 16px;
	line-height: 1.65;
}

/* ---------- Map (grey, like the rest of the theme) ---------- */

.contact-map {
	position: relative;
	flex: 1 1 auto;
	min-height: 340px;
	overflow: hidden;
	background: #e9e9e9;
}

.contact-map__frame {
	position: absolute;
	inset: 0;
}

.contact-map__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(1) contrast(1.05);
}

/* ---------- Message form ---------- */

.contact-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 20px;
}

.contact-field {
	display: block;
	margin: 0 0 22px;
}

.contact-field__label {
	display: block;
	margin: 0 0 10px;
	color: #080808;
	font-family: Catamaran, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.contact-field__label small {
	margin-left: 4px;
	color: #929292;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .5px;
	text-transform: none;
}

.contact-form .contact-field input,
.contact-form .contact-field textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	border: 1px solid #e1e1e1;
	border-radius: 0;
	outline: 0;
	background: #fff;
	box-shadow: none;
	color: #080808;
	font-family: Catamaran, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s;
}

.contact-form .contact-field input {
	height: 58px;
}

.contact-form .contact-field textarea {
	min-height: 160px;
	resize: vertical;
}

.contact-form .contact-field input:focus,
.contact-form .contact-field textarea:focus {
	border-color: #080808;
}

.contact-form .contact-field input::placeholder,
.contact-form .contact-field textarea::placeholder {
	color: #b5b5b5;
	opacity: 1;
}

.contact-form__error {
	margin: -8px 0 18px;
	color: #b3261e;
	font-size: 15px;
}

.contact-form__error:empty {
	display: none;
}

.contact-form__actions {
	max-width: none;
}

.contact-form__actions button {
	margin: 0;
	cursor: pointer;
}

.contact-form__actions svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.contact-form :disabled {
	opacity: .45;
	cursor: not-allowed;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1200px) {
	.contact-panel {
		padding: 44px;
	}
}

/* Tablets and phones: details, map, then the form */
@media (max-width: 1024px) {
	.contact-grid,
	.contact-side {
		gap: 24px;
	}

	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.contact-map {
		min-height: 380px;
	}
}

@media (max-width: 768px) {
	.contact-page {
		padding: 30px 0 60px;
	}

	.contact-intro {
		margin-bottom: 36px;
	}

	.contact-page .contact-title {
		font-size: 30px;
		letter-spacing: 4px;
	}

	.contact-lead {
		font-size: 16px;
	}

	.contact-panel {
		padding: 36px 24px;
	}

	.contact-form__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.contact-map {
		min-height: 300px;
	}
}

@media (max-width: 480px) {
	.contact-page .contact-title {
		font-size: 26px;
	}

	.contact-panel {
		padding: 30px 20px;
	}
}
