/* Just Enquiry Collect — booking form styles only.
 * Lead form uses assets/css/lead.css (loaded separately on homepage).
 */

.jec-wrap {
	--jec-orange: #f07a1a;
	--jec-orange-hover: #d96b12;
	--jec-bar-bg: rgba(28, 30, 34, 0.92);
	--jec-text: #ffffff;
	--jec-muted: rgba(255, 255, 255, 0.55);
	--jec-border: rgba(255, 255, 255, 0.18);
	--jec-radius: 999px;
	--jec-font: "Montserrat", "Segoe UI", system-ui, sans-serif;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	font-family: var(--jec-font);
	box-sizing: border-box;
	color: var(--jec-text);
}

.jec-wrap *,
.jec-wrap *::before,
.jec-wrap *::after {
	box-sizing: border-box;
}

/* —— Legacy bar chrome (booking page does not use this) —— */
.jec-bar:not(.jec-bar--bare) {
	display: flex;
	align-items: stretch;
	background: var(--jec-bar-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-radius: var(--jec-radius);
	padding: 14px 16px 14px 28px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.jec-bar__title {
	flex: 0 0 160px;
	display: flex;
	align-items: center;
	padding-right: 18px;
	border-right: 1px solid var(--jec-border);
}

.jec-bar__title span {
	color: var(--jec-text);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
}

.jec-bar__field {
	flex: 1 1 0;
	min-width: 0;
	padding: 0 16px;
	border-right: 1px solid var(--jec-border);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
}

.jec-bar__field label {
	color: var(--jec-text);
	font-size: 12px;
	font-weight: 600;
	margin: 0;
}

.jec-bar__field input {
	width: 100%;
	background: transparent;
	border: 0;
	outline: none;
	color: var(--jec-text);
	font-size: 13px;
	padding: 2px 0;
	font-family: inherit;
}

.jec-bar__field input::placeholder {
	color: var(--jec-muted);
}

.jec-bar__action {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding-left: 14px;
}

.jec-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	background: var(--jec-orange);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	font-family: inherit;
	border-radius: 999px;
	padding: 12px 28px;
	min-width: 96px;
	transition: background 0.2s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.jec-btn:hover,
.jec-btn:focus-visible {
	background: var(--jec-orange-hover);
	color: #fff;
}

.jec-btn:disabled {
	opacity: 0.7;
	cursor: wait;
}

.jec-feedback {
	margin-top: 12px;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	background: rgba(240, 122, 26, 0.15);
	color: #fff;
	border: 1px solid rgba(240, 122, 26, 0.4);
}

.jec-feedback.is-error {
	background: rgba(200, 40, 40, 0.2);
	border-color: rgba(255, 100, 100, 0.45);
}

.jec-booking-thanks {
	padding: 28px 22px;
	text-align: center;
	background: #0a0a0a;
	border-radius: 4px;
	color: #fff;
}

.jec-booking-thanks[hidden] {
	display: none !important;
}

.jec-booking-thanks__inner {
	max-width: 520px;
	margin: 0 auto;
}

.jec-booking-thanks__title {
	margin: 0 0 10px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--jec-orange);
}

.jec-booking-thanks__message {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	opacity: 0.9;
}

.jec-booking-thanks__wa-wrap {
	margin-top: 22px;
}

.jec-booking-thanks__wa-wrap[hidden] {
	display: none !important;
}

.jec-booking-thanks__wa-note {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.82;
}

.jec-booking-thanks__wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 0;
	padding: 13px 22px;
	border-radius: 999px;
	background: #25d366;
	color: #fff !important;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.jec-booking-thanks__wa:hover,
.jec-booking-thanks__wa:focus {
	background: #1ebe5d;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(37, 211, 102, 0.36);
}

.jec-booking-thanks__wa-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.jec-booking-thanks__wa[hidden] {
	display: none !important;
}

.jec-booking form[hidden] {
	display: none !important;
}

/* —— Booking form (step 2) —— */
.jec-booking-wrap {
	max-width: 920px;
}

.jec-booking {
	background: #0a0a0a;
	padding: 22px;
	border-radius: 4px;
}

.jec-booking__contact {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 14px;
}

.jec-booking__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 22px;
	align-items: start;
}

