/* Estilos globais do convite Gabi + Manu (XV Anos) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  background: #7a2740;
  color: #7a2740;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Ocupa a viewport inteira, sem sobrar borda em cima ou embaixo */
.screen {
  position: relative;
  width: 100vw;
  height: 100svh;          /* small viewport height = correto no mobile com barras */
  min-height: 100dvh;
  overflow: hidden;
  background: #7a2740;
  display: block;
}
.screen-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.screen-inner img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* preenche a tela inteira, corta o mínimo necessário */
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Em telas largas (desktop) mostra a imagem centralizada em um card 9:20 */
@media (min-aspect-ratio: 10/16) {
  .screen {
    background:
      radial-gradient(1200px 800px at 50% 20%, #ffe4ec 0%, #f5b6c6 60%, #e691a8 100%);
  }
  .screen-inner {
    position: relative;
    inset: auto;
    aspect-ratio: 1080 / 2400;
    height: 100svh;
    width: auto;
    max-width: 100vw;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  }
}

/* Áreas clicáveis (hotspots) posicionadas em % sobre a imagem */
.hotspot {
  position: absolute;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  border-radius: 14px;
  transition: transform .15s ease, background .15s ease;
  z-index: 2;
}
.hotspot:hover, .hotspot:focus-visible {
  background: rgba(255,255,255,0.18);
  transform: scale(1.03);
  outline: none;
}
.hotspot:active { transform: scale(0.97); }
.close-hotspot { border-radius: 999px; }

/* ---------- Formulário Confirmar Presença (tela4) ----------
   Card flutuante — a imagem tela4 não precisa mais ter os campos
   "Nome do convidado" / "Telefone" desenhados. */
.rsvp-card {
  position: absolute;
  left: 50%;
  bottom: 20%;
  transform: translateX(-50%);
  width: min(88%, 420px);
  padding: 22px 20px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px rgba(122, 39, 64, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
}
.rsvp-card label {
  font: 600 12px system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a2740;
  margin-bottom: -6px;
}
.rsvp-card input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(122, 39, 64, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  font: 500 16px system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #4a1a2c;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.rsvp-card input:focus {
  border-color: #7a2740;
  box-shadow: 0 0 0 3px rgba(122, 39, 64, 0.15);
}
.rsvp-card input::placeholder { color: rgba(74, 26, 44, 0.4); }

.btn-confirmar {
  margin-top: 6px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #a53555 0%, #7a2740 100%);
  color: #fff;
  font: 700 15px system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(122, 39, 64, 0.35);
  transition: transform .15s, box-shadow .15s;
}
.btn-confirmar:hover  { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(122,39,64,.42); }
.btn-confirmar:active { transform: translateY(0); }
.btn-confirmar:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  background: #7a2740;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font: 500 15px system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .35s ease;
  z-index: 10000;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: #a33; }

/* ---------- Tela de agradecimento ---------- */
.thanks {
  position: absolute;
  inset: 0;
  background: rgba(255, 228, 236, 0.96);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  z-index: 5;
  animation: fadeIn .5s ease;
}
.thanks.show { display: flex; }
.thanks h1 { font-size: clamp(28px, 7vw, 44px); color: #7a2740; margin-bottom: 8px; }
.thanks p  { font-size: clamp(15px, 4vw, 20px); color: #7a2740; margin-bottom: 24px; line-height: 1.5; }
.thanks .heart { font-size: 56px; margin-bottom: 12px; }
.thanks a.btn {
  background: #7a2740; color: #fff; text-decoration: none;
  padding: 12px 28px; border-radius: 999px; font: 600 15px system-ui,sans-serif;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
