.nite-rsvp,
.nite-rsvp * {
  box-sizing: border-box;
}

body.nite-rsvp-page {
  background: #3b2a1e !important;
}

body.nite-rsvp-page > header > a:not(.order-button),
body.nite-rsvp-page > footer {
  display: none !important;
}

body.nite-rsvp-page > header > .order-button {
  grid-column: 3;
  justify-self: end;
}

.nite-rsvp {
  --rsvp-brown: #3b2a1e;
  --rsvp-dark: #24170f;
  --rsvp-cream: #fff1e4;
  --rsvp-gold: #f7c76a;
  --rsvp-muted: rgba(255, 241, 228, .7);
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 110px 24px 64px;
  background: radial-gradient(circle at 16% 12%, rgba(247, 199, 106, .18), transparent 30%), radial-gradient(circle at 87% 86%, rgba(255, 241, 228, .09), transparent 28%), var(--rsvp-brown);
  color: var(--rsvp-cream);
  font-family: Montserrat, Arial, sans-serif;
}

.nite-rsvp__shell { position: relative; z-index: 1; max-width: 1080px; margin: auto; }

.nite-rsvp__preview {
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(247, 199, 106, .55);
  border-radius: 999px;
  color: var(--rsvp-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.nite-rsvp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  overflow: hidden;
  border: 1px solid rgba(255, 241, 228, .18);
  border-radius: 30px;
  background: rgba(36, 23, 15, .52);
  box-shadow: 0 28px 88px rgba(0, 0, 0, .28);
}

.nite-rsvp__hero {
  display: flex;
  min-width: 0;
  min-height: 495px;
  flex-direction: column;
  justify-content: center;
  padding: 68px 64px;
  text-align: center;
}

.nite-rsvp__eyebrow,
.nite-rsvp__form-kicker {
  margin: 0 0 14px;
  color: var(--rsvp-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nite-rsvp__title {
  max-width: 100%;
  margin: 0 0 22px !important;
  color: var(--rsvp-cream) !important;
  font-family: Nite, Montserrat, sans-serif !important;
  font-size: clamp(50px, 6.2vw, 80px) !important;
  letter-spacing: -.02em;
  line-height: .88 !important;
  overflow-wrap: normal;
  text-transform: uppercase;
  word-break: normal;
}

.nite-rsvp__title span { display: block; color: var(--rsvp-gold); }
.nite-rsvp__date { margin: 0 0 8px; color: var(--rsvp-cream); font-size: 18px; font-weight: 800; letter-spacing: .06em; line-height: 1.35; text-transform: uppercase; }
.nite-rsvp__address { margin: 0 0 34px; color: var(--rsvp-muted); font-size: 14px; line-height: 1.55; }

.nite-rsvp__offer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 241, 228, .16);
  text-align: left;
}

.nite-rsvp__offer-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--rsvp-gold);
  box-shadow: 0 0 30px rgba(247, 199, 106, .5);
  color: var(--rsvp-brown);
  font-size: 22px;
  font-weight: 900;
}

