.rsvp-section {
  padding: clamp(64px, 9vw, 112px) 24px;
  background: var(--color-background);
}
.rsvp-container {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
}
.rsvp-container::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 88px;
  right: -43px;
  width: 48px;
  height: 68px;
  background: url("../images/branch.svg") center / contain no-repeat;
  opacity: .28;
  pointer-events: none;
  transform: rotate(12deg);
}
.rsvp-container > .eyebrow,
.rsvp-container > h2,
.rsvp-intro { text-align: center; }
.rsvp-container h2 { margin: 14px 0 12px; text-wrap: balance; }
.rsvp-intro {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.75;
}
.rsvp-form {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid #a45b3e28;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-paper);
  box-shadow: 0 12px 36px #53392f08;
}
.rsvp-form::before,
.rsvp-form::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 76px;
  height: 32px;
  background: url("../images/autumn-leaves.svg") center / contain no-repeat;
  opacity: .18;
  pointer-events: none;
}
.rsvp-form::before { top: 12px; right: 13px; transform: rotate(8deg); }
.rsvp-form::after { bottom: 12px; left: 13px; transform: rotate(188deg); }
.rsvp-form > * { position: relative; z-index: 1; }
.rsvp-field {
  display: grid;
  gap: 9px;
  margin: 0;
  color: var(--color-ink);
  font-size: 15px;
  line-height: 1.65;
}
.rsvp-field > span,
.rsvp-choice-group legend,
.rsvp-field > label {
  font-size: 15px;
}
.required-mark { color: var(--color-accent); }
.rsvp-field input[type="text"],
.rsvp-field select,
.rsvp-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #97735a55;
  border-radius: 8px;
  padding: 11px 13px;
  background: #fffdf9;
  color: var(--color-ink);
  font: 16px/1.5 Georgia, "Times New Roman", serif;
}
.rsvp-field textarea { min-height: 116px; resize: vertical; }
.rsvp-field input:focus-visible,
.rsvp-field select:focus-visible,
.rsvp-field textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.rsvp-choice-group { border: 0; padding: 0; }
.rsvp-choice-group legend { margin-bottom: 8px; }
.rsvp-choices { display: flex; flex-wrap: wrap; gap: 12px; }
.rsvp-choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 110px;
  padding: 10px 16px;
  border: 1px solid #97735a55;
  border-radius: 8px;
  background: #fffdf9;
  cursor: pointer;
}
.rsvp-choice input { accent-color: var(--color-accent); }
.rsvp-help {
  margin: 0 0 5px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.75;
}
.rsvp-submit {
  justify-self: center;
  min-width: 210px;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  padding: 14px 24px;
  background: var(--color-accent);
  color: #fffaf0;
  font: 12px/1.4 Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}
.rsvp-submit:hover { background: #85462f; }
.rsvp-submit:disabled { opacity: .55; cursor: wait; }
.rsvp-status {
  margin: 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}
.rsvp-status.is-error { color: #9e332b; }
.rsvp-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .rsvp-container::after { right: -20px; width: 38px; height: 54px; opacity: .2; }
}
@media (max-width: 600px) {
  .rsvp-container::after { display: none; }
  .rsvp-section { padding-right: 18px; padding-left: 18px; }
  .rsvp-intro { font-size: 16px; }
  .rsvp-form { gap: 19px; padding: 35px 18px; }
  .rsvp-form::before, .rsvp-form::after { width: 57px; height: 24px; opacity: .16; }
  .rsvp-form::before { top: 8px; right: 8px; }
  .rsvp-form::after { bottom: 8px; left: 8px; }
  .rsvp-choice { flex: 1 1 120px; }
  .rsvp-submit { width: 100%; }
}
