/*
 * RSVP form, from "Guest Information" down (the heading, tagline and intro
 * above it keep their original styles). Its wording, events, pictures and
 * answers are in site-text.js.
 *
 * Phones and tablets first: one column, event cards in a sideways swipe row
 * showing about two and a half cards. Desktop (1024px and wider) is further
 * down: everything is sized from the screen height so the whole section
 * fits one screen.
 */

.rsvp-form {
  width: 100%;
  margin-top: 20px;
  padding: 0 8px;
  color: #2b3a5c;
  font-family: "Cormorant Garamond", Georgia, serif;
}
.rsvp-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Shared pieces ---------- */

/* Small widely spaced serif capitals. */
.rsvp-label {
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2b3a5c;
}
.rsvp-label-small {
  font-size: 12px;
  letter-spacing: 0.14em;
}
.rsvp-line {
  display: block;
  height: 1px;
  flex: 1;
}
.rsvp-line-left {
  background: linear-gradient(90deg, transparent, #b98a3a);
}
.rsvp-line-right {
  background: linear-gradient(90deg, #b98a3a, transparent);
}
.rsvp-ornament {
  width: 32px;
  height: 16px;
  flex-shrink: 0;
  color: #8a6424;
}
.rsvp-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #8a6424;
}
.rsvp-error {
  margin: 4px 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #a33b2a;
}
.rsvp-error-center {
  margin-left: 0;
  text-align: center;
}

/* Cream panel with a thin gold border. */
.rsvp-panel {
  width: 100%;
  max-width: 640px;
  padding: 16px 14px 18px;
  border: 1px solid #d6b574;
  border-radius: 18px;
  background: rgba(253, 248, 237, 0.95);
  box-shadow: 0 10px 28px rgba(110, 74, 18, 0.16),
    inset 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* ---------- 1. Guest information ---------- */
.rsvp-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rsvp-label-ornament {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  max-width: 200px;
}
.rsvp-fields {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.rsvp-field-wrap {
  position: relative;
}
.rsvp-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 14px;
  border: 1px solid #e2cfa6;
  border-radius: 12px;
  background: #fffdf8;
  cursor: text;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.rsvp-field:focus-within {
  border-color: #b98a3a;
  box-shadow: 0 0 0 3px rgba(185, 138, 58, 0.18);
}
.rsvp-field.is-error {
  border-color: rgba(163, 59, 42, 0.6);
}
.rsvp-field-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.rsvp-field-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.rsvp-input {
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #2b3a5c;
}
.rsvp-input::placeholder {
  color: #8a8f9c;
  opacity: 1;
}
/* Number of Guests: a dropdown that looks like the other boxes. */
.rsvp-select {
  cursor: pointer;
}
.rsvp-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 26px;
  cursor: pointer;
}
.rsvp-select select.is-placeholder {
  color: #8a8f9c;
}
.rsvp-select option {
  color: #2b3a5c;
}
.rsvp-chevron {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  color: #2b3a5c;
  pointer-events: none;
}

/* ---------- 2. Celebrations heading ---------- */
.rsvp-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 26px;
  padding: 0 12px;
  text-align: center;
}
.rsvp-heading .rsvp-label {
  text-shadow: 0 0 0.25rem #fffaf0, 0 0 0.5rem #fffaf0, 0 0 0.9rem #fff7ea,
    0 0 1.4rem #fff7ea;
}

/* ---------- 3. Event cards ---------- */
.rsvp-events-wrap {
  position: relative;
  width: calc(100% + 36px); /* run to the screen edges on phones */
  margin-top: 10px;
}
.rsvp-events {
  display: flex;
  gap: 10px;
  padding: 4px 20px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
}
.rsvp-events::-webkit-scrollbar {
  display: none;
}
.rsvp-event {
  position: relative;
  display: flex;
  flex: 0 0 min(210px, calc((100vw - 60px) / 2.5));
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: 1px solid #ecdcb8;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--rsvp-tint, #fbf3e1) 0%, #fffdf8 100%);
  box-shadow: 0 4px 14px rgba(120, 80, 30, 0.1);
  text-align: center;
  scroll-snap-align: start;
  transition: border-color 0.3s, box-shadow 0.3s;
}
/* Outlines after an answer is chosen (set per answer in site-text.js). */
.rsvp-event.is-gold {
  border-color: #b98a3a;
  box-shadow: 0 0 0 1.5px rgba(185, 138, 58, 0.65),
    0 6px 16px rgba(120, 80, 30, 0.14);
}
.rsvp-event.is-soft {
  border-color: #dcc08a;
  box-shadow: 0 0 0 1px rgba(214, 181, 116, 0.5),
    0 5px 14px rgba(120, 80, 30, 0.11);
}
.rsvp-event-pic {
  display: block;
  width: 88%;
  aspect-ratio: 5 / 3;
  object-fit: contain;
  user-select: none;
}
.rsvp-event-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3em; /* names on one or two lines line up */
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rsvp-event-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.rsvp-event-day {
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}
.rsvp-event-rule {
  align-self: stretch;
  width: 1px;
  background: #c9a96a;
}
.rsvp-event-my {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rsvp-event-weekday {
  font-weight: 500;
  opacity: 0.8;
}

/* "Choose attendance" button at the bottom of each card. */
.rsvp-att-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 10px 0 12px;
  border: 1px solid #e2cfa6;
  border-radius: 10px;
  background: #fffdf8;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: #2b3a5c;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.rsvp-att-button:hover,
.rsvp-att-button.is-open {
  border-color: #b98a3a;
}
.rsvp-att-button:focus-visible {
  outline: 2px solid #b98a3a;
  outline-offset: 2px;
}
.rsvp-att-button.is-error {
  border-color: rgba(163, 59, 42, 0.6);
}
.rsvp-att-value {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rsvp-att-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.rsvp-att-button.is-open .rsvp-att-chevron {
  transform: rotate(180deg);
}

/* The answers panel: drawn over the page, fixed to the screen. */
.rsvp-att-panel {
  position: fixed;
  z-index: 1100; /* above the site header */
  padding: 6px;
  border: 1px solid #e2cfa6;
  border-radius: 14px;
  background: #fffaf0;
  box-shadow: 0 14px 34px rgba(110, 74, 18, 0.22), 0 2px 6px rgba(110, 74, 18, 0.1);
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #2b3a5c;
  animation: rsvp-att-in 0.18s ease-out;
}
@keyframes rsvp-att-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.rsvp-att-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.rsvp-att-option + .rsvp-att-option {
  border-top: 1px solid rgba(226, 207, 166, 0.6);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.rsvp-att-option:hover,
.rsvp-att-option:focus-visible {
  outline: none;
  background: #f7ead0;
}
.rsvp-att-radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid #8f8a80;
  border-radius: 50%;
  background: #fffdf8;
}
.rsvp-att-option.is-chosen .rsvp-att-radio {
  border-color: #9a6b2c;
  background: #9a6b2c;
  box-shadow: inset 0 0 0 3.5px #fffdf8;
}
.rsvp-att-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.rsvp-att-main {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}
.rsvp-att-sub {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #5d6478;
}
.rsvp-att-twig {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #b08a4a;
}

/* ---------- 4. Food preference | Anything we should know? ---------- */
.rsvp-extra {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
}
.rsvp-extra-part {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rsvp-extra-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rsvp-extra-divider {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d6b574, transparent);
}
.rsvp-food {
  position: relative;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 10px;
  margin-top: 10px;
}
.rsvp-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 10px;
  border: 1px solid #e2cfa6;
  border-radius: 9999px;
  background: #fffdf8;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.rsvp-pill.is-error {
  border-color: rgba(163, 59, 42, 0.6);
}
.rsvp-pill.is-chosen {
  border-color: #b98a3a;
  background: #f7ead0;
  box-shadow: 0 0 0 1px rgba(185, 138, 58, 0.45);
}
.rsvp-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.rsvp-pill:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(185, 138, 58, 0.3);
}
.rsvp-pill-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #8a6424;
}
.rsvp-note-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}
/* One line to start; grows with what is typed (up to about four lines). */
.rsvp-note-input {
  display: block;
  width: 100%;
  max-height: 7.6em;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid #e2cfa6;
  border-radius: 10px;
  outline: none;
  background: #fffdf8;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: #2b3a5c;
  resize: none;
  overflow-y: auto;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.rsvp-note-input:focus {
  border-color: #b98a3a;
  box-shadow: 0 0 0 3px rgba(185, 138, 58, 0.18);
}
.rsvp-note-input::placeholder {
  color: #8a8f9c;
  opacity: 1;
}
.rsvp-note-input:placeholder-shown {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* a long placeholder stays on one line */
}

/* ---------- 5. Submit ---------- */
.rsvp-submit-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 22px;
}
.rsvp-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rsvp-sprig {
  width: 48px;
  height: 24px;
  color: #8a6424;
}
.rsvp-sprig-left {
  transform: scaleX(-1);
}
#rsvp button.rsvp-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  min-width: 200px;
  padding: 0 30px;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(180deg, #a87a3a, #8e6226);
  box-shadow: 0 6px 16px rgba(120, 80, 30, 0.28);
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  color: #fdf6e6;
  cursor: pointer;
}
#rsvp button.rsvp-submit:hover {
  background: linear-gradient(180deg, #9a6c2e, #7f561f);
}
#rsvp button.rsvp-submit:disabled {
  cursor: wait;
  opacity: 0.75;
}
.rsvp-submit-arrow {
  width: 16px;
  height: 9px;
}
.rsvp-failure {
  max-width: 34rem;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #a33b2a;
}

