/* ═════════════════════════════════════════════════════════════════
   PAGE — REQUEST A BRIEFING
   Standalone briefing-request page (see /pages/page-request-a-briefing.php).

   Page deltas only — cream background, hero blob decorations,
   two-column main layout: process step cards (left) + contact form (right).

   Class prefix: `.rb-*`
   ═════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────
   PAGE BACKGROUND
   ───────────────────────────────────────────────────────────────── */
.rb-page {
	background: var(--cream);
}


/* ─────────────────────────────────────────────────────────────────
   HERO BAND — large mixed-font headline + lede + decorative blobs.
   ───────────────────────────────────────────────────────────────── */
.rb-hero-band {
	padding-top: clamp(100px, 11vw, 144px);
	padding-bottom: 20px;
	position: relative;
	overflow: hidden;
}

.rb-hero-blobs {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}
.rb-blob {
	position: absolute;
	border-radius: 50%;
}
.rb-blob-1 {
	width: 72vw;
	height: 72vw;
	max-width: 920px;
	max-height: 920px;
	background: rgba(245, 244, 240, 0.9);
	filter: blur(90px);
	right: -15%;
	top: -30%;
	opacity: 0.75;
}
.rb-blob-2 {
	width: 52vw;
	height: 52vw;
	max-width: 660px;
	max-height: 660px;
	background: rgba(245, 244, 240, 0.85);
	filter: blur(80px);
	right: -6%;
	top: 12%;
	opacity: 0.8;
}
.rb-blob-3 {
	width: 40vw;
	height: 40vw;
	max-width: 520px;
	max-height: 520px;
	background: rgba(11, 102, 35, 0.06);
	filter: blur(90px);
	right: 6%;
	bottom: -20%;
	opacity: 0.9;
}

.rb-hero-wrap {
	position: relative;
	z-index: 1;
}

.rb-headline {
	margin: 0 0 clamp(24px, 3vw, 52px);
	line-height: 1;
}
.rb-headline .hl-line {
	display: block;
	text-transform: uppercase;
	line-height: 1.05;
}
.rb-it-accent {
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 400;
	font-size: inherit;
	text-transform: none;
	color: var(--green);
	display: inline;
	line-height: inherit;
	letter-spacing: 0;
}

.rb-lede {
	max-width: 54ch;
	margin: 0;
}


/* ─────────────────────────────────────────────────────────────────
   MAIN BAND — two-column: steps left, form right.
   ───────────────────────────────────────────────────────────────── */
.rb-main-band {
	padding-top: clamp(40px, 4vw, 52px);
	padding-bottom: clamp(60px, 8vw, 120px);
}

.rb-main-wrap {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}


/* ─────────────────────────────────────────────────────────────────
   LEFT COLUMN — process cards + trust badges.
   ───────────────────────────────────────────────────────────────── */
