:root {
  --pink: #e8a8bb;
  --pink-deep: #d97e9a;
  --pink-light: #fbeaf0;
  --sage: #aac1a0;
  --sage-deep: #7e9c72;
  --sage-light: #eef3ea;
  --gold: #e3c98f;
  --teal: #aac1a0;
  --purple: #d97e9a;
  --cream: #fffaf4;
  --ink: #5c4a45;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Quicksand', sans-serif;
  color: var(--ink);
  background-color: #fffdfb;
  background-image:
    repeating-linear-gradient(to right, var(--pink-light) 0 22px, transparent 22px 44px),
    repeating-linear-gradient(to bottom, var(--pink-light) 0 22px, transparent 22px 44px);
  background-blend-mode: multiply;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  position: relative;
  overflow-x: hidden;
}

/* floating background decorations */
.bg-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* same floating emojis, but rendered above the card so they're visible
   even on narrow screens where the card fills most of the viewport */
.bg-deco-front {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.float-item {
  position: absolute;
  animation: floatUp linear infinite;
  opacity: 0.85;
  will-change: transform;
}

@keyframes floatUp {
  0% { transform: translateY(110vh) rotate(0deg); }
  100% { transform: translateY(-15vh) rotate(360deg); }
}

.star {
  position: absolute;
  z-index: 0;
  animation: twinkle 3.2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.1) rotate(8deg); }
}

@keyframes pop {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.04); }
  100% { transform: scale(0.92); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes rainbow-text {
  0%, 100% { color: var(--pink-deep); }
}

/* mobile-first base: this is the primary, most-used layout (phones) */
.card {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border-radius: 24px;
  max-width: 460px;
  width: 92%;
  padding: 40px 22px 30px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(217, 126, 154, 0.18), 0 0 0 6px #fff, 0 0 0 10px var(--pink-light);
  overflow: hidden;
}

.bow-topper {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  z-index: 3;
}

/* larger screens get a bit more breathing room and bigger type */
@media (min-width: 481px) {
  body {
    padding: 36px 16px;
  }

  .card {
    width: 100%;
    padding: 50px 34px 40px;
    border-radius: 28px;
  }

  .title {
    font-size: 2.2rem;
  }

  .script {
    font-size: 2.7em;
  }

  .duck-wrap {
    width: 140px;
  }

  .goose-wrap {
    width: 160px;
  }

  .bow-topper {
    width: 76px;
  }
}

@keyframes waddle {
  0%, 100% { transform: rotate(-6deg) translateX(-3px); }
  50% { transform: rotate(6deg) translateX(3px); }
}

.goose-wrap {
  width: 130px;
  animation: waddle 1.4s ease-in-out infinite, bounce 1.4s ease-in-out infinite;
  cursor: pointer;
}

.goose-wrap:active {
  transform: scale(0.92);
}

.goose-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0 auto;
}

.gingham-heart,
.pink-bow-balloon {
  width: 40px;
  flex-shrink: 0;
  animation: bounce 2.6s ease-in-out infinite;
}

.pink-bow-balloon {
  width: 30px;
  align-self: flex-end;
  margin-bottom: 18px;
}

.flip {
  transform: scaleX(-1);
}

@media (min-width: 481px) {
  .gingham-heart,
  .pink-bow-balloon {
    width: 56px;
  }

  .pink-bow-balloon {
    width: 42px;
  }
}

@keyframes squawk {
  0% { transform: scale(1) rotate(0deg); }
  15% { transform: scale(1.18, 0.85) rotate(-8deg); }
  30% { transform: scale(0.9, 1.15) rotate(7deg); }
  45% { transform: scale(1.12, 0.9) rotate(-5deg); }
  60% { transform: scale(0.96, 1.05) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.goose-wrap.squawk {
  animation: squawk 0.5s ease-in-out, waddle 1.4s ease-in-out infinite, bounce 1.4s ease-in-out infinite;
}

@keyframes honkBubblePop {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.5) rotate(var(--rot)); }
  20% { opacity: 1; transform: translate(-50%, -10px) scale(1.15) rotate(var(--rot)); }
  40% { transform: translate(-50%, -16px) scale(1) rotate(var(--rot)); }
  100% { opacity: 0; transform: translate(-50%, -50px) scale(0.9) rotate(var(--rot)); }
}

.honk-bubble {
  position: absolute;
  top: 0;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--pink-deep);
  -webkit-text-stroke: 1.5px #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 6;
  animation: honkBubblePop 0.9s ease-out forwards;
  white-space: nowrap;
}

@keyframes burstFly {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--distance)) scale(0.6); }
}

.burst-particle {
  position: absolute;
  top: 45%;
  left: 50%;
  font-size: 1.3rem;
  pointer-events: none;
  z-index: 6;
  animation: burstFly 0.6s ease-out forwards;
}

