/* Rijschool Oude Maas – Tarieven-hero (v2): foto, titel + proefles-kaart (navigatie: losse ROM · Header-widget) */

.rom-thero {
	position: relative;
	display: flex;
	flex-direction: column;
	color: #fff;
	overflow: hidden;
	background: var(--rom-thero-bg, #003c64);
}

.rom-thero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
}

.rom-thero__ov {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.rom-thero__ov--h {
	background: linear-gradient(90deg, var(--rom-thero-ov-left, rgba(0, 60, 100, .9)) 0%, var(--rom-thero-ov-mid, rgba(0, 86, 137, .6)) 55%, var(--rom-thero-ov-right, rgba(0, 86, 137, .45)) 100%);
}

.rom-thero__ov--v {
	background: linear-gradient(180deg, rgba(0, 60, 100, .45) 0%, rgba(0, 60, 100, 0) 30%, var(--rom-thero-ov-bottom, rgba(0, 45, 80, .88)) 100%);
}

/* Inhoud */
.rom-thero__main {
	position: relative;
	z-index: 2;
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
	padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 72px) clamp(72px, 9vw, 120px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	animation: rom-fadein .8s cubic-bezier(.2, .8, .2, 1) both;
}

.rom-thero__text { display: flex; flex-direction: column; gap: 22px; max-width: 620px; transform: translate(var(--rom-thero-text-x, 0px), var(--rom-thero-text-y, 0px)); }

.rom-thero__title {
	margin: 0;
	font-family: 'Outfit', sans-serif;
	font-weight: 800;
	font-size: clamp(42px, 5.6vw, 80px);
	line-height: .95;
	letter-spacing: -.04em;
	text-wrap: balance;
	color: var(--rom-thero-title, #fff);
}

.rom-thero__hl { color: var(--rom-thero-title-hl, #5bc0f0); white-space: nowrap; }

.rom-thero__subtitle { margin: 0; font-size: 17px; line-height: 1.7; color: var(--rom-thero-subtitle, rgba(255, 255, 255, .8)); max-width: 48ch; text-wrap: pretty; }

.rom-thero__checks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px 24px;
	font-size: 15px;
	font-weight: 600;
	color: var(--rom-thero-check-text, #fff);
}

.rom-thero__check { display: flex; align-items: center; gap: 10px; }
.rom-thero__check-ico { width: 22px; height: 22px; border-radius: 50%; background: var(--rom-thero-check-bg, #e5007d); color: var(--rom-thero-check-ico, #fff); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }

.rom-thero__cta {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--rom-thero-cta-text, #fff);
	border: 1px solid var(--rom-thero-cta-border, rgba(255, 255, 255, .35));
	background: var(--rom-thero-cta-bg, rgba(15, 27, 45, .35));
	font-weight: 700;
	padding: 10px 10px 10px 24px;
	border-radius: 999px;
	font-size: 15px;
	font-family: 'Outfit', sans-serif;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background .2s, color .2s;
}

.rom-thero__cta:hover { background: var(--rom-thero-cta-bg-hover, #fff); color: var(--rom-thero-cta-text-hover, #0f1b2d); }
.rom-thero__cta-ico { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); display: grid; place-items: center; font-size: 15px; }
.rom-thero__cta:hover .rom-thero__cta-ico { border-color: rgba(15, 27, 45, .25); }

/* Proefles-kaart */
.rom-thero__card {
	justify-self: end;
	width: 100%;
	max-width: 460px;
	background: var(--rom-thero-card-bg, #fff);
	color: var(--rom-thero-card-text, #0f1b2d);
	border-radius: 26px;
	padding: 26px;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
	display: flex;
	flex-direction: column;
	gap: 14px;
	transform: translate(var(--rom-thero-card-x, 0px), var(--rom-thero-card-y, 0px));
}

.rom-thero__card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

.rom-thero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--rom-thero-badge-border, #cfe6f6);
	color: var(--rom-thero-badge-text, #0091d5);
	background: var(--rom-thero-badge-bg, #f2f8fc);
	border-radius: 999px;
	padding: 7px 13px;
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-weight: 700;
}

.rom-thero__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rom-thero__pricebox { display: flex; align-items: flex-end; gap: 8px; }
.rom-thero__price { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 38px; line-height: .9; letter-spacing: -.04em; color: var(--rom-thero-price, #e5007d); }
.rom-thero__price-note { font-size: 11px; line-height: 1.3; color: var(--rom-thero-price-note, #8a94a6); padding-bottom: 3px; }

.rom-thero__form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.rom-thero__form[hidden] { display: none; }
.rom-thero__form-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1.15; }
.rom-thero__form-sub { font-size: 13px; color: var(--rom-thero-form-sub, #5a6b7a); margin-top: 4px; }
.rom-thero__err { background: #fff0f6; color: var(--rom-thero-error, #e5007d); border-radius: 10px; padding: 9px 12px; font-size: 12px; font-weight: 600; }
.rom-thero__err[hidden] { display: none; }

.rom-thero__field { position: relative; display: block; margin: 0; }
.rom-thero__field > span { position: absolute; left: 14px; top: 8px; font-size: 10.5px; font-weight: 700; color: var(--rom-thero-input-label, #0b68a0); letter-spacing: .04em; pointer-events: none; }
.rom-thero__field input {
	width: 100%;
	background: var(--rom-thero-input-bg, #f4f7fa);
	border: 1.5px solid transparent;
	border-radius: 12px;
	padding: 24px 14px 9px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: var(--rom-thero-input-text, #0f1b2d);
	outline: none;
	box-shadow: none;
	margin: 0;
	line-height: 1.3;
	transition: border-color .2s, background .2s;
}

.rom-thero__field input:focus { border-color: var(--rom-thero-input-border-focus, #0091d5); background: var(--rom-thero-input-bg-focus, #fff); }
.rom-thero__field.is-error input { border-color: var(--rom-thero-error, #e5007d); }
.rom-thero__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.rom-thero__tb {
	cursor: pointer;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 13px;
	border: 1.5px solid var(--rom-thero-tb-border, #d6dee8);
	border-radius: 12px;
	padding: 12px;
	transition: all .2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #fff;
	color: var(--rom-thero-tb-text, #0f1b2d);
	line-height: 1.2;
}

.rom-thero__tb.is-active { background: var(--rom-thero-tb-active-bg, #0f1b2d); color: var(--rom-thero-tb-active-text, #fff); border-color: var(--rom-thero-tb-active-bg, #0f1b2d); }

.rom-thero__submit {
	cursor: pointer;
	font-family: 'Outfit', sans-serif;
	width: 100%;
	border: 0;
	border-radius: 12px;
	padding: 15px 20px;
	background: linear-gradient(135deg, var(--rom-thero-submit-bg1, #e5007d), var(--rom-thero-submit-bg2, #c4006a));
	color: var(--rom-thero-submit-text, #fff);
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 14px 30px rgba(229, 0, 125, .3);
	transition: filter .2s, opacity .2s;
	line-height: 1.2;
}

.rom-thero__submit:hover { filter: brightness(.92); }
.rom-thero__submit[disabled] { opacity: .6; cursor: wait; }
.rom-thero__hp { position: absolute !important; left: -9999px !important; opacity: 0; width: 0; height: 0; overflow: hidden; }

.rom-thero__success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 0; }
.rom-thero__success[hidden] { display: none; }
.rom-thero__success-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--rom-thero-success-ico-bg, rgba(0, 145, 213, .15)); color: var(--rom-thero-success-ico, #0091d5); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.rom-thero__success-text { margin: 0; font-size: 13.5px; color: #5a6b7a; line-height: 1.6; }
.rom-thero__reset { cursor: pointer; margin-top: 6px; background: none; border: 0; color: #5a6b7a; font-size: 12.5px; font-weight: 600; font-family: inherit; padding: 0; }
.rom-thero__reset:hover { color: #0f1b2d; }

.rom-thero__card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--rom-thero-foot-line, #e1e8ef); font-size: 12px; color: var(--rom-thero-foot-text, #5a6b7a); }
.rom-thero__stars { color: var(--rom-thero-foot-stars, #ffb400); letter-spacing: 1px; margin-right: 6px; }

@media (max-width: 760px) {
	.rom-thero__card { justify-self: stretch; max-width: none; }
	.rom-thero__row { grid-template-columns: 1fr; }
	.rom-thero__hl { white-space: normal; }
}

/* Highlight als gradient (ook op mobiel). Zonder tweede kleur = één kleur. */
.rom-thero__hl--gradient {
	background-image: linear-gradient(var(--rom-thero-title-hl-angle, 90deg), var(--rom-thero-title-hl, #5bc0f0) 0%, var(--rom-thero-title-hl2, var(--rom-thero-title-hl, #5bc0f0)) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	text-shadow: none;
}