.jec-booking__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.jec-box {
	border: 1px solid var(--jec-orange);
	background: #000;
	padding: 10px 12px 12px;
	position: relative;
}

.jec-box__label {
	display: block;
	color: var(--jec-orange);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.jec-box input[type="text"],
.jec-box input[type="email"],
.jec-box input[type="tel"],
.jec-box input[type="date"],
.jec-box select,
textarea.jec-address-input,
.jec-address-input,
.jec-pc-input,
.jec-address-select {
	width: 100%;
	background: transparent;
	border: 0;
	outline: none;
	color: #fff;
	font-size: 14px;
	font-family: inherit;
	padding: 2px 0;
}

textarea.jec-address-input {
	min-height: 72px;
	height: auto;
	line-height: 1.45;
	resize: vertical;
	padding: 4px 0;
}

.jec-box input::placeholder,
.jec-address-input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.jec-box input[type="date"],
.jec-box select {
	color-scheme: dark;
}

.jec-postcode-tools {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
	align-items: center;
}

.jec-pc-input {
	flex: 1;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
	padding-bottom: 4px !important;
	text-transform: uppercase;
}

.jec-find-btn {
	appearance: none;
	border: 1px solid var(--jec-orange);
	background: transparent;
	color: var(--jec-orange);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 6px 12px;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
}

.jec-find-btn:hover {
	background: var(--jec-orange);
	color: #111;
}

.jec-find-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.jec-address-select {
	margin-bottom: 8px;
	border: 1px solid rgba(240, 122, 26, 0.45) !important;
	padding: 6px 8px !important;
	background: #111 !important;
}

.jec-address-select[hidden],
.jec-suggest[hidden],
.jec-hint[hidden],
.jec-via-block[hidden],
.jec-return-block[hidden] {
	display: none !important;
}

.jec-suggest {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.15);
	max-height: 140px;
	overflow-y: auto;
}

.jec-suggest li button {
	width: 100%;
	text-align: left;
	background: #111;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
	padding: 8px 10px;
	font-size: 13px;
	cursor: pointer;
	font-family: inherit;
}

.jec-suggest li button:hover {
	background: rgba(240, 122, 26, 0.25);
}

.jec-hint {
	margin: 6px 0 0;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.4;
}

.jec-time-row {
	display: flex;
	gap: 10px;
}

.jec-date-picker {
	--jec-date-panel-bg: #fff;
	--jec-date-panel-color: #2a1947;
	--jec-date-panel-muted: rgba(42, 25, 71, 0.55);
	--jec-date-panel-border: rgba(42, 25, 71, 0.16);
	width: 100%;
}

.jec-box--date {
	overflow: visible;
}

.jec-date-field {
	position: relative;
	width: 100%;
}

.jec-date-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	border-radius: 0;
	padding: 0;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.4;
	cursor: pointer;
	text-align: left;
	gap: 10px;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.jec-date-display {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.jec-date-display:not(.has-value) {
	opacity: 0.65;
}

.jec-date-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: auto;
	color: inherit;
	opacity: 0.85;
}

.jec-date-panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: auto;
	z-index: 50;
	width: 280px;
	max-width: calc(100vw - 24px);
	padding: 12px;
	border: 1px solid var(--jec-date-panel-border);
	border-radius: 6px;
	background: var(--jec-date-panel-bg);
	color: var(--jec-date-panel-color);
	box-shadow: 0 10px 28px rgba(42, 25, 71, 0.12);
	overflow: hidden;
	box-sizing: border-box;
}

.jec-date-panel[hidden] {
	display: none !important;
}

.jec-date-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	gap: 8px;
}

.jec-date-panel__title {
	flex: 1;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--jec-date-panel-color);
}

.jec-date-nav {
	border: 0;
	background: transparent;
	color: var(--jec-date-panel-color);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
}

.jec-date-nav:hover {
	background: rgba(42, 25, 71, 0.08);
}

.jec-date-panel__weekdays,
.jec-date-panel__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
	width: 100%;
	box-sizing: border-box;
}

