/* ==========================================================================
   Componentes — botões, contagem, padrinhos, carrosséis, formulários,
   player de música e botão "voltar ao topo".
   ========================================================================== */

/* -- Botões ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-white);
  background: var(--c-accent);
  box-shadow: 0 12px 24px -16px rgba(120, 70, 50, 0.7);
  transition: background var(--t-fast), transform var(--t-fast),
    box-shadow var(--t-fast);
}

.btn:hover {
  background: var(--c-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -16px rgba(120, 70, 50, 0.8);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--c-accent-dark);
  border: 1px solid var(--c-accent);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--c-accent);
  color: var(--c-white);
}

.btn--block {
  width: 100%;
}

/* -- Intro (mensagem de boas-vindas com balões) ---------------------------- */
.intro {
  display: grid;
  justify-items: center;
  gap: clamp(1.1rem, 3vw, 1.8rem);
}

.intro__balloons {
  width: clamp(52px, 9vw, 76px);
  height: auto;
}

/* -- Contagem regressiva --------------------------------------------------- */
.countdown {
  color: var(--c-white);
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, #b08470 0%, var(--c-accent) 45%, #8a5e4a 100%);
}

.countdown__title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  text-transform: uppercase;
  letter-spacing: var(--ls-title);
  text-indent: var(--ls-title);
  text-wrap: balance;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.countdown__sub {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 1rem + 3vw, 2.8rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.4rem;
}

.countdown__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.6rem, 2vw, 1.1rem);
}

.countdown__item {
  background: rgba(255, 255, 255, 0.94);
  color: var(--c-accent-dark);
  border-radius: var(--radius-md);
  width: clamp(78px, 12vw, 104px);
  padding: 1.15rem 0.5rem 0.95rem;
  box-shadow: 0 14px 30px -18px rgba(40, 24, 16, 0.6);
}

.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
}

.countdown__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* -- O casal --------------------------------------------------------------- */
/* As duas fotos viram as duas metades de um coração gordinho e arredondado:
   metades largas (aparece mais da foto), bem separadas por uma fresta, e uma
   borda fininha na cor do fundo contornando cada metade. */
.casal__heart {
  width: clamp(240px, 52vw, 340px);
  margin: 0 auto 2.6rem;
  filter: drop-shadow(0 12px 22px rgba(120, 70, 50, 0.18));
  transition: transform var(--t-base);
}

.casal__heartsvg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* borda fininha na cor do fundo, contornando cada metade e a fresta central */
.casal__edge {
  fill: none;
  stroke: var(--c-surface-soft);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.casal__heart:hover { transform: scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  .casal__heart { transition: none; }
}

/* -- Padrinhos ------------------------------------------------------------- */
/* Flex centralizado + quebra entre grupos: madrinhas e padrinhos ficam em
   blocos separados (nunca na mesma linha) e as linhas incompletas centralizam.
   O nº de fotos por linha se ajusta sozinho à largura (4 → 3 → 2). */
.padrinhos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.4rem) clamp(1rem, 2vw, 2rem);
  max-width: 900px;
  margin-inline: auto;
}

/* Força os padrinhos a começarem numa nova linha (separa dos blocos de cima). */
.padrinhos-break {
  flex-basis: 100%;
  height: 0;
  margin: 0;
}

.padrinho {
  flex: 0 0 auto;
  /* largura escolhida p/ caber 3 por linha no desktop e 2 no celular —
     cada grupo (6) vira 3+3 (ou 2+2+2), sempre linhas completas e equilibradas */
  width: clamp(150px, 24vw, 220px);
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.95rem;
  text-align: center;
}

/* Retrato em arco, delicado: paspatur creme fino + fio sutil na cor mocha +
   sombra suave. Sem moldura pesada nem ornamentos. */
.padrinho__frame {
  position: relative;
  width: clamp(128px, 20vw, 170px);
  aspect-ratio: 1;
  display: block;
  padding: clamp(5px, 1vw, 8px);                     /* paspatur creme delicado */
  background: var(--c-surface);
  border-radius: 47% 47% 13% 13% / 43% 43% 10% 10%;  /* mesmo formato (arco) */
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.padrinho__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 44% 44% 9% 9% / 40% 40% 7% 7%;
  box-shadow: 0 0 0 1px rgba(164, 119, 100, 0.4);    /* fio fino, cor mocha */
}

