/**
 * Intensive enquiry form — front-end styles.
 *
 * Self-contained: every rule is scoped under .rdlb-if and the tokens live on
 * .rdlb-if, so the host theme cannot bleed in and these styles cannot bleed
 * out. Matches the booking flow's brand (Plus Jakarta Sans, deep navy, red
 * accent) without depending on booking.css.
 *
 * @package RDLB
 */

.rdlb-if {
	--if-ink: #0f1923;
	--if-ink-2: #3a4452;
	--if-ink-3: #6b7480;
	--if-navy: #0f1923;
	--if-navy-2: #000842;
	--if-accent: #e55353;
	--if-accent-deep: #cf3f3f;
	--if-accent-soft: rgba(229, 83, 83, 0.10);
	--if-line: #e6e9f0;
	--if-line-strong: #ccd3df;
	--if-field-bg: #fafbfd;
	--if-card-bg: #ffffff;
	--if-radius: 18px;
	--if-radius-sm: 12px;
	--if-shadow: 0 20px 54px -30px rgba(0, 8, 66, 0.40);
	--if-focus: 0 0 0 3px rgba(229, 83, 83, 0.20);

	box-sizing: border-box;
	max-width: 720px;
	margin: 0 auto;
	padding: 26px;
	background: var(--if-card-bg);
	border: 1px solid var(--if-line);
	border-radius: var(--if-radius);
	box-shadow: var(--if-shadow);
	font-family: inherit;
	color: var(--if-ink);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.rdlb-if *,
.rdlb-if *::before,
.rdlb-if *::after { box-sizing: border-box; }

/* ── Promotion banner ─────────────────────────────────────────── */
.rdlb-if-banner {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 16px;
	padding: 18px 22px;
	border-radius: var(--if-radius);
	background: linear-gradient(135deg, var(--if-navy) 0%, var(--if-navy-2) 100%);
	color: #fff;
	box-shadow: var(--if-shadow);
}
.rdlb-if-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 140% at 100% 0%, rgba(229, 83, 83, 0.40) 0%, transparent 55%);
	pointer-events: none;
}
.rdlb-if-banner-spark {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	margin-top: 7px;
	border-radius: 50%;
	background: var(--if-accent);
	box-shadow: 0 0 0 5px rgba(229, 83, 83, 0.22);
}
.rdlb-if-banner-body { position: relative; z-index: 1; }
.rdlb-if-banner-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffd2d6;
	margin-bottom: 4px;
}
.rdlb-if-banner-heading {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.25;
}
.rdlb-if-banner-text {
	margin: 6px 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.45;
}

/* ── Promo chips (click to copy) ──────────────────────────────── */
.rdlb-if-promos { margin: 0 0 18px; }
.rdlb-if-promos-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--if-ink-3);
	margin: 0 0 8px;
}
.rdlb-if-promo-list { display: flex; flex-wrap: wrap; gap: 10px; }
.rdlb-if-promo {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.rdlb-if-promo-copy {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 14px;
	border: 1.5px dashed var(--if-line-strong);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	font-family: inherit;
	transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}
.rdlb-if-promo-copy:hover {
	border-color: var(--if-accent);
	background: var(--if-accent-soft);
	transform: translateY(-1px);
}
.rdlb-if-promo-copy:focus-visible {
	outline: none;
	box-shadow: var(--if-focus);
	border-color: var(--if-accent);
}
.rdlb-if-promo-code {
	font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--if-ink);
}
.rdlb-if-promo-action {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--if-accent-deep);
	background: var(--if-accent-soft);
	padding: 4px 9px;
	border-radius: 999px;
}
.rdlb-if-promo-copy.is-copied .rdlb-if-promo-action {
	color: #047857;
	background: rgba(4, 120, 87, 0.12);
}
.rdlb-if-promo-blurb {
	font-size: 12.5px;
	color: var(--if-ink-3);
	line-height: 1.35;
}

