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

html { background: #050303; }

body {
  margin: 0;
  min-height: 100vh;
  color: #f3e3c3;
  font-family: 'IM Fell English', Georgia, 'Times New Roman', serif;
  /* Dark moonlit forest feel behind the column, as in the template */
  background:
    radial-gradient(ellipse 60% 35% at 50% 18%, rgba(70, 90, 140, 0.28), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 60%, rgba(90, 20, 15, 0.22), transparent 75%),
    radial-gradient(ellipse at center, #1a1210 0%, #0b0706 55%, #030202 100%);
  background-attachment: fixed;
}

img { display: block; max-width: 100%; height: auto; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 8px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* subtle dark wood column like the template's backdrop */
  background: linear-gradient(90deg, transparent, rgba(40, 24, 14, 0.35) 8%, rgba(40, 24, 14, 0.35) 92%, transparent);
  box-shadow: 0 0 120px 40px rgba(0, 0, 0, 0.6);
}

.section { width: 100%; }

/* Pull sections together so they stack tightly like the template */
.hero        { width: 100%; }
.title       { width: 90%; margin-top: -16%; }
.place       { width: 88%; margin-top: -9%; }
.rsvp        { width: 90%; margin-top: -1%; }
.infos       { width: 100%; margin-top: 1%; }
.description { width: 100%; margin-top: 0; }
.faq-title   { width: 82%; margin-top: -1%; }
.faq         { width: 96%; margin-top: -1%; }

/* --- RSVP button ---------------------------------------------------------- */

.rsvp { display: flex; flex-direction: column; align-items: center; }

.rsvp-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 18px;
  transition: transform 0.18s ease, filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.rsvp-btn img { pointer-events: none; }

.rsvp-btn:hover,
.rsvp-btn:focus-visible {
  transform: scale(1.025);
  filter: drop-shadow(0 0 14px rgba(220, 30, 30, 0.75)) brightness(1.08);
  outline: none;
}

.rsvp-btn:active { transform: scale(0.98); }

.rsvp-btn:not(:disabled) {
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(220, 30, 30, 0)); }
  50%      { filter: drop-shadow(0 0 10px rgba(220, 30, 30, 0.55)); }
}

.rsvp-btn:disabled {
  cursor: default;
  filter: saturate(0.55) brightness(0.8);
  transform: none;
  animation: none;
}

.rsvp-msg:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.rsvp-msg {
  margin: 4px 0 0;
  padding: 8px 16px;
  max-width: 84%;
  text-align: center;
  font-size: clamp(13px, 3vw, 17px);
  line-height: 1.3;
  color: #f3e3c3;
  background: linear-gradient(#2a1a12, #1b110c);
  border: 2px solid #6b4a2a;
  border-radius: 10px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7), 0 4px 14px rgba(0, 0, 0, 0.6);
  animation: appear 0.4s ease-out;
}

.rsvp-msg .heart { flex: none; color: #c0171d; }
.rsvp-msg.error  { border-color: #8a1a1a; }

@keyframes appear {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-btn, .rsvp-msg { animation: none; transition: none; }
}