.padrinho:hover .padrinho__frame {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

@media (prefers-reduced-motion: reduce) {
  .padrinho__frame { transition: none; }
  .padrinho:hover .padrinho__frame { transform: none; }
}

.padrinho__name {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--c-ink);
}

/* -- Galeria (Splide): foto grande + miniaturas ---------------------------- */
.gallery {
  max-width: 720px;
  margin-inline: auto;
}

/* Foto principal. A moldura em arco (borda + recorte) fica no TRACK interno,
   assim as setas — que ficam fora do track — não somem atrás da borda. */
.gallery__main {
  position: relative;
}
.gallery__main .splide__track {
  border-radius: clamp(80px, 14vw, 150px) clamp(80px, 14vw, 150px)
    var(--radius-md) var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  outline: 1px solid rgba(164, 119, 100, 0.18);
  outline-offset: -1px;
}

.gallery__main .splide__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--c-surface-warm);
  transition: filter 0.6s var(--ease-out);
}

/* blur-up: versão leve entra desfocada e dá foco ao chegar a ultra */
.gallery__main .splide__slide img.is-soft { filter: blur(10px); }

/* Movimento suave (como observar a foto) na foto em destaque, reinicia a cada
   troca de slide. O zoom fica ≥ 1.06 para o pan não abrir bordas. */
.gallery__main .splide__slide.is-active img {
  animation: galKb 7s var(--ease-out) forwards;
}
@keyframes galKb {
  from { transform: scale(1.06) translate3d(2.5%, 0, 0); }
  to   { transform: scale(1.09) translate3d(-2.5%, 0, 0); }
}

/* Setas sutis: centralizadas na vertical, discretas, ganham presença no hover
   (e ficam visíveis no touch). O core do Splide não posiciona — fazemos aqui. */
.gallery__main .splide__arrows { position: static; }
.gallery__main .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(40, 28, 22, 0.30);
  border: 0;
  border-radius: 50%;
  backdrop-filter: blur(3px);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity var(--t-fast), background var(--t-fast);
}
.gallery__main:hover .splide__arrow { opacity: 0.85; }
.gallery__main .splide__arrow:hover { opacity: 1; background: rgba(40, 28, 22, 0.5); }
.gallery__main .splide__arrow svg { width: 13px; height: 13px; fill: #fff; }
.gallery__main .splide__arrow--prev { left: 10px; }
.gallery__main .splide__arrow--prev svg { transform: scaleX(-1); } /* aponta p/ esquerda */
.gallery__main .splide__arrow--next { right: 10px; }

/* faixa de miniaturas */
.gallery__thumbs {
  margin-top: 0.7rem;
  padding-block: 2px;
}
/* Quando as miniaturas cabem todas, ficam centralizadas e estáticas
   (sem o deslize do focus:center, que parecia estranho com poucas fotos). */
.gallery__thumbs.is-centered .splide__track { padding: 0 !important; }
.gallery__thumbs.is-centered .splide__list {
  width: 100% !important;
  justify-content: center;
  transform: none !important;
}
.gallery__thumbs .splide__slide {
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity var(--t-fast), box-shadow var(--t-fast);
}
.gallery__thumbs .splide__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__thumbs .splide__slide:hover { opacity: 0.82; }
.gallery__thumbs .splide__slide.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--c-accent), var(--shadow-soft);
}

@media (prefers-reduced-motion: reduce) {
  .gallery__main .splide__slide img { transition: none; }
  /* passeio horizontal suave (vence o reset global de reduzir-movimento) */
  .gallery__main .splide__slide.is-active img {
    animation: galCalm 18s var(--ease-out) forwards;
    animation-duration: 18s !important;
  }
}
@keyframes galCalm { from { transform: scale(1.05) translate3d(1.8%, 0, 0); } to { transform: scale(1.05) translate3d(-1.8%, 0, 0); } }

/* -- Local (endereço) ------------------------------------------------------ */
.venue {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  margin: 2rem auto 0;
  font-style: normal;
  text-align: center;
}

.venue__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.35rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.venue__addr {
  color: var(--c-prose);
  font-weight: 300;
}

.venue__when {
  color: var(--c-muted);
  font-size: 0.9rem;
}

/* -- Mapa ------------------------------------------------------------------ */
.map-embed {
  position: relative;
  max-width: 760px;
  margin: 1.6rem auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-line);
}

/* Moldura quente discreta por cima dos tiles, para casar o mapa com a paleta. */
.map-embed::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(164, 119, 100, 0.18);
}