.jec-date-panel__weekdays {
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 600;
	color: var(--jec-date-panel-muted);
	text-align: center;
}

.jec-date-day {
	display: flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	border: 0;
	background: transparent;
	color: var(--jec-date-panel-color);
	font-size: 13px;
	font-family: inherit;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	max-width: 32px;
	max-height: 32px;
	line-height: 32px;
	border-radius: 4px;
	cursor: pointer;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

.jec-date-day.is-empty {
	pointer-events: none;
}

.jec-date-day.is-selected {
	background: var(--jec-orange);
	color: #111;
	font-weight: 600;
}

.jec-date-day.is-disabled,
.jec-date-day:disabled {
	opacity: 0.45;
	color: rgba(42, 25, 71, 0.4);
	cursor: not-allowed;
}

.jec-date-day:not(.is-disabled):not(:disabled):hover {
	background: rgba(240, 122, 26, 0.18);
}

.jec-time-row select {
	flex: 1;
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 6px 8px !important;
	background: #111 !important;
}

.jec-vehicle-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.jec-vehicle-row select {
	flex: 1;
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 6px 8px !important;
	background: #111 !important;
}

.jec-vehicle-icon {
	flex: 0 0 auto;
	opacity: 0.9;
}

.jec-quote-btn {
	appearance: none;
	width: 100%;
	border: 0;
	cursor: pointer;
	background: var(--jec-orange);
	color: #1a1a1a;
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 18px 16px;
	font-family: inherit;
	transition: background 0.2s ease;
}

.jec-quote-btn:hover {
	background: var(--jec-orange-hover);
}

.jec-quote-btn:disabled {
	opacity: 0.7;
	cursor: wait;
}

.jec-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 28px;
	padding-top: 4px;
}

.jec-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--jec-orange);
	margin: 0;
}

.jec-check input {
	width: 16px;
	height: 16px;
	accent-color: var(--jec-orange);
	margin: 0;
}

.jec-booking-missing {
	background: #111;
	padding: 28px;
	text-align: center;
	border: 1px solid rgba(240, 122, 26, 0.4);
}

.jec-booking-missing p {
	margin: 0 0 14px;
	color: #fff;
}

/* —— Shared interaction helpers —— */
.jec-wrap {
	padding-left: max(0px, env(safe-area-inset-left));
	padding-right: max(0px, env(safe-area-inset-right));
}

