/*
 * Collins enquiry form ([gw_collins_enquiry]).
 * Matches the site's existing forms: the theme's pill .form-control fields
 * (assets/css/custom.css), round green tick boxes and the green pill button.
 */

.gw-eq {
	--gw-eq-green: #3c5d54;
	--gw-eq-text: #555;
	--gw-eq-line: #efefef;
	--gw-eq-error: #b3261e;
	box-sizing: border-box;
	width: 100%;
	max-width: 600px; /* about half the site's 1200px content width; narrower columns keep their own width */
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

@media ( max-width: 767px ) {
	.gw-eq {
		padding-left: 16px;
		padding-right: 16px;
	}
}

.gw-eq-title {
	margin: 0 0 24px;
	text-align: center;
}

.gw-eq-intro {
	margin-bottom: 20px;
	color: var( --gw-eq-text );
}

/* ---------- Layout ---------------------------------------------------- */

.gw-eq-grid {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 14px 10px;
}

.gw-eq-field {
	grid-column: 1 / -1;
	min-width: 0;
}

.gw-eq-field.gw-eq-half {
	grid-column: span 1;
}

@media ( max-width: 575px ) {
	.gw-eq-field.gw-eq-half {
		grid-column: 1 / -1;
	}
}

/* ---------- Labels and fields ---------------------------------------- */

.gw-eq .gw-eq-label {
	display: block;
	margin: 0 0 5px;
	padding: 0 0 0 4px;
	font-weight: 400;
	font-size: 14px;
	line-height: 22px;
	color: var( --gw-eq-text );
	text-transform: none;
	letter-spacing: 0;
}

/* Visually hidden label (the placeholder shows the label, as on the site's other forms). */
.gw-eq .gw-eq-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
	border: 0;
}

.gw-eq .gw-eq-control {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 43px;
	margin: 0;
}

.gw-eq select.gw-eq-control {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 48px;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233c5d54' stroke-width='1.6'/%3E%3C/svg%3E" ) !important;
	background-repeat: no-repeat !important;
	background-position: right 22px center !important;
	cursor: pointer;
}

.gw-eq input[type="date"].gw-eq-control {
	-webkit-appearance: none;
	appearance: none;
	min-height: 43px;
}

.gw-eq textarea.gw-eq-control {
	height: auto;
	min-height: 120px;
}

.gw-eq textarea[name="budget"].gw-eq-control {
	min-height: 84px;
}

.gw-eq .gw-eq-control:focus-visible {
	border-color: var( --gw-eq-green ) !important;
	box-shadow: 0 0 0 2px rgba( 60, 93, 84, 0.25 ) !important;
}

/* ---------- Tick boxes (same look as the site's other forms) ---------- */

.gw-eq .gw-eq-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 2px 0 2px 4px;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: var( --gw-eq-text );
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.gw-eq .gw-eq-check input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1px solid #cfcfcf;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.gw-eq .gw-eq-check input[type="checkbox"]:checked {
	border-color: var( --gw-eq-green );
	background: var( --gw-eq-green );
}

.gw-eq .gw-eq-check input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 12px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}

.gw-eq .gw-eq-check input[type="checkbox"]:focus-visible {
	outline: 2px solid var( --gw-eq-green );
	outline-offset: 2px;
}

.gw-eq .gw-eq-check a {
	color: var( --gw-eq-text );
	text-decoration: underline;
}

.gw-eq-field--checkbox + .gw-eq-field--checkbox {
	margin-top: -6px;
}

/* ---------- Errors ---------------------------------------------------- */

.gw-eq .gw-eq-error,
.gw-eq .gw-eq-form-error {
	margin: 6px 0 0;
	padding: 0 0 0 4px;
	font-size: 13px;
	line-height: 1.35;
	color: var( --gw-eq-error );
}

.gw-eq .gw-eq-form-error {
	margin-top: 16px;
	padding: 0;
	text-align: center;
}

.gw-eq .has-error .gw-eq-control {
	border-color: var( --gw-eq-error ) !important;
}

.gw-eq .has-error .gw-eq-check input[type="checkbox"] {
	border-color: var( --gw-eq-error );
}

/* ---------- Button ---------------------------------------------------- */

.gw-eq-actions {
	margin-top: 22px;
	text-align: center;
}

.gw-eq .gw-eq-submit {
	display: inline-block;
	min-width: 180px;
	padding: 12px 38px;
	border: 1px solid var( --gw-eq-green );
	border-radius: 100px;
	background: var( --gw-eq-green );
	color: #fff;
	font-family: "Trade Gothic W02 Bold Cn 20", "Inter", sans-serif;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.gw-eq .gw-eq-submit:hover,
.gw-eq .gw-eq-submit:focus-visible {
	background: #fff;
	color: var( --gw-eq-green );
}

.gw-eq .gw-eq-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* ---------- Thank-you (back from Collins) ---------------------------- */

.gw-eq-thanks {
	padding: 32px 28px;
	border-radius: 20px;
	background: rgba( 60, 93, 84, 0.06 );
	text-align: center;
	color: var( --gw-eq-text );
}

.gw-eq-thanks:focus {
	outline: none;
}

.gw-eq-thanks-title {
	margin: 0 0 12px;
	color: var( --gw-eq-green );
}

.gw-eq-thanks p {
	margin: 0 0 10px;
}

.gw-eq-ref strong {
	color: var( --gw-eq-green );
}

/* ---------- Theme's floating "Book Now" (0.8.6) ------------------------ */

/* Hidden on any page with the enquiry form, so it can't be tapped by mistake while filling
   in or correcting the form (it took visitors away to the booking page). */
body:has( .gw-eq ) .sticky-button {
	display: none !important;
}

/* ---------- Honeypot (off screen for people, still there for bots) ---- */

.gw-eq-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gw-eq-admin-note {
	padding: 12px;
	border-left: 4px solid #e0a800;
	background: #fff8e5;
}