#venueMap {
  width: 100%;
  height: 360px;
  background: var(--c-surface-soft);
}

/* Leaflet: controles e atribuição alinhados à identidade do site. */
.leaflet-container {
  font-family: var(--font-body, inherit);
  background: var(--c-surface-soft);
}

.leaflet-control-zoom a {
  color: var(--c-accent) !important;
  border-color: var(--c-line) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.leaflet-control-zoom a:hover {
  color: var(--c-accent-dark) !important;
  background: #fff !important;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--c-muted) !important;
  font-size: 0.66rem;
}

.leaflet-control-attribution a {
  color: var(--c-accent) !important;
}

/* -- Ponteiro personalizado ------------------------------------------------ */
.venue-pin {
  position: relative;
}

.venue-pin__drop {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 38px;
  height: 38px;
  transform: translateX(-50%) rotate(-45deg);
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-terracotta) 100%);
  box-shadow: 0 6px 14px rgba(67, 53, 46, 0.35);
  display: grid;
  place-items: center;
}

.venue-pin__heart {
  transform: rotate(45deg);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(67, 53, 46, 0.35));
}

/* Halo pulsante na base do pin, marcando o ponto exato no chão. */
.venue-pin__pulse {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(164, 119, 100, 0.55);
  animation: venue-pin-pulse 2.4s ease-out infinite;
}

@keyframes venue-pin-pulse {
  0% { transform: translateX(-50%) scale(0.6); opacity: 0.7; }
  70% { transform: translateX(-50%) scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .venue-pin__pulse { animation: none; }
}

/* Popup do local em tom creme, coerente com os cartões do site. */
.venue-popup .leaflet-popup-content-wrapper {
  background: var(--c-surface);
  color: var(--c-prose);
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--shadow-card);
}

.venue-popup .leaflet-popup-content {
  margin: 0.7rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.venue-popup .leaflet-popup-content strong {
  color: var(--c-accent);
  font-family: var(--font-display, inherit);
  letter-spacing: 0.04em;
}

.venue-popup .leaflet-popup-tip {
  background: var(--c-surface);
}

.map-link {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}

.map-link:hover {
  border-bottom-color: var(--c-accent);
}

/* -- Formulários ----------------------------------------------------------- */
.form {
  max-width: 640px;
  margin-inline: auto;
}

.form--card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 1.4rem;
}

.field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--c-prose);
}

.field__control {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.field__control:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(164, 119, 100, 0.15);
}

textarea.field__control {
  min-height: 120px;
  resize: vertical;
}

.field--inline {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--c-muted);
  text-align: left;
}

.field--inline a {
  color: var(--c-accent);
}

.rsvp__search {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 420px;
  margin-inline: auto;
}

.rsvp__search .field__control {
  text-align: center;
}

.form__note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--c-accent);
  min-height: 1.2em;
}

/* -- Player de música (FAB) ------------------------------------------------ */
.music-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: var(--c-accent-dark);
  color: var(--c-white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast);
}

.music-fab:hover {
  transform: translateY(-2px);
  background: var(--c-accent);
}

.music-fab svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Ícones: nota = pausado (convida a tocar); equalizador = tocando (convida a pausar). */
.music-fab svg:nth-of-type(2) { display: none; }
.music-fab.is-playing svg:nth-of-type(1) { display: none; }
.music-fab.is-playing svg:nth-of-type(2) { display: inline-block; }

/* Tocando: as barras do equalizador "dançam" e o botão pulsa de leve — deixa
   claro que a música está tocando e convida, de forma intuitiva, a pausar. */
.music-fab.is-playing {
  animation: musicPulse 2.4s ease-in-out infinite;
}

.music-fab .eq rect {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.music-fab.is-playing .eq rect {
  animation: eqBar 0.9s var(--ease-out) infinite;
}
.music-fab.is-playing .eq rect:nth-child(1) { animation-duration: 0.7s; }
.music-fab.is-playing .eq rect:nth-child(2) { animation-duration: 1.05s; }
.music-fab.is-playing .eq rect:nth-child(3) { animation-duration: 0.82s; }
.music-fab.is-playing .eq rect:nth-child(4) { animation-duration: 1.2s; }

@keyframes eqBar {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1); }
}

