.guest-page {
  min-height: 100vh;
  padding: 1.5rem clamp(1rem, 4vw, 4rem) 4rem;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(21, 69, 50, 0.1), transparent 34rem),
    var(--cream);
}

.guest-header {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0.5rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.guest-logo {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

.guest-logo img {
  display: block;
  width: auto;
  height: 2.75rem;
}

.guest-layout {
  display: grid;
  width: min(100%, 1120px);
  margin: clamp(2.5rem, 7vw, 6rem) auto 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
}

.guest-welcome {
  padding-top: 1.5rem;
}

.guest-eyebrow,
.guest-progress-step,
.guest-field label,
.guest-choice legend {
  font-weight: 700;
}

.guest-eyebrow {
  margin-bottom: 1rem;
  color: var(--bs-secondary);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guest-welcome h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.guest-welcome-copy {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.guest-welcome-note {
  margin-top: 3rem;
  padding-left: 1rem;
  color: var(--bs-secondary);
  border-left: 3px solid var(--tertiary);
  font-family: var(--heading-font);
  line-height: 1.6;
}

.guest-panel {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--bs-primary);
  box-shadow: 0 18px 52px rgba(32, 27, 33, 0.09);
}

.guest-footer {
  width: min(100%, 1120px);
  margin: 2.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: right;
}

.guest-footer a {
  color: var(--bs-secondary);
  font-size: 0.9rem;
  font-weight: 700;
}

.guest-thank-you-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.75rem;
}

.guest-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.guest-progress-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.guest-progress-step[aria-current="step"] {
  color: var(--bs-primary);
}

.guest-progress-number {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
}

.guest-progress-line {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.guest-panel h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.guest-form-intro {
  margin-bottom: 1.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.guest-options,
.guest-choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.guest-options {
  display: grid;
  gap: 0.75rem;
}

.guest-option {
  position: relative;
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.guest-option:has(input:checked) {
  background: rgba(100, 0, 99, 0.045);
  border-color: var(--bs-primary);
}

.guest-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.guest-option-check {
  display: grid;
  width: 1.2rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #918891;
  border-radius: 0.2rem;
}

.guest-option input:checked + .guest-option-check {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.guest-option input:checked + .guest-option-check::after {
  width: 0.35rem;
  height: 0.6rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg) translate(-1px, -1px);
}

.guest-option input:focus-visible + .guest-option-check,
.guest-choice-option input:focus-visible + span {
  outline: 3px solid rgba(100, 0, 99, 0.3);
  outline-offset: 3px;
}

.guest-option-text {
  line-height: 1.45;
}

.guest-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.guest-field {
  display: grid;
  gap: 0.45rem;
}

.guest-field-full {
  grid-column: 1 / -1;
}

.guest-field label,
.guest-choice legend {
  color: var(--ink);
  font-size: 0.9rem;
}

.guest-field input,
.guest-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(32, 27, 33, 0.24);
  border-radius: 0.25rem;
  font: inherit;
}

.guest-field input {
  min-height: 3rem;
}

.guest-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.guest-field input:focus,
.guest-field textarea:focus {
  border-color: var(--bs-primary);
  outline: 3px solid rgba(100, 0, 99, 0.14);
}

.guest-choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.guest-choice-option {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.guest-choice-option:has(input:checked) {
  border-color: var(--bs-secondary);
  box-shadow: inset 0 0 0 1px var(--bs-secondary);
}

.guest-choice-option input {
  accent-color: var(--bs-secondary);
}

.guest-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.guest-step-actions-between {
  justify-content: space-between;
}

.guest-button {
  min-height: 2.9rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.guest-button-primary {
  color: #fff;
  background: var(--bs-primary);
}

.guest-button-primary:hover {
  background: #4f004e;
}

.guest-button-back {
  color: var(--bs-secondary);
  background: transparent;
  border-color: var(--bs-secondary);
}

.guest-form-status {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  color: #713b00;
  background: #fff4d6;
  border-left: 3px solid var(--tertiary);
  line-height: 1.5;
}

.guest-form-status a {
  color: inherit;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 800px) {
  .guest-layout {
    max-width: 620px;
    margin-top: 2rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guest-welcome {
    padding-top: 0;
  }

  .guest-welcome h1 {
    max-width: 16ch;
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  .guest-welcome-note {
    margin-top: 1.5rem;
  }
}

@media (max-width: 520px) {
  .guest-page {
    padding-inline: 1rem;
  }

  .guest-fields {
    grid-template-columns: 1fr;
  }

  .guest-field-full {
    grid-column: auto;
  }

  .guest-progress {
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .guest-progress-step {
    gap: 0.35rem;
  }
}