/**
 * Hero форма у банері головної.
 */

/* Hero банер: обмежена адекватна висота замість 100vh.
   subtitle + H1 + форма — компактною композицією, без пустки. */
.section-banner.first-section {
	min-height: 0;
	height: auto;
}

.section-banner .hero-caption-grouped {
	position: absolute;
	display: block;
	min-height: 0;
}

.section-banner .hero-caption-grouped > .container {
	width: 100%;
}

.section-banner .hero-caption-grouped .banner-subtitle {
	margin-bottom: 12px;
}

.section-banner .hero-caption-grouped .divider.light {
	margin: 0 0 20px;
}

/* Кнопку «вниз» (scroll-bottom) лишаємо позиційовано над контейнером,
   щоб не «зависала» внизу 100vh. */
.section-banner .hero-caption-grouped .scroll-bottom {
	display: none;
}

body.has-top-bar .section-banner .hero-caption-grouped {
	padding-top: 64px;
}

@media (max-width: 991px) {
	.section-banner .hero-caption-grouped {
		padding: 72px 0 56px;
	}
}

@media (max-width: 767px) {
	.section-banner .hero-caption-grouped {
		padding: 56px 0 40px;
	}
}

.hero-form .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hero-form {
	position: relative;
	z-index: 2;
	margin: 0;
	width: 100%;
	max-width: 420px;
	margin-left: auto;
	padding: 24px;
	background: rgba(15, 15, 15, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	text-align: left;
}

.hero-form-heading {
	margin: 0 0 16px;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.hero-form-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	align-items: stretch;
}

.hero-form input[type="text"],
.hero-form input[type="tel"] {
	width: 100%;
	min-height: 54px;
	padding: 0 18px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.95);
	color: #1a1a1a;
	font: inherit;
	font-size: 16px;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-form input::placeholder {
	color: rgba(0, 0, 0, 0.55);
}

.hero-form input:focus {
	outline: none;
	border-color: #fff;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.hero-form input[aria-invalid="true"] {
	border-color: #ff7676;
	box-shadow: 0 0 0 3px rgba(255, 118, 118, 0.18);
}

.hero-form button[type="submit"] {
	width: 100%;
	min-height: 54px;
	margin-top: 4px;
	white-space: nowrap;
}

.hero-form button[aria-busy="true"] {
	opacity: 0.7;
	cursor: progress;
}

.hero-form-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.hero-form-status {
	margin: 12px 0 0;
	min-height: 1.2em;
	font-size: 14px;
	color: #fff;
}

.hero-form-status[data-state="error"] {
	color: #ff9a9a;
}

.hero-form-status[data-state="success"] {
	color: #b9e7c5;
}

@media (max-width: 991px) {
	.hero-form {
		max-width: 100%;
		margin: 24px 0 0;
		padding: 20px;
	}
}

@media (max-width: 767px) {
	.hero-form {
		padding: 16px;
	}
	.hero-form-heading {
		font-size: 16px;
	}
	.hero-form input[type="text"],
	.hero-form input[type="tel"] {
		min-height: 50px;
		font-size: 15px;
	}
	.hero-form button[type="submit"] {
		min-height: 50px;
	}
}
