/*
  RSVP landing page.
  Hidden from navigation; route is /rsvp.
*/

html:has(body.rsvp-page),
body.rsvp-page {
  background: #101011;
}

.rsvp-page .nav,
.rsvp-page .nav__mobile,
.rsvp-page #curtain,
.rsvp-page .footer,
.rsvp-page .project-modal {
  display: none;
}

.rsvp-page #page {
  min-height: var(--viewport-height);
}

.rsvp-landing {
  position: relative;
  display: grid;
  min-height: var(--viewport-height);
  padding: 2rem;
  place-items: center;
  overflow: hidden;
  color: #f9f9f4;
  isolation: isolate;
}

.rsvp-landing::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: url("/Assets/Artworks/Interactive/Banners/Banner_SketchUpMockup.webp");
  background-position: center;
  background-size: cover;
}

.rsvp-landing__shade {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(16, 16, 17, .18), rgba(16, 16, 17, .44)),
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .18), rgba(16, 16, 17, .38) 64%);
}

.rsvp-card {
  position: relative;
  width: min(100%, 39rem);
  padding: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08) 42%, rgba(16, 16, 17, .28)),
    rgba(16, 16, 17, .22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -1px 0 rgba(255, 255, 255, .1),
    0 24px 80px rgba(0, 0, 0, .38);
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
}

.rsvp-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 34%),
    linear-gradient(290deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 38%);
  opacity: .72;
}

.rsvp-card > * {
  position: relative;
}

.rsvp-card__brand {
  width: min(17rem, 74%);
  margin: 0 auto 1.15rem;
}

.rsvp-card__brand img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .28));
}

.rsvp-card__quest,
.rsvp-card__invite,
.rsvp-card__details,
.rsvp-card__date,
.rsvp-card__location,
.rsvp-card__email {
  margin: 0;
  color: rgba(249, 249, 244, .84);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0;
}

.rsvp-card__quest {
  margin-bottom: .18rem;
  font-family: var(--disp);
  font-size: .95rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rsvp-card h1 {
  width: min(100%, 34rem);
  margin: 0 auto .85rem;
  color: #fff;
  font-family: var(--disp);
  font-size: 2.05rem;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .34);
}

.rsvp-card h1 span {
  display: block;
}

.rsvp-title__secondary {
  margin-top: .36rem;
  font-size: 1.28em;
}

.rsvp-card__invite {
  margin-bottom: .18rem;
  color: rgba(255, 255, 255, .9);
  font-size: 1.08rem;
  line-height: 1.2;
}

.rsvp-card__details {
  width: min(100%, 31rem);
  margin: 0 auto .85rem;
  color: rgba(249, 249, 244, .76);
  font-size: 1rem;
  line-height: 1.28;
}

.rsvp-card__date {
  margin-top: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  line-height: 1.22;
}

.rsvp-card__location {
  margin: .32rem 0 1.55rem;
  color: rgba(255, 255, 255, .82);
  font-size: .96rem;
  line-height: 1.22;
}

.rsvp-card__date span,
.rsvp-card__location span {
  color: #fff;
  font-family: var(--disp);
  font-size: 1.08em;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rsvp-card__email {
  margin-top: 1rem;
  font-size: .96rem;
}

.rsvp-card__email a {
  color: #fff;
  font-family: var(--disp);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-transform: uppercase;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rsvp-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.rsvp-form .form-row {
  display: flex;
  flex-direction: column;
  gap: .38rem;
}

.rsvp-form label,
.rsvp-choice legend {
  color: rgba(255, 255, 255, .82);
  font-family: var(--disp);
  font-size: .78rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rsvp-form input,
.rsvp-form textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 18px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font: 300 1rem/1.35 var(--body);
  letter-spacing: 0;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.rsvp-form input {
  padding: .75rem .9rem;
}

.rsvp-form textarea {
  min-height: 6.25rem;
  padding: .82rem .9rem;
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .21);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}

.rsvp-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  padding: 0;
  border: 0;
}

.rsvp-choice legend {
  grid-column: 1 / -1;
  margin-bottom: .38rem;
}

.rsvp-choice label {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.rsvp-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.rsvp-choice span {
  display: grid;
  min-height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .88);
  font-family: var(--disp);
  font-size: .95rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}

.rsvp-choice input:checked + span {
  border-color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .82);
  color: #101011;
}

.rsvp-choice input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .14);
}

@media (hover: hover) {
  .rsvp-choice label:hover span {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .58);
    background: rgba(255, 255, 255, .2);
  }
}

.rsvp-submit {
  display: grid;
  min-height: 3.15rem;
  margin-top: .15rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #101011;
  cursor: pointer;
  font-family: var(--disp);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
}

.rsvp-submit:disabled {
  cursor: wait;
  opacity: .72;
}

@media (hover: hover) {
  .rsvp-submit:not(:disabled):hover {
    transform: translateY(-1px);
    background: #fff;
  }
}

.rsvp-form .form-status {
  margin: 0;
  border-radius: 18px;
  color: #fff;
  letter-spacing: 0;
}

.rsvp-form .form-status.success {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.rsvp-form .form-status.error {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(16, 16, 17, .34);
  color: #fff;
}

@media (max-width: 680px) {
  .rsvp-landing {
    padding: 1rem;
    place-items: center;
  }

  .rsvp-landing::before {
    background-image: url("/Assets/Artworks/Interactive/Banners/Banner_SketchUpMockup-1600.webp");
  }

  .rsvp-card {
    padding: 1rem;
    border-radius: 24px;
  }

  .rsvp-card__brand {
    width: min(12rem, 72%);
    margin-bottom: .75rem;
  }

  .rsvp-card__quest {
    font-size: .82rem;
  }

  .rsvp-card h1 {
    width: min(100%, 20rem);
    margin-bottom: .7rem;
    font-size: 1.42rem;
    line-height: 1;
  }

  .rsvp-title__secondary {
    margin-top: .22rem;
    font-size: 1.3em;
  }

  .rsvp-card__invite,
  .rsvp-card__details,
  .rsvp-card__date,
  .rsvp-card__location {
    font-size: .86rem;
  }

  .rsvp-card__invite {
    font-size: .92rem;
  }

  .rsvp-card__details {
    margin-bottom: .7rem;
  }

  .rsvp-card__location {
    margin-bottom: .95rem;
  }

  .rsvp-form {
    gap: .75rem;
  }

  .rsvp-form input,
  .rsvp-choice span,
  .rsvp-submit {
    min-height: 2.75rem;
  }

  .rsvp-form textarea {
    min-height: 5.25rem;
  }

  .rsvp-card__email {
    margin-top: .75rem;
    font-size: .84rem;
  }

  .rsvp-form__grid {
    grid-template-columns: 1fr;
  }
}
