* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(160deg, #f5cce8 0%, #e8d0f5 25%, #c8d8f8 65%, #d4eeff 100%);
  min-height: 100vh;
  color: #344261;
  overflow-x: hidden;
  position: relative;
}

/* ── Background clouds ── */
.bg-clouds { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 60px;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
}

.c1 { width: 220px; height: 60px; bottom: 18%; left: -40px; }
.c1::before { width: 110px; height: 90px; top: -48px; left: 28px; }
.c1::after  { width:  90px; height: 75px; top: -36px; left: 95px; }

.c2 { width: 170px; height: 52px; bottom: 35%; right: -30px; }
.c2::before { width: 85px; height: 68px; top: -36px; left: 20px; }
.c2::after  { width: 72px; height: 58px; top: -28px; left: 78px; }

.c3 { width: 190px; height: 56px; top: 22%; left: 3%; }
.c3::before { width: 95px; height: 78px; top: -40px; left: 24px; }
.c3::after  { width: 78px; height: 62px; top: -30px; left: 88px; }

.c4 { width: 160px; height: 48px; top: 12%; right: 5%; }
.c4::before { width: 82px; height: 66px; top: -34px; left: 20px; }
.c4::after  { width: 68px; height: 55px; top: -25px; left: 76px; }

.c5 { width: 140px; height: 44px; bottom: 8%; right: 20%; }
.c5::before { width: 72px; height: 58px; top: -30px; left: 18px; }
.c5::after  { width: 60px; height: 50px; top: -22px; left: 66px; }

/* ── Sparkles ── */
.sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.sparkle {
  position: absolute;
  color: #ffe57a;
  text-shadow: 0 0 8px rgba(255, 220, 80, 0.9);
  animation: twinkle 2.4s ease-in-out infinite;
}
.s1 { top:  8%; left: 12%; font-size: 1.3rem; animation-delay: 0s; }
.s2 { top: 18%; right: 10%; font-size: 1rem;   animation-delay: 0.6s; }
.s3 { top: 55%; left:  6%; font-size: 0.8rem;  animation-delay: 1.2s; }
.s4 { bottom: 18%; right: 12%; font-size: 1.1rem; animation-delay: 1.8s; }
.s5 { top: 40%; right:  4%; font-size: 0.7rem;  animation-delay: 0.9s; }
.s6 { bottom: 30%; left: 18%; font-size: 0.9rem; animation-delay: 0.3s; }
.s7 { top: 70%; right: 22%; font-size: 0.75rem; animation-delay: 1.5s; }

@keyframes twinkle {
  0%, 100% { opacity: 1;   transform: scale(1)   rotate(0deg); }
  50%       { opacity: 0.2; transform: scale(0.7) rotate(20deg); }
}

