*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	color: #2c1822;
	font-family: "Outfit", "Segoe UI", sans-serif;
	font-size: 1.05rem;
	line-height: 1.5;
	background-color: #fff4f7;
	background-image:
		radial-gradient(circle at 8% 12%, rgba(244, 183, 200, 0.55), transparent 26%),
		radial-gradient(circle at 92% 0%, rgba(231, 194, 122, 0.28), transparent 22%),
		radial-gradient(circle at 86% 88%, rgba(242, 183, 200, 0.45), transparent 28%),
		radial-gradient(circle at 0% 80%, rgba(255, 228, 236, 0.9), transparent 24%);
}

h1,
h2,
.brand span {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.08;
}

h1 {
	margin: 0 0 14px;
	font-size: clamp(2.4rem, 6vw, 4.4rem);
}

h2 {
	margin: 22px 0 8px;
	font-size: 1.7rem;
}

p {
	margin: 0 0 12px;
}

a {
	color: #8e1e52;
}

button,
input,
textarea {
	font-family: inherit;
}

.skip {
	position: absolute;
	left: 12px;
	top: 12px;
	transform: translateY(-150%);
	background: #fff;
	color: #2c1822;
	padding: 8px 12px;
	border-radius: 999px;
	z-index: 3;
}

.skip:focus {
	transform: none;
}

