
:root {
	--yw-blue: #6b8fe8;
	--yw-ink: #1a1a1a;
	--yw-muted: #5c5c5c;
	--yw-line: #e6e6e6;
	--yw-bg: #f5f5f5;
	--yw-white: #ffffff;
}

/* No sticky Get in touch on the contact form page */
body.yw-contact-page .yw-site-sticky-cta,
body.page-contact .yw-site-sticky-cta {
	display: none !important;
}
body.yw-contact-page,
body.page-contact,
body.yw-no-sticky-cta {
	padding-bottom: 0 !important;
}

body.yw-contact-page.yw-contact-ready .page-content > *:not(.yw-contact) {
	display: none !important;
}

body.yw-contact-page.yw-contact-ready .yw-contact {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Keep WPForms in DOM for backend submit (visually hidden, not display:none) */
.yw-contact-wpforms-bridge {
	position: absolute !important;
	left: -99999px !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.yw-contact {
	width: 100%;
	background: var(--yw-white);
	color: var(--yw-ink);
}

/* ---- Hero ---- */
.yw-contact-hero {
	background: #2a2a2a;
	color: #fff;
	padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.25rem, 4vw, 2.5rem);
}

.yw-contact-hero__inner {
	max-width: 1140px;
	margin: 0 auto;
}

.yw-contact-hero h1 {
	margin: 0 0 0.4rem;
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: #fff;
}

.yw-contact-hero p {
	margin: 0;
	max-width: 40rem;
	font-size: 0.92rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.78);
}

/* ---- Main band ---- */
.yw-contact-main {
	max-width: 1140px;
	margin: 0 auto;
	padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) 1rem;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(1.75rem, 4vw, 2.75rem);
	align-items: start;
}

.yw-contact-main h2 {
	margin: 0 0 0.65rem;
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	letter-spacing: -0.02em;
	color: var(--yw-ink);
}

