
:root {
  --pink: #f35b98;
  --hot: #f72f86;
  --teal: #16b8ca;
  --navy: #102c55;
  --soft: #fff7fb;
  --shadow: 0 18px 45px rgba(16,44,85,.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--navy);
  background:
    radial-gradient(circle at 22px 22px, rgba(255,255,255,.9) 0 10px, transparent 11px) 0 0/54px 54px,
    linear-gradient(135deg, #ff9fc8 0%, #ffdbea 42%, #a8f2f7 100%);
}
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.image-shell {
  width: min(100%, 980px);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid white;
  background: white;
}
.image-shell img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}
.rsvp-shell {
  width: min(100%, 760px);
  background:
    linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)),
    radial-gradient(circle at 24px 24px, #fff 0 10px, transparent 11px) 0 0/56px 56px,
    linear-gradient(135deg, #ff9fc8, #8feff7);
  border: 5px solid white;
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rsvp-header {
  text-align: center;
  padding: 28px 22px 18px;
  background: linear-gradient(135deg, #ff78ad, #ff4b96 55%, #22c5d5);
  color: white;
}
.rsvp-header h1 {
  margin: 0;
  font-size: clamp(42px, 9vw, 76px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ribbon {
  display: inline-block;
  margin-top: 14px;
  background: var(--teal);
  color: white;
  font-weight: 900;
  font-size: clamp(22px, 4vw, 32px);
  padding: 8px 24px;
  border-radius: 10px;
  box-shadow: 0 6px 0 rgba(16,44,85,.12);
}
.rsvp-body { padding: 26px; }
.card {
  background: white;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(16,44,85,.12);
  padding: 24px;
}
.card h2 {
  margin: 0 0 6px;
  color: var(--hot);
  text-align: center;
  font-size: 38px;
  text-transform: uppercase;
}
.intro {
  text-align: center;
  font-weight: 900;
  margin: 0 0 22px;
}
.field { margin-bottom: 14px; }
label { display: block; font-weight: 900; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--navy);
  background: white;
  border: 2px solid #dcecf1;
  border-radius: 10px;
  padding: 12px 13px;
}
textarea { min-height: 80px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checks label {
  border: 2px solid #dcecf1;
  border-radius: 12px;
  padding: 10px;
  margin: 0;
  background: #fff;
}
.checks input { width: auto; margin-right: 6px; }
.note {
  background: #ffe7f1;
  border: 2px solid #ffd0e3;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px 0;
  font-weight: 900;
  line-height: 1.35;
}
.btn {
  display: inline-block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 15px 18px;
  text-align: center;
  text-decoration: none;
  color: white;
  background: linear-gradient(#ff67a5,#ef2f82);
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 0 rgba(16,44,85,.12);
}
.error {
  background:#ffe4ec;
  color:#9f1239;
  border-radius:12px;
  padding:12px 14px;
  font-weight:900;
  margin-bottom:14px;
}
.success {
  text-align: center;
  font-size: 20px;
  line-height: 1.45;
}
.small { text-align: center; margin-top: 14px; }
.small a { color: var(--hot); font-weight: 900; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:18px 0; }
.stat { background:#fff3f8; border-radius:18px; padding:16px; text-align:center; font-weight:900; }
.stat strong { display:block; color:var(--hot); font-size:34px; }
table { width:100%; border-collapse:collapse; background:white; border-radius:14px; overflow:hidden; }
th,td { padding:10px; border-bottom:1px solid #e4eef2; text-align:left; vertical-align:top; }
th { color:var(--hot); }
@media (max-width: 650px) {
  .page { padding: 8px; align-items: flex-start; }
  .image-shell, .rsvp-shell { border-radius: 18px; border-width: 3px; }
  .rsvp-body { padding: 14px; }
  .card { padding: 18px; }
  .grid2, .checks, .stats { grid-template-columns: 1fr; }
}