.garden {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.flower {
	position: absolute;
	width: 190px;
	height: 190px;
}

.flower .petals {
	fill: #f4b7c9;
}

.flower .center {
	fill: #e7c27a;
}

.flower-a {
	top: -48px;
	left: -54px;
}

.flower-b {
	top: 16%;
	right: -70px;
	width: 230px;
	height: 230px;
}

.flower-b .petals {
	fill: #f7c3d6;
}

.flower-c {
	bottom: -60px;
	left: 12%;
	width: 160px;
	height: 160px;
}

.flower-c .petals {
	fill: #f09aaf;
}

.wrap {
	position: relative;
	z-index: 1;
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 28px 0 64px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #2c1822;
	text-decoration: none;
	font-size: 1.7rem;
}

.brand .flower {
	position: static;
	width: 36px;
	height: 36px;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	margin-bottom: 22px;
}

.lang-switch {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px;
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 999px;
	background: rgba(255, 253, 252, 0.9);
	box-shadow: 0 10px 28px rgba(120, 32, 64, 0.08);
}

.lang-flag {
	display: block;
	width: 36px;
	height: 24px;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 7px;
	line-height: 0;
}

.lang-flag svg {
	display: block;
	width: 100%;
	height: 100%;
}

.lang-flag.is-on {
	border-color: #8e1e52;
	box-shadow: 0 0 0 2px #fff;
}

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

.layout {
	display: grid;
	gap: 28px;
}

.intro .lede {
	max-width: 38rem;
	font-size: 1.12rem;
}

.eyebrow {
	margin-bottom: 8px;
	color: #8e1e52;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.steps {
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.steps li {
	position: relative;
	margin: 0;
	padding: 0 0 14px 28px;
}

.steps li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ffe7ef, #e789a8 55%, #e7c27a 56%);
}

.card {
	position: relative;
	padding: 32px 22px 22px;
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 28px;
	background: rgba(255, 253, 252, 0.94);
	box-shadow: 0 24px 60px rgba(120, 32, 64, 0.08);
}

.card::before {
	content: "";
	position: absolute;
	left: 22px;
	right: 22px;
	top: 0;
	height: 6px;
	border-radius: 0 0 8px 8px;
	background: linear-gradient(90deg, #f2b7c8, #e7c27a, #f2b7c8);
}

.card h1 {
	font-size: clamp(2rem, 4vw, 3.1rem);
}

.from-line {
	margin: -4px 0 16px;
	color: #8e1e52;
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.35rem;
	font-weight: 500;
}

.card h2:first-of-type {
	margin-top: 4px;
}

.narrow {
	max-width: 640px;
}

.solo {
	margin: 12px auto 0;
}

.field {
	display: block;
	margin-bottom: 14px;
}

.field span,
legend {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.optional {
	color: #8d8689;
	font-style: normal;
	font-weight: 400;
	font-size: 0.86rem;
}

.or-sep {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 2px 0 16px;
	color: #8e1e52;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.or-sep::before,
.or-sep::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #efd0db;
}

.secure-note {
	margin-top: 16px;
	text-align: center;
}

.secure-note p {
	margin: 8px 0 0;
	color: #8d8689;
	font-size: 0.86rem;
	line-height: 1.45;
}

.secure-marks {
	display: flex;
	justify-content: center;
	gap: 14px;
}

.secure-marks svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: #9a9396;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

fieldset {
	margin: 8px 0 0;
	padding: 0;
	border: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #efd0db;
	border-radius: 14px;
	background: #fff;
	color: #2c1822;
	font-size: 1rem;
	line-height: 1.4;
}

textarea {
	min-height: 130px;
	resize: vertical;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
	outline: 2px solid #8e1e52;
	outline-offset: 2px;
}

.is-invalid {
	border-color: #8e1e52;
}

.field-error,
.form-alert {
	color: #6d1238;
}

.field-error {
	margin: 6px 0 0;
	font-size: 0.92rem;
}

.form-alert {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #ffe4ec;
}

.form-alert[hidden] {
	display: none;
}

.pay-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.pay-option {
	display: block;
	position: relative;
}

.pay-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.pay-face {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 12px 14px;
	border: 1px solid #efd0db;
	border-radius: 16px;
	background: #fff;
	cursor: pointer;
}

.pay-option input:checked + .pay-face {
	border-color: #8e1e52;
	background: #fff0f4;
	box-shadow: inset 0 0 0 1px #8e1e52;
}

.pay-option input:focus + .pay-face {
	outline: 2px solid #8e1e52;
	outline-offset: 2px;
}

.pay-name {
	font-weight: 600;
}

.pay-submit,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin-top: 16px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: #8e1e52;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.pay-submit {
	width: 100%;
	padding: 12px 22px;
	line-height: 1.3;
	white-space: normal;
}

.pay-submit:hover,
.button:hover {
	background: #741843;
}

.button-secondary {
	background: transparent;
	color: #8e1e52;
	border: 1px solid #e4b3c4;
}

.button-secondary:hover {
	background: #fff0f4;
}

button:disabled {
	cursor: wait;
	opacity: 0.72;
}

.quiet {
	color: #5c4652;
}

#pay-hint {
	margin: 0 0 12px;
	font-size: 0.92rem;
	line-height: 1.35;
}

.note {
	margin-top: 14px;
	color: #5c4652;
	font-size: 0.95rem;
}

.link-box {
	margin: 0;
	padding: 14px 16px;
	border-radius: 16px;
	background: #fff0f4;
	color: #6d1238;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.submission {
	padding: 14px 0;
	border-top: 1px solid #f3d5df;
}

.submission p:last-child {
	margin-bottom: 0;
}

.visit-place {
	margin: 0 0 4px;
	font-weight: 600;
}

@media (min-width: 520px) {
	.pay-grid {
		grid-template-columns: 1fr 1fr;
	}

	.card {
		padding: 36px 32px 28px;
	}
}

@media (min-width: 900px) {
	.layout {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
		gap: 56px;
		align-items: center;
	}

	.wrap {
		padding-top: 42px;
	}
}

@media (max-width: 720px) {
	.flower {
		width: 120px;
		height: 120px;
		opacity: 0.7;
	}

	.flower-a {
		top: -64px;
		left: -64px;
	}

	.flower-b {
		top: auto;
		right: -58px;
		bottom: 8%;
		width: 140px;
		height: 140px;
	}

	.flower-c {
		display: none;
	}
}

.success {
	position: relative;
	text-align: center;
	animation: success-rise 0.7s ease both;
}

.success[hidden] {
	display: none;
}

.success h2 {
	margin-top: 0;
	font-size: clamp(2.2rem, 8vw, 3rem);
}

.success-name {
	margin: -4px 0 10px;
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(1.5rem, 5vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.success-lead {
	max-width: 22rem;
	margin-left: auto;
	margin-right: auto;
	color: #5c4650;
	overflow-wrap: anywhere;
}

.balloon-frame {
	position: relative;
	width: min(100%, 280px);
	margin: 4px auto 18px;
	padding: 12px;
	border-radius: 42px;
	background: linear-gradient(160deg, #ffe4ee, #fff6ea 55%, #f7c3d6);
	box-shadow: 0 22px 50px rgba(142, 30, 82, 0.14);
}

.balloon-frame img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 32px;
	background: #fff;
}

.balloon-replay {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	height: calc(100% - 24px);
	border: 0;
	border-radius: 32px;
	background: transparent;
	color: transparent;
	cursor: pointer;
}

.success-float {
	position: relative;
	z-index: 3;
	min-width: 180px;
}

.petal-layer {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 30;
}

.petal {
	position: absolute;
	top: -28px;
	width: 16px;
	height: 24px;
	border-radius: 80% 10% 80% 10%;
	opacity: 0;
	animation: petal-fall linear forwards;
}

.is-sent {
	animation: card-glow 1.4s ease;
}

@keyframes success-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes petal-fall {
	0% {
		opacity: 0;
		transform: translateY(0) rotate(0deg);
	}
	15% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translate(var(--drift, 0px), 105vh) rotate(var(--spin, 40deg));
	}
}

@keyframes card-glow {
	0% {
		box-shadow: 0 24px 60px rgba(120, 32, 64, 0.08);
	}
	40% {
		box-shadow: 0 28px 70px rgba(231, 137, 168, 0.35);
	}
	100% {
		box-shadow: 0 24px 60px rgba(120, 32, 64, 0.08);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.success,
	.is-sent,
	.petal {
		animation: none;
	}
}