.yw-contact-main > * > p.yw-contact-lead {
	margin: 0 0 1.1rem;
	color: var(--yw-muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

/* After successful submit: thank-you + map, hosts/form chrome collapsed */
.yw-contact.is-submitted .yw-contact-main {
	grid-template-columns: 1fr;
	padding-bottom: 0;
}

.yw-contact.is-submitted .yw-contact-aside,
.yw-contact.is-submitted .yw-contact-form-wrap > h2 {
	display: none;
}

.yw-contact.is-submitted .yw-contact-mapband {
	max-width: none;
	margin: 1rem 0 0;
	padding: 0.75rem 0 1.5rem;
}

/* Form */
.yw-contact-form {
	display: grid;
	gap: 0.7rem;
}

.yw-contact-form label {
	display: grid;
	gap: 0.3rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--yw-ink);
}

.yw-contact-form label span {
	font-weight: 500;
	color: var(--yw-muted);
	font-size: 0.75rem;
}

.yw-contact-form input[type="text"],
.yw-contact-form input[type="email"],
.yw-contact-form input[type="tel"],
.yw-contact-form textarea,
.yw-contact-form .yw-select__trigger {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 0.65rem 0.8rem;
	font-family: inherit;
	font-size: 0.92rem !important;
	line-height: 1.35;
	font-weight: 400;
	color: var(--yw-ink) !important;
	background: #f5f5f5;
	min-height: 44px;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.yw-contact-form input[type="tel"]::placeholder {
	color: #8a8a8a;
	opacity: 1;
}

.yw-contact-form textarea {
	min-height: 110px;
	resize: vertical;
	padding-top: 0.7rem;
}

.yw-contact-form input[type="text"]:focus,
.yw-contact-form input[type="email"]:focus,
.yw-contact-form input[type="tel"]:focus,
.yw-contact-form textarea:focus {
	outline: none;
	border-color: var(--yw-blue);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(107, 143, 232, 0.2);
}

.yw-contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.95rem 1.25rem;
	border: 0;
	border-radius: 5px;
	background: var(--yw-blue);
	color: #fff;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.yw-contact-form__submit::after {
	content: "→";
	font-weight: 400;
}

.yw-contact-form__submit:hover {
	background: #5a7fdc;
	transform: translateY(-1px);
}

.yw-contact-form__privacy {
	margin: 0.35rem 0 0;
	text-align: center;
	font-size: 0.78rem;
	color: var(--yw-muted);
	line-height: 1.4;
}

.yw-contact-form__privacy a {
	color: var(--yw-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.yw-contact-form__submit.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.yw-contact-status {
	margin: 0 0 0.85rem;
	padding: 0.75rem 0.9rem;
	border-radius: 6px;
	font-size: 0.88rem;
	line-height: 1.4;
}

.yw-contact-status.is-success {
	background: #eef8f0;
	color: #1f6b3a;
}

.yw-contact-status.is-error {
	background: #fceeee;
	color: #8a2b2b;
}

/* Custom select */
.yw-select {
	position: relative;
	width: 100%;
}

.yw-select__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
	text-align: left;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.yw-select__trigger:focus,
.yw-select.is-open .yw-select__trigger {
	outline: none;
	border-color: var(--yw-blue);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(107, 143, 232, 0.2);
}

.yw-select__value {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.yw-select__value.is-placeholder {
	color: #8a8a8a;
}

.yw-select__chevron {
	flex: 0 0 auto;
	width: 0.9rem;
	height: 0.9rem;
	color: #555;
	transition: transform 0.18s ease;
}

.yw-select.is-open .yw-select__chevron {
	transform: rotate(180deg);
}

.yw-select__menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 0.25rem);
	z-index: 40;
	margin: 0;
	padding: 0.3rem;
	list-style: none;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
	max-height: 220px;
	overflow: auto;
	display: none;
}

.yw-select.is-open .yw-select__menu {
	display: block;
}

.yw-select__option {
	display: block;
	width: 100%;
	border: 0;
	background: transparent;
	text-align: left;
	padding: 0.55rem 0.7rem;
	border-radius: 6px;
	font: inherit;
	font-size: 0.88rem;
	color: var(--yw-ink);
	cursor: pointer;
}

.yw-select__option small {
	display: block;
	margin-top: 0.15rem;
	color: var(--yw-muted);
	font-size: 0.75rem;
}

.yw-select__option:hover,
.yw-select__option.is-selected {
	background: #eef2fc;
}

/* Aside: regional host cards beside the form */
.yw-contact-aside {
	display: grid;
	gap: 1rem;
	align-content: start;
}

.yw-contact-host {
	background: #fff;
	border: 1px solid var(--yw-line);
	border-radius: 10px;
	padding: 1.15rem 1.1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.yw-contact-host__top {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.yw-contact-host__avatar {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: #d8d8d8;
	flex: 0 0 auto;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #666;
}

.yw-contact-host__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.yw-contact-host__name {
	display: block;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--yw-ink);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.yw-contact-host__region {
	display: block;
	font-size: 0.86rem;
	font-weight: 500;
	color: var(--yw-muted);
	margin-top: 0.15rem;
}

.yw-contact-host__quote {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--yw-muted);
}

.yw-contact-host__details {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}

.yw-contact-host__details li {
	font-size: 0.88rem;
	line-height: 1.4;
	color: var(--yw-ink);
}

.yw-contact-host__details a {
	color: inherit;
	text-decoration: none;
}

.yw-contact-host__details a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.yw-contact-host__details span {
	color: var(--yw-muted);
	margin-right: 0.25rem;
}

.yw-contact-host__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: auto;
}

.yw-contact-host__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 0;
	padding: 0.65rem 0.95rem;
	border-radius: 4px;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	border: 1px solid var(--yw-ink);
	background: var(--yw-ink);
	color: #fff !important;
	white-space: nowrap;
}

.yw-contact-host__btn:hover {
	opacity: 0.9;
}

.yw-contact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.7rem 1rem;
	border-radius: 4px;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.yw-contact-btn:hover {
	transform: translateY(-1px);
}

.yw-contact-btn--outline {
	background: #fff;
	color: var(--yw-ink) !important;
	border: 1px solid var(--yw-ink);
}

.yw-contact-btn::after {
	content: "→";
	font-weight: 400;
}

/* ---- Map + locations ---- */
.yw-contact-mapband {
	max-width: 1140px;
	margin: 0 auto;
	padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(1.5rem, 3vw, 2.25rem);
	align-items: stretch;
}

.yw-contact-map {
	background: #e8edf5;
	border-radius: 10px;
	overflow: hidden;
	height: 340px;
	position: relative;
}

.yw-contact-map__canvas {
	width: 100%;
	height: 340px;
}

.yw-contact-map .leaflet-container {
	width: 100%;
	height: 340px;
	font: inherit;
	background: #e8edf5;
	z-index: 0;
}

/* Theme `img { max-width:100% }` breaks Leaflet tiles */
.yw-contact-map .leaflet-container img,
.yw-contact-map .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: 256px !important;
	height: 256px !important;
}

.yw-contact-map .leaflet-div-icon.yw-contact-map-marker {
	background: transparent !important;
	border: none !important;
}

.yw-contact-map .leaflet-popup-content {
	margin: 0.55rem 0.7rem;
	font-size: 0.86rem;
	line-height: 1.35;
}

.yw-contact-map .leaflet-popup-content a {
	color: var(--yw-ink);
	font-weight: 600;
	text-decoration: none;
}

.yw-contact-map .leaflet-popup-content a:hover {
	text-decoration: underline;
}

.yw-contact-locations h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	letter-spacing: -0.02em;
}

.yw-contact-locations__list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.yw-contact-locations__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--yw-ink);
}

.yw-contact-locations__list a {
	color: inherit;
	text-decoration: none;
}

.yw-contact-locations__list a:hover {
	text-decoration: underline;
}

.yw-contact-pin {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 0.1rem;
	color: #c45c5c;
}

.yw-contact-pin svg {
	width: 100%;
	height: 100%;
	display: block;
}

@media (max-width: 899px) {
	.yw-contact-main,
	.yw-contact-mapband {
		grid-template-columns: 1fr;
	}

	.yw-contact-map,
	.yw-contact-map__canvas,
	.yw-contact-map .leaflet-container {
		height: 280px;
	}
}

@media (max-width: 575px) {
	.yw-contact-host__actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.yw-contact-btn {
		width: 100%;
	}
}
