/* Event Console booking funnel — shared modal, themed off each site's --brand
   tokens. Scoped under .eb-* so it never collides with site styles. */

.eb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(16, 16, 28, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.eb-overlay.eb-open {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 640px) {
  .eb-overlay {
    align-items: center;
    padding: 24px;
  }
}

.eb-modal {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--paper, #fff);
  color: var(--ink, #1a1a2e);
  border: 1px solid var(--line, #ececf5);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg, 0 22px 48px -18px rgba(0, 0, 0, 0.3));
  font-family: var(--font-body, system-ui, sans-serif);
  transform: translateY(16px);
  transition: transform 0.22s ease;
  overflow: hidden;
}
.eb-overlay.eb-open .eb-modal {
  transform: translateY(0);
}
@media (min-width: 640px) {
  .eb-modal {
    border-radius: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .eb-overlay,
  .eb-modal {
    transition: none;
  }
}

.eb-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line, #ececf5);
}
.eb-head__title {
  margin: 0;
  font-family: var(--font-display, var(--font-body, system-ui));
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.eb-head__sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-soft, #6b6480);
}
.eb-head__close {
  margin-left: auto;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line, #ececf5);
  border-radius: 12px;
  background: var(--paper-2, #f7f7fb);
  color: var(--ink, #1a1a2e);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.eb-head__close:hover {
  background: var(--brand-tint, #f1ebfe);
}

/* progress dots */
.eb-steps {
  display: flex;
  gap: 6px;
  padding: 12px 20px 0;
}
.eb-steps__dot {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: var(--line, #ececf5);
}
.eb-steps__dot.eb-on {
  background: var(--brand, #7b2ff7);
}

.eb-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  flex: 1;
}
.eb-step__lead {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft, #6b6480);
}

/* fields */
.eb-field {
  margin-bottom: 14px;
}
.eb-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.eb-label .eb-req {
  color: var(--accent-dark, #c42832);
}
.eb-input,
.eb-select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink, #1a1a2e);
  background: var(--paper, #fff);
  border: 1.5px solid var(--line, #ececf5);
  border-radius: 12px;
  min-height: 46px;
}
.eb-input:focus,
.eb-select:focus {
  outline: none;
  border-color: var(--brand, #7b2ff7);
  box-shadow: 0 0 0 3px var(--brand-tint, rgba(123, 47, 247, 0.18));
}
.eb-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* segmented control (client type) */
.eb-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.eb-seg__opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1.5px solid var(--line, #ececf5);
  border-radius: 12px;
  background: var(--paper, #fff);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink, #1a1a2e);
}
.eb-seg__opt b {
  font-size: 14px;
}
.eb-seg__opt span {
  font-size: 11.5px;
  color: var(--ink-soft, #6b6480);
}
.eb-seg__opt.eb-on {
  border-color: var(--brand, #7b2ff7);
  background: var(--brand-tint, #f1ebfe);
}

/* resource cards */
.eb-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eb-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--line, #ececf5);
  border-radius: 14px;
  background: var(--paper, #fff);
  align-items: center;
}
.eb-card.eb-picked {
  border-color: var(--brand, #7b2ff7);
  background: var(--brand-tint, #f1ebfe);
}
.eb-card.eb-soldout {
  opacity: 0.55;
}
.eb-card__media {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--brand-tint, #f1ebfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}
.eb-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eb-card__body {
  flex: 1;
  min-width: 0;
}
.eb-card__name {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 2px;
}
.eb-card__meta {
  font-size: 12px;
  color: var(--ink-soft, #6b6480);
}
.eb-card__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand, #7b2ff7);
  margin-top: 2px;
}
.eb-avail {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(34, 170, 102, 0.14);
  color: #1f8a55;
  margin-top: 4px;
}
.eb-avail--out {
  background: rgba(196, 40, 50, 0.12);
  color: var(--accent-dark, #c42832);
}

/* quantity stepper */
.eb-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.eb-stepper__btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--line, #ececf5);
  background: var(--paper-2, #f7f7fb);
  color: var(--ink, #1a1a2e);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.eb-stepper__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.eb-stepper__val {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}
.eb-pick {
  flex: 0 0 auto;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--brand, #7b2ff7);
  background: var(--paper, #fff);
  color: var(--brand, #7b2ff7);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.eb-pick.eb-on {
  background: var(--brand, #7b2ff7);
  color: #fff;
}

/* footer / actions */
.eb-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line, #ececf5);
  background: var(--paper, #fff);
}
.eb-total {
  flex: 1;
  min-width: 0;
}
.eb-total__big {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink, #1a1a2e);
}
.eb-total__cap {
  display: block;
  font-size: 11px;
  color: var(--ink-soft, #6b6480);
}
.eb-btn {
  padding: 12px 20px;
  min-height: 46px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.eb-btn--primary {
  background: var(--brand, #7b2ff7);
  color: #fff;
}
.eb-btn--primary:hover {
  background: var(--brand-dark, #6a20e0);
}
.eb-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.eb-btn--ghost {
  background: var(--paper-2, #f7f7fb);
  color: var(--ink, #1a1a2e);
  border-color: var(--line, #ececf5);
}
.eb-btn:focus-visible,
.eb-pick:focus-visible,
.eb-stepper__btn:focus-visible,
.eb-seg__opt:focus-visible,
.eb-head__close:focus-visible {
  outline: 3px solid var(--brand, #7b2ff7);
  outline-offset: 2px;
}

.eb-msg {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.eb-msg--error {
  background: rgba(196, 40, 50, 0.1);
  color: var(--accent-dark, #c42832);
}
.eb-msg--info {
  background: var(--brand-tint, #f1ebfe);
  color: var(--ink, #1a1a2e);
}

.eb-spin {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: eb-rot 0.7s linear infinite;
  vertical-align: -3px;
  margin-right: 8px;
}
@keyframes eb-rot {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .eb-spin {
    animation-duration: 2s;
  }
}

/* success */
.eb-done {
  text-align: center;
  padding: 16px 8px;
}
.eb-done__mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--brand, #7b2ff7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.eb-done__title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}
.eb-done__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft, #6b6480);
  margin: 0 auto 18px;
  max-width: 360px;
}