.nite-rsvp__offer strong { display: block; color: var(--rsvp-cream); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.nite-rsvp__offer p { margin: 4px 0 0; color: var(--rsvp-muted); font-size: 12px; line-height: 1.55; }

.nite-rsvp__form-card {
  min-width: 0;
  padding: 54px 44px;
  background: var(--rsvp-cream);
  color: var(--rsvp-brown);
  text-align: center;
}

.nite-rsvp__form-card h2 { margin: 0 0 12px; color: var(--rsvp-brown) !important; font-family: Nite, Montserrat, sans-serif !important; font-size: 43px !important; line-height: .92 !important; text-transform: uppercase; }
.nite-rsvp__intro { margin: 0 auto 26px; max-width: 420px; color: #746456; font-size: 13px; line-height: 1.65; }
.nite-rsvp.is-closed .nite-rsvp__form-card { display: flex; align-items: center; justify-content: center; }
.nite-rsvp__closed { width: 100%; padding: 40px 0; }
.nite-rsvp__closed h2 { max-width: 420px; margin: 0 auto 18px !important; font-size: clamp(42px, 4.2vw, 62px) !important; line-height: .98 !important; }
.nite-rsvp__closed p { max-width: 360px; margin: 0 auto; color: #746456; font-size: 17px; font-weight: 700; line-height: 1.55; }
.nite-rsvp__form { position: relative; }
.nite-rsvp__honey { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.nite-rsvp__field { display: block; margin: 0 0 18px; }
.nite-rsvp__field span { display: block; margin: 0 0 8px; color: var(--rsvp-brown); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.nite-rsvp__field input { display: block; width: 100%; height: 54px; padding: 0 16px; border: 1px solid #d7c7b8; border-radius: 8px; background: #fff; color: var(--rsvp-brown); font-size: 16px; text-align: center; }
.nite-rsvp__field input:focus { border-color: #a66a23; outline: 3px solid rgba(247, 199, 106, .42); outline-offset: 1px; }

.nite-rsvp__button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--rsvp-brown);
  box-shadow: 0 10px 20px rgba(59, 42, 30, .18);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nite-rsvp__button:disabled { cursor: not-allowed; opacity: .72; }
.nite-rsvp__spinner { display: none; width: 18px; height: 18px; border: 3px solid rgba(255, 241, 228, .38); border-top-color: #fff; border-radius: 50%; animation: nite-rsvp-spin .75s linear infinite; }
.nite-rsvp__button.is-loading .nite-rsvp__spinner { display: inline-block; }
.nite-rsvp__one-per-email { margin: 12px 0 0; color: #9d611f; font-size: 11px; font-weight: 800; }
.nite-rsvp__consent { margin: 12px 0 0; color: #9b8c80; font-size: 9px; line-height: 1.55; }
.nite-rsvp__message { min-height: 20px; margin-top: 12px; font-size: 12px; line-height: 1.5; }
.nite-rsvp__message.is-error { color: #a12626; font-weight: 700; }
.nite-rsvp__success { padding: 52px 10px 24px; outline: 0; }
.nite-rsvp__check { display: grid; width: 64px; height: 64px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: #2f7d4a; color: #fff; font-size: 34px; font-weight: 900; }
.nite-rsvp__success p { color: #746456; font-size: 14px; line-height: 1.6; }
.nite-rsvp__success-when { display: grid; gap: 5px; margin: 20px auto 0 !important; padding: 13px 16px; max-width: 360px; border: 1px solid #e7bf87; border-radius: 10px; background: #f8dfbd; }
.nite-rsvp__success-when strong { color: #9d611f; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.nite-rsvp__success-when span { color: var(--rsvp-brown); font-size: 13px; font-weight: 800; }

.nite-rsvp__steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; overflow: hidden; border: 1px solid rgba(255, 241, 228, .2); border-radius: 15px; }
.nite-rsvp__steps > div { padding: 15px 18px; text-align: center; }
.nite-rsvp__steps > div + div { border-left: 1px solid rgba(255, 241, 228, .15); }
.nite-rsvp__steps strong { display: block; color: var(--rsvp-gold); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.nite-rsvp__steps p { margin: 6px 0 0; color: var(--rsvp-muted); font-size: 10px; line-height: 1.5; }

@keyframes nite-rsvp-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .nite-rsvp { padding: 92px 14px 46px; }
  .nite-rsvp__layout { grid-template-columns: 1fr; min-width: 0; border-radius: 22px; }
  .nite-rsvp__hero { min-width: 0; min-height: 0; padding: 46px 28px; }
  .nite-rsvp__title { font-size: 48px !important; letter-spacing: -.03em !important; white-space: normal !important; }
  .nite-rsvp__form-card { min-width: 0; padding: 40px 26px; }
  .nite-rsvp__form-card h2 { font-size: 38px !important; }
  .nite-rsvp__closed { padding: 24px 0; }
  .nite-rsvp__closed h2 { font-size: 42px !important; }
  .nite-rsvp__steps { grid-template-columns: 1fr; }
  .nite-rsvp__steps > div + div { border-top: 1px solid rgba(255, 241, 228, .15); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nite-rsvp__spinner { animation-duration: 1.5s; }
}
