/* APWS event RSVP experience ------------------------------------------------ */
.ev-rsvp-primary,
.rsvp-submit {
  background: linear-gradient(135deg, var(--merlot-vivid), #681010);
  border-color: #b23232;
  color: #fff;
  box-shadow: 0 12px 30px rgba(146, 28, 28, 0.24);
}

.ev-rsvp-primary::before,
.rsvp-submit::before {
  background: linear-gradient(135deg, #ad2929, var(--merlot-vivid));
}

.ev-rsvp-primary:hover,
.rsvp-submit:hover {
  box-shadow: 0 16px 38px rgba(146, 28, 28, 0.4);
}

.ev-rsvp-primary:focus-visible,
.rsvp-submit:focus-visible,
.ev-card-action:focus-visible,
.rsvp-close:focus-visible,
.rsvp-choice input:focus-visible + span,
.rsvp-input:focus-visible,
.rsvp-add-guest:focus-visible,
.rsvp-remove-guest:focus-visible,
.rsvp-newsletter input:focus-visible + span::before {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* Confirmed upcoming cards have two real, keyboard-accessible actions. */
.ev-card-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ev-card-action {
  min-height: 42px;
  padding: 0.65rem 0.78rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font: 500 0.7rem/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.ev-card-action--details {
  margin-left: -0.78rem;
}

.ev-card-action--details:hover {
  color: var(--gold-light);
}

.ev-card-action--rsvp {
  flex: none;
  padding-inline: 1rem;
  border-color: rgba(212, 175, 55, 0.46);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
}

.ev-card-action--rsvp:hover {
  border-color: var(--gold-primary);
  background: var(--gold-primary);
  color: #080808;
}

.ev-rsvp-pending {
  margin: 0.35rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.76rem;
  line-height: 1.5;
}

/* Modal shell */
.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 1.25rem;
  background: rgba(3, 2, 2, 0.72);
  backdrop-filter: blur(10px) saturate(0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.rsvp-modal[hidden],
.rsvp-form-view[hidden],
.rsvp-success[hidden],
.rsvp-guest-section[hidden],
.rsvp-human-check[hidden] {
  display: none !important;
}

.rsvp-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.rsvp-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: 92vh;
  max-height: 92dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 100% 0, rgba(146, 28, 28, 0.18), transparent 34%),
    #080808;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 10px;
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.78), 0 0 70px rgba(146, 28, 28, 0.14);
  transform: translateY(20px) scale(0.985);
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.rsvp-modal.is-open .rsvp-dialog {
  transform: none;
}

.rsvp-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.92);
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.35s ease;
}

.rsvp-close:hover {
  color: #fff;
  border-color: var(--gold-primary);
  transform: rotate(90deg);
}

.rsvp-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
}