@keyframes musicPulse {
  0%, 100% { box-shadow: var(--shadow-soft), 0 0 0 0 rgba(164, 119, 100, 0.5); }
  50%      { box-shadow: var(--shadow-soft), 0 0 0 9px rgba(164, 119, 100, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .music-fab.is-playing,
  .music-fab.is-playing .eq rect { animation: none; }
}

/* -- Voltar ao topo -------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 78px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-surface-soft);
  color: var(--c-accent);
  font-size: 1.05rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base),
    transform var(--t-fast), background var(--t-fast);
}

.to-top:hover {
  background: var(--c-white);
  transform: translateY(-2px);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* -- Responsivo ------------------------------------------------------------ */
/* A grade de padrinhos agora é flex e reflui sozinha (4 → 3 → 2 por linha). */
@media (max-width: 520px) {
  .casal__heart { width: clamp(220px, 78vw, 300px); }
}

/* ==========================================================================
   Confirmação de presença (RSVP) — busca por nome + WhatsApp
   ========================================================================== */
.rsvp {
  max-width: 540px;
  margin-inline: auto;
}

/* Campo de busca (sobrescreve o .rsvp__search genérico: aqui é bloco) */
.rsvp .rsvp__search {
  display: block;
  max-width: none;
  text-align: left;
}

.rsvp__input {
  font-size: 1.05rem;
}

.rsvp__input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(164, 119, 100, 0.18);
}

.rsvp__hint {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--c-muted);
}

/* Palco onde aparecem resultados / painel / "não encontrei" */
.rsvp__stage:not(:empty) {
  margin-top: 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0.5rem;
  animation: rsvp-in var(--t-fast);
}

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

/* -- Lista de resultados --------------------------------------------------- */
.rsvp__results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rsvp__result {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  transition: background var(--t-fast);
}

.rsvp__result:hover,
.rsvp__result:focus-visible {
  background: var(--c-surface-warm);
  outline: none;
}

.rsvp__result-name {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--c-accent-dark);
  font-size: 1.02rem;
}

.rsvp__result-ctx {
  font-size: 0.8rem;
  color: var(--c-muted);
}

.rsvp__empty,
.rsvp__more {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  color: var(--c-muted);
}

/* Link "Não encontrei meu nome" — sempre presente */
.rsvp__notfound-link {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  background: transparent;
  border: none;
  border-top: 1px dashed var(--c-line);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  color: var(--c-accent);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}

.rsvp__notfound-link:hover {
  color: var(--c-accent-dark);
  background: var(--c-surface-soft);
}

/* -- Painel de confirmação ------------------------------------------------- */
.rsvp__panel {
  padding: 1rem 0.9rem 1.1rem;
}

.rsvp__back {
  background: transparent;
  border: none;
  color: var(--c-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0;
  margin-bottom: 0.6rem;
  transition: color var(--t-fast);
}

.rsvp__back:hover { color: var(--c-accent); }

.rsvp__greet {
  font-family: var(--font-body);
  font-size: 1.12rem;
  color: var(--c-prose);
  margin: 0 0 0.2rem;
}

.rsvp__greet strong { color: var(--c-accent-dark); }

.rsvp__panel-sub {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin: 0 0 0.9rem;
}

.rsvp__people {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rsvp__person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: var(--c-surface-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.rsvp__person:hover { border-color: var(--c-accent); }

.rsvp__check {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  accent-color: var(--c-accent);
  cursor: pointer;
}

.rsvp__person-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.rsvp__person-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--c-ink);
}

.rsvp__person-rel {
  font-size: 0.78rem;
  color: var(--c-muted);
  font-style: italic;
}

.rsvp__you {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
  background: var(--c-sage);
  border-radius: var(--radius-pill);
  padding: 0.12rem 0.5rem;
}

.rsvp__panel-note {
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
  color: var(--c-muted);
  text-align: center;
}

/* -- "Não encontrei meu nome" (estado dedicado) ---------------------------- */
.rsvp__notfound {
  padding: 1.3rem 1rem;
  text-align: center;
}

.rsvp__notfound-text {
  margin: 0 0 1rem;
  color: var(--c-prose);
}

.rsvp__notfound .rsvp__back {
  display: block;
  margin: 0.9rem auto 0;
}

/* -- Botão do WhatsApp ----------------------------------------------------- */
.btn-wa {
  --wa: #25d366;
  --wa-dark: #1da851;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-white);
  background: var(--wa);
  box-shadow: 0 12px 24px -14px rgba(37, 211, 102, 0.8);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast),
    box-shadow var(--t-fast);
}