/* ---------- Sent ---------- */
.rsvp-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: 48px 20px;
  text-align: center;
}
.rsvp-success-title {
  margin: 16px 0 0;
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: #6e4a12;
}
.rsvp-success-text {
  max-width: 28rem;
  margin: 16px 0 0;
  font-size: 20px;
  font-weight: 500;
}

/* Phones: slightly tighter spacing in the headings so they break evenly,
   and narrow cards: the attendance text may wrap onto two lines so each card
   keeps its width (about two and a half cards on screen). */
@media (max-width: 767px) {
  .rsvp-label {
    letter-spacing: 0.16em;
    text-wrap: balance;
  }
  .rsvp-event,
  .rsvp-att-button {
    min-width: 0;
  }
  .rsvp-att-button {
    gap: 4px;
    padding: 4px 6px 4px 10px;
    font-size: 14px;
    line-height: 1.1;
  }
  .rsvp-att-value {
    white-space: normal;
  }
  .rsvp-att-chevron {
    width: 14px;
    height: 14px;
  }
}

/* ---------- Desktop: sized from the screen height ---------- */
@media (min-width: 1024px) {
  .rsvp-form {
    margin-top: 1vh;
    padding: 0;
  }
  .rsvp-panel {
    width: min(46vw, 76vh);
    max-width: none;
    padding: 1.2vh 2.4vh 2.4vh; /* room for a message under the last row */
    border-radius: 1.8vh;
  }
  .rsvp-label {
    font-size: max(11px, 1.45vh);
  }
  .rsvp-label-small {
    font-size: max(10px, 1.3vh);
  }
  .rsvp-label-row {
    gap: 1.2vh;
  }
  .rsvp-label-ornament {
    max-width: 24vh;
  }
  .rsvp-ornament {
    width: 3.6vh;
    height: 1.8vh;
  }
  .rsvp-icon {
    width: 2.6vh;
    height: 2.6vh;
  }
  .rsvp-fields {
    grid-template-columns: 1fr 1fr;
    gap: 2vh 1.4vh; /* room for a message under each box */
    margin-top: 0.9vh;
  }
  .rsvp-field {
    gap: 1.4vh;
    min-height: 0;
    height: 5vh;
    padding: 0 1.6vh;
    border-radius: 1.1vh;
  }
  .rsvp-field-label {
    font-size: max(13px, 1.6vh);
  }
  .rsvp-input {
    margin-top: 0.1vh;
    font-size: max(13px, 1.55vh);
  }
  .rsvp-chevron {
    right: 1.6vh;
    width: 2vh;
    height: 2vh;
  }
  /* Messages sit just under the box without moving anything. */
  .rsvp-error {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0.1vh 0 0 0.4vh;
    font-size: max(12px, 1.35vh);
    white-space: nowrap;
  }
  .rsvp-error-center {
    right: 0;
    width: fit-content;
    margin: 0.3vh auto 0;
    padding: 0 1vh;
    border-radius: 9999px;
    background: rgba(253, 248, 237, 0.9);
  }

  .rsvp-heading {
    gap: 0.3vh;
    margin-top: 1.6vh;
  }

  .rsvp-events-wrap {
    width: min(86vw, 124vh);
    margin-top: 1vh;
  }
  .rsvp-events {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 1.4vh;
    padding: 0;
    overflow: visible;
  }
  .rsvp-event {
    padding: 1.1vh 1.2vh 1.3vh;
    border-radius: 1.4vh;
  }
  .rsvp-event-pic {
    width: auto;
    max-width: 92%;
    height: 7.6vh;
  }
  .rsvp-event-name {
    min-height: 0;
    margin-top: 0.6vh;
    font-size: max(12px, 1.85vh);
    white-space: nowrap;
  }
  .rsvp-event-date {
    gap: 0.9vh;
    margin-top: 0.5vh;
  }
  .rsvp-event-day {
    font-size: 3.5vh;
  }
  .rsvp-event-my {
    font-size: max(10px, 1.2vh);
  }
  .rsvp-att-button {
    min-height: 0;
    height: max(32px, 4.4vh);
    margin-top: 1.1vh;
    padding: 0 1.2vh 0 1.6vh;
    border-radius: 1vh;
    font-size: max(13px, 1.65vh);
  }
  .rsvp-att-chevron {
    width: 1.9vh;
    height: 1.9vh;
  }
  .rsvp-att-option {
    min-height: max(40px, 5.2vh);
  }
  .rsvp-att-main {
    font-size: max(14px, 1.75vh);
  }
  .rsvp-att-sub {
    font-size: max(12px, 1.45vh);
  }

  /* Food | note, side by side with a thin line between. */
  .rsvp-extra {
    flex-direction: row;
    align-items: stretch;
    gap: 2.6vh;
    width: min(70vw, 104vh);
    margin-top: 2.6vh; /* room for a message above */
    padding: 1.3vh 2.6vh 2.3vh;
  }
  .rsvp-extra-food {
    flex: 0 0 38%;
  }
  .rsvp-extra-note {
    flex: 1;
  }
  .rsvp-extra-divider {
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, #d6b574, transparent);
  }
  .rsvp-extra-head {
    gap: 1vh;
    min-height: 2.6vh;
  }
  .rsvp-food {
    gap: 1.2vh;
    margin-top: 0.9vh;
  }
  .rsvp-pill {
    gap: 0.9vh;
    height: 4.4vh;
    font-size: max(13px, 1.6vh);
  }
  .rsvp-pill-icon {
    width: 2.3vh;
    height: 2.3vh;
  }
  .rsvp-note-title {
    font-size: max(13px, 1.7vh);
  }
  .rsvp-note-input {
    max-height: calc(3 * 1.35em + 2vh); /* up to three lines here */
    margin-top: 0.9vh;
    padding: 1vh 1.6vh;
    border-radius: 1vh;
    font-size: max(13px, 1.55vh);
  }

  .rsvp-submit-wrap {
    margin-top: 1.4vh;
  }
  .rsvp-submit-row {
    gap: 1.6vh;
  }
  .rsvp-sprig {
    width: 6vh;
    height: 3vh;
  }
  #rsvp button.rsvp-submit {
    gap: 1.2vh;
    height: 4.8vh;
    min-height: 38px;
    min-width: 24vh;
    padding: 0 3vh;
    font-size: max(15px, 2.2vh);
  }
  .rsvp-submit-arrow {
    width: 1.8vh;
    height: 1vh;
  }
  .rsvp-failure {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: max-content;
    max-width: 60vw;
    margin: 0 0 0.4vh;
    font-size: max(13px, 1.45vh);
    transform: translateX(-50%);
  }

  .rsvp-success {
    width: min(56vw, 100vh);
    padding: 8vh 4vh;
  }
  .rsvp-success-title {
    font-size: 5vh;
  }
  .rsvp-success-text {
    font-size: max(16px, 2.2vh);
  }
}