.goose-flyover {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

@keyframes gooseFlyRight {
  0% { transform: translateX(-20vw) translateY(0) rotate(-4deg); }
  25% { transform: translateX(25vw) translateY(var(--wobble)) rotate(4deg); }
  50% { transform: translateX(55vw) translateY(0) rotate(-4deg); }
  75% { transform: translateX(85vw) translateY(var(--wobble)) rotate(4deg); }
  100% { transform: translateX(120vw) translateY(0) rotate(-2deg); }
}

@keyframes gooseFlyLeft {
  0% { transform: translateX(20vw) translateY(0) rotate(4deg) scaleX(-1); }
  25% { transform: translateX(-25vw) translateY(var(--wobble)) rotate(-4deg) scaleX(-1); }
  50% { transform: translateX(-55vw) translateY(0) rotate(4deg) scaleX(-1); }
  75% { transform: translateX(-85vw) translateY(var(--wobble)) rotate(-4deg) scaleX(-1); }
  100% { transform: translateX(-120vw) translateY(0) rotate(2deg) scaleX(-1); }
}

.flying-goose {
  position: absolute;
  left: 0;
  animation-name: gooseFlyRight;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.honk-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #9c8a83;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.goose-title {
  line-height: 1.05;
}

.loose {
  font-family: 'Baloo 2', sans-serif;
  font-style: normal;
  font-size: 1.3em;
  letter-spacing: 0.02em;
  color: var(--pink-deep);
  animation: wiggle 1.8s ease-in-out infinite;
  display: inline-block;
}

.eyebrow {
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sage-deep);
  margin: 0 0 6px;
  position: relative;
  z-index: 2;
}

.title {
  margin: 0 0 4px;
  font-family: 'Baloo 2', 'Quicksand', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  position: relative;
  z-index: 2;
}

.script {
  font-family: 'Caveat', cursive;
  font-size: 2.2em;
  display: inline-block;
  line-height: 1;
  margin-top: 2px;
  font-weight: 700;
  color: var(--pink-deep);
}

.duck-wrap {
  position: relative;
  z-index: 2;
  margin: 12px auto 6px;
  width: 110px;
  animation: bounce 2.2s ease-in-out infinite;
}

.lede {
  color: #7a6a63;
  margin: 6px 0 22px;
  font-size: 1.02rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.honoring {
  background-color: #fff;
  background-image:
    repeating-linear-gradient(to right, var(--pink-light) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(to bottom, var(--pink-light) 0 10px, transparent 10px 20px);
  background-blend-mode: multiply;
  border: 2px solid var(--pink);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.honoring .label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--pink-deep);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.honoring .names {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--ink);
  font-weight: 700;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
  text-align: left;
  background: linear-gradient(135deg, var(--sage-light), #fff);
  border: 2px solid var(--sage);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
}

.detail .icon {
  font-size: 1.4rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.directions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-align: center;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(126, 156, 114, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(126, 156, 114, 0.35);
}

.directions-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(126, 156, 114, 0.25);
}

.rsvp-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 16px 40px;
  border-radius: 999px;
  box-shadow: 0 14px 24px rgba(217, 126, 154, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  z-index: 2;
}

.rsvp-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 28px rgba(217, 126, 154, 0.4);
}

.guests-link {
  display: block;
  min-height: 44px;
  line-height: 44px;
  margin-top: 18px;
  color: var(--sage-deep);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.guests-link:hover {
  text-decoration: underline;
}

/* RSVP form page */
.form-group {
  text-align: left;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.form-group label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
  font-size: 0.94rem;
  color: var(--sage-deep);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 3px solid var(--pink-light);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.02rem;
  background: var(--cream);
  font-weight: 600;
}

.form-group input[type="tel"] {
  padding: 16px 16px;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option {
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
}

.radio-option label {
  display: block;
  text-align: center;
  padding: 13px;
  border: 3px solid var(--sage-light);
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--ink);
}

.radio-option input:checked + label {
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  border-color: var(--sage-deep);
  color: #fff;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink));
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.08rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 10px 22px rgba(217, 126, 154, 0.3);
  position: relative;
  z-index: 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(217, 126, 154, 0.35);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(217, 126, 154, 0.25);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.back-link {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  margin-bottom: 6px;
  color: var(--sage-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  position: relative;
  z-index: 2;
}

.status-msg {
  margin-top: 16px;
  font-weight: 800;
  text-align: center;
  position: relative;
  z-index: 2;
}

.status-msg.success { color: var(--sage-deep); }
.status-msg.error { color: var(--pink-deep); }

/* Guest list page */
.guest-summary {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.stat {
  text-align: center;
  background: linear-gradient(135deg, var(--sage-light), #fff);
  border: 2px solid var(--sage);
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 80px;
}

.stat .num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--sage-deep);
  display: block;
}

.stat .label {
  font-size: 0.72rem;
  color: #7a6a63;
  font-weight: 700;
}

.guest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  position: relative;
  z-index: 2;
}

.guest-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 2px dotted var(--pink-light);
  font-weight: 700;
}

.guest-list li:last-child { border-bottom: none; }

.guest-list .badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

.badge.yes { background: var(--sage-light); color: var(--sage-deep); border: 2px solid var(--sage); }
.badge.no { background: var(--pink-light); color: var(--pink-deep); border: 2px solid var(--pink); }

.empty-state {
  color: #a8978f;
  font-style: italic;
  padding: 20px 0;
  font-weight: 600;
}

.note-text {
  font-size: 0.85rem;
  color: #a8978f;
  font-style: italic;
  margin-top: 4px;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--pink);
  margin-bottom: 22px;
  box-shadow: 0 10px 24px rgba(217, 126, 154, 0.2);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
