/* ════════════════════════════════════════
   Seating Chart — uzatu2 additions
   (loaded on top of styles.css)
════════════════════════════════════════ */

.rsvp-hint {
  text-align: center;
  color: var(--lilac-mid);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.rsvp-deadline {
  text-align: center;
  color: var(--lilac-mid);
  font-size: 0.75rem;
  font-style: italic;
  margin-bottom: 2.5rem;
  opacity: 0.8;
}

/* ── Scroll wrapper ───────────────────── */
.seating-scroll {
  padding-bottom: 1rem;
}

/* ── Circular seating container — fluid ─ */
.seating-circle {
  position: relative;
  /* Never wider than 450px; on narrow viewports shrinks to fit with breathing room */
  width: min(450px, calc(100vw - 2.5rem));
  aspect-ratio: 1 / 1; /* always perfectly square — critical for even radial distribution */
  margin: 0 auto;
}

/* ── Round table ──────────────────────── */
.table-surface-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--pearl-dark) 0%, var(--pearl) 100%);
  border: 1px solid rgba(155,125,200,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 2px 18px rgba(155,125,200,0.07),
    0 4px 28px rgba(155,125,200,0.11);
  pointer-events: none;
}

.table-center-glyph {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--lilac-light);
  opacity: 0.75;
  line-height: 1;
  user-select: none;
}

/* ── Chair (pill-shaped, absolute pos) ── */
.chair {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 78px;
  padding: 6px 8px;
  border: 1px solid rgba(155,125,200,0.3);
  border-radius: 50px;
  background: #fff;
  cursor: pointer;
  color: var(--lilac-deep);
  font-family: var(--font-body);
  font-size: 0.67rem;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 2px 10px rgba(155,125,200,0.1);
  line-height: 1.2;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
  user-select: none;
}

.chair:hover {
  transform: translate(-50%, -50%) scale(1.11);
  box-shadow: 0 6px 22px rgba(155,125,200,0.24);
  border-color: var(--lilac);
  background: var(--pearl);
}

.chair-badge {
  font-size: 0.72rem;
  line-height: 1;
}

/* Responded states */
.chair.status-yes {
  background: rgba(100,175,100,0.12);
  border-color: #72a872;
  color: #2e6b2e;
  cursor: default;
}
.chair.status-yes:hover {
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(155,125,200,0.1);
  background: rgba(100,175,100,0.12);
  border-color: #72a872;
}

.chair.status-no {
  background: rgba(200,110,110,0.12);
  border-color: #c07070;
  color: #7a2e2e;
  cursor: default;
}
.chair.status-no:hover {
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(155,125,200,0.1);
  background: rgba(200,110,110,0.12);
  border-color: #c07070;
}

/* ════════════════════════════════════════
   Modal Overlay
════════════════════════════════════════ */
.seat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 24, 100, 0.48);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.seat-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal Card ───────────────────────── */
.seat-modal {
  background: #fff;
  border-radius: 14px;
  padding: 2.8rem 2.2rem 2.2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 28px 80px rgba(58,24,100,0.3);
  transform: translateY(28px) scale(0.96);
  transition: transform 0.3s var(--ease, cubic-bezier(.4,0,.2,1));
  position: relative;
}
.seat-modal-overlay.open .seat-modal {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--lilac-mid);
  padding: 0;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--lilac-deep); }

.modal-greeting {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lilac-mid);
  margin-bottom: 0.35rem;
}

.modal-name {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 300;
  font-style: italic;
  color: var(--lilac-deep);
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
  line-height: 1.1;
}

.modal-question {
  font-size: 0.8rem;
  color: var(--lilac-mid);
  letter-spacing: 0.04em;
  margin-bottom: 1.6rem;
}

/* ── Yes / No Choices ─────────────────── */
.modal-choices {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.modal-choice {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  border: 1px solid rgba(155,125,200,0.28);
  border-radius: 8px;
  background: var(--pearl);
  color: var(--lilac-mid);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  max-width: 150px;
}
.modal-choice .choice-icon { font-size: 1.2rem; line-height: 1; }
.modal-choice:hover {
  border-color: var(--lilac);
  color: var(--lilac);
  transform: translateY(-2px);
}
.modal-yes.selected {
  background: rgba(100,175,100,0.1);
  border-color: #72a872;
  color: #2d6b2d;
}
.modal-no.selected {
  background: rgba(200,110,110,0.1);
  border-color: #c07070;
  color: #7a2a2a;
}

/* ── Submit ───────────────────────────── */
.modal-actions { text-align: center; }
.modal-actions .submit-btn {
  width: 100%;
  padding: 0.85rem 1rem;
}
.modal-actions .submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Mobile ───────────────────────────── */
@media (max-width: 520px) {
  /* Smaller pills so 12 guests fit around the tighter orbit */
  .chair {
    width: 82px;
    padding: 5px 6px;
    font-size: 0.62rem;
  }
  .rsvp-hint { margin-bottom: 1.5rem; }
}

@media (max-width: 600px) {
  .seat-modal { padding: 2.4rem 1.6rem 1.8rem; }
  .modal-name { font-size: 1.5rem; }
}
