/* =============================================================================
   50/50 Modal  (viomedspa/fifty-fifty-modal)
   Fixed overlay above all page content, blurred backdrop.
   ============================================================================= */

/* ── Overlay + blur ─────────────────────────────────────────────────────────── */
.vio-lp-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vio-lp-modal[hidden] {
  display: none;
}

.vio-lp-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Prevent page scroll while modal is open */
body.vio-modal-open {
  overflow: hidden;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.vio-lp-modal__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  width: 100%;
  max-width: 1400px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Image right: swap column order */
.vio-lp-modal__card--image-right .vio-lp-modal__image {
  order: 2;
}
.vio-lp-modal__card--image-right .vio-lp-modal__content {
  order: 1;
}

/* No image: content takes full width */
.vio-lp-modal__card--no-image .vio-lp-modal__content {
  flex: 1;
}

/* ── Close button ───────────────────────────────────────────────────────────── */
.vio-lp-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--wp--preset--color--vio-ink, #1a1a1a);
  line-height: 0;
  transition: opacity 0.15s ease;
}

.vio-lp-modal__close:hover {
  opacity: 0.6;
}

/* ── Image column — fixed 4:5 portrait crop at 75vh tall ────────────────────
   Per VIO design — image is a hard 4:5 crop sized to 75% of the
   viewport height. Width derives via the aspect ratio (75vh × 4/5 =
   60vh). The flex 0 0 50% on the column itself is preserved so the
   layout slot stays at half-width; the actual image inside is
   centered in that slot. */
.vio-lp-modal__image {
  flex: 0 0 50%;
  overflow: hidden;
  display: none; /* hidden on mobile */
  position: sticky;
  top: 0;
  align-self: center;
  justify-content: center;
  align-items: center;
}

.vio-lp-modal__img {
  height: 75vh;
  height: 75dvh;
  max-height: 75dvh;
  aspect-ratio: 4 / 5;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .vio-lp-modal__image {
    /* flex centers the 4:5 image inside the half-width column. */
    display: flex;
  }
}

/* ── Content column ─────────────────────────────────────────────────────────── */
.vio-lp-modal__content {
  flex: 0 0 50%;
  min-width: 0;
  padding: 48px 40px 40px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .vio-lp-modal__content {
    flex: 1 1 100%;
    padding: 40px 24px 32px;
  }
}

/* ── Title ──────────────────────────────────────────────────────────────────── */
.vio-lp-modal__title {
  font-size: 1.375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 300;
  margin: 0 0 1.25em;
  line-height: 1.2;
  text-align: center;
}


/* ── Body copy ──────────────────────────────────────────────────────────────── */
.vio-lp-modal__body {
  margin-bottom: 1.5em;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.vio-lp-modal__body p:last-child {
  margin-bottom: 0;
}

/* ── Form ───────────────────────────────────────────────────────────────────── */
.vio-lp-modal__iframe {
  width: 100%;
  border: none;
  display: block;
}

.vio-lp-modal__no-form {
  color: #7a7068;
  font-style: italic;
}
