.mhb-contact-stage {
	position: relative;
}

.mhb-postcard-send {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
}

.mhb-postcard-send[hidden] {
	display: none;
}

.mhb-postcard-send__viewport {
	position: absolute;
	top: var(--mhb-postcard-top, 0);
	left: var(--mhb-postcard-left, 0);
	width: var(--mhb-postcard-width, 100%);
	height: var(--mhb-postcard-height, 100%);
}

.mhb-postcard-send__card {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 6px;
	background: var(--wp--preset--color--cream, #FFFDF8);
	overflow: hidden;
	box-shadow: 0 16px 36px rgba(15, 49, 75, 0.18), 0 2px 6px rgba(15, 49, 75, 0.08);
	display: grid;
	grid-template-columns: 1fr 1fr;
	font-family: var(--wp--preset--font-family--cormorant-garamond, Georgia, serif);
	color: var(--wp--preset--color--navy, #0F314B);
	transform-origin: center center;
	will-change: transform, opacity;
}

.mhb-postcard-send__photo {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--sand, #E8DDCB);
	border-right: 1px dashed color-mix(in srgb, var(--wp--preset--color--sand, #E8DDCB) 80%, var(--wp--preset--color--navy, #0F314B));
}

.mhb-postcard-send__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.85) contrast(0.95);
}

.mhb-postcard-send__photo-caption {
	position: absolute;
	left: 0;
	top: 66.6%;
	transform: translateY(-50%);
	padding: 6px 12px;
	font-family: var(--wp--preset--font-family--cormorant-garamond, Georgia, serif);
	font-style: italic;
	font-size: 16px;
	color: var(--wp--preset--color--cream, #FFFDF8);
	background: color-mix(in srgb, var(--wp--preset--color--navy, #0F314B) 70%, transparent);
	border-radius: 3px;
	letter-spacing: 0.02em;
}

.mhb-postcard-send__content {
	position: relative;
	padding: 16px 14px;
	display: grid;
	grid-template-rows: 1fr auto auto;
	gap: 6px;
	background:
		radial-gradient(140% 100% at 100% 0%, rgba(191, 163, 107, 0.10), transparent 60%),
		var(--wp--preset--color--cream, #FFFDF8);
}

.mhb-postcard-send__address {
	text-align: center;
	font-size: 14px;
	line-height: 1.45;
	align-self: center;
}

.mhb-postcard-send__to {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
}

.mhb-postcard-send__address-lines {
	margin: 0;
	font-size: 13px;
	color: color-mix(in srgb, var(--wp--preset--color--navy, #0F314B) 70%, white);
}

.mhb-postcard-send__note {
	font-style: italic;
	font-size: 13px;
	line-height: 1.3;
	white-space: pre-wrap;
	align-self: start;
	overflow: hidden;
}

.mhb-postcard-send__note p {
	margin: 0 0 2px;
}

.mhb-postcard-send__signature {
	justify-self: end;
	font-style: italic;
	font-size: 16px;
	font-weight: 600;
	transform: rotate(-2deg);
}

.mhb-postcard-send__postmark {
	position: absolute;
	top: 8%;
	right: 6%;
	width: 32%;
	max-width: 120px;
	height: auto;
	opacity: 0;
	transform: rotate(6deg) scale(1.4);
	mix-blend-mode: multiply;
	pointer-events: none;
}

.mhb-postcard-send__postmark.is-shown {
	animation: mhb-postcard-postmark 0.55s ease-out forwards;
}

.mhb-postcard-send__postmark.is-pulsing {
	animation: mhb-postcard-postmark-pulse 1.2s ease-in-out infinite;
}

@keyframes mhb-postcard-postmark {
	to {
		opacity: 0.85;
		transform: rotate(4deg) scale(1);
	}
}

@keyframes mhb-postcard-postmark-pulse {
	0%, 100% { opacity: 0.85; }
	50% { opacity: 0.55; }
}

.mhb-contact-form button[type="submit"][aria-busy="true"] {
	cursor: progress;
}

.mhb-contact-form button[type="submit"][aria-busy="true"]::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 10px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -2px;
	animation: mhb-postcard-spin 0.8s linear infinite;
}

@keyframes mhb-postcard-spin {
	to { transform: rotate(360deg); }
}

.mhb-postcard-send__confirmation {
	position: relative;
	margin-top: var(--wp--preset--spacing--30, 1.5rem);
	padding: var(--wp--preset--spacing--40, 2rem);
	border-radius: 8px;
	background: var(--wp--preset--color--parchment, #F1EADF);
	color: var(--wp--preset--color--ink, #25211D);
	box-shadow: 0 8px 24px rgba(15, 49, 75, 0.10);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.mhb-postcard-send__confirmation[hidden] {
	display: none;
}

.mhb-postcard-send__confirmation.is-shown {
	opacity: 1;
	transform: translateY(0);
}

.mhb-postcard-send__confirmation h2 {
	margin: 0 0 0.4rem;
	font-family: var(--wp--preset--font-family--cormorant-garamond, Georgia, serif);
	font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
	color: var(--wp--preset--color--navy, #0F314B);
}

.mhb-postcard-send__confirmation p {
	margin: 0;
	color: var(--wp--preset--color--ink-muted, #6F675D);
}

@media (max-width: 640px) {
	.mhb-postcard-send__content {
		padding: 12px 10px;
		grid-template-rows: 1fr;
		gap: 0;
	}

	.mhb-postcard-send__note,
	.mhb-postcard-send__signature {
		display: none;
	}

	.mhb-postcard-send__address {
		align-self: center;
		text-align: center;
	}

	.mhb-postcard-send__to {
		font-size: 17px;
	}

	.mhb-postcard-send__address-lines {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mhb-postcard-send__card {
		transform: none !important;
	}

	.mhb-postcard-send__postmark {
		animation: none !important;
		opacity: 0.85 !important;
		transform: rotate(4deg) !important;
	}

	.mhb-postcard-send__confirmation {
		transition: opacity 0.25s ease-out;
		transform: none;
	}
}
