/* Happy Connections — frontend widget
   Light, refined, tactile. Brand color arrives via --hc-brand. */

.hc-widget {
	--hc-ink: #1f2430;
	--hc-muted: #6b7280;
	--hc-surface: #ffffff;
	--hc-line: #eceef2;
	--hc-radius: 16px;
	--hc-shadow: 0 6px 24px rgba(17, 24, 39, 0.10), 0 2px 6px rgba(17, 24, 39, 0.06);
	--hc-shadow-lg: 0 18px 48px rgba(17, 24, 39, 0.16), 0 4px 12px rgba(17, 24, 39, 0.08);
	position: fixed;
	bottom: var(--hc-offset-bottom, 24px);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	/* The container itself never blocks the page; only real controls do. */
	pointer-events: none;
}
.hc-launcher { pointer-events: auto; }
.hc-teaser.is-visible .hc-teaser__body,
.hc-teaser.is-visible .hc-teaser__close { pointer-events: auto; }
.hc--right { right: var(--hc-offset-side, 24px); }
.hc--left  { left: var(--hc-offset-side, 24px); align-items: flex-start; }

/* ── Theme-proofing: neutralize theme button/input styles inside the widget ── */

.hc-widget, .hc-widget *, .hc-widget *::before, .hc-widget *::after {
	box-sizing: border-box;
}
.hc-widget button {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	font-family: inherit;
	line-height: inherit;
}
.hc-widget a { box-shadow: none; text-decoration: none; }
.hc-widget img { max-width: 100%; border: 0; }
.hc-widget input, .hc-widget textarea { margin: 0; font-family: inherit; box-shadow: none; }

/* ── Launcher ─────────────────────────────────────────────────────────── */

.hc-launcher {
	position: relative;
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	background: var(--hc-brand, #4F46E5);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: var(--hc-shadow);
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}
.hc-launcher:hover { transform: scale(1.06); box-shadow: var(--hc-shadow-lg); }
.hc-launcher:active { transform: scale(0.96); }
.hc-launcher:focus-visible { outline: 3px solid var(--hc-brand); outline-offset: 3px; }

/* While the form panel occupies the corner, the button steps aside. */
.hc-widget.form-open .hc-launcher {
	opacity: 0;
	transform: scale(0.4);
	pointer-events: none;
}

.hc-launcher__icon {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	transition: opacity 0.18s ease, transform 0.24s ease;
}
.hc-launcher__icon--close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.hc-widget.is-open .hc-launcher__icon--open  { opacity: 0; transform: rotate(90deg) scale(0.6); }
.hc-widget.is-open .hc-launcher__icon--close { opacity: 1; transform: rotate(0) scale(1); }

/* Custom image inside the launcher. */
.hc-launcher__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}
.hc-launcher--img .hc-launcher__icon--open { inset: 0; padding: 0; }

/* ── Teaser bubble ────────────────────────────────────────────────────── */

.hc-teaser {
	/* Out of the layout flow: floats above the launcher and never pushes
	   the channel menu upward, whether visible or hidden. */
	position: absolute;
	bottom: 74px; /* launcher height + gap */
	width: max-content;
	max-width: min(280px, calc(100vw - 60px));
	opacity: 0;
	transform: translateY(8px) scale(0.96);
	transform-origin: bottom;
	pointer-events: none;
	transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.hc--right .hc-teaser { right: 0; }
.hc--left  .hc-teaser { left: 0; }
.hc-teaser.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}
/* Hide the teaser once the widget is engaged. */
.hc-widget.is-open .hc-teaser,
.hc-widget.form-open .hc-teaser {
	opacity: 0;
	pointer-events: none;
}