/* ── The form card ────────────────────────────────────────────── */
.rdlb-if-form {
	position: relative;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.rdlb-if-title {
	margin: 0;
	font-size: 23px;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--if-ink);
}
.rdlb-if-intro {
	margin: 8px 0 0;
	font-size: 14.5px;
	color: var(--if-ink-2);
	line-height: 1.5;
}

.rdlb-if-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 18px;
	margin-top: 22px;
}
.rdlb-if-row { min-width: 0; grid-column: 1 / -1; }
.rdlb-if-row.is-full { grid-column: 1 / -1; }
.rdlb-if-row.is-half { grid-column: auto / span 1; }

.rdlb-if-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--if-ink);
	margin: 0 0 7px;
}
.rdlb-if-req { color: var(--if-accent); margin-left: 2px; }

.rdlb-if-input {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	color: var(--if-ink);
	background: var(--if-field-bg);
	border: 1.5px solid var(--if-line-strong);
	border-radius: var(--if-radius-sm);
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
	-webkit-appearance: none;
	appearance: none;
}
.rdlb-if-input::placeholder { color: #aab2bd; }
.rdlb-if-input:hover { border-color: #b6bdc9; }
.rdlb-if-input:focus {
	outline: none;
	background: #fff;
	border-color: var(--if-accent);
	box-shadow: var(--if-focus);
}
.rdlb-if-textarea { resize: vertical; min-height: 104px; line-height: 1.5; }

.rdlb-if-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7480' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
	cursor: pointer;
}

/* Radio / checkbox groups — v2.9.411: a deterministic auto-fit GRID instead
   of wrap-flex, so theme label/flex rules (Flatsome's base `label{display:
   block;font-weight:700;margin-bottom:.4em}` leaks bold + margins onto any
   un-defended label) can never stack, fatten or misalign the chips. Two
   options sit side by side in any container down to ~330px, then stack. */
.rdlb-if-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rdlb-if-choice {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	min-width: 0;
	margin: 0;
	padding: 10px 14px;
	border: 1.5px solid var(--if-line-strong);
	border-radius: var(--if-radius-sm);
	background: var(--if-field-bg);
	cursor: pointer;
	font-weight: 500;
	transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.rdlb-if-choice:hover { border-color: var(--if-accent); background: #fff; }
.rdlb-if-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.rdlb-if-choice-box {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border: 2px solid var(--if-line-strong);
	border-radius: 6px;
	background: #fff;
	position: relative;
	transition: border-color 0.16s ease, background 0.16s ease;
}
.rdlb-if-row-radio .rdlb-if-choice-box { border-radius: 50%; }
.rdlb-if-choice-box::after {
	content: "";
	position: absolute;
	opacity: 0;
	transition: opacity 0.14s ease, transform 0.14s ease;
}
.rdlb-if-row-checkbox .rdlb-if-choice-box::after,
.rdlb-if-consent .rdlb-if-choice-box::after {
	left: 5px;
	top: 1px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg) scale(0.6);
}
.rdlb-if-row-radio .rdlb-if-choice-box::after {
	left: 4px;
	top: 4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
}
.rdlb-if-choice input:checked + .rdlb-if-choice-box,
.rdlb-if-consent input:checked + .rdlb-if-choice-box {
	border-color: var(--if-accent);
	background: var(--if-accent);
}
.rdlb-if-choice input:checked + .rdlb-if-choice-box::after,
.rdlb-if-consent input:checked + .rdlb-if-choice-box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.rdlb-if-row-radio .rdlb-if-choice input:checked + .rdlb-if-choice-box::after { transform: scale(1); }
.rdlb-if-choice input:focus-visible + .rdlb-if-choice-box,
.rdlb-if-consent input:focus-visible + .rdlb-if-choice-box { box-shadow: var(--if-focus); }
.rdlb-if-choice input:checked ~ .rdlb-if-choice-text { color: var(--if-ink); font-weight: 600; }
.rdlb-if-choice:has(input:checked) { border-color: var(--if-accent); background: var(--if-accent-soft); }
.rdlb-if-choice-text { font-size: 14.5px; color: var(--if-ink-2); }

/* Consent — set apart from the fields with a divider, comfortable tap area */
.rdlb-if-row-consent { margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--if-line); }
.rdlb-if-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 2px 0;
	cursor: pointer;
}
.rdlb-if-consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.rdlb-if-consent .rdlb-if-choice-box { margin-top: 1px; }
.rdlb-if-consent-text { font-size: 14px; color: var(--if-ink-2); line-height: 1.5; }

