/* Fairy Castle theme & responsive slideshow support */
:root {
  --vg-primary: #5570AD;
  --vg-primary-dark: #3E5485;
  --vg-sage: #8497C2;
  --vg-accent: #C8A96A;
  --vg-accent-light: #E6D3A7;
  --vg-text-dark: #1E2433;
  --vg-text-muted: #5A6478;
}

.elementor-background-video-hosted,
.motionSection video,
video[src*="fairy-castle-hd" i] {
  filter: var(--vg-video-filter, none) !important;
}

.vg-bg-tint-layer,
.vg-bg-image-overlay {
  filter: var(--vg-ornament-filter, none);
}

.vg-bg-tint-layer {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.e-gallery-container .e-gallery-item,
.e-gallery-container .e-gallery-image {
  opacity: 1 !important;
  filter: none !important;
  visibility: visible !important;
}

/* Fix SSR-captured 390px width/transform on Elementor background slideshow */
.elementor-background-slideshow,
.elementor-background-slideshow .swiper-wrapper {
  width: 100% !important;
  height: 100% !important;
}

.elementor-background-slideshow .swiper-slide {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  transform: none !important;
}

.elementor-background-slideshow__slide__image {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center center !important;
}

#vg-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--vg-primary-dark);
  color: #fff;
  border: 1px solid var(--vg-accent);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 999999;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

#vg-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Editorial RSVP & Guestbook (vg-rsvp) - Fairy Castle Royal Blue & Gold */
.vg-rsvp {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  font-family: var(--font-body, 'Poppins', 'DM Sans', sans-serif);
  color: var(--vg-text-dark, #1E2433);
  text-align: left;
}

.vg-rsvp-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  background: rgba(251, 249, 245, 0.94);
  border: 1px solid rgba(200, 169, 106, 0.45);
  border-radius: 14px;
  padding: 14px 12px;
  margin-bottom: 16px;
}

.vg-rsvp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.vg-rsvp-stat-value {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--vg-primary, #5570AD);
}

.vg-rsvp-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--vg-text-muted, #5A6478);
  letter-spacing: 0.01em;
}

.vg-rsvp-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(200, 169, 106, 0.35);
}

.vg-rsvp-card {
  background: rgba(251, 249, 245, 0.96);
  border: 1px solid rgba(200, 169, 106, 0.45);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 8px 28px rgba(30, 44, 78, 0.12);
}

.vg-rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vg-rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.vg-rsvp-fieldset {
  min-width: 0;
}

.vg-rsvp-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--vg-primary-dark, #3E5485);
  padding: 0;
  margin: 0;
}