.hc-teaser__body {
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid var(--hc-line);
	border-radius: var(--hc-radius);
	background: var(--hc-surface);
	color: var(--hc-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	box-shadow: var(--hc-shadow);
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.hc-teaser__body:hover { box-shadow: var(--hc-shadow-lg); transform: translateY(-1px); }
.hc-teaser__body:focus-visible { outline: 2px solid var(--hc-brand); outline-offset: 2px; }

.hc-teaser__img { display: block; width: 100%; max-height: 140px; object-fit: cover; }
.hc-teaser__text { display: block; padding: 12px 14px; font-size: 14px; line-height: 1.45; }

/* Speech-bubble tail pointing at the launcher. */
.hc-teaser::after {
	content: "";
	position: absolute;
	bottom: -6px;
	width: 12px;
	height: 12px;
	background: var(--hc-surface);
	border-right: 1px solid var(--hc-line);
	border-bottom: 1px solid var(--hc-line);
	transform: rotate(45deg);
}
.hc--right .hc-teaser::after { right: 24px; }
.hc--left  .hc-teaser::after { left: 24px; }

.hc-teaser__close {
	position: absolute;
	top: -9px;
	left: -9px;
	z-index: 1;
	width: 24px;
	height: 24px;
	border: 1px solid var(--hc-line);
	border-radius: 50%;
	background: var(--hc-surface);
	color: var(--hc-muted);
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	line-height: 0;
	box-shadow: 0 2px 6px rgba(17, 24, 39, 0.12);
	transition: color 0.15s ease, transform 0.15s ease;
}
.hc--left .hc-teaser__close { left: auto; right: -9px; }
.hc-teaser__close svg { width: 12px; height: 12px; }
.hc-teaser__close:hover { color: var(--hc-ink); transform: scale(1.1); }

/* Unread badges (Tawk live chat replies). */
.hc-launcher__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 2px 6px rgba(17, 24, 39, 0.25);
	pointer-events: none;
}
.hc-item__badge {
	margin-left: auto;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	flex: none;
}

/* Gentle pulse on the closed button. */
.hc--pulse::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--hc-brand, #4F46E5);
	opacity: 0.35;
	animation: hc-pulse 2.4s ease-out infinite;
	pointer-events: none;
}
.hc-widget.is-open .hc--pulse::before { animation: none; opacity: 0; }
@keyframes hc-pulse {
	0%   { transform: scale(1);   opacity: 0.35; }
	70%  { transform: scale(1.55); opacity: 0; }
	100% { transform: scale(1.55); opacity: 0; }
}

/* ── Channel menu ─────────────────────────────────────────────────────── */

.hc-menu {
	display: flex;
	flex-direction: column;
	/* All pills stretch to the width of the widest one — two clean,
	   even edges instead of a ragged stack. */
	align-items: stretch;
	gap: 8px;
	pointer-events: none;
}
.hc-widget.is-open .hc-item { pointer-events: auto; }