.jec-find-btn,
.jec-quote-btn,
.jec-btn,
.jec-check {
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.jec-box input[type="text"],
.jec-box input[type="email"],
.jec-box input[type="tel"],
.jec-box input[type="date"],
.jec-box select,
.jec-address-input,
.jec-pc-input,
.jec-address-select {
	-webkit-appearance: none;
	appearance: none;
}

/* —— Responsive: tablet landscape / small desktop —— */
@media (max-width: 1024px) {
	.jec-wrap:not(.jec-wrap--lead) {
		max-width: 100%;
		padding-left: 12px;
		padding-right: 12px;
	}

	.jec-booking-wrap {
		max-width: 100%;
	}
}

/* —— Responsive: tablet / large phone —— */
@media (max-width: 900px) {
	.jec-booking {
		padding: 16px;
	}

	.jec-booking__contact {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-bottom: 12px;
	}

	.jec-booking__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.jec-booking__col {
		gap: 12px;
	}

	.jec-box input[type="text"],
	.jec-box input[type="email"],
	.jec-box input[type="tel"],
	.jec-box input[type="date"],
	.jec-box select,
	.jec-address-input,
	.jec-pc-input,
	.jec-address-select,
	.jec-time-row select,
	.jec-vehicle-row select {
		min-height: 44px;
		font-size: 16px;
	}

	.jec-find-btn {
		min-height: 44px;
		padding: 10px 14px;
	}

	.jec-quote-btn {
		padding: 16px;
		font-size: 15px;
		min-height: 52px;
	}

	.jec-checks {
		gap: 12px 16px;
		flex-direction: column;
		align-items: flex-start;
	}

	.jec-check {
		width: 100%;
		padding: 10px 0;
		font-size: 12px;
		min-height: 44px;
	}

	.jec-check input {
		width: 20px;
		height: 20px;
		flex-shrink: 0;
	}

	.jec-vehicle-icon {
		display: none;
	}

	.jec-bar:not(.jec-bar--bare) {
		flex-wrap: wrap;
		border-radius: 18px;
		padding: 16px;
		gap: 0;
	}

	.jec-bar:not(.jec-bar--bare) .jec-bar__title {
		flex: 1 1 100%;
		border-right: 0;
		padding: 0 4px 12px;
		margin-bottom: 4px;
		border-bottom: 1px solid var(--jec-border);
	}

	.jec-bar:not(.jec-bar--bare) .jec-bar__title span {
		font-size: 16px;
	}

	.jec-bar:not(.jec-bar--bare) .jec-bar__field {
		flex: 1 1 50%;
		border-right: 0;
		padding: 12px 8px;
		border-bottom: 1px solid var(--jec-border);
	}

	.jec-bar:not(.jec-bar--bare) .jec-bar__field input {
		font-size: 16px;
		min-height: 40px;
	}

	.jec-bar:not(.jec-bar--bare) .jec-bar__action {
		flex: 1 1 100%;
		padding: 14px 0 0;
	}

	.jec-bar:not(.jec-bar--bare) .jec-bar__action .jec-btn {
		width: 100%;
		min-height: 48px;
		padding: 14px 20px;
		font-size: 15px;
	}
}

/* —— Responsive: phones —— */
@media (max-width: 600px) {
	.jec-wrap:not(.jec-wrap--lead) {
		padding-left: 10px;
		padding-right: 10px;
	}

	.jec-booking {
		padding: 12px;
		border-radius: 0;
		margin-left: -10px;
		margin-right: -10px;
		width: calc(100% + 20px);
	}

	.jec-box {
		padding: 12px;
	}

	.jec-box__label {
		font-size: 10px;
		margin-bottom: 6px;
	}

	.jec-postcode-tools {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.jec-pc-input {
		width: 100%;
		min-height: 44px;
		padding: 8px 0 !important;
	}

	.jec-find-btn {
		width: 100%;
		justify-content: center;
		min-height: 44px;
	}

	.jec-time-row {
		flex-direction: column;
		gap: 8px;
	}

	.jec-time-row select {
		width: 100%;
	}

	.jec-vehicle-row {
		flex-direction: column;
		align-items: stretch;
	}

	.jec-vehicle-row select {
		width: 100%;
	}

	.jec-address-select {
		font-size: 16px !important;
		min-height: 44px;
		padding: 10px !important;
	}

	.jec-suggest {
		max-height: 180px;
	}

	.jec-suggest li button {
		padding: 12px;
		font-size: 14px;
		min-height: 44px;
	}

	.jec-feedback {
		font-size: 13px;
		padding: 12px;
	}

	.jec-bar:not(.jec-bar--bare) {
		border-radius: 14px;
		padding: 14px;
	}

	.jec-bar:not(.jec-bar--bare) .jec-bar__title,
	.jec-bar:not(.jec-bar--bare) .jec-bar__field {
		flex: 1 1 100%;
	}

	.jec-bar:not(.jec-bar--bare) .jec-bar__field {
		padding: 12px 4px;
	}

	.jec-bar:not(.jec-bar--bare) .jec-bar__field:last-of-type {
		border-bottom: 0;
	}
}

/* —— Responsive: small phones —— */
@media (max-width: 380px) {
	.jec-wrap:not(.jec-wrap--lead) {
		padding-left: 8px;
		padding-right: 8px;
	}

	.jec-booking {
		padding: 10px;
		margin-left: -8px;
		margin-right: -8px;
		width: calc(100% + 16px);
	}

	.jec-box__label {
		letter-spacing: 0.03em;
	}

	.jec-quote-btn {
		font-size: 14px;
		letter-spacing: 0.04em;
		padding: 14px 12px;
	}

	.jec-check {
		font-size: 11px;
		letter-spacing: 0.02em;
	}

	.jec-bar__title span {
		font-size: 15px;
	}
}
