/* ============================================================
   Contact: the enquiry form and "Rather chat?" in one shadowed box.
   Stacked on phones (the box nearly edge to edge); from 761px the navy
   panel's photo sits beside its text; from 961px the form and the panel
   side by side. (prototype: .contact-box, .form-card, .contact-side)
   ============================================================ */

.enquiry .wrap {
	padding-right: max(12px, env(safe-area-inset-right, 0px));
	padding-left: max(12px, env(safe-area-inset-left, 0px));
}

.enquiry__box {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	background: var(--color-bg);
	box-shadow: var(--shadow-box);
}

.enquiry__card {
	min-width: 0;
	padding: 28px 20px 36px;
}

.enquiry__form {
	position: relative;
	display: grid;
	gap: 22px;
}

.enquiry__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px;
}

/* A field people never see (the honeypot). */
.enquiry__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.field {
	display: grid;
	align-content: start;
	gap: 8px;
	min-width: 0;
}

.field__label {
	font-size: var(--size-label);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.field__optional {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: none;
}

.field__control {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--color-field-border);
	border-radius: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font: 400 16px / 1.4 var(--font-body);
	transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

textarea.field__control {
	min-height: 120px;
	resize: vertical;
}

/* iOS draws an empty date box shorter and centres its text. */
.field__control[type="date"] {
	-webkit-appearance: none;
	appearance: none;
	text-align: left;
}

.field__control::-webkit-date-and-time-value {
	text-align: left;
}

/* The drop-downs draw their own arrow (Miles 2026-11-24: the browser's sat
   hard against the right edge): a fine chevron in the text colour, centred
   28px in from the right like the date boxes' calendar icons, so the icons
   line up down the form. Without the browser's look the words also start
   where they do in the other boxes. The mask's black only sets its shape. */
.field__select {
	position: relative;
	display: block;
}

.field__select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 22px;
	width: 12px;
	height: 7px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	translate: 0 -50%;
	pointer-events: none;
}

.field__select .field__control {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 52px;
	cursor: pointer;
}

.field__control::placeholder {
	color: var(--color-text);
	opacity: 0.55;
}

.field__control:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.field.is-invalid .field__control {
	border-color: var(--color-text);
	box-shadow: 0 0 0 1px var(--color-text);
}

.field__error {
	padding-left: 12px;
	border-left: 2px solid var(--color-accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.enquiry__nights {
	min-height: 1.5em;
	margin-top: -8px;
	font-size: 13px;
	font-weight: 500;
}

.enquiry__alert {
	padding: 14px 18px;
	border-left: 3px solid var(--color-accent);
	background: var(--color-surface-light);
	font-size: 14px;
	line-height: 1.6;
}

.check {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	font-size: 14px;
	line-height: 1.6;
	cursor: pointer;
}

.check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--color-text);
}

.enquiry__submit {
	width: 100%;
	margin-top: 6px;
}

.enquiry__submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

/* The thank-you, in place of the form. */
.enquiry__done {
	display: grid;
	justify-items: start;
	gap: 20px;
	padding: 40px 24px;
	background: var(--color-surface-light);
}

.enquiry__done:focus {
	outline: none;
}

.enquiry__done-title {
	font-size: var(--size-h2);
	line-height: 1.05;
}

.enquiry__done-text {
	font-size: 15px;
	line-height: 1.8;
}

.enquiry__done-text p + p {
	margin-top: 1em;
}

/* "Rather chat?": navy, the photo first. */
.enquiry__side {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	background: var(--color-surface-dark);
	color: var(--color-on-dark);
}

.enquiry__photo {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--color-placeholder);
}

.enquiry__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease);
}

@media (hover: hover) {
	.enquiry__side:hover .enquiry__photo img {
		transform: scale(1.04);
	}
}

.enquiry__chat {
	display: grid;
	align-content: start;
	gap: 18px;
	padding: 32px 24px 40px;
}

.enquiry__chat-title {
	font-size: var(--size-h2);
	line-height: 1.05;
}

.enquiry__chat-text {
	color: var(--color-on-dark-strong);
	font-size: 15px;
	line-height: 1.8;
}

.enquiry__whatsapp {
	justify-self: start;
}

.enquiry__details {
	display: grid;
	gap: 6px;
	margin: 10px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--color-on-dark-rule);
}

.enquiry__details dt {
	margin-top: 10px;
	color: var(--color-on-dark-soft);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.enquiry__details dt:first-child {
	margin-top: 0;
}

.enquiry__details dd {
	margin: 0;
	color: var(--color-on-dark-strong);
	font-size: 14px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

/* The shared text link (main.css), light on navy and at the details' own
   weight. */
.enquiry__details a {
	color: var(--color-on-dark);
	font-weight: inherit;
}

@media (min-width: 481px) {
	.enquiry__submit {
		justify-self: start;
		width: auto;
	}
}

@media (min-width: 761px) {
	.enquiry .wrap {
		padding-right: var(--gutter-r);
		padding-left: var(--gutter-l);
	}

	.enquiry__card {
		padding: clamp(32px, 4.5vw, 64px);
	}

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


	.enquiry__done {
		padding: 48px 40px;
	}

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

	.enquiry__photo {
		aspect-ratio: auto;
		min-height: 100%;
	}

	.enquiry__chat {
		padding: clamp(32px, 3.6vw, 48px);
	}
}

@media (min-width: 961px) {
	.enquiry__box {
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	}

	.enquiry__side {
		display: flex;
		flex-direction: column;
	}

	.enquiry__photo {
		aspect-ratio: 1;
		min-height: 0;
	}

	.enquiry__chat {
		flex: 1;
	}
}
