/* -------------------------------------------------------------------------
 * Contact page
 * The split hero, shell and panel geometry already used on About, Budget and
 * Plan Your Trip. Nothing new is invented here; the one page-specific job is
 * giving the Fluent Forms markup a frame that belongs to this site.
 * ---------------------------------------------------------------------- */

.wttw-contact-page {
	--contact-paper: var(--wttw-paper);
	--contact-sky: var(--wttw-ocean-mist);
	--contact-ink: var(--wttw-ink-deep);
	--contact-soft: var(--wttw-ink-soft);
	--contact-line: var(--wttw-line);
}

/*
 * Blocksy overrides the base heading rules, so every page here states its own
 * typography. Without this the headings fall back to the system font, which is
 * exactly what happened to the first version of this page.
 */
.wttw-contact-page :where(h1, h2, h3) {
	margin: 0;
	color: inherit;
	font-family: var(--wttw-font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 0.98;
	overflow-wrap: normal;
	text-transform: uppercase;
}

.wttw-contact-page :where(p) {
	margin: 0;
}

/* 1. Hero ------------------------------------------------------------- */

.wttw-contact-hero {
	display: grid;
	grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
	min-height: 32rem;
	overflow: hidden;
	background: var(--contact-sky);
}

.wttw-contact-hero__photo {
	position: relative;
	min-width: 0;
	overflow: hidden;
	background: var(--wttw-paper-deep);
}

.wttw-contact-hero__photo picture,
.wttw-contact-hero__image {
	display: block;
	width: 100%;
	height: 100%;
}

.wttw-contact-hero__image {
	object-fit: cover;
	object-position: 50% 42%;
}

.wttw-contact-hero__caption {
	position: absolute;
	z-index: 2;
	bottom: 0;
	left: 0;
	width: min(24rem, 76%);
	padding: 1.35rem 1.75rem;
	background: rgba(253, 253, 253, 0.95);
}

.wttw-contact-hero__caption strong {
	display: block;
	font-family: var(--wttw-font-display);
	font-size: 0.94rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.wttw-contact-hero__caption span {
	display: block;
	margin-top: 0.35rem;
	color: var(--contact-soft);
	font-size: 0.82rem;
	line-height: 1.5;
}

.wttw-contact-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
	padding: clamp(2.8rem, 4.6vw, 4.6rem) clamp(2rem, 4.8vw, 4.8rem);
}

.wttw-contact-kicker {
	color: var(--wttw-coral);
	font-family: var(--wttw-font-display);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Two words, one line, at every width. */
.wttw-contact-hero h1 {
	margin-top: 1.1rem;
	color: var(--contact-ink);
	font-size: clamp(2.6rem, 4.4vw, 4.4rem);
	line-height: 0.94;
	white-space: nowrap;
}

/* The lead is whatever the editor holds, so it is styled as a block of
   paragraphs rather than as one known element. */
.wttw-contact-hero__lead {
	max-width: 34rem;
	margin-top: 1.5rem;
	color: var(--contact-soft);
	font-size: clamp(0.98rem, 0.93rem + 0.18vw, 1.1rem);
	line-height: 1.6;
}

.wttw-contact-hero__lead > * + * {
	margin-top: 0.85rem;
}

/*
 * The editor's own text may carry a heading. It is a lead-in line here, not a
 * section title, so it is set at reading size rather than as a second headline
 * competing with the one above it.
 */
.wttw-contact-hero__lead :where(h2, h3, h4, h5) {
	color: var(--contact-ink);
	font-family: var(--wttw-font-display);
	font-size: 1.12rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: none;
}

.wttw-contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 1.9rem;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid var(--wttw-coral);
	color: var(--contact-ink);
	font-family: var(--wttw-font-display);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

/* Blocksy colours `a:hover` on the element, so this restates its own. */
.wttw-contact-link:hover,
.wttw-contact-link:focus-visible {
	color: var(--wttw-coral);
}

.wttw-contact-link .wttw-icon {
	width: 1.15rem;
	transition: transform var(--wttw-fast) ease;
}

.wttw-contact-link:hover .wttw-icon {
	transform: translateX(0.2rem);
}

/* The same handwritten aside the other heroes use. */
.wttw-contact-hero__note {
	margin-top: 1.5rem;
	color: var(--wttw-coral);
	font-family: var(--wttw-font-marker);
	font-size: clamp(1rem, 0.9rem + 0.25vw, 1.25rem);
	line-height: 1;
	transform: rotate(-4deg);
}

/* 2. Form and direct routes -------------------------------------------- */

.wttw-contact-form {
	padding-block: clamp(3rem, 4.6vw, 4.6rem);
	background: var(--wttw-white);
}

/*
 * The panel is sized to the form rather than to the column, so it does not
 * end up as a wide field of paper with a narrow form parked on its left. The
 * two blocks then sit at the outer edges, the deliberate asymmetry the rest of
 * the site uses for a dominant block beside a narrow supporting one.
 */
.wttw-contact-form__grid {
	display: grid;
	grid-template-columns: minmax(0, 38rem) minmax(0, 19rem);
	justify-content: space-between;
	gap: clamp(1.75rem, 3.4vw, 3.25rem);
	align-items: start;
}

.wttw-contact-panel {
	padding: clamp(1.6rem, 2.6vw, 2.5rem);
	border: 1px solid var(--contact-line);
	background: var(--contact-paper);
}

.wttw-contact-panel > h2 {
	margin: 0 0 1.4rem;
	color: var(--contact-ink);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
	letter-spacing: 0.02em;
}

.wttw-contact-panel__fallback,
.wttw-contact-panel__hint {
	margin: 0;
	color: var(--contact-soft);
	font-size: 0.95rem;
	line-height: 1.6;
}

.wttw-contact-panel__hint {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--contact-line);
	color: var(--wttw-ink-mute);
	font-size: 0.85rem;
}

/*
 * Fluent Forms ships its own styles. These rules pull its fields onto our type
 * and rules, and set the few structural values the form must not be left
 * guessing: full-width controls and the gap between groups. Everything else is
 * left to the plugin, so an update cannot leave the form half dressed.
 *
 * A message field the full width of this panel would be about 950 pixels, so
 * the form keeps a reading measure of its own.
 */
.wttw-contact-panel__form {
	/* The panel already holds the measure, so the form fills it. */

	/*
	 * Fluent Forms writes a per-form <style> block that paints the button with
	 * `var(--fluentform-primary)`. Retuning its own token is better manners
	 * than shouting over the rule, and it also catches everything else the
	 * plugin paints with it.
	 */
	--fluentform-primary: var(--wttw-ink);
	--fluentform-primary-hover: var(--wttw-slate-deep);
}

.wttw-contact-panel__form .ff-el-group {
	margin-bottom: 0;
}

.wttw-contact-panel__form .ff-el-group + .ff-el-group {
	margin-top: 1.15rem;
}

.wttw-contact-panel__form .ff_submit_btn_wrapper {
	margin-top: 1.6rem;
}

.wttw-contact-panel__form .ff-el-input--label label,
.wttw-contact-panel__form .ff-el-form-control {
	font-family: var(--wttw-font-body);
}

.wttw-contact-panel__form .ff-el-form-control {
	width: 100%;
}

.wttw-contact-panel__form .ff-el-input--label label {
	color: var(--contact-ink);
	font-family: var(--wttw-font-display);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wttw-contact-panel__form .ff-el-form-control {
	border: 1px solid var(--contact-line);
	border-radius: 0;
	background: var(--wttw-white);
	color: var(--contact-ink);
	font-size: 1rem;
}

.wttw-contact-panel__form .ff-el-form-control:focus {
	border-color: var(--wttw-coral);
	box-shadow: 0 0 0 2px rgba(221, 106, 61, 0.18);
	outline: none;
}

/*
 * The plugin's own rule is `form.fluent_form_N .ff-btn-submit:not(...)`, which
 * outranks a two-class selector, and Blocksy adds its own `[type="submit"]`
 * button styling on top. This selector is shaped to beat both without
 * `!important`, so the button belongs to this site rather than to whichever
 * stylesheet happened to load last.
 */
/* Same silhouette and behaviour as .wttw-button, so the one action on this
   page is the site's button rather than the plugin's. Coral stays a wayfinding
   signal and does not become a filled surface here. */
.wttw-contact-panel__form form[id^="fluentform_"] .ff-btn-submit,
.wttw-contact-panel__form form[id^="fluentform_"] .ff-btn-submit:not(.ff_btn_no_style) {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: 0.7rem 1.7rem;
	border: 0;
	border-radius: 0;
	background: var(--wttw-ink);
	color: var(--wttw-white);
	font-family: var(--wttw-font-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.095em;
	line-height: 1.2;
	text-transform: uppercase;
	transition: background var(--wttw-fast) var(--wttw-ease);
}

.wttw-contact-panel__form form[id^="fluentform_"] .ff-btn-submit:hover,
.wttw-contact-panel__form form[id^="fluentform_"] .ff-btn-submit:focus-visible,
.wttw-contact-panel__form form[id^="fluentform_"] .ff-btn-submit:not(.ff_btn_no_style):hover,
.wttw-contact-panel__form form[id^="fluentform_"] .ff-btn-submit:not(.ff_btn_no_style):focus-visible {
	background: var(--wttw-slate-deep);
	color: var(--wttw-white);
}

.wttw-contact-direct {
	padding: clamp(1.4rem, 2.2vw, 1.9rem);
	border: 1px solid var(--contact-line);
	border-top: 3px solid var(--wttw-coral);
	background: var(--wttw-white);
}

.wttw-contact-direct__title {
	margin: 0;
	color: var(--wttw-ink-mute);
	font-family: var(--wttw-font-display);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.wttw-contact-direct__mail {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 0.9rem;
	color: var(--contact-ink);
	font-family: var(--wttw-font-display);
	font-size: 1.02rem;
	font-weight: 600;
	text-decoration: none;
	/* The address is long; it must wrap rather than widen the column. */
	overflow-wrap: anywhere;
}

.wttw-contact-direct__mail .wttw-icon {
	flex: 0 0 auto;
	width: 1.2rem;
	color: var(--wttw-coral);
}

.wttw-contact-direct__mail:hover,
.wttw-contact-direct__mail:focus-visible {
	color: var(--wttw-coral);
}

.wttw-contact-direct__note {
	margin: 1rem 0 0;
	color: var(--contact-soft);
	font-size: 0.86rem;
	line-height: 1.55;
}

.wttw-contact-direct__label {
	margin: 1.4rem 0 0;
	color: var(--wttw-ink-mute);
	font-family: var(--wttw-font-display);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.wttw-contact-direct__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.wttw-contact-direct__social a {
	display: grid;
	place-items: center;
	width: 2.35rem;
	height: 2.35rem;
	border: 1px solid var(--contact-line);
	color: var(--contact-ink);
}

.wttw-contact-direct__social a:hover,
.wttw-contact-direct__social a:focus-visible {
	border-color: var(--wttw-coral);
	color: var(--wttw-coral);
}

.wttw-contact-direct__social .wttw-icon {
	width: 1.15rem;
}

/* 3. What people write about ------------------------------------------- */

.wttw-contact-reasons {
	padding-block: clamp(2.6rem, 4vw, 4rem);
	background: var(--contact-paper);
}

.wttw-contact-reasons__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.6vw, 2.5rem);
	margin: clamp(1.5rem, 2.4vw, 2.25rem) 0 0;
	padding: 0;
	list-style: none;
}

.wttw-contact-reason {
	padding-top: 1.15rem;
	border-top: 2px solid var(--contact-line);
}

.wttw-contact-reason__icon {
	display: block;
	width: 2.1rem;
	height: 2.1rem;
	color: var(--wttw-slate-deep);
}

/* The marks come from different grids, so the mark itself is sized. */
.wttw-contact-reason__icon .wttw-icon {
	width: 100%;
	height: 100%;
}

.wttw-contact-reason h3 {
	margin: 0.8rem 0 0;
	color: var(--contact-ink);
	font-size: 1.1rem;
	letter-spacing: 0.035em;
}

.wttw-contact-reason p {
	margin: 0.5rem 0 0;
	color: var(--contact-soft);
	font-size: 0.9rem;
	line-height: 1.55;
}

/* Narrow ---------------------------------------------------------------- */

@media (max-width: 61.99rem) {
	.wttw-contact-form__grid {
		grid-template-columns: minmax(0, 1fr);
		justify-content: stretch;
	}

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

@media (max-width: 47.99rem) {
	.wttw-contact-hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.wttw-contact-hero__photo {
		aspect-ratio: 3 / 2;
	}

	.wttw-contact-hero h1 span {
		white-space: normal;
	}
}