/* ── Layout ── */
.rsvp-app {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 100px 20px 50px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Card ── */
.card {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 30px;
  padding: 20px 24px 28px;
  margin-top: 80px;
  box-shadow:
    0 24px 64px rgba(160, 110, 210, 0.18),
    0  4px 20px rgba(100, 150, 230, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* ── Card Decoration: Sun + Rainbow ── */
.card-deco {
  position: absolute;
  top: -96px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 120px;
  pointer-events: none;
}

.sun {
  position: absolute;
  bottom: 0px;
  left: 20px;
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(255, 190, 30, 0.45));
  animation: sunFloat 3.5s ease-in-out infinite;
  z-index: 2;
}
@keyframes sunFloat {
  0%, 100% { transform: translateY(0px) rotate(-5deg); }
  50%       { transform: translateY(-6px) rotate(0deg); }
}

.rainbow-svg {
  position: absolute;
  bottom: -40px;
  right: 0;
  width: 250px;
  object-fit: contain;
  z-index: 1;
}

/* ── Title & Subtitle ── */
.title {
  font-size: 2rem;
  font-weight: 800;
  color: #2d4a7a;
  margin-bottom: 4px;
  margin-top: 6px;
}
.subtitle {
  font-size: 0.92rem;
  color: #6080aa;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ── Info Pill (full width — Date) ── */
.info-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(195, 220, 255, 0.85);
  border-radius: 50px;
  padding: 11px 18px;
  margin-bottom: 10px;
  cursor: default;
  justify-content: center;
}
.pill-icon  { font-size: 1.1rem; flex-shrink: 0; }
.pill-label { font-weight: 700; color: #2d4a7a; font-size: 0.88rem; flex-shrink: 0; }
.pill-value { color: #607aaa; font-size: 0.88rem; }
.pill-arrow { color: #9ab8e0; font-size: 1rem; margin-left: 6px; flex-shrink: 0; }

/* ── Two-column row (Tickets + Location) ── */
.info-row-2 {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.info-pill-sm {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(195, 220, 255, 0.85);
  border-radius: 50px;
  padding: 10px 14px;
  cursor: default;
  min-width: 0;
}
.info-pill-sm .pill-value { margin-left: 0; }
.info-pill-sm .pill-arrow { margin-left: auto; }
.info-pill-sm .pill-label { font-size: 0.85rem; }

/* ── Location Card ── */
.location-card {
  display: block;
  background: rgba(240, 248, 255, 0.75);
  border: 1.5px solid rgba(195, 220, 255, 0.75);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.location-card:hover {
  box-shadow: 0 6px 18px rgba(100, 160, 230, 0.25);
  transform: translateY(-1px);
}
.location-name {
  font-weight: 800;
  color: #2d4a7a;
  font-size: 0.88rem;
  margin-bottom: 7px;
  letter-spacing: 0.4px;
}
.location-addr {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  justify-content: center;
  color: #6a8ab0;
  font-size: 0.83rem;
  line-height: 1.65;
}
.location-pin { flex-shrink: 0; margin-top: 1px; }

/* ── RSVP Question ── */
.rsvp-question {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2d4a7a;
  margin-bottom: 14px;
}

/* ── RSVP Toggle Buttons ── */
.rsvp-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  justify-content: center;
}
.rsvp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  flex: 1;
  user-select: none;
  font-family: 'Poppins', sans-serif;
}
.rsvp-btn input[type="radio"] { display: none; }

.yes-btn {
  background: linear-gradient(135deg, #cce8ff 0%, #aad4ff 100%);
  color: #1a5a9a;
  border-color: rgba(170, 212, 255, 0.8);
  box-shadow: 0 2px 8px rgba(100, 180, 255, 0.2);
}
.no-btn {
  background: linear-gradient(135deg, #ffd4e8 0%, #ffb8d4 100%);
  color: #8a1a5a;
  border-color: rgba(255, 184, 212, 0.8);
  box-shadow: 0 2px 8px rgba(255, 130, 180, 0.2);
}
.yes-btn.selected {
  background: linear-gradient(135deg, #60b8f0 0%, #3aa0ee 100%);
  color: #fff;
  border-color: #3aa0ee;
  box-shadow: 0 5px 18px rgba(60, 160, 238, 0.45);
}
.no-btn.selected {
  background: linear-gradient(135deg, #f080b0 0%, #ee5090 100%);
  color: #fff;
  border-color: #ee5090;
  box-shadow: 0 5px 18px rgba(238, 80, 144, 0.45);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}
.yes-btn .btn-icon  { color: #1a5a9a; }
.no-btn  .btn-icon  { color: #8a1a5a; }
.yes-btn.selected .btn-icon,
.no-btn.selected  .btn-icon { color: inherit; background: rgba(255,255,255,0.3); }

/* ── Submit Button ── */
.submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #f9a825 0%, #f06292 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 5px 18px rgba(240, 98, 146, 0.38);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  letter-spacing: 0.3px;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 26px rgba(240, 98, 146, 0.48);
}

/* ── Message screens (submitted / error / already confirmed) ── */
.message-card {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  padding: 20px 24px 28px;
  margin-top: 80px;
  box-shadow:
    0 24px 64px rgba(160, 110, 210, 0.18),
    0  4px 20px rgba(100, 150, 230, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.9);
  text-align: center;
  width: 100%;
}
.message-card .title    { margin-bottom: 4px; margin-top: 6px; }
.message-card .subtitle { margin-bottom: 18px; }

/* ── Alert (validation) ── */
.alert {
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}
.alert-error {
  background: rgba(255, 200, 210, 0.9);
  color: #8a1a2a;
  border: 1px solid rgba(255, 160, 180, 0.8);
}
.alert-info {
  background: rgba(200, 230, 255, 0.9);
  color: #1a3a6a;
  border: 1px solid rgba(170, 210, 255, 0.8);
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .rsvp-app   { padding: 90px 14px 36px; }
  .card       { padding: 16px 16px 22px; margin-top: 70px; }
  .card-deco  { top: -82px; width: 210px; height: 104px; }
  .sun        { font-size: 3.2rem; left: 30px; }
  .title      { font-size: 1.7rem; }
  .rsvp-btn   { font-size: 0.82rem; padding: 10px 12px; gap: 6px; }
  .submit-btn { font-size: 0.92rem; }
}