.hc-item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	min-width: 190px;
	padding: 8px 20px 8px 8px;
	border: 1px solid var(--hc-line);
	border-radius: 999px;
	background: var(--hc-surface);
	color: var(--hc-ink);
	font: inherit;
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--hc-shadow);
	opacity: 0;
	transform: translateY(10px) scale(0.94);
	transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.34, 1.4, 0.64, 1),
		box-shadow 0.18s ease, border-color 0.18s ease;
	transition-delay: 0ms;
}
.hc-widget.is-open .hc-item {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition-delay: var(--hc-delay, 0ms);
}
.hc-item:hover {
	box-shadow: var(--hc-shadow-lg);
	border-color: var(--hc-brand, #4F46E5); /* fallback */
	border-color: color-mix(in srgb, var(--hc-brand, #4F46E5) 35%, var(--hc-line));
	transform: translateY(-1px);
}
.hc-item:focus-visible { outline: 2px solid var(--hc-brand); outline-offset: 2px; }

.hc-item__icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--hc-brand, #4F46E5);
	background: #f1f2f6; /* fallback */
	background: color-mix(in srgb, var(--hc-brand, #4F46E5) 10%, #fff);
	flex: none;
}
.hc-item__label { white-space: nowrap; }

/* Instant mode: no motion when animation toggle is off. */
.hc-widget:not(.hc--animated) .hc-item,
.hc-widget:not(.hc--animated) .hc-launcher,
.hc-widget:not(.hc--animated) .hc-launcher__icon { transition: none; }
.hc-widget:not(.hc--animated) .hc-menu { display: none; }
.hc-widget:not(.hc--animated).is-open .hc-menu { display: flex; }
.hc-widget:not(.hc--animated).is-open .hc-item { opacity: 1; transform: none; }

/* ── Contact form popup ───────────────────────────────────────────────── */

.hc-form {
	/* Fixed to the viewport, in the EXACT same corner as the chat button —
	   the launcher fades out and the panel takes its place, like a real
	   chat widget. Never affected by the menu's height. */
	position: fixed;
	top: auto;
	bottom: var(--hc-offset-bottom, 24px);
	width: min(340px, calc(100vw - 40px));
	max-height: calc(100vh - var(--hc-offset-bottom, 24px) - 40px);
	overflow-y: auto;
	background: var(--hc-surface);
	border: 1px solid var(--hc-line);
	border-radius: var(--hc-radius);
	box-shadow: var(--hc-shadow-lg);
	padding: 20px;
	opacity: 0;
	transform: translateY(12px) scale(0.97);
	transform-origin: bottom;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.hc--right .hc-form { right: var(--hc-offset-side, 24px); }
.hc--left  .hc-form { left: var(--hc-offset-side, 24px); }
.hc-widget.form-open .hc-form {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.hc-form__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}
.hc-form__title { margin: 0; font-size: 17px; font-weight: 700; color: var(--hc-ink); }
.hc-form__subtitle { margin: 2px 0 0; font-size: 13px; color: var(--hc-muted); }
.hc-form__close {
	border: 0;
	background: transparent;
	color: var(--hc-muted);
	cursor: pointer;
	padding: 4px;
	border-radius: 8px;
	line-height: 0;
	transition: background 0.15s ease, color 0.15s ease;
}
.hc-form__close:hover { background: #f3f4f6; color: var(--hc-ink); }

.hc-field { display: block; margin-bottom: 12px; }
.hc-field span {
	display: block;
	margin-bottom: 5px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--hc-ink);
}
.hc-field input,
.hc-field select,
.hc-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--hc-line);
	border-radius: 10px;
	background: #fafafa;
	color: var(--hc-ink);
	font: inherit;
	font-size: 14px;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.hc-field textarea { resize: vertical; min-height: 72px; }
.hc-field input:focus,
.hc-field select:focus,
.hc-field textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--hc-brand, #4F46E5);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--hc-brand, #4F46E5) 15%, transparent);
}

.hc-hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

.hc-turnstile { margin-bottom: 12px; }

.hc-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--hc-brand, #4F46E5);
	color: #fff;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
}
.hc-submit:hover { filter: brightness(1.07); }
.hc-submit:active { transform: scale(0.985); }
.hc-submit[disabled] { opacity: 0.65; cursor: default; }
.hc-submit__icon { line-height: 0; }
.hc-submit__icon svg { width: 16px; height: 16px; }

.hc-form__status {
	margin: 10px 0 0;
	font-size: 13px;
	min-height: 1em;
	color: var(--hc-muted);
}
.hc-form__status.is-success { color: #0a7d4f; font-weight: 600; }
.hc-form__status.is-error { color: #c2410c; }

/* ── Reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.hc-widget *, .hc-widget { transition: none !important; animation: none !important; }
	.hc--pulse::before { display: none; }
}

@media (max-width: 480px) {
	.hc-launcher { width: 56px; height: 56px; }
}


/* ── Booking form ─────────────────────────────────────────────────────── */

/* The widget booking panel reuses the .hc-form shell; only its open
   trigger differs. The generic `.form-open .hc-form` rule above matches
   this panel too, so each state explicitly hides the other panel —
   otherwise opening the contact form would stack the booking panel on
   top of it. */
.hc-widget.booking-open .hc-form--booking {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}
/* form-open must NOT reveal the booking panel… (the JS never sets
   form-open and booking-open together, so a plain override is safe) */
.hc-widget.form-open .hc-form--booking {
	opacity: 0;
	transform: translateY(12px) scale(0.97);
	pointer-events: none;
}
/* …and booking-open must NOT reveal the contact panel. */
.hc-widget.booking-open .hc-form:not(.hc-form--booking) {
	opacity: 0;
	transform: translateY(12px) scale(0.97);
	pointer-events: none;
}
.hc-form--booking { width: min(360px, calc(100vw - 40px)); }

.hc-field select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	cursor: pointer;
}

.hc-req { color: #dc2626; font-style: normal; }

.hc-field__check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--hc-line);
	border-radius: 10px;
	background: #fafafa;
}
.hc-field__check input { width: 16px; height: 16px; accent-color: var(--hc-brand, #4F46E5); cursor: pointer; }
.hc-field__check small { font-size: 13px; color: var(--hc-muted); }

/* Inline (shortcode) booking form — a clean card that inherits the
   site's width, in the same light, refined language as the widget. */
.hc-booking-inline {
	max-width: 560px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
	padding: 28px;
	--hc-surface: #fff;
	--hc-line: #e5e7eb;
	--hc-ink: #111827;
	--hc-muted: #6b7280;
}
.hc-booking-inline__head { margin-bottom: 18px; }
.hc-booking-inline .hc-form__title { font-size: 21px; }
.hc-booking-inline .hc-form__subtitle { font-size: 14px; }
.hc-booking-inline .hc-submit { width: 100%; justify-content: center; }


/* ── Edge tab ("Book Now" ribbon) ─────────────────────────────────────── */

.hc-edge {
	position: fixed;
	top: var(--hc-edge-pos, 50%);
	z-index: 99998; /* just under the widget so open panels cover it */
	transform: translateY(-50%);
	writing-mode: vertical-rl;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	margin: 0;
	background: var(--hc-edge-color, var(--hc-brand, #4F46E5));
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
	padding: 16px 10px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(17, 24, 39, 0.18);
	transition: padding 0.18s ease, filter 0.18s ease;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.hc-edge:hover { filter: brightness(1.08); }
.hc-edge:focus-visible { outline: 3px solid var(--hc-edge-color, var(--hc-brand)); outline-offset: 2px; }

.hc-edge--left {
	left: 0;
	transform: translateY(-50%) rotate(180deg); /* text reads bottom-up */
	/* Rotated 180°: physical-left corners appear on the screen-right side,
	   away from the edge — exactly where the rounding belongs. */
	border-radius: 10px 0 0 10px;
}
.hc-edge--left:hover { padding-left: 14px; }
.hc-edge--right {
	right: 0;
	border-radius: 10px 0 0 10px;
}
.hc-edge--right:hover { padding-right: 14px; }

@media (max-width: 480px) {
	.hc-edge { font-size: 12.5px; padding: 13px 8px; }
}

/* ── Inline call-to-action buttons ([hc_button]) ─────────────────────── */

.hc-inline-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	margin: 0;
	background: var(--hc-btn-color, var(--hc-brand, #4F46E5));
	color: #fff !important; /* beat theme link colors on the <a> variant */
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1;
	padding: 13px 26px;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none !important;
	box-shadow: 0 3px 12px rgba(17, 24, 39, 0.16);
	transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
	-webkit-tap-highlight-color: transparent;
}
.hc-inline-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(17, 24, 39, 0.22);
	filter: brightness(1.06);
	color: #fff !important;
}
.hc-inline-btn:active { transform: translateY(0); }
.hc-inline-btn:focus-visible { outline: 3px solid var(--hc-btn-color, var(--hc-brand)); outline-offset: 3px; }

/* ── CTA alignment ([hc_cta align="…"]) ──────────────────────────────── */

.hc-cta-row { display: block; margin: 8px 0; }
.hc-cta-row--left   { text-align: left; }
.hc-cta-row--center { text-align: center; }
.hc-cta-row--right  { text-align: right; }

.hc-booking-inline--center { margin-left: auto; margin-right: auto; }
.hc-booking-inline--right  { margin-left: auto; }

/* ── CTA as a direct child of the content container ──────────────────── */
/* When [hc_cta] is used on its own line / in a Shortcode block, it lands
   as a direct child of the theme's content wrapper rather than inside a
   paragraph. Block themes build the content column by giving children
   auto side-margins — which compute to 0 on inline elements, pinning the
   button to the container's (often viewport's) left edge. Promoting it
   to a shrink-to-fit block there lets the theme's layout rules apply, so
   it sits inside the content column like any paragraph. Inside <p> tags
   (true inline use) these selectors don't match and it stays inline. */
.entry-content > .hc-inline-btn,
.is-layout-constrained > .hc-inline-btn,
.is-layout-flow > .hc-inline-btn,
.wp-block-post-content > .hc-inline-btn {
	display: table;
	margin-block: 14px;
}

/* ── CTA banner (title/text + button) ────────────────────────────────── */

.hc-cta-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-left: 4px solid var(--hc-btn-color, var(--hc-brand, #4F46E5));
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(17, 24, 39, 0.05);
	padding: 22px 24px;
	margin: 18px 0;
}
.hc-cta-banner__body { flex: 1 1 260px; min-width: 0; }
.hc-cta-banner__title {
	margin: 0 0 4px !important;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: #111827;
}
.hc-cta-banner__text {
	margin: 0 !important;
	font-size: 14.5px;
	line-height: 1.55;
	color: #6b7280;
}
.hc-cta-banner .hc-inline-btn { flex-shrink: 0; }

@media (max-width: 560px) {
	.hc-cta-banner { padding: 18px; }
	.hc-cta-banner .hc-inline-btn { width: 100%; justify-content: center; }
}

/* ═══ Form display: modal mode & design styles ═══════════════════════ */
/* Openers decide per click how a form opens. 'popup' keeps the classic
   corner behavior (base rules above). 'modal' — the .hc--modal class,
   applied by JS at open time — recenters the same panel over a dimmed,
   blurred backdrop. Three design styles (set in admin, class on the
   widget wrapper): banner, hero, split. */

.hc-form__main { display: contents; } /* invisible wrapper; split mode makes it real */

/* Header image: present in the DOM whenever configured, but shown only
   in modal mode — corner popups keep their compact chat-like look. */
.hc-form__media {
	display: none;
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}

.hc-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1;
	background: rgba(15, 20, 34, 0.52);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
}
.hc--modal.form-open .hc-backdrop,
.hc--modal.booking-open .hc-backdrop {
	opacity: 1;
	pointer-events: auto;
}

/* ── Modal geometry & polish ── */
.hc--modal .hc-form {
	position: fixed;
	top: 50%;
	left: 50% !important;   /* beat .hc--left/.hc--right corner anchors */
	right: auto !important;
	bottom: auto;
	z-index: 2;
	width: min(470px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	border-radius: 20px;
	box-shadow: 0 24px 70px -12px rgba(15, 20, 34, 0.35), 0 8px 24px rgba(15, 20, 34, 0.12);
	transform: translate(-50%, -46%) scale(0.95);
	transform-origin: center;
	transition-duration: 0.3s;
}
.hc--modal.form-open .hc-form:not(.hc-form--booking),
.hc--modal.booking-open .hc-form--booking {
	transform: translate(-50%, -50%) scale(1);
}
.hc--modal.form-open .hc-form--booking,
.hc--modal.booking-open .hc-form:not(.hc-form--booking) {
	transform: translate(-50%, -46%) scale(0.95);
}
.hc--modal .hc-form__media { display: block; }

/* Close ✕ floats over photos with a frosted circle. */
.hc--modal .hc-form__media ~ .hc-form__main .hc-form__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	background: rgba(15, 20, 34, 0.42);
	color: #fff;
	border-radius: 50%;
	padding: 6px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background 0.15s ease;
}
.hc--modal .hc-form__media ~ .hc-form__main .hc-form__close:hover {
	background: rgba(15, 20, 34, 0.62);
}

/* ── Style: Banner (default) — photo strip across the top ── */
.hc-mstyle--banner.hc--modal .hc-form__media {
	height: 158px;
	margin: -20px -20px 18px;
	border-radius: 20px 20px 0 0;
}

/* ── Style: Hero — taller photo, title written on the image ── */
.hc-mstyle--hero.hc--modal .hc-form__media {
	position: relative;
	height: 216px;
	margin: -20px -20px 16px;
	border-radius: 20px 20px 0 0;
}
.hc-mstyle--hero.hc--modal .hc-form__media::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(15, 20, 34, 0) 30%, rgba(15, 20, 34, 0.62) 100%);
}
.hc-mstyle--hero.hc--modal .hc-form__media ~ .hc-form__main .hc-form__head {
	position: relative;
	z-index: 2;
	margin-top: -76px;
	margin-bottom: 14px;
	padding: 0 2px;
}
.hc-mstyle--hero.hc--modal .hc-form__media ~ .hc-form__main .hc-form__title {
	color: #fff;
	font-size: 20px;
	text-shadow: 0 1px 8px rgba(15, 20, 34, 0.45);
}
.hc-mstyle--hero.hc--modal .hc-form__media ~ .hc-form__main .hc-form__subtitle {
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 6px rgba(15, 20, 34, 0.45);
}

/* ── Style: Split — photo fills the left half (desktop) ── */
@media (min-width: 720px) {
	.hc-mstyle--split.hc--modal .hc-form {
		width: min(780px, calc(100vw - 40px));
		display: flex;
		align-items: stretch;
		padding: 0;
		overflow: hidden;
	}
	.hc-mstyle--split.hc--modal .hc-form__media {
		width: 42%;
		height: auto;
		min-height: 420px;
		margin: 0;
		border-radius: 20px 0 0 20px;
	}
	.hc-mstyle--split.hc--modal .hc-form__main {
		display: flex;
		flex-direction: column;
		flex: 1;
		min-width: 0;
		padding: 22px;
		overflow-y: auto;
	}
	.hc-mstyle--split.hc--modal .hc-form__media ~ .hc-form__main .hc-form__close {
		position: static;
		background: transparent;
		color: inherit;
		padding: 0;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}
/* Below 720px, split gracefully behaves like banner. */
@media (max-width: 719.98px) {
	.hc-mstyle--split.hc--modal .hc-form__media {
		height: 150px;
		margin: -20px -20px 18px;
		border-radius: 20px 20px 0 0;
	}
}

/* Page scroll lock while a modal is open (toggled by JS). */
html.hc-scroll-lock,
html.hc-scroll-lock body {
	overflow: hidden;
}

@media (max-width: 520px) {
	.hc--modal .hc-form { max-height: calc(100vh - 24px); }
	.hc-mstyle--banner.hc--modal .hc-form__media,
	.hc-mstyle--split.hc--modal .hc-form__media { height: 124px; }
	.hc-mstyle--hero.hc--modal .hc-form__media { height: 176px; }
}
