/* ---------------- Language switch ---------------- */
.rrbp-lang-switch {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.rrbp-lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 2px solid #d7dbe0;
	border-radius: 999px;
	background: #fff;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	transition: all .15s ease;
}
.rrbp-lang-btn:hover {
	border-color: #c8102e;
	color: #c8102e;
}
.rrbp-lang-btn.active {
	background: #c8102e;
	border-color: #c8102e;
	color: #fff;
}
.rrbp-flag {
	font-size: 16px;
}

/* ---------------- Hero banner ---------------- */
.rrbp-hero {
	--rrbp-accent: #c8102e;
	--rrbp-dark: #14243c;
	background: linear-gradient(135deg, #14243c 0%, #1f3a5f 100%);
	color: #fff;
	border-radius: 18px;
	padding: 28px;
	margin: 0 0 32px;
	box-sizing: border-box;
	overflow: hidden;
}
.rrbp-hero * {
	box-sizing: border-box;
}
.rrbp-hero .rrbp-lang-btn {
	background: rgba(255,255,255,.12);
	border-color: rgba(255,255,255,.3);
	color: #fff;
}
.rrbp-hero .rrbp-lang-btn.active {
	background: #fff;
	color: #14243c;
	border-color: #fff;
}

.rrbp-hero-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 32px;
	align-items: center;
}
/* Text left, image right on desktop */
.rrbp-hero-text { order: 1; }
.rrbp-hero-media { order: 2; }

.rrbp-hero-title {
	font-size: clamp( 26px, 4vw, 44px );
	line-height: 1.15;
	margin: 0 0 12px;
	font-weight: 800;
	color: #fff;
}
.rrbp-hero-desc {
	font-size: 16px;
	line-height: 1.7;
	opacity: .92;
	margin: 0 0 18px;
}
.rrbp-hero-benefits h3 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin: 0 0 10px;
	color: #ffd166;
}
.rrbp-hero-benefits ul {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
}
.rrbp-hero-benefits li {
	position: relative;
	padding-left: 24px;
	font-size: 15px;
	line-height: 1.5;
}
.rrbp-hero-benefits li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: #ffd166;
	font-weight: 700;
}
.rrbp-hero-cta {
	display: inline-block;
	background: var(--rrbp-accent);
	color: #fff;
	padding: 14px 34px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	transition: transform .15s ease, box-shadow .15s ease;
}
.rrbp-hero-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(200,16,46,.35);
	color: #fff;
}

.rrbp-hero-media img {
	width: 100%;
	height: 100%;
	max-height: 380px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}
.rrbp-hero-placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	background: rgba(255,255,255,.08);
	border: 2px dashed rgba(255,255,255,.25);
}

/* Mobile: image on top, text below */
@media (max-width: 767px) {
	.rrbp-hero {
		padding: 20px;
	}
	.rrbp-hero-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.rrbp-hero-media { order: 1; }
	.rrbp-hero-text  { order: 2; }
	.rrbp-hero-benefits ul {
		grid-template-columns: 1fr;
	}
	.rrbp-lang-switch {
		justify-content: center;
	}
	.rrbp-hero-cta {
		display: block;
		text-align: center;
	}
}

/* ---------------- Notices ---------------- */
.rrbp-notice {
	padding: 16px 18px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.6;
}
.rrbp-notice-success {
	background: #e7f6ec;
	border-left: 5px solid #16a34a;
	color: #14532d;
}
.rrbp-notice-success strong {
	display: block;
	font-size: 17px;
	margin-bottom: 4px;
}
.rrbp-notice-error {
	background: #fdecec;
	border-left: 5px solid #dc2626;
	color: #7f1d1d;
}
.rrbp-notice-error ul {
	margin: 0;
	padding-left: 20px;
}

/* ---------------- Form ---------------- */
.rrbp-form-wrap {
	max-width: 860px;
	margin: 0 auto 40px;
	box-sizing: border-box;
}
.rrbp-form-wrap * {
	box-sizing: border-box;
}
.rrbp-form-title {
	font-size: 26px;
	margin: 0 0 6px;
}
.rrbp-form-intro {
	color: #666;
	margin: 0 0 24px;
	font-size: 15px;
}

.rrbp-fieldset {
	border: 1px solid #e3e6ea;
	border-radius: 12px;
	padding: 20px 22px 6px;
	margin: 0 0 22px;
	background: #fff;
}
.rrbp-fieldset legend {
	font-weight: 700;
	font-size: 15px;
	padding: 0 10px;
	color: #14243c;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.rrbp-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}
@media (max-width: 640px) {
	.rrbp-grid-2 {
		grid-template-columns: 1fr;
	}
}

.rrbp-f {
	margin-bottom: 16px;
}
.rrbp-f label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: #24303f;
}
.rrbp-f input[type="text"],
.rrbp-f input[type="tel"],
.rrbp-f input[type="email"],
.rrbp-f input[type="url"],
.rrbp-f input[type="date"],
.rrbp-f input[type="file"],
.rrbp-f select,
.rrbp-f textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #ccd2d9;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.rrbp-f input:focus,
.rrbp-f select:focus,
.rrbp-f textarea:focus {
	outline: none;
	border-color: #c8102e;
	box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
.rrbp-f input[type="file"] {
	padding: 9px;
	background: #fafbfc;
}

.rrbp-req {
	color: #dc2626;
	font-weight: 700;
}
.rrbp-opt {
	color: #94a3b8;
	font-weight: 400;
	font-size: 12px;
}

.rrbp-file-hint {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 14px;
	background: #f1f5f9;
	padding: 8px 12px;
	border-radius: 6px;
}

/* Conditional fields: hidden instantly by JS, no reload */
[data-rrbp-foreign-only].rrbp-hidden,
[data-rrbp-japanese-only].rrbp-hidden {
	display: none !important;
}

/* Honeypot must be invisible to humans but present in the DOM */
.rrbp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rrbp-submit-row {
	margin-top: 8px;
	text-align: center;
}
.rrbp-submit {
	background: #c8102e;
	color: #fff;
	border: none;
	padding: 15px 48px;
	font-size: 17px;
	font-weight: 700;
	border-radius: 999px;
	cursor: pointer;
	font-family: inherit;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.rrbp-submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(200,16,46,.32);
}
.rrbp-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.rrbp-field-error {
	border-color: #dc2626 !important;
}
.rrbp-inline-error {
	color: #dc2626;
	font-size: 13px;
	margin-top: 4px;
}
