/* ─── Validation ─────────────────────────────────────────────────────────── */
.field-validation-error,
.validation-summary-errors {
  color: #b91c1c;
  font-size: .875rem;
  font-weight: 600;
}

/* ─── Image frame ────────────────────────────────────────────────────────── */
.event-image-frame {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(45deg,rgba(148,163,184,.16) 25%,transparent 25%),
    linear-gradient(-45deg,rgba(148,163,184,.16) 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,rgba(148,163,184,.16) 75%),
    linear-gradient(-45deg,transparent 75%,rgba(148,163,184,.16) 75%);
  background-position: 0 0,0 10px,10px -10px,-10px 0;
  background-size: 20px 20px;
}

input[type="file"] { max-width: 100%; min-width: 0; }

/* ─── Choice card ────────────────────────────────────────────────────────── */
.choice-card input:checked + span {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ─── Step timeline ──────────────────────────────────────────────────────── */
/*
   Expected structure:
   <div class="step-timeline" data-step-indicators>
     <div class="step-node" data-step-index="0">
       <span class="step-num">1</span>
       <span class="step-lbl">Label</span>
     </div>
     ...
   </div>
*/
.step-timeline {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
  padding: .25rem 0 .625rem;
}
.step-timeline::-webkit-scrollbar { display: none; }

.step-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  flex: 1;
  min-width: 56px;
}

/* connecting line */
.step-node::after {
  content: "";
  position: absolute;
  top: 1.0625rem;
  left: calc(50% + 1.25rem);
  right: calc(-50% + 1.25rem);
  height: 2px;
  background: #e2e8f0;
  transition: background .3s ease;
}
.step-node:last-child::after { display: none; }
.step-node.step-done::after  { background: #059669; }

/* circle */
.step-num {
  position: relative;
  z-index: 1;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 9999px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 800;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  flex-shrink: 0;
}

/* done state */
.step-node.step-done .step-num {
  background: #059669;
  border-color: #059669;
  color: #fff;
  font-size: 0;
}
.step-node.step-done .step-num::after {
  content: "✓";
  font-size: .875rem;
  font-weight: 900;
}

/* active state */
.step-node.step-active .step-num {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18), 0 4px 14px rgba(37,99,235,.22);
}

/* label */
.step-lbl {
  font-size: .6875rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  white-space: nowrap;
  transition: color .2s;
}
.step-node.step-active .step-lbl { color: #1d4ed8; font-weight: 700; }
.step-node.step-done   .step-lbl { color: #059669; }

@media (max-width: 479px) {
  .step-lbl   { display: none; }
  .step-node  { min-width: 40px; }
}

/* ─── Event workspace ────────────────────────────────────────────────────── */
.event-workspace {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .event-workspace { grid-template-columns: 210px minmax(0,1fr); }
}
@media (min-width: 1280px) {
  .event-workspace { grid-template-columns: 228px minmax(0,1fr); }
}

/* ─── Event menu ─────────────────────────────────────────────────────────── */
.event-menu {
  position: sticky;
  top: 5rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}
.event-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem .875rem;
  border-radius: .75rem;
  font-size: .875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.event-menu a:hover { background: #f1f5f9; color: #0f172a; }
.event-menu a.is-active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #2563eb;
}

@media (max-width: 1023px) {
  .event-menu {
    position: static;
    max-height: none;
    overflow-y: visible;
    display: flex;
    gap: .375rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .event-menu::-webkit-scrollbar { display: none; }
  .event-menu a {
    flex-shrink: 0;
    min-width: max-content;
    scroll-snap-align: start;
    border-radius: 2rem;
    padding: .5rem .875rem;
  }
  .event-menu a.is-active {
    box-shadow: none;
    background: #2563eb;
    color: #fff;
  }
}

/* ─── Panel next button ──────────────────────────────────────────────────── */
.event-panel-next { border-top: 1px solid #f1f5f9; }

[data-event-panel],
[data-event-panel-child] { scroll-margin-top: 5.5rem; }

@media (max-width: 640px) {
  .event-panel-next { justify-content: stretch; }
  .event-panel-next button { width: 100%; }
}

/* ─── Invitation rows ────────────────────────────────────────────────────── */
[data-invitation-row] { cursor: pointer; }
[data-invitation-row]:focus-visible {
  outline: 3px solid rgba(37,99,235,.35);
  outline-offset: 3px;
}
[data-invitation-row].is-selected {
  outline: 2px solid rgba(37,99,235,.28);
  outline-offset: 2px;
}
tr[data-invitation-row].is-selected td { background: #eff6ff; }

/* ─── Soft shadow utility ────────────────────────────────────────────────── */
.shadow-soft { box-shadow: 0 16px 48px rgba(15,23,42,.09); }

/* ─── Metric card left accent ────────────────────────────────────────────── */
.metric-card          { position: relative; overflow: hidden; }
.metric-card::before  {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
}
.metric-blue::before  { background: #2563eb; }
.metric-green::before { background: #059669; }
.metric-amber::before { background: #d97706; }
.metric-red::before   { background: #dc2626; }

/* ─── Progress track ─────────────────────────────────────────────────────── */
.progress-track {
  height: .4375rem;
  border-radius: 9999px;
  background: #f1f5f9;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width .6s cubic-bezier(.22,1,.36,1);
  min-width: .125rem;
}

/* ─── Info strip ─────────────────────────────────────────────────────────── */
.info-divider {
  display: none;
  width: 1px;
  height: 1rem;
  background: #e2e8f0;
  flex-shrink: 0;
}
@media (min-width: 640px) { .info-divider { display: block; } }
