/* VC Popup Lead Form - popup-style.css */

/* ── Overlay ─────────────────────────────────────── */
.vc-plf-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.65);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.vc-plf-overlay.vc-plf-visible {
  opacity: 1;
}

/* ── Popup Box ───────────────────────────────────── */
.vc-plf-popup {
  position: relative;
  background: #ffffff;
  width: 500px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 40px 36px 36px;
  box-sizing: border-box;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.26, 0.64, 1), opacity 0.35s ease;
  opacity: 0;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.vc-plf-overlay.vc-plf-visible .vc-plf-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Scrollbar styling */
.vc-plf-popup::-webkit-scrollbar {
  width: 4px;
}
.vc-plf-popup::-webkit-scrollbar-track {
  background: transparent;
}
.vc-plf-popup::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

/* ── Close Button ────────────────────────────────── */
.vc-plf-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f1f1;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 10;
  padding: 0;
}

.vc-plf-close:hover {
  background: #e0e0e0;
  color: #111;
  transform: rotate(90deg);
}

/* ── Header ──────────────────────────────────────── */
.vc-plf-header {
  text-align: center;
  margin-bottom: 24px;
}

.vc-plf-heading {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.vc-plf-subheading {
  font-size: 15px;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* ── Form Area ───────────────────────────────────── */
.vc-plf-form-wrap {
  width: 100%;
}

/* Normalize Forminator / Elementor form inside popup */
.vc-plf-form-wrap .forminator-ui,
.vc-plf-form-wrap .elementor-form {
  margin: 0 !important;
}

.vc-plf-form-wrap input,
.vc-plf-form-wrap select,
.vc-plf-form-wrap textarea {
  width: 100%;
  box-sizing: border-box;
}

/* ── Mobile Optimization ─────────────────────────── */
@media (max-width: 600px) {
  .vc-plf-overlay {
    padding: 10px;
    align-items: flex-end;
  }

  .vc-plf-popup {
    width: 100% !important;
    border-radius: 18px 18px 0 0;
    padding: 32px 20px 28px;
    transform: translateY(100%);
    max-height: 85vh;
  }

  .vc-plf-overlay.vc-plf-visible .vc-plf-popup {
    transform: translateY(0);
  }

  .vc-plf-heading {
    font-size: 20px;
  }

  .vc-plf-subheading {
    font-size: 13px;
  }

  .vc-plf-close {
    width: 38px;
    height: 38px;
    font-size: 22px;
    top: 12px;
    right: 12px;
  }
}

/* ── Body scroll lock ────────────────────────────── */
body.vc-plf-no-scroll {
  overflow: hidden;
}
