/* ── RSVP event landing page ──
   Scoped under .dci-rsvp-event so it cannot leak into, or be
   overridden by, the rest of the site. The tokens, typefaces and
   container width are lifted from the Event Sponsor VIP template
   (themes/eventchamp-child/css/event-sponsor.css) so the two pages
   read as one site rather than two. */

.dci-rsvp-event {
  --rsvp-navy: #1B4595;
  --rsvp-navy-dark: #0D2349;
  --rsvp-orange: #F5821F;
  --rsvp-orange-dark: #d96a0a;
  --rsvp-white: #FFFFFF;
  --rsvp-tint: #E9EFF7;
  --rsvp-text: #111827;
  --rsvp-muted: #4B5563;
  --rsvp-border: #e2e8f0;

  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  color: var(--rsvp-text);
  overflow-x: hidden;
}

.dci-rsvp-event *,
.dci-rsvp-event *::before,
.dci-rsvp-event *::after {
  box-sizing: border-box;
}

.dci-rsvp-event__container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ───────────────────────────────────────────────────────
   Same gradient and radial washes as the sponsor hero. The RSVP card
   is the one loud element on the page; everything else stays quiet. */

.dci-rsvp-event__hero {
  background: linear-gradient(180deg, #EEF2FC 0%, #E7EDFB 100%);
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
}

.dci-rsvp-event__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 20% 20%, rgba(27, 69, 149, 0.08) 0%, transparent 70%);
}

.dci-rsvp-event__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 90% at 80% 15%, rgba(245, 130, 31, 0.10) 0%, transparent 70%);
}

.dci-rsvp-event__hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
}

.dci-rsvp-event__parent {
  margin: 0 0 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.dci-rsvp-event__parent a {
  color: var(--rsvp-navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 69, 149, 0.3);
  padding-bottom: 1px;
}

.dci-rsvp-event__parent a:hover,
.dci-rsvp-event__parent a:focus {
  color: var(--rsvp-orange);
  border-bottom-color: var(--rsvp-orange);
}

.dci-rsvp-event__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--rsvp-navy-dark);
  margin: 0;
}

.dci-rsvp-event__lead {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--rsvp-muted);
  max-width: 54ch;
}

/* ── RSVP card ──────────────────────────────────────────────── */

.dci-rsvp-event__rsvp {
  background: var(--rsvp-white);
  border: 1px solid var(--rsvp-border);
  border-radius: 10px;
  padding: 30px 28px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(13, 35, 73, 0.12);
}

.dci-rsvp-event__rsvp.is-loading {
  opacity: .65;
}

.dci-rsvp-event__rsvp-loading,
.dci-rsvp-event__rsvp-message {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--rsvp-muted);
}

.dci-rsvp-event__rsvp-greeting {
  margin: 0 0 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rsvp-navy-dark);
}

.dci-rsvp-event__rsvp.is-responded .dci-rsvp-event__rsvp-message {
  color: var(--rsvp-navy-dark);
  font-weight: 600;
}

.dci-rsvp-event__rsvp.is-error .dci-rsvp-event__rsvp-message {
  color: #8a1f11;
}

.dci-rsvp-event__rsvp-button {
  display: inline-block;
  width: 100%;
  background: var(--rsvp-orange);
  color: var(--rsvp-white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(245, 130, 31, 0.4);
}

.dci-rsvp-event__rsvp-button:hover,
.dci-rsvp-event__rsvp-button:focus-visible {
  background: var(--rsvp-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245, 130, 31, 0.5);
}

.dci-rsvp-event__rsvp-button[disabled] {
  cursor: default;
  opacity: .6;
  transform: none;
  box-shadow: none;
}

.dci-rsvp-event__rsvp-noscript {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  color: var(--rsvp-muted);
}

/* ── Details ────────────────────────────────────────────────── */

.dci-rsvp-event__details {
  padding: 56px 0 72px;
  background: var(--rsvp-white);
}

.dci-rsvp-event__facts {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--rsvp-border);
}

.dci-rsvp-event__facts dt,
.dci-rsvp-event__facts dd {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--rsvp-border);
  min-width: 0;
}

.dci-rsvp-event__facts dt {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rsvp-navy);
  padding-right: 20px;
  padding-top: 21px;
}

.dci-rsvp-event__facts dd {
  font-size: 17px;
  line-height: 1.5;
}

/* ── Program row ────────────────────────────────────────────── */