/* Display fields */
.rdlb-if-fieldheading {
	margin: 6px 0 0;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--if-ink);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--if-line);
}
.rdlb-if-fieldpara { margin: 0; font-size: 14px; color: var(--if-ink-2); line-height: 1.55; }

.rdlb-if-help { margin: 6px 0 0; font-size: 12.5px; color: var(--if-ink-3); line-height: 1.4; }
.rdlb-if-error {
	margin: 6px 0 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--if-accent-deep);
}
.rdlb-if-row.has-error .rdlb-if-input,
.rdlb-if-row.has-error .rdlb-if-choice,
.rdlb-if-row.has-error .rdlb-if-choice-box {
	border-color: var(--if-accent);
}

/* Honeypot — never shown to humans */
.rdlb-if-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Foot + submit */
.rdlb-if-foot { margin-top: 24px; }
.rdlb-if-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 200px;
	padding: 14px 28px;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #fff;
	background: var(--if-accent);
	border: none;
	border-radius: var(--if-radius-sm);
	cursor: pointer;
	transition: background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
	box-shadow: 0 10px 24px -12px rgba(229, 83, 83, 0.8);
}
.rdlb-if-submit:hover { background: var(--if-accent-deep); transform: translateY(-1px); }
.rdlb-if-submit:focus-visible { outline: none; box-shadow: var(--if-focus), 0 10px 24px -12px rgba(229, 83, 83, 0.8); }
.rdlb-if-submit:disabled { opacity: 0.7; cursor: default; transform: none; }
.rdlb-if-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rdlb-if-spin 0.7s linear infinite;
}
.rdlb-if-form.is-sending .rdlb-if-spinner { display: inline-block; }
@keyframes rdlb-if-spin { to { transform: rotate(360deg); } }

/* Form-level status (error summary) */
.rdlb-if-status {
	margin-top: 16px;
	padding: 12px 16px;
	font-size: 13.5px;
	font-weight: 600;
	border-radius: var(--if-radius-sm);
	background: var(--if-accent-soft);
	color: var(--if-accent-deep);
	border: 1px solid rgba(229, 83, 83, 0.25);
}

