.rsvp-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(111, 35, 51, 0.16);
  border-radius: 28px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
  text-align: center;
}

.rsvp-card h2 {
  margin: 0;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.rsvp-card__intro {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.rsvp-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  text-align: left;
}

.rsvp-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rsvp-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form button {
  min-height: 50px;
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
}

.rsvp-form input,
.rsvp-form select {
  width: 100%;
  border: 1px solid rgba(111, 35, 51, 0.18);
  color: var(--ink);
  background: var(--pearl);
  outline-color: var(--champagne);
}

.rsvp-form__submit {
  border: 0;
  color: var(--pearl);
  background: linear-gradient(135deg, var(--burgundy), var(--gold));
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(111, 35, 51, 0.18);
}

.rsvp-form__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(111, 35, 51, 0.24);
}

.rsvp-form__submit:disabled {
  cursor: wait;
  opacity: 0.66;
}

.rsvp-message {
  min-height: 1.5em;
  margin: 4px 0 0;
  color: var(--burgundy);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.rsvp-message.is-error {
  color: #a33d4d;
}

.rsvp-message.is-success {
  color: var(--burgundy);
}

.rsvp-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.fireworks-canvas {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.fireworks-canvas.is-active {
  opacity: 1;
}

body[data-template="midnight"] .rsvp-card {
  border-color: rgba(241, 213, 174, 0.18);
  background: rgba(32, 33, 50, 0.84);
}

body[data-template="mono"] .rsvp-card {
  background: rgba(248, 247, 242, 0.82);
}

@media (max-width: 640px) {
  .rsvp-card {
    border-radius: 22px;
    padding: 26px 18px;
  }

  .rsvp-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fireworks-canvas {
    display: none;
  }
}