/* Short desktop windows (under about 760px tall): smaller minimum text
   sizes, so everything keeps shrinking with the screen and still fits. */
@media (min-width: 1024px) and (max-height: 760px) {
  .rsvp-label {
    font-size: max(10px, 1.45vh);
  }
  .rsvp-field-label {
    font-size: max(12px, 1.6vh);
  }
  .rsvp-input {
    font-size: max(12px, 1.55vh);
  }
  .rsvp-error {
    font-size: max(11px, 1.35vh);
  }
  .rsvp-fields {
    row-gap: max(15px, 2vh);
  }
  .rsvp-panel {
    padding-bottom: max(15px, 2.4vh);
  }
  .rsvp-event-name {
    font-size: max(11px, 1.85vh);
  }
  .rsvp-event-my {
    font-size: max(9px, 1.2vh);
  }
  .rsvp-event-pic {
    height: 6.8vh;
  }
  .rsvp-att-button {
    height: max(28px, 4.4vh);
    font-size: max(12px, 1.65vh);
  }
  .rsvp-pill {
    font-size: max(12px, 1.6vh);
  }
  .rsvp-note-title {
    font-size: max(12px, 1.7vh);
  }
  .rsvp-note-input {
    font-size: max(12px, 1.55vh);
  }
  .rsvp-extra {
    margin-top: max(16px, 2.6vh);
  }
  .rsvp-heading {
    margin-top: 1.3vh;
  }
  #rsvp button.rsvp-submit {
    min-height: 32px;
    font-size: max(14px, 2.2vh);
  }
}

