/**
 * GDPR / consent surface polish — forms, marketing gates, notices.
 * Loaded on every front request with cookie consent CSS.
 */

/* ---- Form status notices (contact redirect) ---- */
.rwl-form-notice {
	margin: 0 0 1.1rem;
	padding: 0.85rem 1rem;
	border-radius: 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.45;
	font-weight: 500;
}

.rwl-form-notice--ok {
	background: color-mix(in srgb, #0d9488 10%, #f0fdfa);
	border: 1px solid color-mix(in srgb, #0d9488 28%, transparent);
	color: #0f5c56;
}

.rwl-form-notice--err {
	background: color-mix(in srgb, #dc2626 8%, #fef2f2);
	border: 1px solid color-mix(in srgb, #dc2626 22%, transparent);
	color: #991b1b;
}

/* ---- GDPR consent checkbox row ---- */
.rwl-gdpr-consent,
.ds2-page .rwl-gdpr-consent,
.form-volunteer__gdpr {
	display: block;
	margin: 0.85rem 0 0;
	padding: 0.85rem 1rem;
	border-radius: 0.75rem;
	border: 1px solid color-mix(in srgb, var(--renewal-blue, #0073ff) 16%, #e2e8f0);
	background: color-mix(in srgb, var(--renewal-blue, #0073ff) 5%, #f8fafc);
	box-sizing: border-box;
}

.rwl-gdpr-consent label,
.ds2-page .rwl-gdpr-consent label,
.form-volunteer__gdpr label {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	font-weight: 400;
	color: #334155;
	cursor: pointer;
}

.rwl-gdpr-consent input[type='checkbox'],
.form-volunteer__gdpr input[type='checkbox'] {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin: 0.15rem 0 0;
	accent-color: var(--renewal-blue, #0073ff);
	cursor: pointer;
}

.rwl-gdpr-consent a,
.form-volunteer__gdpr a {
	color: var(--renewal-blue, #0073ff);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--renewal-blue, #0073ff) 35%, transparent);
}

.rwl-gdpr-consent a:hover,
.form-volunteer__gdpr a:hover {
	border-bottom-color: var(--renewal-blue, #0073ff);
}

/* Contact: keep legacy .ct-consent note quieter under the checkbox */
.ds2-page .ct-consent.ct-consent--links,
.ct-consent.ct-consent--links {
	margin-top: 0.65rem;
	padding: 0.55rem 0.75rem;
	background: transparent;
	border: none;
	border-left: 2px solid color-mix(in srgb, var(--renewal-blue, #0073ff) 28%, transparent);
	border-radius: 0;
}

.ds2-page .ct-consent.ct-consent--links p,
.ct-consent.ct-consent--links p {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #64748b;
}

/* ---- RD Station marketing gate ---- */
.rwl-rd-station-form[data-rwl-consent-gate='marketing'] {
	min-height: 8rem;
}

.rwl-rd-gate {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1.25rem 1.35rem;
	border-radius: 0.85rem;
	border: 1px dashed color-mix(in srgb, var(--renewal-blue, #0073ff) 32%, #cbd5e1);
	background:
		linear-gradient(165deg, #ffffff 0%, #f7fbff 60%, #eef6ff 100%);
	box-sizing: border-box;
}

.rwl-rd-gate__label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--renewal-blue, #0073ff) 10%, #fff);
	color: #1e3a5f;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.rwl-rd-gate__text {
	margin: 0;
	max-width: 36rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #3a4f58;
}

.rwl-rd-gate__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.85rem;
	margin-top: 0.15rem;
}

.rwl-rd-gate__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--renewal-blue, #0073ff);
	background: var(--renewal-blue, #0073ff);
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: filter 0.2s ease;
}

.rwl-rd-gate__btn:hover {
	filter: brightness(0.96);
	color: #fff !important;
}

.rwl-rd-gate__link {
	color: var(--renewal-blue, #0073ff) !important;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--renewal-blue, #0073ff) 35%, transparent);
}

.rwl-rd-gate__link:hover {
	border-bottom-color: var(--renewal-blue, #0073ff);
}

/* Legacy single-line gate (if any remains) */
.rwl-rd-station-form__consent {
	margin: 0;
	padding: 1rem 1.15rem;
	border-radius: 0.75rem;
	border: 1px dashed color-mix(in srgb, var(--renewal-blue, #0073ff) 28%, #cbd5e1);
	background: #f8fafc;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #3a4f58;
}

.rwl-rd-station-form__consent a {
	color: var(--renewal-blue, #0073ff);
	font-weight: 600;
}

/* Honeypot never tabbable visually */
.rwl-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	pointer-events: none !important;
}