.btn-wa:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -14px rgba(37, 211, 102, 0.9);
}

.btn-wa:active { transform: translateY(0); }

.btn-wa__icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}

/* Variante suave para o caso "não poderei ir" (recusa) */
.btn-wa--soft {
  background: var(--c-muted);
  box-shadow: var(--shadow-soft);
}

.btn-wa--soft:hover {
  background: var(--c-prose);
  box-shadow: var(--shadow-card);
}

/* -- RSVP: estado de confirmações já registradas (banco) ------------------- */
.rsvp__loading {
  padding: 1.2rem 0.9rem;
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Aviso "Fulano já confirmou sua presença" */
.rsvp__already {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(141, 146, 121, 0.16);   /* sálvia suave */
  border: 1px solid rgba(141, 146, 121, 0.4);
  color: var(--c-prose);
  font-size: 0.9rem;
  line-height: 1.4;
}

.rsvp__already::before {
  content: "✓";
  color: var(--c-sage);
  font-weight: 700;
}

.rsvp__already--off {
  background: var(--c-surface-warm);
  border-color: var(--c-line);
}

.rsvp__already--off::before {
  content: "•";
  color: var(--c-muted);
}

/* Linha de status por pessoa, dentro do cartão */
.rsvp__person-status {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5b7a52;            /* verde sálvia escuro, legível */
}

.rsvp__person-status::before {
  content: "✓ ";
}

.rsvp__person-status--off {
  color: var(--c-muted);
}

.rsvp__person-status--off::before {
  content: "";
}

/* ==========================================================================
   Recados — formulário simples (particular/público) + mural
   ========================================================================== */
.recado { max-width: 600px; }

.recado__dest {
  border: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.recado__dest .field__label { margin-bottom: 0.6rem; }

.recado__opt {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  background: var(--c-surface-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.recado__opt:hover { border-color: var(--c-accent); }
.recado__opt input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--c-accent); flex: none; }
.recado__opt:has(input:checked) {
  border-color: var(--c-accent);
  background: var(--c-white);
  box-shadow: 0 0 0 1px var(--c-accent);
}
.recado__opt-text { display: flex; flex-direction: column; gap: 0.1rem; }
.recado__opt-main { font-weight: 700; color: var(--c-ink); }
.recado__opt-sub { font-size: 0.82rem; color: var(--c-muted); }

/* -- Mural ------------------------------------------------------------------ */
.mural { margin-top: clamp(2rem, 5vw, 3rem); }
.mural__titulo {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  text-transform: uppercase;
  letter-spacing: var(--ls-title);
  text-align: center;
  color: var(--c-heading);
  font-weight: 500;
  margin-bottom: 1.6rem;
}
.mural__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  align-items: start;
}
.mural__card {
  margin: 0;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.2rem 1rem;
}
.mural__msg {
  margin: 0 0 0.7rem;
  color: var(--c-prose);
  font-size: 0.96rem;
  line-height: 1.55;
  white-space: pre-line;
}
.mural__msg::before { content: "“"; color: var(--c-accent); font-family: var(--font-display); font-size: 1.3rem; margin-right: 0.1rem; }
.mural__autor {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--c-accent-dark);
  line-height: 1;
}
.mural__data { font-family: var(--font-body); font-size: 0.72rem; color: var(--c-muted); letter-spacing: 0.02em; }
.mural__vazio { text-align: center; color: var(--c-muted); font-size: 0.95rem; }

/* ── RSVP: opções por pessoa (confirma você + opt-in para acompanhantes) ──── */
.rsvp__person { flex-direction: column; align-items: stretch; gap: 0.45rem; cursor: default; }
.rsvp__person--locked { background: var(--c-surface-soft); }
.rsvp__person-hint { font-size: 0.72rem; color: var(--c-muted); }
.rsvp__opts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.15rem; }
.rsvp__opt {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.32rem 0.72rem; border: 1px solid var(--c-line);
  border-radius: var(--radius-pill); font-size: 0.82rem; color: var(--c-prose);
  background: var(--c-white); cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.rsvp__opt input { accent-color: var(--c-accent); margin: 0; }
.rsvp__opt:hover { border-color: var(--c-accent); }
.rsvp__opt:has(input:checked) { border-color: var(--c-accent); background: var(--c-accent); color: var(--c-white); }
