/* Pink Castle + Velvet RSVP & Theme System */
:root {
  --vg-primary: #9E6272;
  --vg-primary-dark: #7A4654;
  --vg-sage: #B87E8D;
  --vg-accent: #C5A46D;
  --vg-accent-light: #F3E5D0;
  --vg-text-muted: #6E5860;
  --vg-video-filter: none;
  --vg-ornament-filter: none;
}

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

.elementor-background-video-hosted,
.motionSection video {
  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;
}

.elementor-section,
.e-con {
  position: relative;
}

/* Velvet RSVP & Wishes Redesign */
.vg-rsvp {
  width: 100%;
  max-width: 100%;
  text-align: left;
  font-family: inherit;
}

.vg-rsvp-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  background: rgba(253, 248, 249, 0.96);
  border: 1px solid rgba(197, 164, 109, 0.48);
  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, #9E6272);
}

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

.vg-rsvp-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(197, 164, 109, 0.4);
}

.vg-rsvp-card {
  background: rgba(253, 248, 249, 0.97);
  border: 1px solid rgba(197, 164, 109, 0.48);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 8px 28px rgba(122, 70, 84, 0.1);
}

.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, #9E6272);
  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: #2E2226;
  background: #FFFFFF;
  border: 1px solid rgba(158, 98, 114, 0.24);
  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: #9A878D;
}

.vg-rsvp-input:focus,
.vg-rsvp-select:focus,
.vg-rsvp-textarea:focus {
  outline: none;
  border-color: var(--vg-primary, #9E6272);
  box-shadow: 0 0 0 3px rgba(158, 98, 114, 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(158, 98, 114, 0.24);
  background: #FFFFFF;
  color: #2E2226;
  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, #C5A46D);
}

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

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

.vg-rsvp-pill input:checked + span {
  background: var(--vg-primary, #9E6272);
  border-color: var(--vg-accent, #C5A46D);
  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, #9E6272) !important;
  border: 1.5px solid var(--vg-accent, #C5A46D) !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, #7A4654) !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;
}

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

.vg-rsvp-feed-count {
  font-size: 12.5px;
  color: var(--vg-text-muted, #6E5860);
}

.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(253, 248, 249, 0.96);
  border: 1px solid rgba(197, 164, 109, 0.45);
  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, #C5A46D);
}

.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, #9E6272);
  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, #9E6272);
  color: #FFFFFF;
}

.vg-w-att.is-maybe {
  background: rgba(197, 164, 109, 0.24);
  color: #6B5322;
  border: 1px solid rgba(197, 164, 109, 0.6);
}

.vg-w-att.is-absent {
  background: rgba(46, 34, 38, 0.08);
  color: #6E5860;
}

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

.vg-w-date {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: #877178;
}

.vg-rsvp-empty {
  text-align: center;
  padding: 20px 16px;
  border-radius: 14px;
  background: rgba(253, 248, 249, 0.92);
  border: 1px dashed rgba(197, 164, 109, 0.55);
  color: #6E5860;
  font-size: 13px;
}

#vg-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--vg-primary, #9E6272);
  color: #FDF8F9;
  border: 1px solid var(--vg-accent, #C5A46D);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

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


/* Desktop Left Panel: Editorial Photo Stage (Velvet Garden Pattern) */
.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, #112B20);
    border-right: 1px solid color-mix(in srgb, var(--vg-accent, #C8A96A) 38%, transparent);
    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,
        color-mix(in srgb, var(--vg-primary-dark, #112B20) 22%, transparent) 0%,
        color-mix(in srgb, var(--vg-primary-dark, #112B20) 14%, transparent) 40%,
        color-mix(in srgb, var(--vg-primary-dark, #112B20) 72%, transparent) 76%,
        color-mix(in srgb, var(--vg-primary-dark, #112B20) 92%, transparent) 100%
      ),
      radial-gradient(
        circle at 18% 85%,
        color-mix(in srgb, var(--vg-primary-dark, #112B20) 45%, transparent) 0%,
        transparent 60%
      );
  }

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

  .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: #FBF8F1;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
  }

  .vg-desktop-stage-rule {
    width: 64px;
    height: 1px;
    margin: 18px 0 14px;
    background: color-mix(in srgb, var(--vg-accent, #C8A96A) 75%, transparent);
  }

  .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, 248, 241, 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;
  }
}