.vg-rsvp-input,
.vg-rsvp-select,
.vg-rsvp-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: var(--vg-text-dark, #1E2433);
  background: #FFFFFF;
  border: 1px solid rgba(62, 84, 133, 0.22);
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vg-rsvp-input::placeholder,
.vg-rsvp-textarea::placeholder {
  color: #8A93A6;
}

.vg-rsvp-input:focus,
.vg-rsvp-select:focus,
.vg-rsvp-textarea:focus {
  outline: none;
  border-color: var(--vg-primary, #5570AD);
  box-shadow: 0 0 0 3px rgba(85, 112, 173, 0.14);
}

.vg-rsvp-textarea {
  resize: vertical;
  min-height: 92px;
}

.vg-rsvp-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.vg-rsvp-pill {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.vg-rsvp-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.vg-rsvp-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(62, 84, 133, 0.22);
  background: #FFFFFF;
  color: var(--vg-text-dark, #1E2433);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.vg-rsvp-pill:hover span {
  border-color: var(--vg-accent, #C8A96A);
}

.vg-rsvp-pill:active span {
  transform: scale(0.98);
}

.vg-rsvp-pill input:focus-visible + span {
  outline: 2px solid var(--vg-accent, #C8A96A);
  outline-offset: 2px;
}

.vg-rsvp-pill input:checked + span {
  background: var(--vg-primary, #5570AD);
  border-color: var(--vg-accent, #C8A96A);
  color: #FFFFFF;
  font-weight: 600;
}

.vg-rsvp-guest-row.is-hidden {
  display: none;
}

#ev-rsvp-form #submit.vg-rsvp-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background-color: var(--vg-primary, #5570AD) !important;
  border: 1.5px solid var(--vg-accent, #C8A96A) !important;
  color: #FFFFFF !important;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

#ev-rsvp-form #submit.vg-rsvp-submit:hover:not(:disabled) {
  background-color: var(--vg-primary-dark, #3E5485) !important;
  transform: translateY(-1px);
}

#ev-rsvp-form #submit.vg-rsvp-submit:active:not(:disabled) {
  transform: scale(0.985);
}

#ev-rsvp-form #submit.vg-rsvp-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.vg-rsvp-feed-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 22px 2px 10px;
  color: #FFFFFF;
}

.vg-rsvp-feed-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
}

.vg-rsvp-feed-count {
  font-size: 12.5px;
  color: var(--vg-accent-light, #E6D3A7);
}

.vg-rsvp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  max-height: 360px;
  overflow-y: auto;
  padding: 2px;
}

.ev-rsvp-comment-item.vg-wish-card,
.vg-wish-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(251, 249, 245, 0.96);
  border: 1px solid rgba(200, 169, 106, 0.38);
  border-radius: 14px;
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ev-rsvp-comment-item.vg-wish-card:hover,
.vg-wish-card:hover {
  transform: translateY(-2px);
  border-color: var(--vg-accent, #C8A96A);
}

.vg-wish-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.vg-w-name {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vg-primary-dark, #3E5485);
  overflow-wrap: anywhere;
}

.vg-w-att {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.vg-w-att.is-present {
  background: var(--vg-primary, #5570AD);
  color: #FFFFFF;
}

.vg-w-att.is-maybe {
  background: rgba(200, 169, 106, 0.24);
  color: #6B5322;
  border: 1px solid rgba(200, 169, 106, 0.55);
}

.vg-w-att.is-absent {
  background: rgba(30, 36, 51, 0.08);
  color: #5A6478;
}

.vg-w-msg {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #2A3142;
  overflow-wrap: anywhere;
}

.vg-w-date {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #6E778C;
}

.vg-rsvp-empty {
  text-align: center;
  padding: 20px 16px;
  border-radius: 14px;
  background: rgba(251, 249, 245, 0.9);
  border: 1px dashed rgba(200, 169, 106, 0.55);
  color: #5A6478;
  font-size: 13px;
}

@media (max-width: 480px) {
  .vg-rsvp-card {
    padding: 18px 16px;
  }

  .vg-rsvp-pills {
    grid-template-columns: 1fr;
  }

  .vg-rsvp-list {
    max-height: 320px;
  }

  .ev-rsvp-comment-item.vg-wish-card,
  .vg-wish-card {
    padding: 14px;
    border-radius: 12px;
  }
}

/* Desktop Left Panel: Editorial Photo Stage (Fairy Castle) */
.vg-desktop-stage {
  display: none;
}

@media (min-width: 768px) {
  .vg-desktop-stage {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 70%;
    z-index: 9999;
    overflow: hidden;
    background: var(--vg-primary-dark, #3E5485);
    border-right: 1px solid rgba(200, 169, 106, 0.38);
    pointer-events: none;
  }

  .vg-desktop-stage-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
    transform: scale(1.03);
    transition: transform 8s ease-out;
  }

  .vg-desktop-stage-scrim {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        180deg,
        rgba(30, 44, 78, 0.24) 0%,
        rgba(30, 44, 78, 0.14) 40%,
        rgba(30, 44, 78, 0.72) 76%,
        rgba(30, 44, 78, 0.92) 100%
      ),
      radial-gradient(
        circle at 18% 85%,
        rgba(62, 84, 133, 0.45) 0%,
        transparent 60%
      );
  }

  .vg-desktop-stage-content {
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 48px;
    z-index: 2;
    max-width: 560px;
    color: #FBF9F5;
  }

  .vg-desktop-stage-eyebrow {
    margin: 0 0 8px;
    font-family: var(--font-serif, 'Cormorant Infant', serif);
    font-style: italic;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--vg-accent-light, #E6D3A7);
  }

  .vg-desktop-stage-names {
    margin: 0;
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(36px, 3.6vw, 54px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: #FBF9F5;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
  }

  .vg-desktop-stage-rule {
    width: 64px;
    height: 1px;
    margin: 18px 0 14px;
    background: rgba(200, 169, 106, 0.75);
  }

  .vg-desktop-stage-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--font-body, 'Poppins', 'DM Sans', sans-serif);
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(251, 249, 245, 0.88);
  }

  .vg-desktop-stage-sep {
    color: var(--vg-accent, #C8A96A);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .vg-desktop-stage {
    width: 60%;
  }

  .vg-desktop-stage-content {
    left: 28px;
    right: 28px;
    bottom: 32px;
  }
}
