/* ── RSVP page ── */
body.rsvp-page {
  background: #f5f1eb;
  min-height: 100vh;
  margin: 0;
}

/* ── Green header ── */
.rsvp-header-bar {
  background: var(--green-dark);
  color: white;
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  position: relative;
}

.rsvp-back {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: white;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.rsvp-back:hover { opacity: 1; }

.rsvp-header-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.rsvp-header-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.rsvp-header-sub {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

.rsvp-header-detail {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  opacity: 0.8;
}

/* ── Content card ── */
.rsvp-wrap {
  max-width: 640px;
  margin: 3rem auto 4rem;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2.5rem 2.5rem 3rem;
}

.rsvp-step { }

.rsvp-prompt {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 1.75rem;
}

/* ── Name fields ── */
.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.name-field { display: flex; flex-direction: column; gap: 0.35rem; }

.name-field label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.04em;
}

.name-field input,
.dietary-wrap input,
.dietary-wrap textarea {
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  background: #fafafa;
}

.name-field input:focus,
.dietary-wrap input:focus,
.dietary-wrap textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(27,67,50,0.1);
  background: white;
}

/* ── Error / hint states ── */
.rsvp-error {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #c0392b;
  margin-bottom: 0.75rem;
}

.rsvp-error--block {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.rsvp-hint {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ── Divider ── */
.rsvp-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0 -2.5rem 1.75rem;
}

/* ── Attending question ── */
.rsvp-question {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.875rem;
}

.rsvp-question-sub {
  font-weight: 400;
  opacity: 0.6;
  font-size: 0.8rem;
}

.attend-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.attend-options:has([data-group]) {
  flex-direction: row;
}

.attend-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  background: #fafafa;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: center;
}

.attend-btn:hover {
  border-color: var(--green-dark);
  background: #f0f5f2;
}

.attend-btn.attend-btn--selected,
.attend-btn.attend-btn--selected:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: white;
}

/* ── Dietary ── */
.dietary-wrap {
  margin-bottom: 1.5rem;
}

.dietary-wrap label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.dietary-wrap textarea { resize: vertical; min-height: 80px; }

/* ── Buttons ── */
.rsvp-btn {
  display: block;
  width: 100%;
  padding: 0.95rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-bottom: 0.75rem;
  border: none;
  letter-spacing: 0.03em;
  transition: opacity 0.15s, background 0.15s;
}

.rsvp-btn--primary {
  background: var(--green-dark);
  color: white;
}

.rsvp-btn--primary:hover { background: var(--green-mid); }

.rsvp-btn--ghost {
  background: transparent;
  color: #666;
  font-weight: 400;
  font-size: 0.82rem;
  padding: 0.5rem;
  margin-bottom: 0;
}

.rsvp-btn--ghost:hover { color: var(--green-dark); }

/* ── Contact link ── */
.rsvp-contact {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
}
.rsvp-contact:hover { color: var(--green-dark); }

/* ── Confirmation ── */
.rsvp-confirm {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.confirm-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.confirm-heading {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.confirm-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .rsvp-wrap { margin: -1rem 1rem 3rem; padding: 2rem 1.5rem 2.5rem; }
  .name-fields { grid-template-columns: 1fr; }
  .rsvp-divider { margin: 0 -1.5rem 1.5rem; }
  .rsvp-back { font-size: 0.7rem; }
}