/* Success panel — Confirmation A (branded, flush, no nested card) */
.rdlb-if-success {
	margin: 0;
	padding: 34px 24px;
	text-align: center;
	background: var(--if-card-bg);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	animation: rdlb-if-rise 0.4s ease both;
}
@keyframes rdlb-if-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rdlb-if-success-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(135deg, #10184a 0%, #000842 100%);
	box-shadow: 0 0 0 6px rgba(229, 83, 83, 0.10), 0 16px 34px -16px rgba(0, 8, 66, 0.65);
}
.rdlb-if-success-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: #000842;
}
.rdlb-if-success-body { margin: 10px auto 0; max-width: 460px; font-size: 14.5px; color: var(--if-ink-2); line-height: 1.55; }
.rdlb-if-success-body b { color: var(--if-ink); }
.rdlb-if-success-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	align-items: center;
	margin-top: 22px;
}
.rdlb-if-success-call {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: var(--if-ink-2);
	line-height: 1.2;
}
.rdlb-if-success-call-label { font-size: 11.5px; color: var(--if-ink-3); }
.rdlb-if-success-call-number { font-size: 16px; font-weight: 800; color: var(--if-accent-deep); margin-top: 2px; }
.rdlb-if-success-trust {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	font-size: 12.5px;
	color: var(--if-ink-3);
}
.rdlb-if-success-trust svg { color: #000842; }

/* Admin-only second-instance notice */
.rdlb-if-error {}
div.rdlb-if-error {
	padding: 12px 16px;
	background: #fff4e5;
	border: 1px solid #ffd9b3;
	border-radius: 8px;
	color: #7a4500;
	font-size: 13px;
	font-weight: 600;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
	.rdlb-if-form { padding: 20px; }
	.rdlb-if-fields { grid-template-columns: 1fr; gap: 14px; }
	.rdlb-if-row.is-half { grid-column: 1 / -1; }
	.rdlb-if-banner { padding: 16px 18px; }
	.rdlb-if-banner-heading { font-size: 17px; }
	.rdlb-if-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.rdlb-if-spinner { animation: none; }
	.rdlb-if-success { animation: none; }
	.rdlb-if-promo-copy:hover,
	.rdlb-if-submit:hover { transform: none; }
}

/* ── v2.9.169 additions: divider, char counter, submit-another ── */
.rdlb-if-row-divider { padding: 0; }
.rdlb-if-divider {
	border: 0;
	border-top: 1px solid var(--rdlb-if-line, #e3e7ef);
	margin: 6px 0;
}
.rdlb-if-count {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--rdlb-if-muted, #8a92a6);
	text-align: right;
}
.rdlb-if-count.is-near { color: var(--rdlb-if-accent, #e55353); }
.rdlb-if-again {
	margin-top: 18px;
	border: 1px solid var(--rdlb-if-line, #e3e7ef);
	background: #fff;
	color: var(--rdlb-if-ink, #16203a);
	border-radius: 12px;
	padding: 11px 20px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.16s ease, background 0.16s ease;
}
.rdlb-if-again:hover {
	border-color: var(--rdlb-if-accent, #e55353);
	background: var(--rdlb-if-accent-tint, #fef2f3);
}
/* A row hidden by conditional logic. */
.rdlb-if-row[hidden] { display: none !important; }

/* ── v2.9.170: click-to-call, reassurance, trust strip ── */
.rdlb-if-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
}
.rdlb-if-call {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.2;
	text-decoration: none;
	color: var(--rdlb-if-ink, #16203a);
}
.rdlb-if-call-label {
	font-size: 12px;
	color: var(--rdlb-if-muted, #8a92a6);
}
.rdlb-if-call-number {
	font-size: 17px;
	font-weight: 700;
	color: var(--rdlb-if-accent, #e55353);
}
.rdlb-if-call:hover .rdlb-if-call-number { text-decoration: underline; }
.rdlb-if-reassure {
	margin: 14px 0 0;
	font-size: 13.5px;
	color: var(--rdlb-if-muted, #8a92a6);
	text-align: center;
}
.rdlb-if-trust {
	list-style: none;
	margin: 18px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--rdlb-if-line, #e3e7ef);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	justify-content: center;
}
.rdlb-if-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--rdlb-if-ink, #16203a);
}
.rdlb-if-trust-tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--rdlb-if-accent-tint, #fef2f3);
	color: var(--rdlb-if-accent, #e55353);
	flex: none;
}
@media ( max-width: 560px ) {
	.rdlb-if-foot { justify-content: center; text-align: center; }
	.rdlb-if-call { align-items: center; }
}

/* Offer card — compact banner + live promo (v2.9.195) */
.rdlb-if-offer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid #dfe3ef;
	border-left: 3px solid #000842;
	border-radius: var(--if-radius-sm);
	background: #f5f6fb;
}
.rdlb-if-offer-hook { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.rdlb-if-offer-ico {
	flex: 0 0 auto;
	width: 30px; height: 30px;
	border-radius: 9px;
	display: flex; align-items: center; justify-content: center;
	color: #fff;
	background: linear-gradient(135deg, #1a2350, #000842);
}
.rdlb-if-offer-copy { min-width: 0; }
.rdlb-if-offer-eyebrow {
	font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
	color: #000842; opacity: 0.72;
}
.rdlb-if-offer-heading { margin: 1px 0 0; font-size: 15px; font-weight: 800; color: #000842; line-height: 1.25; }
.rdlb-if-offer-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--if-ink-2); line-height: 1.4; }
.rdlb-if-offer-promos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
@media (max-width: 600px) {
	.rdlb-if-offer-promos { width: 100%; }
}
