/* Keep the response form still while guests fill it out. */
body #rsvp { padding: 80px 8% 60px; align-items: flex-start; z-index: 6; }
body #rsvp .chapter-copy { width: min(100%, 660px); max-width: none; }
body #journey #rsvp .chapter-title { font-size: clamp(50px, 5.4vw, 78px); margin: 0 0 12px; }
body #rsvp .brief-copy > .river { font-size: 23px; line-height: 1.2; margin: 0 0 20px; }
body #rsvp .brief-copy > .river .river-line { display: inline; margin: 0; }
#rsvp-form {
  --rsvp-entry: #ca8754;
  display: flex;
  flex-direction: column;
  height: clamp(240px, calc(var(--screen-height, 100svh) - 290px), 670px);
  background: #fff;
  color: var(--ink);
  pointer-events: auto;
  font: 14px/1.5 var(--reading, Arial, sans-serif);
  text-align: left;
}
#rsvp-form .rsvp-fields { overflow-y: auto; min-height: 0; padding: 22px 24px 12px; flex: 1; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a8b6c1 white; }
#rsvp-form fieldset { border: 0; min-width: 0; margin: 0 0 26px; padding: 0; }
#rsvp-form legend { padding: 0; margin: 0 0 15px; color: var(--orange); font: italic 400 30px/1.15 var(--letter); letter-spacing: .01em; }
#rsvp-form label { display: block; margin: 0 0 16px; font: 500 12px/1.5 var(--reading, Arial, sans-serif); letter-spacing: .01em; }
#rsvp-form :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 6px 0 0;
  padding: 10px 12px;
  border: 1px solid #c5ced5;
  border-radius: 2px;
  background: #fff;
  color: var(--rsvp-entry);
  font: 400 16px/1.4 var(--reading, Arial, sans-serif);
  box-sizing: border-box;
  color-scheme: light;
}
#rsvp-form textarea { resize: vertical; min-height: 76px; }
#rsvp-form :is(input, textarea)::placeholder { color: var(--rsvp-entry); opacity: 1; font-size: 13px; }
#rsvp-form :is(input, select, textarea, button):focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
#rsvp-form .rsvp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
#rsvp-form .rsvp-note { font: 12px/1.6 var(--reading, Arial, sans-serif); letter-spacing: 0; margin: 0 0 16px; max-width: none; }
#rsvp-form .rsvp-note a { font: inherit; color: var(--ink); overflow-wrap: anywhere; }
#rsvp-form .rsvp-optional { font-weight: 400; color: #617486; margin-left: 5px; }
#rsvp-form .rsvp-companion { margin-top: 24px; }
#rsvp-form .rsvp-companion legend { color: var(--ink); font-size: 25px; }
#rsvp-form .rsvp-actions { flex: none; padding: 12px 24px 18px; background: white; }
#rsvp-form #rsvp-status { margin: 0 0 10px; font: 13px/1.5 var(--reading, Arial, sans-serif); color: var(--ink); }
#rsvp-form #rsvp-status:empty { display: none; }
#rsvp-form .rsvp-submit { min-height: 48px; padding: 12px 28px; background: var(--ink); color: white; border: 0; border-radius: 2px; font: 500 13px/1.5 var(--reading, Arial, sans-serif); letter-spacing: .035em; }
#rsvp-form .rsvp-submit:hover { background: #294e6c; }
#rsvp-form .rsvp-submit:disabled { opacity: .65; cursor: wait; }
#rsvp-form [hidden], #rsvp-form .rsvp-honey { display: none !important; }
#rsvp-form[data-submitted] .rsvp-fields { opacity: .75; }
body:not(.camera-on) #rsvp-form { height: auto; }
body:not(.camera-on) #rsvp-form .rsvp-fields { overflow: visible; }
@media (max-width: 700px) {
  body #rsvp { padding: 76px 6% 36px; }
  body #rsvp .brief-copy > .river { font-size: 21px; }
  #rsvp-form { height: max(220px, calc(var(--screen-height, 100svh) - 260px)); }
  #rsvp-form .rsvp-fields { padding: 18px 14px 8px; }
  #rsvp-form .rsvp-actions { padding: 10px 14px 14px; }
  #rsvp-form .rsvp-grid { grid-template-columns: 1fr; }
  #rsvp-form .rsvp-submit { width: 100%; }
}
