/* ============================================================================
   Full-page-style modals: RSVP/Register+Dietary, Watch Here, Exhibitor
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.72);
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 16px;
}
.modal-overlay.is-open { display: flex; }
body.modal-open { overflow: hidden; }

.modal {
  width: 100%;
  max-width: 760px;
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  animation: modal-in 0.25s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__header {
  background: var(--white);
  color: var(--ink);
  padding: 26px 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 4px solid var(--primary);
}
.modal__header .eyebrow { margin-bottom: 8px; }
.modal__header h2 { font-family: var(--font-body) !important; font-weight: 800; font-size: clamp(22px, 3vw, 30px); }
.modal__header--plain { border-bottom: 0; justify-content: flex-end; padding-bottom: 10px; }
.modal--sm { max-width: 420px; }
.modal__close {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(26,26,26,0.3);
  background: transparent;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.modal__close:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.modal__body { padding: 30px; }
.modal__body--nopad { padding: 0; }

/* Stepper (used by the registration modal) */
.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.stepper__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.stepper__num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-family:  var(--font-montserrat);
  font-size: 12px;
  color: var(--gray-600);
}
.stepper__step.is-active .stepper__num { border-color: var(--primary); background: var(--primary); color: var(--white); }
.stepper__step.is-active { color: var(--ink); }
.stepper__step.is-done .stepper__num { border-color: var(--primar); background: var(--primar); color: var(--white); }
.stepper__line { flex: 1; height: 2px; background: var(--gray-200); }

.modal-step { display: none; }
.modal-step.is-active { display: block; }

.modal-step__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  border-top: 1px solid var(--gray-200);
  padding-top: 22px;
}

/* Watch modal */
.watch-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.watch-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  text-align: center;
}
.watch-option svg { width: 30px; height: 30px; }
.watch-option strong { font-size: 14px; }
.watch-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
}
.watch-embed .placeholder-box,
.watch-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Exhibitor modal floor plan */
.floorplan-preview .placeholder-box { min-height: 180px; margin-bottom: 22px; }

/* Speaker biography modal */
.bio-modal__photo { min-height: 220px; margin-bottom: 20px; border-radius: 8px; overflow: hidden; }
.bio-modal__photo img { width: 100%; height: 100%; object-fit: cover; }
#modal-speaker-bio .role-org { margin: 4px 0 0; font-weight: 400; font-size: 14px; }

@media (max-width: 620px) {
  .form-row, .watch-options { grid-template-columns: 1fr; }
  .modal__body { padding: 22px; }
  .modal__header { padding: 20px; }
}
