/* Homepage Popup */

.ga-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ga-popup-overlay.is-visible {
	display: flex;
	opacity: 1;
}

.ga-popup {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 60%;
	max-height: 720px;
	padding-block: 62px 0;
	padding-inline: clamp(40px, 8vw, 103px);
	background: #cae6e4;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: ga-popup-in 0.4s ease forwards;
}

@keyframes ga-popup-in {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Close button */
.ga-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: none;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	color: #333;
	transition: background 0.2s ease;
	z-index: 1;
}

.ga-popup__close:hover {
	background: rgba(0, 0, 0, 0.15);
}

/* Image column */
.ga-popup__image {
	flex: 0 0 50%;
	background-size: cover;
	background-position: bottom;
}

.ga-popup__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: bottom;
	display: block;
}

/* Content column */
.ga-popup__content {
	flex: 1;
	padding: 48px 22px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: #122135;
}

.ga-popup__content h2 {
	margin: 0 0 12px;
	font-size: clamp(30px, 8.5vw, 50px);
	line-height: 1.2;
	color: #122135;
}

.ga-popup__content p {
	font-size: clamp(15.747px, 0.984rem + ((1vw - 3.2px) * 0.825), 20px);
	line-height: 1.5;
}

/* Form */
.ga-popup__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 12px;
}

.ga-popup__form select,
.ga-popup__form input[type="email"] {
	width: 100%;
	padding: 12px 18px;
	border-radius: 999px;
	border: none;
	font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.6), 20px);
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
	background-color: #b0cacc;
	color: #122135;
	max-height: 58px;
}

.ga-popup__form input[type="email"]::placeholder {
	color: #122135;
}

.ga-popup__form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	background-size: 20px;
}

.ga-popup__form select:focus,
.ga-popup__form input[type="email"]:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.ga-popup__form button[type="submit"] {
	padding: 20px 32px;
	background: #e94e1d;
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.6), 20px);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
	align-self: flex-start;
}

.ga-popup__form button[type="submit"]:hover {
	background: #b23918;
}

/* Responsive */
@media (max-width: 768px) {
	.ga-popup {
		flex-direction: column;
		max-width: 90%;
		max-height: 90vh;
		overflow-y: auto;
	}

	.ga-popup__image {
		flex: none;
		min-height: 200px;
	}

	.ga-popup__content {
		padding: 32px 24px;
	}
}
