.eventflow-guest {
  --efg-ink: #172033;
  --efg-muted: #5b6474;
  --efg-accent: #3157d5;
  --efg-surface: #fff;
  --efg-border: #dfe4ee;
  background: #f3f5fa;
  color: var(--efg-ink);
  margin: 0 calc(50% - 50vw);
  min-height: 70vh;
  padding: clamp(18px, 5vw, 56px) 16px;
  overflow-wrap: anywhere;
}

.eventflow-guest :where(button, input):focus-visible {
  outline: 3px solid var(--efg-accent);
  outline-offset: 3px;
}

.eventflow-guest [aria-invalid='true'] {
  border-color: #b32d2e;
  box-shadow: 0 0 0 1px #b32d2e;
}

.eventflow-guest .eventflow-form-error {
  background: #fcf0f1;
  border-left: 4px solid #b32d2e;
  font-weight: 700;
  padding: 12px;
}

.eventflow-guest__card {
  background: var(--efg-surface);
  border: 1px solid var(--efg-border);
  border-radius: 16px;
  box-shadow: 0 16px 45px rgb(23 32 51 / 8%);
  margin: 0 auto;
  max-width: 720px;
  padding: clamp(22px, 6vw, 52px);
}

.eventflow-guest__eyebrow {
  color: var(--efg-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.eventflow-guest h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 8px 0 18px;
}

.eventflow-guest__status,
.eventflow-guest__facts dt,
.eventflow-guest__notice {
  color: var(--efg-muted);
}

.eventflow-guest__welcome {
  font-size: 1.1rem;
  line-height: 1.6;
}

.eventflow-guest .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.eventflow-guest__salutation {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  margin: 24px 0 4px;
}

.eventflow-guest__step-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.eventflow-guest__step-heading > span {
  align-items: center;
  background: var(--efg-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 32px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
}

.eventflow-guest__step-heading h2,
.eventflow-guest__step-heading p,
.eventflow-guest__party-actions p {
  margin: 0;
}

.eventflow-guest__step-heading p,
.eventflow-guest__party-actions p {
  color: var(--efg-muted);
}

.eventflow-guest__party-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 16px 0 8px 44px;
}

.eventflow-guest__facts {
  display: grid;
  grid-template-columns: minmax(90px, 130px) 1fr;
  margin: 24px 0;
}

.eventflow-guest__facts dt,
.eventflow-guest__facts dd {
  border-bottom: 1px solid var(--efg-border);
  margin: 0;
  padding: 10px 0;
}

.eventflow-guest__facts dt,
.eventflow-guest__attendee legend,
.eventflow-guest__choice legend {
  font-weight: 700;
}

.eventflow-guest__choice,
.eventflow-guest__attendee {
  border: 1px solid var(--efg-border);
  border-radius: 10px;
  margin: 20px 0;
  padding: 16px;
}

.eventflow-guest__choice label {
  display: block;
  font-size: 1.05rem;
  margin: 12px 0;
}

.eventflow-guest__choice input {
  height: 20px;
  margin-right: 8px;
  width: 20px;
}

.eventflow-guest__section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.eventflow-guest__section-heading h2 {
  font-size: 1.4rem;
}

.eventflow-guest__attendee {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.eventflow-guest__attendee label {
  font-weight: 600;
}

.eventflow-guest__attendee label span,
.eventflow-guest__attendee input {
  display: block;
}

.eventflow-guest__attendee input {
  border: 1px solid #9ca7ba;
  border-radius: 6px;
  box-sizing: border-box;
  font: inherit;
  margin-top: 5px;
  min-height: 44px;
  padding: 8px 10px;
  width: 100%;
}

.eventflow-guest__primary {
  background: var(--efg-accent);
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  min-height: 48px;
  padding: 12px 22px;
}

.eventflow-guest__primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.eventflow-guest__link {
  background: transparent;
  border: 0;
  color: var(--efg-accent);
  cursor: pointer;
  font: inherit;
  min-height: 44px;
  padding: 6px 0;
  text-decoration: underline;
}

.eventflow-guest__confirmation {
  font-weight: 700;
  min-height: 1.5em;
}

@media (max-width: 600px) {
  .eventflow-guest__attendee,
  .eventflow-guest__facts {
    grid-template-columns: 1fr;
  }

  .eventflow-guest__facts dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eventflow-guest * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .eventflow-guest :where(button, input):focus-visible {
    outline-color: Highlight;
  }

  .eventflow-guest .eventflow-form-error {
    border: 2px solid CanvasText;
  }
}
