.avg-gate,
.avg-gate * {
	box-sizing: border-box;
}

.avg-gate[hidden] {
	display: none !important;
}

.avg-gate {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	color: #252522;
	font-family: "Inter", Sans-serif;
}

.avg-gate__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 39, 35, 0.68);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.avg-gate__panel {
	position: relative;
	width: min(100%, 560px);
	padding: clamp(30px, 6vw, 58px) clamp(22px, 6vw, 64px) 34px;
	border: 1px solid rgba(212, 165, 116, 0.58);
	border-radius: 3px;
	background: #fffefa;
	box-shadow: 0 24px 80px rgba(18, 28, 23, 0.28);
	text-align: center;
	animation: avg-gate-arrive 260ms ease-out both;
}

.avg-gate__flower {
	/* width: 76px;
	height: 76px; */
	margin: 0 auto 14px;
}

.avg-gate__flower img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.avg-gate__eyebrow {
	margin: 0 0 13px;
	color: #b98552;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
}

.avg-gate__title {
	margin: 0;
	color: #171816;
	font-family:"Playfair Display", Sans-serif;;
	font-size: clamp(30px, 5vw, 42px);
	font-weight: 600;
	line-height: 1.15;
}

.avg-gate__description {
	max-width: 380px;
	margin: 14px auto 26px;
	color: #777873;
	font-size: 15px;
	line-height: 1.65;
}

.avg-gate__date-fields {
	display: grid;
	grid-template-columns: 1fr 1fr 1.5fr;
	gap: 12px;
}

.avg-gate__date-field {
	display: grid;
	gap: 7px;
	color: #777873;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-align: left;
}

.avg-gate__date-field input {
	width: 100%;
	min-width: 0;
	height: 54px;
	padding: 0 12px;
	border: 1px solid #dedbd4;
	border-radius: 2px;
	background: #fff;
	color: #252522;
	font: inherit;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-align: center;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.avg-gate__date-field input::placeholder {
	color: #b6b2aa;
	opacity: 1;
}

.avg-gate__date-field input:focus {
	border-color: #d4a574;
	box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
	outline: 0;
}

.avg-gate__error {
	min-height: 20px;
	margin: 10px 0 3px;
	color: #a43d31;
	font-size: 13px;
	line-height: 1.5;
}

.avg-gate__error:empty {
	visibility: hidden;
}

.avg-gate__submit {
	width: 100%;
	min-height: 52px;
	margin-top: 3px;
	border: 1px solid #347d6b !important;
	border-radius: 2px;
	background: #347d6b !important;
	color: #fffefa !important;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.avg-gate__submit:hover,
.avg-gate__submit:focus-visible {
	border-color: #286a59 !important;
	background: #286a59 !important;
}

.avg-gate__submit:active {
	transform: translateY(1px);
}

.avg-gate__submit:focus-visible {
	outline: 3px solid rgba(212, 165, 116, 0.45);
	outline-offset: 3px;
}

.avg-gate__footnote {
	margin: 19px 0 0;
	color: #96958e;
	font-size: 11px;
	line-height: 1.5;
}

@keyframes avg-gate-arrive {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 480px) {
	.avg-gate {
		padding: 16px;
	}

	.avg-gate__panel {
		padding: 30px 21px 25px;
	}

	.avg-gate__date-fields {
		gap: 8px;
	}

	.avg-gate__date-field input {
		height: 50px;
		padding: 0 7px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.avg-gate__panel {
		animation: none;
	}

	.avg-gate__date-field input,
	.avg-gate__submit {
		transition: none;
	}
}
