:root {
	--primary-blue: #1b365d;
	--blue-light: #a5c6e4;
	--font-light: #efefef;
	--accent-yellow: #ffb703;
	--card-gray: #fff;
	--gray-light: #adb2ba;
	--bg-hero: rgba(247, 249, 250, 0.1);
	--shadow: 0 4px 32px rgba(27, 54, 93, 0.13);
	--radius: 16px;
}

html,
body {
	margin: 0;
	padding: 0;
	font-family: 'Poppins', Arial, sans-serif;
	background: var(--bg-hero);
	color: var(--font-light);
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-image: url('./bg_radarpx_pre_launch_form_blue.webp');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-grow: 1;
	min-height: 100%;
	padding: 3vw 2vw;
	background: var(--bg-hero);
	box-sizing: content-box;
	gap: 3vw;
}

.bg-overlay {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.2);
}

.hero-left {
	flex: 1 1 380px;
	max-width: 582px;
	z-index: 2;
}

.logo {
	display: block;
	margin-bottom: 26px;
}

.logo img {
	display: block;
}

.logo span {
	background: var(--primary-blue);
	color: #fff;
	padding: 0.14em 0.48em;
	border-radius: 8px;
	font-size: 1em;
	margin-left: 0.18em;
}

.hero-title-container {
	margin-bottom: 24px;
}

.hero-title {
	font-size: 3rem;
	line-height: 1.2;
	font-weight: 700;
	color: var(--accent-yellow);
	margin: 0;
}

.rotating-text {
	color: var(--font-light);
	padding-right: 4px;
	border-right: 4px solid var(--accent-yellow);
	transition: opacity 0.4s;
	opacity: 1;
	animation: blink-cursor 1.2s steps(1) infinite;
}

.hero-intro {
	font-size: 18px;
	font-weight: 400;
	margin-bottom: 32px;
	color: var(--font-light);
}

.hero-intro ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.hero-intro ul li:not(:last-child) {
	margin-bottom: 16px;
}

.hero-intro ul li img {
	margin-right: 16px;
	vertical-align: middle;
}

.hero-right {
	flex: 1 1 340px;
	max-width: 400px;
	display: flex;
	justify-content: center;
	z-index: 2;
}

.form-card {
	background: var(--card-gray);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 2.2rem 1.6rem 2rem 1.6rem;
	min-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
	box-sizing: border-box;
}

.form-card h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--primary-blue);
	margin-bottom: 0.8rem;
	margin-top: -0.5rem;
}

.form-card p {
	color: var(--primary-blue);
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

label {
	font-weight: 600;
	color: var(--primary-blue);
	font-size: 1rem;
}

input {
	padding: 0.58rem 0.8rem;
	border-radius: 8px;
	border: 1px solid var(--blue-light);
	font-size: 1rem;
	background: #f7f9fc;
	outline: none;
	transition: border 0.2s;
}

input:focus {
	border-color: var(--primary-blue);
}

input::placeholder {
	color: var(--gray-light);
}

button {
	margin-top: 0.8rem;
	padding: 0.82rem 0;
	background: var(--accent-yellow);
	color: var(--primary-blue);
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	box-shadow: 0 1px 6px #eee;
}

.error-tooltip {
	color: red;
	font-size: 0.875rem;
	display: none;
}

.input-error {
	border-color: red !important;
}

button:disabled {
	opacity: 0.3;
	pointer-events: none;
}

button:enabled {
	opacity: 1;
	pointer-events: auto;
}

@keyframes blink-cursor {
	0%,
	50% {
		border-right-color: var(--accent-yellow);
	}
	51%,
	100% {
		border-right-color: transparent;
	}
}

@media (max-width: 768px) {
	.hero {
		flex-direction: column;
		padding: 2rem 1rem;
	}

	.hero-left,
	.hero-right {
		flex: 0 0 auto;
		max-width: 100%;
	}

	.hero-title-container {
		text-align: center;
	}

	.hero-title {
		font-size: 2.5rem;
	}

	.hero-intro {
		text-align: center;
		font-size: 1.25rem;
		max-width: 100%;
	}

	.logo {
		display: flex;
		justify-content: center;
		margin-bottom: 1.5rem;
	}

	.form-card {
		width: 100%;
		min-width: 500px;
	}
}

@media (max-width: 480px) {
	.hero {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
	}

	.hero-left,
	.hero-right {
		flex: 1 1 auto;
		width: 100%;
	}

	.hero-title {
		font-size: 2rem;
	}

	.hero-intro {
		font-size: 1rem;
	}

	.form-card {
		padding: 2rem 1rem;
		margin-bottom: 4rem;
		min-width: auto;
	}

	input,
	button {
		font-size: 1rem;
	}
}
