/* ── Container ──────────────────────────────────────────────────────────── */
#wrsvp-container {
  max-width: 680px;
  margin: 0 auto;
  font-family: inherit;
}

/* ── Panel ──────────────────────────────────────────────────────────────── */
.wrsvp-panel {
  background: #fafaf8;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

/* ── Heading ─────────────────────────────────────────────────────────────── */
.wrsvp-heading {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.wrsvp-subtext {
  text-align: center;
  color: #444;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* ── Search row ──────────────────────────────────────────────────────────── */
.wrsvp-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.wrsvp-input {
  flex: 1;
  padding: 13px 16px;
  border: none !important;
  border-radius: 10px;
  font-size: 1rem;
  background: #f0ede7 !important;
  outline: none;
  transition: border-color .2s;
}

.wrsvp-input:focus {
  border-color: #6b6b6b;
}

/* ── Hint text ───────────────────────────────────────────────────────────── */
.wrsvp-hint {
  font-size: .82rem;
  color: #888;
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.4;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.wrsvp-btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .2s, opacity .2s;
  white-space: nowrap;
}

.wrsvp-btn--primary {
  background: #e8e5de;
  color: #1a1a1a !important;
}

.wrsvp-btn--primary:hover {
  background: #d6d2c9;
}

.wrsvp-btn--primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.wrsvp-btn--select,
.wrsvp-result-card .wrsvp-btn--select {
  background: #f0ede7 !important;
  color: #1a1a1a !important;
  border: none !important;
  padding: 9px 20px;
  border-radius: 8px;
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 600;
}

.wrsvp-btn--select:hover,
.wrsvp-result-card .wrsvp-btn--select:hover {
  background: #e2ddd5 !important;
}

/* ── Results list ────────────────────────────────────────────────────────── */
.wrsvp-results {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wrsvp-result-card {
  background: #1c1c1c;
  color: #f0ede7;
  border-radius: 12px;
  padding: 18px 20px;
}

.wrsvp-result-card__party {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.wrsvp-result-card__guests {
  font-size: .88rem;
  color: #c0bcb4;
  margin-bottom: 12px;
}

/* ── Message ─────────────────────────────────────────────────────────────── */
.wrsvp-message {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
}

.wrsvp-message--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.wrsvp-message--success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ── Form panel header ───────────────────────────────────────────────────── */
.wrsvp-party-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0ddd5;
}

.wrsvp-back-btn {
  background: none;
  border: none !important;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: .85rem;
  cursor: pointer;
  color: #555;
  white-space: nowrap;
  transition: background .2s;
}

.wrsvp-back-btn:hover {
  background: #efefef;
}

.wrsvp-party-label {
  font-weight: 600;
  font-size: .95rem;
  color: #333;
  margin: 0;
}

/* ── Notice (no form configured) ────────────────────────────────────────── */
.wrsvp-notice {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 24px 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .wrsvp-panel {
    padding: 28px 20px;
  }

  .wrsvp-search-row {
    flex-direction: column;
  }

  .wrsvp-btn--primary {
    width: 100%;
    text-align: center;
  }
}

/* ── Plus-one name fields (hidden until unnamed guest detected) ───────────── */
.wrsvp-guest-name-field {
  display: none;
}
