/* Public Page invitation flow: intentionally inherits the approved WKND Page
   purple-plum palette and existing vendor button language. */
.vgi-trigger {
  flex: 1 1 auto;
}

.vgi-hero-context {
  display: grid;
  grid-column: 1 / -1;
  order: 20;
  gap: 3px;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin: 18px 0 0;
  text-align: left;
}

body.wknd-public-entry #svp-main .svp-hero-actions > .vgi-trigger {
  grid-column: 1 / -1;
  order: 21;
  justify-self: start;
  box-sizing: border-box;
  min-height: 44px;
}

.vgi-public-entry {
  display: flex;
  grid-column: 1 / -1;
  order: 20;
  flex: 0 0 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  margin-top: 18px;
}

.vgi-public-entry[hidden] {
  display: none !important;
}

.vgi-public-entry > .vgi-hero-context {
  order: 0;
  width: 100%;
  margin: 0;
}

.vgi-public-entry > .vgi-trigger {
  order: 1;
  min-height: 44px;
  flex: 0 0 auto;
  align-self: flex-start;
}

.vgi-hero-kicker {
  color: #80633e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.vgi-hero-copy {
  color: #514457;
  font-size: 13px;
  line-height: 1.45;
  text-wrap: pretty;
}

.vgi-organizer-context {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 0;
  color: #514457;
  text-align: left;
}

.vgi-backdrop[hidden] {
  display: none !important;
}

.vgi-backdrop {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(39, 29, 47, .52);
  overscroll-behavior: contain;
}

.vgi-dialog {
  box-sizing: border-box;
  width: min(100%, 560px);
  max-height: min(100%, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 27px 30px 26px;
  border: 1px solid #e5d9c9;
  border-radius: 22px;
  background: #fffaf2;
  color: #382c3e;
  box-shadow: 0 24px 72px rgba(37, 24, 46, .25);
  -webkit-overflow-scrolling: touch;
}

.vgi-dialog:focus {
  outline: none;
}

.vgi-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.vgi-kicker {
  margin: 0 0 5px;
  color: #886b48;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.vgi-heading-block h2 {
  margin: 0;
  color: #382c3e;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(24px, 5vw, 30px);
  letter-spacing: -.035em;
  line-height: 1.15;
}

.vgi-close,
.vgi-cancel,
.vgi-submit {
  min-height: 44px;
  border: 1px solid #ddcfbd;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.vgi-close {
  flex: 0 0 auto;
  padding: 8px 12px;
  background: #f7efe3;
  color: #604c69;
}

.vgi-description {
  margin: 12px 0 18px;
  color: #695d68;
  font-size: 14px;
  line-height: 1.55;
}

.vgi-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}

.vgi-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 13px;
  color: #55495b;
  font-size: 13px;
  font-weight: 700;
}

.vgi-field input,
.vgi-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #ddcfbd;
  border-radius: 9px;
  background: #fffdf8;
  color: #382c3e;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}

.vgi-field textarea {
  min-height: 88px;
  resize: vertical;
}

.vgi-field input:focus-visible,
.vgi-field textarea:focus-visible,
.vgi-close:focus-visible,
.vgi-cancel:focus-visible,
.vgi-submit:focus-visible,
.vgi-trigger:focus-visible {
  outline: 3px solid #80638c;
  outline-offset: 2px;
}

.vgi-field-help {
  color: #796c78;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

#vgi-organizer-contact,
#vgi-note,
#vgi-event-link,
.vgi-reassurance,
.vgi-status,
.vgi-actions {
  grid-column: 1 / -1;
}

.vgi-reassurance {
  margin: 2px 0 14px;
  padding: 0;
  color: #695d68;
  font-size: 12px;
  line-height: 1.5;
}

.vgi-status {
  min-height: 20px;
  margin: 0 0 10px;
  color: #654b70;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.vgi-status[data-error="true"] {
  color: #a13e43;
}

.vgi-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.vgi-cancel {
  padding: 10px 16px;
  background: #f7efe3;
  color: #604c69;
}

.vgi-submit {
  padding: 10px 18px;
  border-color: #694d76;
  background: #694d76;
  color: #fffaf2;
}

.vgi-submit:disabled {
  cursor: wait;
  opacity: .68;
}

.vgi-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.vgi-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .vgi-backdrop {
    align-items: flex-end;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  }

  .vgi-dialog {
    width: 100%;
    max-height: 100%;
    padding: 20px 18px max(18px, env(safe-area-inset-bottom));
    border-radius: 18px;
  }

  .vgi-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .vgi-field,
  #vgi-organizer-contact,
  #vgi-note,
  #vgi-event-link,
  .vgi-reassurance,
  .vgi-status,
  .vgi-actions {
    grid-column: 1;
  }

  .vgi-field { margin-bottom: 11px; }
  .vgi-description { margin-bottom: 14px; }
  .vgi-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
}

@media (max-width: 360px) {
  .vgi-backdrop { padding-right: 6px; padding-left: 6px; }
  .vgi-dialog { padding-right: 15px; padding-left: 15px; }
  .vgi-header { gap: 10px; }
  .vgi-close { padding-right: 9px; padding-left: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .vgi-backdrop *,
  .vgi-dialog * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