.rsvp-header {
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.35rem, 5vw, 3.2rem) 1.4rem;
  padding-right: clamp(4.5rem, 10vw, 5.4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rsvp-eyebrow {
  display: block;
  margin: 0 0 0.55rem;
  color: var(--gold-primary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.rsvp-title {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(1.9rem, 5vw, 2.65rem);
  line-height: 1.08;
}

.rsvp-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0.9rem 0 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.55;
}

.rsvp-summary span + span::before {
  content: '\00b7';
  margin-right: 0.7rem;
  color: var(--gold-mute);
}

.rsvp-form {
  padding: 1.65rem clamp(1.35rem, 5vw, 3.2rem) clamp(1.5rem, 4vw, 2.5rem);
}

.rsvp-form-body,
.rsvp-form-footer {
  min-width: 0;
}

.rsvp-form-body[inert] {
  cursor: wait;
}

.rsvp-form-body[inert] > * {
  pointer-events: none;
}

.rsvp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.rsvp-field {
  min-width: 0;
}

.rsvp-field--full {
  grid-column: 1 / -1;
}

.rsvp-label,
.rsvp-legend {
  display: block;
  margin: 0 0 0.55rem;
  padding: 0;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rsvp-required {
  color: #e6a0a0;
}

.rsvp-optional-label {
  margin-left: 0.35rem;
  color: var(--text-tertiary);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.rsvp-input {
  width: 100%;
  min-height: 50px;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font: 400 0.92rem/1.4 var(--font-body);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rsvp-input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.rsvp-input:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.rsvp-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.rsvp-input:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.rsvp-input[aria-invalid='true'] {
  border-color: #dc7777;
  box-shadow: 0 0 0 3px rgba(220, 119, 119, 0.08);
}

.rsvp-help,
.rsvp-field-error {
  display: block;
  margin: 0.42rem 0 0;
  font-size: 0.7rem;
  line-height: 1.5;
}

.rsvp-help {
  color: var(--text-secondary);
}

.rsvp-field-error {
  color: #f1a8a8;
}

.rsvp-field-error:empty {
  display: none;
  margin: 0;
}

.rsvp-attendance {
  margin: 1.6rem 0 0;
  padding: 0;
  border: 0;
}

.rsvp-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.rsvp-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.rsvp-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rsvp-choice span {
  min-height: 74px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-primary);
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.rsvp-choice strong {
  font-size: 0.77rem;
  font-weight: 500;
}

.rsvp-choice small {
  color: var(--text-tertiary);
  font-size: 0.72rem;
}

.rsvp-choice input[aria-invalid='true'] + span {
  border-color: #dc7777;
  box-shadow: 0 0 0 3px rgba(220, 119, 119, 0.08);
}

.rsvp-choice:hover span {
  border-color: rgba(212, 175, 55, 0.38);
  transform: translateY(-2px);
}

.rsvp-choice input:checked + span {
  border-color: var(--gold-primary);
  background: linear-gradient(145deg, rgba(146, 28, 28, 0.28), rgba(212, 175, 55, 0.08));
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.16), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.rsvp-choice input:checked + span::before {
  content: '';
  width: 6px;
  height: 6px;
  align-self: center;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 9px rgba(212, 175, 55, 0.7);
}

.rsvp-guest-section {
  margin-top: 1.55rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rsvp-guest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.rsvp-guest-head .rsvp-legend {
  margin: 0;
}

.rsvp-add-guest,
.rsvp-remove-guest {
  border: 0;
  background: transparent;
  color: var(--gold-primary);
  cursor: pointer;
  font: 500 0.72rem/1.3 var(--font-body);
  letter-spacing: 0.08em;
}

.rsvp-add-guest {
  min-height: 44px;
  padding: 0.55rem 0.2rem;
}

.rsvp-add-guest:hover,
.rsvp-remove-guest:hover {
  color: var(--gold-light);
}

.rsvp-guest-list {
  display: grid;
  gap: 0.65rem;
}

.rsvp-guest-notice {
  margin: 0 0 0.7rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.5;
}

.rsvp-guest-row {
  padding: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
}

.rsvp-guest-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 0.55rem;
}

.rsvp-guest-row > .rsvp-field-error {
  margin-top: 0.2rem;
}

.rsvp-guest-label,
.rsvp-guest-contact-label {
  display: block;
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp-guest-input {
  grid-column: 1 / -1;
  grid-row: 2;
}

.rsvp-remove-guest {
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  color: var(--text-secondary);
}

.rsvp-guest-contact {
  margin-top: 0.7rem;
}

.rsvp-guest-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.rsvp-guest-contact-grid .rsvp-field {
  min-width: 0;
}

.rsvp-guest-contact-label {
  margin-bottom: 0.42rem;
  color: var(--text-secondary);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.rsvp-guest-contact-grid .rsvp-input {
  min-height: 46px;
}

.rsvp-guest-empty {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.rsvp-consent {
  margin-top: 1.55rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(212, 175, 55, 0.13);
  border-radius: 7px;
  background: rgba(212, 175, 55, 0.035);
}

.rsvp-consent-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.65;
}

.rsvp-newsletter {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.7rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1.55;
}

.rsvp-newsletter input {
  position: absolute;
  opacity: 0;
}

.rsvp-newsletter span {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.rsvp-newsletter span::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.1rem;
  border: 1px solid rgba(212, 175, 55, 0.46);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
}

.rsvp-newsletter input:checked + span::before {
  border-color: var(--gold-primary);
  background:
    linear-gradient(135deg, transparent 42%, #090909 42% 55%, transparent 55%) 3px 1px / 10px 12px no-repeat,
    var(--gold-primary);
}

.rsvp-human-check {
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rsvp-human-check-label {
  margin: 0 0 0.65rem;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#rsvp-turnstile-widget {
  width: 100%;
  min-height: 65px;
  min-width: 0;
  max-width: 100%;
}

#rsvp-turnstile-widget > div,
#rsvp-turnstile-widget iframe {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
}

.rsvp-status {
  min-height: 1.45rem;
  margin: 1rem 0 0;
  color: #f1a8a8;
  font-size: 0.74rem;
  line-height: 1.55;
}

.rsvp-status:empty {
  min-height: 0;
  margin: 0;
}

.rsvp-status a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rsvp-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.rsvp-actions .btn {
  min-width: 160px;
  padding: 0.95rem 1.45rem;
  font-size: 0.72rem;
}

.rsvp-cancel {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-secondary);
}

.rsvp-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.rsvp-honeypot,
.rsvp-response-frame {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Success state */
.rsvp-success {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.5rem, 7vw, 4.5rem);
  text-align: center;
}

.rsvp-success-mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.45rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146, 28, 28, 0.34), rgba(146, 28, 28, 0.08));
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 2rem;
}

.rsvp-success h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.rsvp-success p {
  max-width: 48ch;
  margin: 1rem auto 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
}

.rsvp-success .rsvp-actions {
  justify-content: center;
  margin-top: 1.7rem;
}

@media (max-width: 760px),
  (max-width: 950px) and (max-height: 540px) and (orientation: landscape) and (pointer: coarse) {
  .ev-card-actions {
    gap: 0.4rem;
  }

  .ev-card-action {
    min-height: 44px;
  }

  .rsvp-modal {
    inset: var(--rsvp-viewport-offset, 0px) 0 auto;
    align-items: flex-end;
    height: 100vh;
    height: var(--rsvp-viewport-height, 100dvh);
    padding: 0;
    backdrop-filter: blur(6px) saturate(0.8);
  }

  .rsvp-dialog {
    --rsvp-inline-start: max(1rem, env(safe-area-inset-left));
    --rsvp-inline-end: max(1rem, env(safe-area-inset-right));
    width: 100%;
    height: calc(100% - max(12px, env(safe-area-inset-top)));
    max-height: calc(100% - max(12px, env(safe-area-inset-top)));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(28px);
  }

  .rsvp-dialog::before {
    content: '';
    position: absolute;
    top: 0.48rem;
    left: 50%;
    z-index: 4;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.4);
    transform: translateX(-50%);
  }

  .rsvp-scroll {
    height: 100%;
    overflow: hidden;
  }

  .rsvp-form-view {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .rsvp-header {
    padding: 1.65rem max(4.25rem, calc(env(safe-area-inset-right) + 3.7rem)) 0.85rem var(--rsvp-inline-start);
    background:
      radial-gradient(circle at 100% 0, rgba(146, 28, 28, 0.2), transparent 58%),
      #080808;
  }

  .rsvp-eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.65rem;
  }

  .rsvp-title {
    max-width: none;
    font-size: clamp(1.52rem, 7vw, 1.72rem);
    line-height: 1.02;
  }

  .rsvp-summary {
    gap: 0.2rem 0.55rem;
    margin-top: 0.55rem;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .rsvp-summary span + span::before {
    margin-right: 0.55rem;
  }

  .rsvp-close {
    top: 0.72rem;
    right: max(0.72rem, env(safe-area-inset-right));
  }

  .rsvp-form {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 0;
  }

  .rsvp-form-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-block: 1rem;
    padding: 1rem var(--rsvp-inline-end) 1.15rem var(--rsvp-inline-start);
  }

  .rsvp-form-footer {
    position: relative;
    z-index: 4;
    padding: 0.65rem var(--rsvp-inline-end) max(0.7rem, env(safe-area-inset-bottom)) var(--rsvp-inline-start);
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(8, 8, 8, 0.98);
    box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.46);
  }

  .rsvp-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .rsvp-label,
  .rsvp-legend {
    margin-bottom: 0.42rem;
  }

  .rsvp-input {
    min-height: 50px;
    font-size: 16px;
    scroll-margin-block: 1rem;
  }

  .rsvp-attendance {
    margin-top: 1.1rem;
  }

  .rsvp-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .rsvp-choice span {
    position: relative;
    min-height: 68px;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.55rem 0.3rem;
    text-align: center;
  }

  .rsvp-choice strong {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .rsvp-choice small {
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .rsvp-choice input:checked + span::before {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    align-self: auto;
  }

  .rsvp-guest-section {
    margin-top: 1.1rem;
    padding-top: 1rem;
  }

  .rsvp-guest-head {
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin-bottom: 0.55rem;
  }

  .rsvp-add-guest {
    margin-left: auto;
    white-space: nowrap;
  }

  .rsvp-guest-list {
    gap: 0.55rem;
  }

  .rsvp-guest-row {
    padding: 0.65rem;
  }

  .rsvp-guest-contact-grid {
    grid-template-columns: 1fr;
  }

  .rsvp-remove-guest {
    min-width: 62px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
  }

  .rsvp-guest-empty,
  .rsvp-help,
  .rsvp-field-error,
  .rsvp-consent-copy,
  .rsvp-newsletter,
  .rsvp-status {
    font-size: 0.78rem;
  }

  .rsvp-guest-empty,
  .rsvp-consent-copy,
  .rsvp-newsletter {
    color: var(--text-secondary);
  }

  .rsvp-consent {
    margin-top: 1.1rem;
    padding: 0.82rem 0.88rem;
  }

  .rsvp-newsletter {
    min-height: 44px;
    margin-top: 0.55rem;
  }

  .rsvp-newsletter span::before {
    width: 20px;
    height: 20px;
  }

  .rsvp-human-check {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .rsvp-form-footer .rsvp-status {
    min-height: 0;
    margin: 0 0 0.5rem;
  }

  .rsvp-form-footer .rsvp-status:empty {
    margin: 0;
  }

  .rsvp-form-footer .rsvp-actions,
  .rsvp-success .rsvp-actions {
    display: grid;
    grid-template-columns: minmax(92px, 0.65fr) minmax(0, 1.35fr);
    gap: 0.55rem;
    margin-top: 0;
  }

  .rsvp-form-footer .rsvp-actions .btn,
  .rsvp-success .rsvp-actions .btn {
    min-width: 0;
    min-height: 50px;
    width: 100%;
    padding: 0.8rem 0.65rem;
    font-size: 0.78rem;
  }

  .rsvp-success {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    justify-content: safe center;
    padding: 2.6rem var(--rsvp-inline-end) max(1.35rem, env(safe-area-inset-bottom)) var(--rsvp-inline-start);
  }

  .rsvp-success-mark {
    width: 56px;
    height: 56px;
    margin-bottom: 1.1rem;
  }

  .rsvp-success h2 {
    font-size: clamp(1.8rem, 9vw, 2.3rem);
  }

  .rsvp-success p {
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .rsvp-success .rsvp-actions {
    width: 100%;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
    margin-top: 1.35rem;
  }
}

@media (max-width: 420px) {
  .rsvp-choice span {
    min-height: 58px;
  }

  .rsvp-choice small {
    display: none;
  }
}

@media (max-width: 950px) and (max-height: 540px) and (orientation: landscape) and (pointer: coarse) {
  .rsvp-dialog {
    height: 100%;
    max-height: 100%;
    border: 0;
    border-radius: 0;
  }

  .rsvp-dialog::before {
    display: none;
  }

  .rsvp-header {
    padding: max(0.7rem, env(safe-area-inset-top)) max(3.75rem, calc(env(safe-area-inset-right) + 3.35rem)) 0.55rem var(--rsvp-inline-start);
  }

  .rsvp-header .rsvp-eyebrow {
    display: none;
  }

  .rsvp-title {
    font-size: 1.38rem;
  }

  .rsvp-summary {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .rsvp-close {
    top: max(0.35rem, env(safe-area-inset-top));
  }

  .rsvp-form-body {
    padding-top: 0.7rem;
    padding-bottom: 0.75rem;
  }

  .rsvp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .rsvp-attendance,
  .rsvp-guest-section,
  .rsvp-consent {
    margin-top: 0.8rem;
  }

  .rsvp-choice span {
    min-height: 52px;
  }

  .rsvp-choice small {
    display: none;
  }

  .rsvp-form-footer {
    padding-top: 0.45rem;
    padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
  }

  .rsvp-form-footer .rsvp-actions .btn {
    min-height: 46px;
  }

  .rsvp-success {
    justify-content: flex-start;
    padding-top: max(1.25rem, env(safe-area-inset-top));
  }
}

@media (max-width: 760px) and (max-height: 520px) and (orientation: portrait) and (pointer: coarse) {
  .rsvp-header {
    padding-top: 1.15rem;
    padding-bottom: 0.55rem;
  }

  .rsvp-header .rsvp-eyebrow {
    display: none;
  }

  .rsvp-title {
    font-size: 1.4rem;
  }

  .rsvp-summary {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .rsvp-form-body {
    padding-top: 0.7rem;
  }

  .rsvp-form-footer {
    padding-top: 0.45rem;
  }

  .rsvp-form-footer .rsvp-actions .btn {
    min-height: 46px;
  }
}

@media (hover: none) {
  .rsvp-choice:hover span,
  .rsvp-close:hover {
    transform: none;
  }

  .rsvp-choice:active span {
    border-color: rgba(212, 175, 55, 0.52);
    background: rgba(212, 175, 55, 0.07);
  }
}

.rsvp-choice,
.rsvp-close,
.rsvp-add-guest,
.rsvp-remove-guest,
.rsvp-actions .btn {
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-modal,
  .rsvp-dialog,
  .rsvp-choice span,
  .rsvp-close {
    transition: none !important;
  }

  .rsvp-choice:hover span,
  .rsvp-close:hover {
    transform: none;
  }
}