/* ======================================================================
   PHONES (under 768px): compact layout. Desktop and tablets are untouched.
   Text is 14px or larger, and 16px inside the boxes.
   ====================================================================== */
@media (max-width: 767px) {
  /* Heading area: one ornament line above "RSVP", tighter spacing. */
  #rsvp {
    padding-bottom: 28px;
  }
  #rsvp > .site-header-spacer {
    height: 52px;
  }
  #rsvp > div.z-10 {
    padding-top: 4px;
  }
  #rsvp h2 {
    font-size: 40px;
  }
  #rsvp h2 + div {
    display: none; /* the second ornament line, below "RSVP" */
  }
  #rsvp p[class*="text-[1.5rem]"] {
    margin-top: 4px;
    font-size: 15px;
  }
  #rsvp p[class*="text-[1.0625rem]"] {
    max-width: 21rem;
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.35;
  }
  /* The small capital headings: 14px. */
  .rsvp-label,
  .rsvp-label-small {
    font-size: 14px;
    letter-spacing: 0.14em;
  }
  .rsvp-form {
    margin-top: 14px;
  }
  .rsvp-panel {
    padding: 12px;
    border-radius: 16px;
  }

  /* Guest fields: one line each, 48px tall, the label shown as the
     placeholder (the separate label line is hidden). */
  .rsvp-fields {
    gap: 10px;
    margin-top: 10px;
  }
  .rsvp-field {
    gap: 10px;
    min-height: 0;
    height: 48px;
    padding: 0 12px;
    border-radius: 10px;
  }
  .rsvp-field-label {
    display: none;
  }
  .rsvp-input {
    margin: 0;
    font-size: 16px;
  }
  .rsvp-icon {
    width: 20px;
    height: 20px;
  }
  .rsvp-chevron {
    right: 12px;
  }

  /* Events: a list of compact rows in one panel, divided by gold lines. */
  .rsvp-heading {
    margin-top: 18px;
  }
  .rsvp-events-wrap {
    width: 100%;
    margin-top: 8px;
  }
  .rsvp-list {
    margin: 0;
    padding-top: 2px;
    padding-bottom: 2px;
    list-style: none;
  }
  .rsvp-list.is-error {
    border-color: rgba(163, 59, 42, 0.6);
  }
  .rsvp-row {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
    padding: 12px 0;
  }
  .rsvp-row + .rsvp-row {
    border-top: 1px solid rgba(214, 181, 116, 0.55);
  }
  .rsvp-row-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid #ecdcb8;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--rsvp-tint, #fbf3e1), #fffdf8);
  }
  .rsvp-row-thumb img {
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
  }
  .rsvp-row-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .rsvp-row-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .rsvp-row-date {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #5d6478;
  }
  /* The answers sit under the name, two on the first line, one below. */
  .rsvp-row-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    grid-column: 2;
  }
  .rsvp-row-pill {
    min-height: 36px;
    padding: 6px 13px;
    border: 1px solid #e2cfa6;
    border-radius: 9999px;
    background: #fffdf8;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.15;
    color: #2b3a5c;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
  }
  .rsvp-row-pill.is-chosen {
    border-color: #9a6b2c;
    background: #9a6b2c; /* gold fill */
    color: #fffaf0;
  }
  .rsvp-row-pill:focus-visible {
    outline: 2px solid #b98a3a;
    outline-offset: 2px;
  }

  /* Food and notes: one panel; the notes box carries its own prompt. */
  .rsvp-extra {
    gap: 12px;
    margin-top: 16px;
  }
  .rsvp-food {
    gap: 8px;
    margin-top: 8px;
  }
  .rsvp-pill {
    height: 44px;
  }
  .rsvp-extra-note .rsvp-extra-head {
    display: none;
  }
  .rsvp-note-input {
    margin-top: 0;
    padding: 12px;
  }

  /* Submit: full width, 50px tall, no sprigs. */
  .rsvp-submit-wrap,
  .rsvp-submit-row {
    width: 100%;
    max-width: 640px;
  }
  .rsvp-submit-wrap {
    margin-top: 16px;
  }
  .rsvp-sprig {
    display: none;
  }
  #rsvp button.rsvp-submit {
    width: 100%;
    height: 50px;
    min-height: 50px;
    font-size: 19px;
  }
}