.rb-left-col {
	width: 620px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Vertical stack of process cards */
.rb-process-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rb-process-card {
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	overflow: hidden;
}

.rb-process-card-header {
	padding: 10px 30px 8px;
	display: flex;
	align-items: center;
}
.rb-process-card-title {
	font-family: var(--f-sans);
	font-weight: 500;
	font-size: clamp(18px, 1.8vw, 26px);
	line-height: 1.54;
	color: var(--cream);
	margin: 0;
	white-space: nowrap;
}

.rb-process-card-body {
	flex: 1;
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	border: 1px solid rgba(26, 26, 26, 0.3);
	border-top: none;
	border-radius: 0 0 14px 14px;
}

.rb-process-num {
	font-family: var(--f-sans);
	font-weight: 500;
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.1;
	color: var(--ink);
	margin: 0;
}
.rb-process-text {
	font-family: var(--f-sans);
	font-weight: 400;
	font-size: clamp(16px, 1.5vw, 22px);
	line-height: 1.55;
	color: var(--ink-soft, rgba(26, 26, 26, 0.75));
	margin: 0;
}

/* Card header colour variants */
.rb-process-card--green .rb-process-card-header  { background: var(--green); }
.rb-process-card--orange .rb-process-card-header { background: var(--orange); }
.rb-process-card--dark .rb-process-card-header   { background: rgba(26, 26, 26, 0.8); }

/* Green body: frosted white; orange + dark: cream */
.rb-process-card--green .rb-process-card-body {
	background: rgba(255, 255, 255, 0.6);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.rb-process-card--orange .rb-process-card-body,
.rb-process-card--dark .rb-process-card-body {
	background: var(--cream);
}

/* Trust badge pills */
.rb-trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
}
.rb-trust-badge {
	background: var(--white);
	border-radius: 31px;
	padding: 8px 20px;
	font-family: var(--f-sans);
	font-weight: 500;
	font-size: clamp(16px, 1.5vw, 22px);
	line-height: 1.5;
	color: var(--ink);
	white-space: nowrap;
}


/* ─────────────────────────────────────────────────────────────────
   RIGHT COLUMN — contact form.
   ───────────────────────────────────────────────────────────────── */
.rb-right-col {
	flex: 1;
	min-width: 0;
}

.rb-form-wrap {
	display: flex;
	flex-direction: column;
	gap: 78px;
}

/* Fields group + consents group */
.rb-form-upper {
	display: flex;
	flex-direction: column;
	gap: 31px;
}

.rb-fields {
	display: flex;
	flex-direction: column;
	gap: 23px;
}

/* ─── Field wrapper ─── */
.rb-field-wrap {
	position: relative;
}

/* ─── Base field ─── */
.rb-field {
	display: block;
	width: 100%;
	height: 89px;
	padding: 28px 40px 28px 35px;
	background: var(--white);
	border: 1px solid transparent;
	border-radius: 20px;
	font-family: var(--f-sans);
	font-size: clamp(18px, 1.8vw, 24px);
	font-weight: 300;
	color: var(--ink);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, padding-top 0.15s ease, padding-bottom 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	outline: none;
}

/* Hide native placeholder — label serves that role */
.rb-field::placeholder { color: transparent; }

/* Hover (not focused, not disabled) */
.rb-field-wrap:hover .rb-field:not(:focus):not(:disabled) {
	border-color: var(--green);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Focus */
.rb-field:focus {
	border-color: var(--green);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Push text down to make room for floated label */
.rb-field:focus,
.rb-field:not(:placeholder-shown) {
	padding-top: 36px;
	padding-bottom: 14px;
}

/* ─── Floating label ─── */
.rb-label {
	position: absolute;
	left: 40px;
	top: calc(89px / 2);   /* fixed midpoint of the 89px field — immune to wrapper height changes from error messages */
	transform: translateY(-50%);
	font-family: var(--f-sans);
	font-size: clamp(18px, 1.8vw, 24px);
	font-weight: 300;
	color: rgba(26, 26, 26, 0.45);
	pointer-events: none;
	transition: top 0.18s ease, transform 0.18s ease, font-size 0.15s ease, color 0.15s ease;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 90px);
	padding: 5px;
}

/* Label floated (focus or has value) */
.rb-field:focus ~ .rb-label,
.rb-field:not(:placeholder-shown) ~ .rb-label {
	top: 10px;
	transform: none;
	font-size: 16px;
	color: #6c6c6c;
}

/* ─── Error state ─── */
.rb-field-wrap.is-error .rb-field {
	border-color: #ff4f00;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.rb-field-error {
	display: none;
	margin: 0;
	padding: 6px 40px 0;
	font-family: var(--f-sans);
	font-size: 14px;
	font-weight: 300;
	color: #f35b2a;
	line-height: 1.4;
}

.rb-field-wrap.is-error .rb-field-error {
	display: block;
}

/* ─── Disabled ─── */
.rb-field:disabled {
	background: #fafafa;
	border-color: #ccc;
	color: #5f5f5f;
	cursor: not-allowed;
}

/* ─── Select ─── */
.rb-select-wrap {
	position: relative;
}

.rb-field-select {
	padding-right: 72px;
	cursor: pointer;
}

/* Label floats when value is chosen (JS adds .has-value) or on focus */
.rb-select-wrap.has-value .rb-field-select,
.rb-field-select:focus {
	padding-top: 36px;
	padding-bottom: 14px;
}

.rb-select-wrap.has-value .rb-field-select ~ .rb-label,
.rb-field-select:focus ~ .rb-label {
	top: 10px;
	transform: none;
	font-size: 16px;
	color: #6c6c6c;
}

.rb-select-chevron {
	position: absolute;
	right: 28px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: rgba(26, 26, 26, 0.7);
	display: flex;
	align-items: center;
	transition: transform 0.18s ease, color 0.18s ease;
}

.rb-field-select:focus ~ .rb-select-chevron {
	transform: translateY(-50%) rotate(180deg);
	color: var(--green);
}

/* Select has no :placeholder-shown state, so :not(:placeholder-shown) is always
   true — which permanently floats the label via the shared .rb-field rule.
   Explicitly reset to placeholder position when no value is chosen. */
.rb-select-wrap:not(.has-value) .rb-field-select:not(:focus) {
	padding-top: 28px;
	padding-bottom: 28px;
}
.rb-select-wrap:not(.has-value) .rb-field-select:not(:focus) ~ .rb-label {
	top: calc(89px / 2);
	transform: translateY(-50%);
	font-size: clamp(18px, 1.8vw, 24px);
	color: rgba(26, 26, 26, 0.45);
}

/* ─── Textarea (free entry) ─── */
.rb-textarea-wrap {
	position: relative;
}

.rb-field-textarea {
	height: auto;
	min-height: 170px;
	resize: vertical;
	padding-top: 28px;
	padding-bottom: 16px;
	line-height: 1.55;
}

/* Textarea label sits at the top of the content area as a placeholder.
   The shared :focus / :not(:placeholder-shown) rules float it up on fill. */
.rb-textarea-wrap .rb-label {
	top: 28px;
	transform: none;
}

/* Floated position — keep at 18px (higher than the shared 10px) so it
   clears the top padding of the multi-line field. */
.rb-field-textarea:focus ~ .rb-label,
.rb-field-textarea:not(:placeholder-shown) ~ .rb-label {
	top: 18px;
}

/* Character count */
.rb-char-count {
	position: absolute;
	bottom: 16px;
	right: 40px;
	font-family: var(--f-sans);
	font-size: 14px;
	font-weight: 300;
	color: #6c6c6c;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.rb-textarea-wrap:focus-within .rb-char-count {
	opacity: 1;
}

/* Consent checkboxes */
.rb-consents {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rb-consent-row {
	display: flex;
	gap: 21px;
	align-items: flex-start;
	cursor: pointer;
}

.rb-checkbox {
	width: 27px;
	height: 27px;
	flex-shrink: 0;
	border-radius: 5px;
	border: 1.5px solid rgba(80, 80, 79, 0.35);
	background: var(--white);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	position: relative;
	margin-top: 3px;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.rb-checkbox:checked {
	background: var(--green);
	border-color: var(--green);
}
.rb-checkbox:checked::after {
	content: '';
	position: absolute;
	left: 8px;
	top: 4px;
	width: 7px;
	height: 13px;
	border: 2.5px solid var(--white);
	border-top: none;
	border-left: none;
	transform: rotate(45deg);
}
.rb-checkbox:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 2px;
}
.rb-consent-row.is-error .rb-checkbox {
	border-color: #ff4f00;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.rb-consent-text {
	font-family: var(--f-sans);
	font-size: clamp(14px, 1.4vw, 24px);
	font-weight: 400;
	line-height: 1.55;
	color: rgba(80, 80, 79, 0.5);
	margin: 0;
	flex: 1;
}

/* Submit + contact fallback */
.rb-form-lower {
	display: flex;
	flex-direction: column;
	gap: 42px;
}

.rb-contact-fallback {
	font-family: var(--f-sans);
	font-size: clamp(16px, 1.6vw, 24px);
	font-weight: 400;
	line-height: 1.5;
	color: rgba(80, 80, 79, 0.5);
	margin: 0;
}
.rb-contact-prefix {
	color: rgba(80, 80, 79, 0.5);
}
.rb-contact-fallback a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 400;
}
.rb-contact-fallback a:hover {
	color: var(--green);
}

/* Inline form feedback message */
.rb-form-msg {
	padding: 16px 24px;
	border-radius: 12px;
	font-family: var(--f-sans);
	font-size: clamp(15px, 1.4vw, 18px);
	font-weight: 500;
	line-height: 1.5;
	display: none;
	margin-top: -22px;
}
.rb-form-msg.is-success {
	display: block;
	background: rgba(11, 102, 35, 0.07);
	color: var(--green);
	border: 1px solid rgba(11, 102, 35, 0.18);
}
.rb-form-msg.is-error {
	display: block;
	background: rgba(190, 30, 30, 0.06);
	color: #a12222;
	border: 1px solid rgba(190, 30, 30, 0.18);
}


/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
	.rb-left-col {
		width: 500px;
	}
}

@media (max-width: 1000px) {
	.rb-left-col {
		width: 420px;
	}
}

@media (max-width: 900px) {
	.rb-main-wrap {
		flex-direction: column;
		gap: 60px;
	}
	.rb-left-col {
		width: 100%;
	}
	.rb-process-stack {
		display: grid;
		grid-template-columns: 1fr;
		max-width: 600px;
	}
	.rb-trust-badges {
		justify-content: flex-start;
	}
}

@media (max-width: 600px) {
	.rb-field {
		height: 72px;
		padding: 22px 24px;
	}
	.rb-field:focus,
	.rb-field:not(:placeholder-shown) {
		padding-top: 30px;
		padding-bottom: 10px;
	}
	.rb-label {
		left: 24px;
		top: calc(72px / 2);   /* field is 72px tall at this breakpoint */
		max-width: calc(100% - 60px);
	}
	.rb-select-wrap:not(.has-value) .rb-field-select:not(:focus) ~ .rb-label {
		top: calc(72px / 2);
	}
	.rb-field:focus ~ .rb-label,
	.rb-field:not(:placeholder-shown) ~ .rb-label {
		top: 8px;
	}
	.rb-select-wrap.has-value .rb-field-select,
	.rb-field-select:focus {
		padding-top: 30px;
		padding-bottom: 10px;
	}
	.rb-select-wrap.has-value .rb-field-select ~ .rb-label,
	.rb-field-select:focus ~ .rb-label {
		top: 8px;
	}
	.rb-select-chevron {
		right: 20px;
	}
	/* Select: reset to placeholder position at mobile base padding */
	.rb-select-wrap:not(.has-value) .rb-field-select:not(:focus) {
		padding-top: 22px;
		padding-bottom: 22px;
	}
	/* Textarea: placeholder label anchored to mobile padding-top */
	.rb-textarea-wrap .rb-label {
		top: 22px;
		left: 24px;
	}
	.rb-field-textarea:focus ~ .rb-label,
	.rb-field-textarea:not(:placeholder-shown) ~ .rb-label {
		top: 14px;
		left: 24px;
	}
	.rb-field-textarea {
		padding-top: 22px;
		padding-left: 24px;
		padding-right: 24px;
	}
	.rb-field-error {
		padding-left: 24px;
	}
	.rb-char-count {
		right: 24px;
	}
	.rb-trust-badge {
		white-space: normal;
	}
}
