/**
 * Inquiry form + mobile enquire bar. Token-driven.
 */

.rb-iform {
	padding: var(--rb-space-5);
	background: var(--rb-bg);
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius-md);
	box-shadow: var(--rb-shadow-sm);
	scroll-margin-top: 96px; /* anchor target below sticky header */
}
.rb-iform__title {
	font-size: 20px;
	margin: 0 0 var(--rb-space-4);
}

.rb-iform__success,
.rb-iform__error {
	padding: var(--rb-space-3) var(--rb-space-4);
	border-radius: var(--rb-radius-sm);
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 var(--rb-space-4);
}
.rb-iform__success {
	background: #EAF4EE;
	border: 1px solid var(--rb-success);
	color: var(--rb-text);
}
.rb-iform__error {
	background: var(--rb-primary-tint);
	border: 1px solid var(--rb-danger);
	color: var(--rb-text);
}

.rb-iform__form {
	display: flex;
	flex-direction: column;
	gap: var(--rb-space-4);
}
.rb-iform__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rb-space-4);
}
@media (max-width: 767px) {
	.rb-iform__row {
		grid-template-columns: 1fr;
	}
}

.rb-iform__field label {
	display: block;
	margin-bottom: var(--rb-space-1);
	font-size: 14px;
	font-weight: 500;
	color: var(--rb-text);
}
.rb-iform__req {
	color: var(--rb-danger);
}
.rb-iform__field input[type="text"],
.rb-iform__field input[type="email"],
.rb-iform__field input[type="tel"],
.rb-iform__field select,
.rb-iform__field textarea {
	width: 100%;
	min-height: 48px;
	padding: var(--rb-space-3);
	border: 1px solid var(--rb-border-input);
	border-radius: var(--rb-radius-sm);
	background: var(--rb-bg);
	color: var(--rb-text);
	font-size: 16px; /* prevents iOS zoom */
	font-family: var(--rb-font-body);
}
.rb-iform__field textarea {
	resize: vertical;
}

.rb-iform__field--consent label {
	display: flex;
	gap: var(--rb-space-2);
	align-items: flex-start;
	font-weight: 400;
	font-size: 13.5px;
	line-height: 1.5;
	cursor: pointer;
}
.rb-iform__field--consent input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: var(--rb-primary);
}

.rb-iform__hint {
	margin: 0;
	font-size: 12.5px;
	color: var(--rb-text-secondary);
}

/* html .elementor-kit-6 prefix (Phase 27.2): same real `<button>` vs.
   Elementor Kit `.elementor-kit-6 button` specificity gap as the
   filter-bar submit — see that file's comment for the full mechanism. */
html .elementor-kit-6 .rb-iform__submit {
	min-height: 48px;
	border: 0;
	border-radius: var(--rb-radius-md);
	background: var(--rb-secondary);
	color: var(--rb-text-invert);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background var(--rb-duration-fast) var(--rb-ease);
}
html .elementor-kit-6 .rb-iform__submit:hover {
	background: var(--rb-text);
}

/* Honeypot: visually removed, still in accessibility tree suppression. */
.rb-iform__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Mobile sticky enquire bar --- */
.rb-ebar {
	display: none;
}
@media (max-width: 767px) {
	.rb-ebar {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 90;
		display: flex;
		gap: var(--rb-space-2);
		padding: var(--rb-space-2) var(--rb-space-3);
		padding-bottom: calc(var(--rb-space-2) + env(safe-area-inset-bottom, 0px));
		background: var(--rb-bg);
		border-top: 1px solid var(--rb-border);
		box-shadow: var(--rb-shadow-lg);
	}
	.rb-ebar__btn {
		flex: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		border: 1px solid var(--rb-primary);
		border-radius: var(--rb-radius-md);
		color: var(--rb-primary);
		background: var(--rb-bg);
		font-weight: 600;
		font-size: 14px;
		text-decoration: none;
	}
	.rb-ebar__btn--primary {
		background: var(--rb-secondary);
		color: var(--rb-text-invert);
		flex: 1.6;
	}
	/* Keep page content clear of the bar. */
	body:has(.rb-ebar) .elementor-location-footer {
		padding-bottom: 72px;
	}
}
