.rsvp-form { margin-top: 22px; }
.rsvp-form[hidden] { display: none; }
.rsvp-demo {
  background: var(--mint);
  padding: 12px 16px;
  border-radius: 8px;
}
.rsvp-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.rsvp-fields label { color: var(--ink); font-weight: 650; }
.rsvp-fields input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 12px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.rsvp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rsvp-actions button, .rsvp-secondary { min-height: 44px; cursor: pointer; }
.rsvp-secondary {
  padding: 7px 12px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  background: transparent;
  color: var(--forest);
  font: inherit;
}
.rsvp-event { padding: 12px 16px; margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; }
.rsvp-event h4 { margin: 0; color: var(--ink); }
.rsvp-event > h4, .rsvp-event summary h4 { font-size: 1.25em; line-height: 1.25; }
.rsvp-event summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  padding-block: 4px;
}
.rsvp-event summary::-webkit-details-marker { display: none; }
.rsvp-event summary::after {
  content: "";
  flex: none;
  inline-size: 0;
  block-size: 0;
  border: 5px solid transparent;
  border-left: 7px solid currentColor;
  border-right: 0;
  margin-inline-end: 15px;
}
.rsvp-event[open] > summary::after { transform: rotate(90deg); }
.rsvp-event summary h4 { display: inline; color: #24553e; }
details.rsvp-event a { color: #4d662c; }
.rsvp-required-mark { color: #a01928; }
#event-wedding { font-size: 2em; line-height: 1.15; }
.rsvp-event-date { font-weight: 700; font-style: italic; }
details.rsvp-event .rsvp-event-date { color: #000; }
#allergies-title { color: #a01928; text-decoration: underline; text-underline-offset: 0.15em; }
.rsvp-guest { margin: 10px 0 0; padding: 0; border: 0; }
.rsvp-guest legend { color: var(--ink); font-weight: 650; padding: 0; }
.rsvp-choices { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rsvp-choices label { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; cursor: pointer; }
.rsvp-choices input { accent-color: var(--forest); }
@media (max-width: 480px) {
  .rsvp-fields { grid-template-columns: 1fr; }
}
.rsvp-allergy-guest { border: 0; padding: 14px 0; margin: 0; }
.rsvp-allergy-guest + .rsvp-allergy-guest { border-top: 1px solid var(--line); }
.rsvp-allergy-guest legend { font-weight: 650; color: var(--ink); }
.rsvp-allergy-details[hidden] { display: none; }
.rsvp-allergy-details textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; resize: vertical; }
.rsvp-allergy-hint { font-size: .85rem; }
#reply-status { color: var(--forest); }

.rsvp-wedding-allergies { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
