/* Floral Romance – Blooming Flower Petal Reveal */
.tpl-fr-wrapper {
  position: relative; min-height: 540px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background: linear-gradient(135deg, #fdf2f8, #fce7f3, #fdf2f8);
  overflow: hidden;
}

/* ── Bloom Gate ──────────────────────── */
.tpl-fr-bloom-gate {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fdf2f8, #f8d7e8);
  cursor: pointer; transition: opacity .8s ease .6s;
}
.tpl-fr-bloom-gate.bloomed { opacity: 0; pointer-events: none; }

.tpl-fr-petal {
  position: absolute; width: 120px; height: 180px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: .7; transition: all 1.2s cubic-bezier(.68,-.55,.27,1.55);
}
.tpl-fr-p1 { background: rgba(219,112,147,.5); transform: rotate(0deg) translateY(-40px); }
.tpl-fr-p2 { background: rgba(232,160,176,.5); transform: rotate(72deg) translateY(-40px); }
.tpl-fr-p3 { background: rgba(219,112,147,.4); transform: rotate(144deg) translateY(-40px); }
.tpl-fr-p4 { background: rgba(240,192,208,.5); transform: rotate(216deg) translateY(-40px); }
.tpl-fr-p5 { background: rgba(219,112,147,.45); transform: rotate(288deg) translateY(-40px); }

.tpl-fr-bloom-gate.bloomed .tpl-fr-p1 { transform: rotate(0deg) translateY(-300px) scale(2); opacity: 0; }
.tpl-fr-bloom-gate.bloomed .tpl-fr-p2 { transform: rotate(72deg) translateY(-300px) scale(2); opacity: 0; }
.tpl-fr-bloom-gate.bloomed .tpl-fr-p3 { transform: rotate(144deg) translateY(-300px) scale(2); opacity: 0; }
.tpl-fr-bloom-gate.bloomed .tpl-fr-p4 { transform: rotate(216deg) translateY(-300px) scale(2); opacity: 0; }
.tpl-fr-bloom-gate.bloomed .tpl-fr-p5 { transform: rotate(288deg) translateY(-300px) scale(2); opacity: 0; }

.tpl-fr-center-bud {
  position: relative; z-index: 2; text-align: center;
  animation: fr-bud-pulse 2.5s ease-in-out infinite;
}
.tpl-fr-center-bud i {
  font-size: 48px; color: #db7093; display: block; margin-bottom: 8px;
}
.tpl-fr-center-bud span {
  font-size: 12px; font-weight: 600; color: #8a5a6a;
  text-transform: uppercase; letter-spacing: 2px;
  font-family: 'Montserrat', sans-serif;
}
@keyframes fr-bud-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ── Card ────────────────────────────── */
.tpl-fr-card {
  position: relative; z-index: 1; width: 100%; max-width: 520px;
}
.tpl-fr-petals-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.tpl-fr-floating-petal {
  position: absolute; top: -20px; font-size: 16px;
  animation: fr-petal-fall linear forwards; opacity: 0;
}
@keyframes fr-petal-fall {
  0% { opacity: 0; transform: translateY(-20px) rotate(0deg) translateX(0); }
  10% { opacity: .7; }
  50% { transform: translateY(250px) rotate(180deg) translateX(30px); }
  90% { opacity: .5; }
  100% { opacity: 0; transform: translateY(550px) rotate(360deg) translateX(-20px); }
}

.tpl-fr-inner {
  padding: 36px 28px; text-align: center;
  background: rgba(255,255,255,.65); backdrop-filter: blur(6px);
  border: 1px solid rgba(219,112,147,.25); border-radius: 16px;
  position: relative;
}

.tpl-fr-floral-top, .tpl-fr-floral-bottom {
  font-size: 22px; color: #db7093; letter-spacing: 10px; margin-bottom: 14px;
}
.tpl-fr-floral-bottom { margin-bottom: 0; margin-top: 14px; }

.tpl-fr-invite {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #db7093; margin-bottom: 4px;
}
.tpl-fr-sub {
  font-size: 13px; color: #8a5a6a; margin-bottom: 16px; font-style: italic;
}

.tpl-fr-names-block { margin-bottom: 10px; }
.tpl-fr-name {
  font-family: 'Great Vibes', cursive; font-size: 36px;
  font-weight: 400; color: #5a2d3e; margin: 0; line-height: 1.2;
}
.tpl-fr-heart-anim { margin: 6px 0; }
.tpl-fr-heart-icon {
  font-size: 22px; color: #db7093; display: inline-block;
  animation: fr-heart-beat 1.5s ease-in-out infinite;
}
@keyframes fr-heart-beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}

.tpl-fr-parents {
  font-size: 12px; color: #8a5a6a; margin: 12px 0 8px; line-height: 1.7;
}
.tpl-fr-parents p { margin: 0; }

.tpl-fr-divider {
  width: 80px; height: 2px; margin: 14px auto;
  background: linear-gradient(90deg, transparent, #db7093, transparent);
}

.tpl-fr-details { margin-top: 14px; }
.tpl-fr-date, .tpl-fr-time, .tpl-fr-venue {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-bottom: 5px;
}
.tpl-fr-date { font-size: 15px; font-weight: 700; color: #5a2d3e; }
.tpl-fr-date i, .tpl-fr-time i, .tpl-fr-venue i { color: #db7093; font-size: 13px; }
.tpl-fr-time { font-size: 13px; color: #8a5a6a; }
.tpl-fr-venue { font-size: 14px; font-weight: 700; color: #5a2d3e; }
.tpl-fr-address { font-size: 12px; color: #8a5a6a; text-align: center; }

/* ── Animate elements ────────────────── */
.fr-anim { opacity: 0; transform: translateY(18px); }
.tpl-fr-bloom-gate.bloomed ~ .tpl-fr-card .fr-anim {
  animation: fr-reveal .7s ease forwards; animation-delay: var(--d, 0s);
}
@keyframes fr-reveal { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 480px) {
  .tpl-fr-wrapper { min-height: 460px; }
  .tpl-fr-inner { padding: 24px 16px; }
  .tpl-fr-name { font-size: 28px; }
  .tpl-fr-petal { width: 80px; height: 120px; }
}
