.astra-fog-modal[hidden],
.astra-fog-modal__form[hidden],
.astra-fog-modal__actions[hidden] {
	display: none !important;
}

.has-astra-fog-modal {
	overflow: hidden;
}

.astra-fog-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 20px;
	font-family: inherit;
}

.astra-fog-modal__scrim {
	position: absolute;
	inset: 0;
	background: rgba(11, 15, 23, 0.48);
	backdrop-filter: blur(5px);
}

.astra-fog-modal__panel {
	position: relative;
	width: min(420px, 100%);
	padding: 30px;
	border: 1px solid rgba(255, 255, 255, 0.68);
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)),
		radial-gradient(circle at 14% 12%, rgba(236, 72, 153, 0.16), transparent 34%);
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
	color: #111827;
	text-align: center;
}

.astra-fog-modal__figure {
	position: absolute;
	top: 50%;
	left: -8px;
	z-index: 2;
	width: 120px;
	max-width: none;
	height: auto;
	pointer-events: none;
	transform: translateY(-50%);
}

.astra-fog-modal__eyebrow {
	margin: 0 0 10px;
	color: #111827;
	font-size: 18px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.astra-fog-modal__intro {
	margin: 0 0 18px;
	color: #4b5563;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}

.astra-fog-modal__title {
	margin: 0 0 12px;
	color: #111827;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: 0;
}

.astra-fog-modal__title span {
	display: block;
	margin-bottom: 4px;
	color: #dc2626;
	font-size: 48px;
	font-weight: 900;
	line-height: 0.95;
}

.astra-fog-modal__stage,
.astra-fog-modal__actions,
.astra-fog-modal__form {
	display: grid;
	gap: 10px;
}

.astra-fog-modal__stage {
	grid-template-columns: 1fr;
}

.astra-fog-modal__message {
	min-height: 20px;
	margin: 14px 0 0;
	color: #4b5563;
	font-size: 13px;
	font-weight: 700;
	transition: opacity 320ms ease, transform 320ms ease;
}

.astra-fog-modal__message[data-tone="success"] {
	display: grid;
	gap: 8px;
	margin-top: 18px;
	padding: 0 16px 0;
	color: #0f172a;
	font-size: 15px;
	font-weight: 600;
}

.astra-fog-modal__success-line {
	display: block;
	line-height: 1.35;
}

.astra-fog-modal__success-line--badge {
	color: #dc2626;
	font-size: 34px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0;
}

.astra-fog-modal__success-line--title {
	color: #111827;
	font-size: 22px;
	font-weight: 800;
}

.astra-fog-modal__success-line--copy {
	color: #4b5563;
	font-size: 15px;
	font-weight: 600;
}

.astra-fog-modal__actions {
	grid-template-columns: 1fr;
}

.astra-fog-modal__form {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
}

.astra-fog-modal__button,
.astra-fog-modal__input {
	min-height: 46px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
}

.astra-fog-modal__button {
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.astra-fog-modal__button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.astra-fog-modal__button--primary,
.astra-fog-modal__button--secondary {
	position: relative;
	overflow: hidden;
	border: 2px solid #ffffff;
	border-radius: 12px;
	background-color: #ecd448;
	color: #131313;
	font-weight: 800;
	box-shadow: 0 4px 0 2px #000000;
	transition:
		background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
		color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
	transform 0.22s ease;
}

.astra-fog-modal__button--primary::before,
.astra-fog-modal__button--secondary::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: max(130px, 45%);
	height: 120%;
	background-color: #ff6700;
	transform: translate3d(-180%, -50%, 0) skewX(30deg);
	transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.astra-fog-modal__button--primary:hover:not(:disabled)::before,
.astra-fog-modal__button--secondary:hover:not(:disabled)::before {
	transform: translate3d(360%, -50%, 0) skewX(30deg);
}

.astra-fog-modal__button--primary span,
.astra-fog-modal__button--secondary span {
	position: relative;
	z-index: 1;
}

.astra-fog-modal__button:hover:not(:disabled) {
	transform: translateY(-1px);
}

.astra-fog-modal__button:focus-visible {
	outline: 3px solid rgba(236, 212, 72, 0.58);
	outline-offset: 3px;
}

.astra-fog-modal__button--primary:hover:not(:disabled),
.astra-fog-modal__button--secondary:hover:not(:disabled) {
	background-color: #22c55e;
	border-color: #ffffff;
	color: #ffffff;
	box-shadow: 0 2px 0 2px #166534;
}

.astra-fog-modal__button--primary:hover:not(:disabled)::before,
.astra-fog-modal__button--secondary:hover:not(:disabled)::before {
	transform: translate3d(360%, -50%, 0) skewX(30deg);
}

.astra-fog-modal__button--primary:active:not(:disabled),
.astra-fog-modal__button--secondary:active:not(:disabled) {
	transform: scale(0.9);
	
}

.astra-fog-modal__input {
	width: 100%;
	min-width: 0;
	border: 1px solid #d1d5db;
	padding: 0 13px;
	background: #ffffff;
	color: #111827;
	font-weight: 600;
}

.astra-fog-modal__input:focus {
	border-color: #111827;
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
	outline: none;
}

.astra-fog-modal__message[data-tone="error"] {
	color: #b91c1c;
}

@media (max-width: 480px) {
	.astra-fog-modal {
		padding: 14px;
	}

	.astra-fog-modal__panel {
		padding: 24px 18px;
	}

	.astra-fog-modal__figure {
		left: -6px;
		width: 90px;
	}

	.astra-fog-modal__title {
		font-size: 22px;
	}

	.astra-fog-modal__title span {
		font-size: 36px;
	}

	.astra-fog-modal__actions,
	.astra-fog-modal__form {
		grid-template-columns: 1fr;
	}
}