.dci-rsvp-event__program {
  min-width: 0;
}

.dci-rsvp-event__program-summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  min-width: 0;
}

/* The default disclosure triangle would sit where the truncation
   happens and fight the "Read the full program" affordance. */
.dci-rsvp-event__program-summary::-webkit-details-marker {
  display: none;
}

.dci-rsvp-event__program-summary::marker {
  content: '';
}

.dci-rsvp-event__program-summary:focus-visible {
  outline: 2px solid var(--rsvp-navy);
  outline-offset: 3px;
}

.dci-rsvp-event__program-preview {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--rsvp-text);
}

.dci-rsvp-event__program-more {
  flex: 0 0 auto;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rsvp-orange);
  white-space: nowrap;
}

.dci-rsvp-event__program-summary:hover .dci-rsvp-event__program-more {
  color: var(--rsvp-orange-dark);
}

/* Shown inline only when JavaScript never took the summary over. */
.dci-rsvp-event__program-full {
  padding-top: 14px;
}

.dci-rsvp-event__program[open] .dci-rsvp-event__program-preview {
  white-space: normal;
  overflow: visible;
}

.dci-rsvp-event__program-full ul,
.dci-rsvp-event__modal-body ul {
  margin: 0 0 1em 1.25em;
  padding: 0;
}

.dci-rsvp-event__program-full li,
.dci-rsvp-event__modal-body li {
  margin-bottom: .4em;
}

.dci-rsvp-event__program-full p:last-child,
.dci-rsvp-event__modal-body p:last-child,
.dci-rsvp-event__modal-body ul:last-child {
  margin-bottom: 0;
}

.dci-rsvp-event__body {
  margin-top: 36px;
  font-size: 17px;
  line-height: 1.65;
  max-width: 72ch;
}

/* ── Program lightbox ───────────────────────────────────────── */

.dci-rsvp-event__lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 25, 60, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.dci-rsvp-event__lightbox[hidden] {
  display: none;
}

.dci-rsvp-event__modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--rsvp-white);
  border-radius: 12px;
  padding: 32px 28px 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  animation: dci-rsvp-event-modal-in .28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dci-rsvp-event-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.dci-rsvp-event__modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rsvp-navy-dark);
  margin: 0 0 18px;
  padding-right: 36px;
}

.dci-rsvp-event__modal-body {
  font-size: 16px;
  line-height: 1.6;
}

.dci-rsvp-event__modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  font-size: 26px;
  line-height: 1;
  color: var(--rsvp-muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.dci-rsvp-event__modal-close:hover,
.dci-rsvp-event__modal-close:focus-visible {
  color: var(--rsvp-navy-dark);
  background: var(--rsvp-tint);
}

/* Focus lands here as soon as the dialog opens, so the ring is seen on
   every open. The theme's default is a boxy input-style outline that
   reads as a form field; this keeps it visible but quiet. */
.dci-rsvp-event__modal-close:focus-visible {
  outline: 2px solid var(--rsvp-navy);
  outline-offset: 2px;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {

  .dci-rsvp-event__modal {
    animation: none;
  }

  .dci-rsvp-event__rsvp-button {
    transition: none;
  }

  .dci-rsvp-event__rsvp-button:hover,
  .dci-rsvp-event__rsvp-button:focus-visible {
    transform: none;
  }
}

/* ── Narrow screens ─────────────────────────────────────────── */

@media (max-width: 900px) {

  .dci-rsvp-event__hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  /* The theme's mobile header is position:absolute, so it takes up no
     layout space and floats over whatever starts the page. Without
     enough room here it clips the line above the title. */
  .dci-rsvp-event__hero {
    padding: 84px 0 52px;
  }

  .dci-rsvp-event__details {
    padding: 40px 0 56px;
  }
}

@media (max-width: 600px) {

  .dci-rsvp-event__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .dci-rsvp-event__facts dt {
    border-bottom: 0;
    padding: 16px 0 0;
  }

  .dci-rsvp-event__facts dd {
    padding-top: 6px;
  }

  /* Stacked, the label and value already read as a pair; a truncated
     line plus a wrapped link would just look broken. */
  .dci-rsvp-event__program-summary {
    display: block;
  }

  .dci-rsvp-event__program-preview {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .dci-rsvp-event__program-more {
    display: inline-block;
    margin-top: 6px;
  }
}
