/*
 * Nectar Marquees enquiry form.
 *
 * Every button rule is scoped two classes deep (.nectar-enq .nectar-enq__btn).
 * Elementor's global kit styles every <button> on this site via
 * `.elementor-kit-7 button` (specificity 0-1-1), which beats a lone class. Two
 * classes is 0-2-0 and wins cleanly, without !important - which would not survive
 * the LiteSpeed CSS bundle anyway. The same trick is used by nectar-consent.php.
 */

.nectar-enq {
	--ne-gold: #c5a028;
	--ne-ink: #1c1c1c;
	--ne-line: #ddd8cc;
	--ne-bg: #fff;
	--ne-soft: #faf8f3;
	--ne-err: #b32d2e;
	max-width: 720px;
	margin: 0 auto;
	color: var(--ne-ink);
	font-size: 17px;
	line-height: 1.55;
}

.nectar-enq *,
.nectar-enq *::before,
.nectar-enq *::after { box-sizing: border-box; }

.nectar-enq__head { margin-bottom: 26px; }
.nectar-enq__head h2 { margin: 0 0 8px; }
.nectar-enq__intro { margin: 0; opacity: .8; }

/* ---------- progress ---------- */

.nectar-enq__progress[hidden] { display: none; }
.nectar-enq__progress {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	counter-reset: none;
}
.nectar-enq__progress li {
	flex: 1 1 0;
	font-size: 12px;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-align: center;
	padding-top: 9px;
	border-top: 3px solid var(--ne-line);
	color: #9b958a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.nectar-enq__progress li.is-done { border-top-color: var(--ne-gold); color: #6f6a60; }
.nectar-enq__progress li.is-current {
	border-top-color: var(--ne-gold);
	color: var(--ne-ink);
	font-weight: 700;
}

/* ---------- steps ---------- */

.nectar-enq__step {
	border: 1px solid var(--ne-line);
	border-radius: 8px;
	background: var(--ne-bg);
	padding: 24px;
	margin: 0 0 20px;
	min-width: 0;
}
.nectar-enq__step legend {
	font-size: 21px;
	font-weight: 700;
	padding: 0 8px;
	margin-left: -8px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.nectar-enq__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border-radius: 50%;
	background: var(--ne-gold);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

/* With JS on, only the active step is shown. Without JS every step stays visible
   and the form is one long page that still works. */
.nectar-enq__form.is-stepped .nectar-enq__step { display: none; }
.nectar-enq__form.is-stepped .nectar-enq__step.is-active { display: block; }

/* ---------- fields ---------- */

.nectar-enq__field { margin: 18px 0 0; }
.nectar-enq__field:first-of-type { margin-top: 14px; }
/* Elementor's kit sets `text-transform: capitalize` on every label (0-1-1),
   which turns "Not sure yet" into "Not Sure Yet". Two classes beats it. */
.nectar-enq .nectar-enq__form label,
.nectar-enq .nectar-enq__form legend { text-transform: none; }
.nectar-enq .nectar-enq__form .nectar-enq__field label {
	display: block; font-weight: 600; margin-bottom: 6px;
}
.nectar-enq__opt { font-weight: 400; opacity: .6; }

/*
 * The doubled .nectar-enq is a deliberate specificity bump, not a typo.
 * Elementor's kit styles form controls with
 *   .elementor-kit-7 input:not([type="button"]):not([type="submit"])
 * which is 0-3-1 - the two :not() attribute selectors each count. A single class
 * plus an attribute loses to that, and inputs render as bare underlines. Repeating
 * the class takes this to 0-4-1 and wins without !important and without depending
 * on which stylesheet happens to load last.
 */
.nectar-enq.nectar-enq .nectar-enq__form input[type="text"],
.nectar-enq.nectar-enq .nectar-enq__form input[type="email"],
.nectar-enq.nectar-enq .nectar-enq__form input[type="tel"],
.nectar-enq.nectar-enq .nectar-enq__form input[type="date"],
.nectar-enq.nectar-enq .nectar-enq__form input[type="number"],
.nectar-enq.nectar-enq .nectar-enq__form select,
.nectar-enq.nectar-enq .nectar-enq__form textarea {
	width: 100%;
	max-width: 100%;
	font: inherit;
	color: inherit;
	padding: 12px 14px;
	border: 2px solid var(--ne-line);
	border-radius: 6px;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
}
.nectar-enq.nectar-enq .nectar-enq__form select {
	background-image: linear-gradient(45deg, transparent 50%, var(--ne-ink) 50%),
		linear-gradient(135deg, var(--ne-ink) 50%, transparent 50%);
	background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 42px;
}
.nectar-enq.nectar-enq .nectar-enq__form input[type="date"] { -webkit-appearance: none; min-height: 50px; }
.nectar-enq.nectar-enq .nectar-enq__form textarea { resize: vertical; min-height: 110px; }

.nectar-enq.nectar-enq .nectar-enq__form input:focus-visible,
.nectar-enq.nectar-enq .nectar-enq__form select:focus-visible,
.nectar-enq.nectar-enq .nectar-enq__form textarea:focus-visible {
	outline: 3px solid rgba(197, 160, 40, .45);
	outline-offset: 1px;
	border-color: var(--ne-gold);
}
.nectar-enq.nectar-enq .nectar-enq__form [aria-invalid="true"] { border-color: var(--ne-err); }

.nectar-enq__hint { font-size: 14.5px; opacity: .7; margin: 8px 0 0; }
.nectar-enq__error {
	display: block;
	color: var(--ne-err);
	font-size: 14.5px;
	font-weight: 600;
	margin-top: 7px;
}
.nectar-enq__summary {
	border-left: 4px solid var(--ne-err);
	background: #fdf3f3;
	padding: 12px 16px;
	margin: 0 0 20px;
	border-radius: 0 6px 6px 0;
}
.nectar-enq__summary p { margin: 0; }
.nectar-enq__area { display: block; font-size: 14.5px; margin-top: 8px; font-weight: 600; }
.nectar-enq__area.is-far { color: #8a6d1f; }
.nectar-enq__area.is-near { color: #2f6b34; }

.nectar-enq__check { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.nectar-enq__check label { margin: 0; font-weight: 400; }
.nectar-enq__check input { width: 20px; height: 20px; }

/* ---------- option cards ---------- */

.nectar-enq__options { display: grid; gap: 10px; margin-top: 14px; }

.nectar-enq__option {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 4px 14px;
	align-items: center;
	border: 2px solid var(--ne-line);
	border-radius: 8px;
	padding: 15px 17px;
	cursor: pointer;
	background: var(--ne-bg);
}
.nectar-enq__option:hover { border-color: #c9c2b2; background: var(--ne-soft); }
.nectar-enq__option input { width: 22px; height: 22px; margin: 0; grid-row: 1 / span 2; }
.nectar-enq__option-main { font-weight: 600; }
.nectar-enq__option-sub { grid-column: 2; font-size: 14.5px; opacity: .72; }
.nectar-enq__option:has(input:checked) {
	border-color: var(--ne-gold);
	background: var(--ne-soft);
}
.nectar-enq__option:focus-within { outline: 3px solid rgba(197, 160, 40, .45); outline-offset: 1px; }

/* ---------- honeypot ----------
   Off-screen rather than display:none - some bots skip fields that are not
   rendered at all, and the point is that they DO fill this one in. */
.nectar-enq__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- buttons ---------- */

.nectar-enq__nav {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 22px;
	flex-wrap: wrap;
}

.nectar-enq .nectar-enq__btn {
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-align: center;
	display: inline-block;
	cursor: pointer;
	border: 2px solid var(--ne-gold);
	border-radius: 6px;
	padding: 14px 30px;
	min-width: 140px;
	background: var(--ne-gold);
	color: #fff;
}
.nectar-enq .nectar-enq__btn--back {
	background: transparent;
	color: var(--ne-ink);
	border-color: var(--ne-line);
	margin-right: auto;
	min-width: 110px;
}
/* Our own display rule beats the user-agent `[hidden] { display: none }`, so the
   Back and Send buttons stayed on screen during step 1. Restore it explicitly. */
.nectar-enq .nectar-enq__btn[hidden] { display: none; }
.nectar-enq .nectar-enq__btn:hover { opacity: .9; }
.nectar-enq .nectar-enq__btn:focus-visible {
	outline: 3px solid rgba(197, 160, 40, .5);
	outline-offset: 2px;
}

.nectar-enq__legal { font-size: 14px; opacity: .72; margin: 18px 0 0; }
.nectar-enq__fallback { font-size: 15px; margin: 20px 0 0; text-align: center; opacity: .8; }

/* ---------- thank you ---------- */

.nectar-enq__thanks {
	border: 2px solid var(--ne-gold);
	border-radius: 8px;
	background: var(--ne-soft);
	padding: 34px 28px;
	text-align: center;
}
.nectar-enq__thanks h2 { margin-top: 0; }

/* ---------- phone ---------- */

@media (max-width: 600px) {
	.nectar-enq { font-size: 16px; }
	.nectar-enq__step { padding: 18px 15px; border-radius: 6px; }
	.nectar-enq__step legend { font-size: 19px; }
	.nectar-enq__progress li { font-size: 0; padding-top: 7px; }
	.nectar-enq__progress li.is-current { font-size: 11px; }
	.nectar-enq__nav { gap: 10px; }
	.nectar-enq .nectar-enq__btn { flex: 1 1 auto; min-width: 0; padding: 15px 16px; }
	.nectar-enq .nectar-enq__btn--back { flex: 0 0 auto; }
	/* Never smaller than 16px, or iOS zooms the page on focus. */
	.nectar-enq.nectar-enq .nectar-enq__form input,
	.nectar-enq.nectar-enq .nectar-enq__form select,
	.nectar-enq.nectar-enq .nectar-enq__form textarea { font-size: 16px; }
}
