.rsvp-main {
  position: relative;
  min-height: 100%;
  padding: 48px 20px;
  isolation: isolate;
}

.rsvp-photo-column {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: -1;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  width: min(32vw, 430px);
  gap: 0;
  opacity: 0.42;
  pointer-events: none;
}

.rsvp-photo-column:first-of-type { left: 0; }
.rsvp-photo-column:last-of-type { right: 0; }

.rsvp-photo-column img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rsvp-card {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(680px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 38px;
  text-align: left;
  background: rgba(34, 34, 34, 0.96);
  border: 1px solid #444;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}


.rsvp-card h2 {
  margin: 0 0 20px;
  color: #f0f0f0;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: #00bcd4;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.65rem;
  line-height: 1.8;
  text-transform: uppercase;
}

.intro {
  margin-bottom: 28px;
  line-height: 1.6;
  color: #cfcfcf;
}

.moving-fund {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  gap: 24px;
  align-items: center;
  margin: 0 0 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.13), rgba(25, 25, 25, 0.9));
  border: 1px solid rgba(126, 232, 245, 0.65);
  border-radius: 10px;
}
.moving-fund h3 { margin: 0 0 12px; color: #f4f4f4; font-size: 1.25rem; }
.moving-fund-copy > p:not(.eyebrow):not(.moving-fund-note):not(.moving-fund-percent) { margin: 0 0 18px; line-height: 1.55; color: #d7d7d7; }
.moving-fund-totals { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0 0 8px; color: #e8faff; }
.moving-fund-totals strong { color: #7ee8f5; }
.moving-fund-progress { height: 14px; overflow: hidden; background: #101010; border: 1px solid #4a4a4a; border-radius: 999px; }
.moving-fund-progress span { display: block; height: 100%; background: linear-gradient(90deg, #00bcd4, #7ee8f5); border-radius: inherit; transition: width 0.3s ease; }
.moving-fund-percent { margin: 8px 0 18px; color: #b7dfe4; font-size: 0.9rem; }
.cash-app-button { display: inline-block; padding: 12px 16px; color: #101010; background: #7ee8f5; border: 2px solid #c7fbff; border-radius: 6px; font-weight: 700; text-decoration: none; }
.cash-app-button:hover { background: #b2f5fc; }
.moving-fund-note { margin: 14px 0 0; color: #bcbcbc; font-size: 0.85rem; line-height: 1.45; }
.cash-app-qr-link { display: block; padding: 8px; background: #ffffff; border-radius: 8px; line-height: 0; }
.cash-app-qr-link:focus-visible, .cash-app-button:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
.cash-app-qr-link img { display: block; width: 100%; height: auto; }

.rsvp-card form {
  display: grid;
  gap: 12px;
}

.rsvp-card label,
.rsvp-card legend {
  font-weight: 700;
  color: #f0f0f0;
}

.rsvp-card input:not([type='radio']),
.rsvp-card select,
.rsvp-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  color: #f0f0f0;
  background: #151515;
  border: 1px solid #666;
  border-radius: 6px;
  font: inherit;
}

.rsvp-card input:focus,
.rsvp-card select:focus,
.rsvp-card textarea:focus {
  outline: 2px solid #00bcd4;
  outline-offset: 2px;
}

.rsvp-card fieldset {
  margin: 10px 0 2px;
  padding: 14px;
  border: 1px solid #555;
  border-radius: 6px;
}

.rsvp-card .choices {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}

.rsvp-card .choices label {
  font-weight: 400;
}

.rsvp-card button {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 13px 18px;
  color: #111;
  background: #00bcd4;
  border: 2px solid #7ee8f5;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.rsvp-card button:hover { background: #33c9dc; }

.notice {
  margin: 0 0 24px;
  padding: 14px;
  border-radius: 6px;
  line-height: 1.5;
}

.notice p { margin-top: 0; }
.notice ul { margin: 0; text-align: left; list-style: disc; padding-left: 20px; }
.notice.success { color: #d7f5dd; background: #174d27; border: 1px solid #2d7c41; }
.notice.error { color: #ffe0e0; background: #5a2020; border: 1px solid #9b4444; }

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 520px) {
  .rsvp-main { padding: 24px 12px; }
  .rsvp-card { padding: 24px 18px; }
  .moving-fund { grid-template-columns: 1fr; }
  .cash-app-qr-link { width: min(190px, 100%); margin: 0 auto; }
}


.rsvp-card button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.submission-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
}

.submission-overlay[hidden] {
  display: none;
}

.submission-overlay-content {
  display: grid;
  gap: 10px;
  width: min(100%, 360px);
  padding: 28px;
  color: #f0f0f0;
  text-align: center;
  background: #222;
  border: 1px solid #00bcd4;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.submission-overlay-content strong {
  color: #00bcd4;
  font-size: 1.2rem;
}


@media (max-width: 620px) {
  .rsvp-main {
    padding: 24px 12px;
  }

  .rsvp-card {
    width: min(680px, 100%);
    margin-inline: auto;
    padding: 24px 18px;
  }

  .rsvp-photo-column { width: 38vw; opacity: 0.22; }
}


/* Keep the photo panels fixed while shifting selected crop focus downward. */
.rsvp-photo-column:first-of-type img:nth-child(2),
.rsvp-photo-column:last-of-type img:nth-child(2) {
  object-position: center 65%;
}

.rsvp-photo-column:last-of-type img:first-child {
  object-position: center 72%;
}


/* site-nav-lock: do not restyle shared site hamburger */
header .brand {
  font-family: 'Press Start 2P', cursive;
  color: rgb(182, 13, 13);
  text-transform: uppercase;
}

.field-help {
  margin: -4px 0 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #5d564f;
}


.sms-consent {
  margin-top: 8px;
  padding: 16px;
  background: rgba(0, 188, 212, 0.08);
  border: 1px solid rgba(126, 232, 245, 0.45);
  border-radius: 8px;
}

.sms-consent-title {
  margin: 0 0 12px;
  color: #7ee8f5;
  font-size: 1rem;
  font-weight: 700;
}

.sms-consent-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 12px;
  font-weight: 400;
  line-height: 1.45;
  color: #f0f0f0;
  cursor: pointer;
}

.sms-consent-option input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: #00bcd4;
}

.sms-consent-details {
  display: grid;
  gap: 6px;
  color: #cfcfcf;
  font-size: 0.92rem;
  line-height: 1.5;
}

.sms-consent-details p {
  margin: 0;
}

.sms-consent-details a {
  color: #7ee8f5;
  text-decoration: underline;
}

.sms-consent-details a:hover {
  color: #b2f5fc;
}
