:root {
  color-scheme: light;
  --rsvp-bg: #f6f3ef;
  --rsvp-bg-alt: #e8edf0;
  --rsvp-blue: #b7c3cb;
  --rsvp-blue-deep: #6f8794;
  --rsvp-blue-mid: #8ea3b0;
  --rsvp-surface: rgba(255, 255, 255, 0.82);
  --rsvp-surface-strong: #f8f5f0;
  --rsvp-text: #2a2723;
  --rsvp-muted: #61584f;
  --rsvp-line: rgba(42, 39, 35, 0.14);
  --rsvp-chip: rgba(255, 255, 255, 0.22);
  --rsvp-shadow: 0 24px 60px rgba(25, 26, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Tenor Sans", "Manrope", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, #eef3f6 0%, transparent 34%),
    radial-gradient(circle at 90% 10%, #f3ece5 0%, transparent 28%),
    linear-gradient(180deg, var(--rsvp-bg) 0%, var(--rsvp-bg-alt) 100%);
  color: var(--rsvp-text);
}

h1,
.rsvp-brand {
  font-family: "Noto Serif Display", serif;
  font-weight: 200;
  letter-spacing: 0.01em;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 34vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(183, 195, 203, 0.28);
  filter: blur(28px);
  pointer-events: none;
}

body::before {
  top: -10vmax;
  right: -8vmax;
}

body::after {
  bottom: -12vmax;
  left: -10vmax;
}

.rsvp-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(to bottom, rgba(29, 28, 26, 0.58), rgba(29, 28, 26, 0));
}

.rsvp-home-link,
.lang-btn,
.submit-btn {
  font: inherit;
}

.rsvp-brand,
.rsvp-home-link {
  color: #fff;
  text-decoration: none;
}

.rsvp-brand {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.rsvp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.rsvp-home-link {
  display: inline-flex;
  align-items: center;
  font-family: "Tenor Sans", "Manrope", sans-serif;
  font-weight: 600;
  padding: 0.34rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  font-size: 0.88rem;
  line-height: 1.2;
}

.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.lang-btn {
  border: 0;
  font-family: "Tenor Sans", "Manrope", sans-serif;
  font-size: 0.88rem;
  line-height: 1.2;
  background: transparent;
  color: #fff;
  padding: 0.34rem 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn.is-active {
  background: #f2efe9;
  color: var(--rsvp-text);
}

.rsvp-page {
  padding: 5.8rem clamp(1.2rem, 3vw, 2.5rem) clamp(1.2rem, 3vw, 2.5rem);
}

.rsvp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  width: min(1200px, 96vw);
  margin: 0 auto;
  padding: clamp(1.2rem, 2.5vw, 2.35rem);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(183, 195, 203, 0.84), rgba(232, 237, 240, 0.6));
  overflow: hidden;
  box-shadow: var(--rsvp-shadow);
}

.rsvp-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  pointer-events: none;
}

.rsvp-hero-copy,
.rsvp-form-shell {
  position: relative;
  z-index: 1;
}

.rsvp-hero-copy {
  padding: clamp(0.8rem, 1.6vw, 1.2rem);
  color: var(--rsvp-text);
}

.rsvp-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(42, 39, 35, 0.72);
}

.rsvp-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.6vw, 4.15rem);
  line-height: 0.98;
  max-width: 11ch;
  text-transform: uppercase;
}

.rsvp-intro {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.62;
  color: rgba(42, 39, 35, 0.86);
}

.rsvp-meta-card,
.rsvp-form {
  background: var(--rsvp-surface);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--rsvp-shadow);
  backdrop-filter: blur(14px);
}

.rsvp-meta-card {
  width: min(26rem, 100%);
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.14);
}

.meta-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(42, 39, 35, 0.66);
}

.meta-value {
  margin: 0.2rem 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--rsvp-text);
}

.meta-value:last-child {
  margin-bottom: 0;
}

.rsvp-form {
  padding: clamp(1rem, 2.4vw, 1.65rem);
  border-radius: 2rem;
}

.field-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field-row.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span,
.choice-group legend {
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rsvp-blue-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(111, 135, 148, 0.2);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--rsvp-text);
  background: rgba(248, 245, 240, 0.94);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.submit-btn:focus,
.lang-btn:focus,
.rsvp-home-link:focus {
  outline: 2px solid rgba(111, 135, 148, 0.28);
  outline-offset: 2px;
}

.choice-group {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.choice-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 135, 148, 0.2);
  background: rgba(142, 163, 176, 0.1);
  cursor: pointer;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.choice-chip:has(input:checked) {
  border-color: transparent;
  background: var(--rsvp-blue-deep);
  color: #fff9f2;
}

.choice-chip:has(input:checked) span {
  color: inherit;
}

.turnstile-slot {
  margin-top: 0.5rem;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.form-note {
  margin: 0;
  max-width: 30rem;
  color: var(--rsvp-muted);
  line-height: 1.6;
}

.submit-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  background: linear-gradient(135deg, var(--rsvp-blue-mid), var(--rsvp-blue-deep));
  color: #fff9f2;
  cursor: pointer;
  white-space: nowrap;
}

.submit-btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--rsvp-blue-deep);
}

.form-status.is-error {
  color: #8b2f2f;
}

.form-status.is-success {
  color: #2c6a46;
}

.field-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 920px) {
  .rsvp-hero {
    grid-template-columns: 1fr;
  }

  .rsvp-hero h1 {
    max-width: none;
  }

  .rsvp-hero-copy {
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .rsvp-header {
    flex-direction: column;
    align-items: stretch;
  }

  .rsvp-header-actions {
    justify-content: space-between;
  }

  .rsvp-page {
    padding-top: 7.2rem;
  }

  .field-row.two-up,
  .form-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .choice-row {
    display: grid;
  }

  .submit-btn {
    width: 100%;
  }
}