:root {
	--ac-gold: oklch(72% 0.13 80);
	--ac-gold-deep: oklch(58% 0.13 70);
	--ac-navy: oklch(28% 0.03 260);
	--ac-bg: oklch(94% 0.03 75);
	--ac-card: oklch(99% 0.005 80);
}

* { box-sizing: border-box; }

/* Sem isso, um elemento com [hidden] (o formulário de RSVP e o botão
   que ele substitui) fica visível mesmo escondido, porque uma regra
   de classe abaixo (display: flex/inline-flex) tem prioridade sobre
   o [hidden] padrão do navegador. */
[hidden] { display: none !important; }

html, body.ae-convite-body {
	margin: 0;
	padding: 0;
	background: radial-gradient(circle at 15% 15%, oklch(97% 0.04 85) 0%, transparent 45%),
	            radial-gradient(circle at 85% 80%, oklch(96% 0.05 85) 0%, transparent 40%),
	            var(--ac-bg);
	color: var(--ac-navy);
	font-family: 'Work Sans', Arial, sans-serif;
	text-wrap: pretty;
}

.ae-convite-body h1, .ae-convite-body h3 { font-family: 'Playfair Display', Georgia, serif; margin: 0; }
.ae-convite-body p { margin: 0; }

.ae-convite {
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 32px 80px;
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 40px;
	align-items: start;
}

.ae-invite-left {
	display: flex;
	gap: 36px;
	align-items: flex-start;
}

.ae-invite-photo {
	width: 280px;
	flex-shrink: 0;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 30px 60px -25px oklch(40% 0.05 60 / 0.35);
}

.ae-invite-photo img { display: block; width: 100%; height: 420px; object-fit: cover; }

.ae-invite-copy { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }

.ae-invite-badge {
	display: inline-flex;
	width: fit-content;
	padding: 8px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ac-gold), var(--ac-gold-deep));
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ae-invite-name { font-size: 46px; font-weight: 700; line-height: 1.05; }
.ae-invite-subtitle { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; font-size: 34px; color: var(--ac-gold-deep); }

.ae-invite-datetime {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ac-navy);
}

.ae-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	width: fit-content;
}

.ae-btn--accent { background: linear-gradient(135deg, var(--ac-gold), var(--ac-gold-deep)); color: #fff; }
.ae-btn--accent:hover { filter: brightness(1.05); }

.ae-rsvp-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	background: var(--ac-card);
	padding: 16px;
	border-radius: 18px;
	box-shadow: 0 8px 24px -12px oklch(40% 0.05 60 / 0.25);
}

.ae-rsvp-form input[type="text"] { flex: 1; min-width: 160px; }
.ae-rsvp-form input[type="number"] { width: 72px; }
.ae-rsvp-form input {
	height: 44px;
	border-radius: 10px;
	border: 1px solid oklch(88% 0.02 70);
	padding: 0 12px;
	font-family: inherit;
	font-size: 14px;
}

.ae-rsvp-feedback { flex-basis: 100%; font-size: 14px; font-weight: 600; }
.ae-rsvp-feedback--ok { color: oklch(50% 0.12 150); }

.ae-invite-message { font-style: italic; font-size: 16px; color: var(--ac-navy); opacity: 0.85; }

.ae-invite-cards { display: flex; flex-direction: column; gap: 20px; }

.ae-invite-card {
	background: var(--ac-card);
	border-radius: 20px;
	padding: 22px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	align-items: start;
	box-shadow: 0 10px 30px -18px oklch(40% 0.05 60 / 0.3);
}

.ae-invite-card-icon {
	width: 44px; height: 44px;
	border-radius: 12px;
	background: oklch(94% 0.05 80);
	color: var(--ac-gold-deep);
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}

.ae-invite-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.ae-invite-card-strong { font-size: 14px; font-weight: 700; color: var(--ac-navy); }
.ae-invite-card-muted { font-size: 13px; color: oklch(45% 0.02 60); margin-top: 2px; line-height: 1.5; }

.ae-invite-map {
	width: 90px; height: 70px;
	border-radius: 12px;
	background:
		linear-gradient(oklch(90% 0.01 70 / .6) 1px, transparent 1px) 0 0/12px 12px,
		linear-gradient(90deg, oklch(90% 0.01 70 / .6) 1px, transparent 1px) 0 0/12px 12px,
		oklch(96% 0.01 80);
	position: relative;
	overflow: hidden;
}

.ae-invite-map-pin {
	position: absolute; left: 50%; top: 40%;
	width: 10px; height: 10px; border-radius: 50%;
	background: var(--ac-gold-deep);
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 5px oklch(72% 0.13 80 / .3);
}

.ae-invite-map-label {
	position: absolute; bottom: 4px; left: 4px; right: 4px;
	background: var(--ac-navy); color: #fff;
	font-size: 8px; font-weight: 700;
	padding: 2px 4px; border-radius: 4px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	text-align: center;
}

.ae-invite-timeline { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }

.ae-invite-timeline-row {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 12px;
	align-items: start;
}

.ae-invite-timeline-marker { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ae-invite-timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac-gold-deep); flex-shrink: 0; }
.ae-invite-timeline-time { font-weight: 700; color: var(--ac-gold-deep); }
.ae-invite-timeline-title { font-weight: 600; color: var(--ac-navy); }
.ae-invite-timeline-desc { font-size: 12px; color: oklch(45% 0.02 60); line-height: 1.5; }

.ae-invite-suit { color: oklch(88% 0.02 70); align-self: center; }

@media (max-width: 900px) {
	.ae-convite { grid-template-columns: 1fr; padding: 32px 20px 60px; }
	.ae-invite-left { flex-direction: column; }
	.ae-invite-photo { width: 100%; }
	.ae-invite-photo img { height: 260px; }
	.ae-invite-name { font-size: 34px; }
	.ae-invite-subtitle { font-size: 26px; }
	.ae-invite-timeline-row { grid-template-columns: 1fr; }
}
