/* =========================================================
   VINYLED GLOBAL LEAD POPUP — V4
   Premium, responsive, no page-image background.
   The page is intentionally visible behind the modal:
   - backdrop ≈ 15% black
   - popup surface ≈ 50% translucent
   ========================================================= */

.vny-popup-root,
.vny-popup-root * {
  box-sizing: border-box;
}

html.vny-popup-lock,
body.vny-popup-lock {
  overflow: hidden !important;
  width: 100%;
}

.vny-popup-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  max-width: 100vw;
  max-height: 100dvh;
}

.vny-popup-root.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* Page should remain strongly visible (~85%). */
.vny-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 9, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.vny-popup-root.is-open .vny-popup-backdrop {
  opacity: 1;
}

/* Popup surface is ~50% translucent. */
.vny-popup {
  --vny-blue: #2e6ef7;
  --vny-blue-2: #378add;
  --vny-text: #f6f8fb;
  --vny-muted: #93a4b6;
  --vny-dim: #64778a;

  position: relative;
  width: min(500px, 100%);
  max-height: min(720px, calc(100dvh - 28px));
  overflow: hidden;
  overscroll-behavior: none;
  max-width: 100%;
  border: 1px solid rgba(232, 241, 249, 0.42);
  border-radius: clamp(18px, 2.2vw, 22px);

  /* 50% translucent panel */
  background:
    linear-gradient(
      180deg,
      rgba(8, 22, 36, 0.50) 0%,
      rgba(2, 7, 13, 0.50) 100%
    );
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(46, 110, 247, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);

  transform: translateY(12px) scale(0.985);
  opacity: 0;
  transition:
    transform 300ms cubic-bezier(.22,.74,.24,1),
    opacity 240ms ease;
}

.vny-popup::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(83, 165, 238, 0.85),
    transparent
  );
  pointer-events: none;
}

.vny-popup::after {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(46, 110, 247, 0.07);
  filter: blur(45px);
  pointer-events: none;
}

.vny-popup-root.is-open .vny-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.vny-popup-content {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 40px) clamp(18px, 4vw, 38px) clamp(23px, 3vw, 30px);
}

.vny-popup-close {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(192, 214, 234, 0.23);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.vny-popup-close:hover,
.vny-popup-close:focus-visible {
  border-color: rgba(210, 229, 246, 0.50);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.vny-popup-close:active {
  transform: scale(0.96);
}

.vny-popup-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: rgba(246, 248, 251, 0.94);
}

.vny-popup-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.vny-popup-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.vny-popup-eyebrow-wrap {
  min-height: 18px;
  margin: 1px 48px 9px 0;
  overflow: hidden;
}

.vny-popup-eyebrow {
  display: inline-block;
  color: #91aec8;
  font-size: 11.5px;
  font-weight: 760;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
  transition: opacity 220ms ease, transform 220ms ease;
}

.vny-popup-eyebrow.is-changing {
  opacity: 0;
  transform: translateY(5px);
}

.vny-popup-title {
  max-width: 100%;
  margin: 0 0 clamp(19px, 3vw, 23px);
  color: var(--vny-text);
  font-size: clamp(23px, 3.5vw, 35px);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 0.99;
  text-wrap: balance;
}

.vny-popup-form {
  display: grid;
  gap: 12px;
}

/* The native hidden attribute must always win over component display rules. */
.vny-popup-form[hidden] {
  display: none !important;
}

.vny-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.vny-field {
  position: relative;
  min-width: 0;
}

.vny-field input,
.vny-field select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 57px;
  border: 1px solid rgba(157, 188, 216, 0.24);
  border-radius: 14px;
  padding: 0 16px;
  background: rgba(0, 7, 13, 0.53);
  color: var(--vny-text);
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  outline: none;
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    background-color 170ms ease;
}

.vny-field input::placeholder {
  color: #8394a6;
  opacity: 1;
}

.vny-field input:hover,
.vny-field select:hover {
  border-color: rgba(180, 211, 238, 0.38);
}

.vny-field input:focus,
.vny-field select:focus {
  border-color: rgba(83, 157, 255, 0.80);
  background: rgba(2, 11, 19, 0.72);
  box-shadow: 0 0 0 3px rgba(46, 110, 247, 0.10);
}

.vny-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.vny-field select:required:invalid {
  color: #8394a6;
}

.vny-field select option {
  color: #101820;
  background: #fff;
}

.vny-select-chevron {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #9aadc0;
  border-bottom: 1.5px solid #9aadc0;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.vny-field.has-error input,
.vny-field.has-error select {
  border-color: rgba(255, 126, 140, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 126, 140, 0.06);
}

.vny-field-error {
  min-height: 0;
  margin: 5px 3px 0;
  color: #ff8794;
  font-size: 11px;
  line-height: 1.35;
}

.vny-popup-submit {
  position: relative;
  width: 100%;
  height: 58px;
  margin-top: 2px;
  border: 1px solid rgba(122, 193, 255, 0.52);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--vny-blue-2) 0%, var(--vny-blue) 100%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  box-shadow:
    0 13px 32px rgba(46, 110, 247, 0.21),
    inset 0 1px 0 rgba(255,255,255,0.19);
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.vny-popup-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.035);
  box-shadow:
    0 17px 36px rgba(46,110,247,.28),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.vny-popup-submit:active {
  transform: translateY(0);
}

.vny-popup-submit:focus-visible,
.vny-whatsapp-btn:focus-visible,
.vny-success-close:focus-visible {
  outline: 2px solid rgba(132, 193, 255, 0.95);
  outline-offset: 3px;
}

.vny-submit-arrow {
  display: inline-block;
  margin-left: 7px;
  font-size: 18px;
  font-weight: 500;
  transform: translateY(1px);
  transition: transform 170ms ease;
}

.vny-popup-submit:hover .vny-submit-arrow {
  transform: translate(4px, 1px);
}

.vny-popup-submit.is-loading {
  opacity: 0.86;
  cursor: wait;
  pointer-events: none;
}

.vny-submit-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  margin: -8.5px 0 0 -8.5px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: vnySpin .78s linear infinite;
}

.vny-popup-submit.is-loading .vny-submit-label,
.vny-popup-submit.is-loading .vny-submit-arrow {
  opacity: 0;
}

.vny-popup-submit.is-loading .vny-submit-loader {
  opacity: 1;
}

.vny-offer-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 20px;
  margin-top: 12px;
  color: #72869a;
}

.vny-offer-timer[hidden] {
  display: none;
}

.vny-timer-label {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vny-timer-value {
  min-width: 78px;
  color: #c7d5e3;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.10em;
  font-variant-numeric: tabular-nums;
}

.vny-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #52e38a;
  box-shadow: 0 0 0 3px rgba(82, 227, 138, 0.10), 0 0 10px rgba(82, 227, 138, 0.55);
  vertical-align: 1px;
  animation: vnyLivePulse 1.8s ease-in-out infinite;
}

.vny-popup-privacy {
  margin: 3px 0 0;
  color: #627588;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.vny-popup-form-message {
  min-height: 0;
  margin: 0;
  color: #94a8bb;
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
}

.vny-popup-form-message.is-error {
  color: #ff8794;
}

.vny-popup-root.is-success .vny-popup-eyebrow-wrap,
.vny-popup-root.is-success .vny-popup-title {
  display: none !important;
}

.vny-popup-root.is-success .vny-popup-content {
  padding-top: 56px;
  padding-bottom: 40px;
}

.vny-popup-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vny-popup-success[hidden] {
  display: none;
}

.vny-success-message {
  margin: 0 auto 28px;
  max-width: 520px;
  color: var(--vny-text);
  font-size: clamp(20px, 5.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.0em;
  line-height: 1.16;
  text-wrap: balance;
}

.vny-success-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 520px;
  gap: 10px;
}

.vny-whatsapp-btn {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(122, 193, 255, 0.52);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--vny-blue-2) 0%, var(--vny-blue) 100%);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(46,110,247,.20);
  transition: transform 160ms ease, filter 160ms ease;
}

.vny-whatsapp-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.035);
}

.vny-success-close {
  width: 100%;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: #71859a;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.vny-success-close:hover {
  color: #b9c9d8;
}

.vny-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.vny-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes vnySpin {
  to { transform: rotate(360deg); }
}

@keyframes vnyLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

@media (max-width: 767px) {
  .vny-popup-root {
    padding: 12px;
  }

  /* Page remains ~85% visible. */
  .vny-popup-backdrop {
    background: rgba(0, 4, 9, 0.15);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
  }

  /* Popup panel ~50% transparent. */
  .vny-popup {
    width: min(100%, 430px);
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    border-radius: 18px;
    background:
      linear-gradient(
        180deg,
        rgba(8, 22, 36, 0.50),
        rgba(2, 7, 13, 0.50)
      );
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
  }

  .vny-popup-content {
    padding: 28px 16px 22px;
  }

  .vny-popup-root.is-success .vny-popup-content {
    padding-top: 52px;
    padding-bottom: 30px;
  }

  .vny-popup-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
  }

  .vny-popup-eyebrow-wrap {
    margin-right: 42px;
  }

  .vny-popup-eyebrow {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .vny-popup-title {
    margin-bottom: 18px;
    font-size: clamp(20px, 6.5vw, 25px);
  }

  .vny-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vny-field input,
  .vny-field select,
  .vny-popup-submit {
    height: 55px;
  }

  .vny-popup-submit {
    margin-top: 1px;
  }

  .vny-popup-privacy {
    font-size: 11.5px;
  }

  .vny-success-message {
    margin-bottom: 24px;
    font-size: clamp(20px, 5.5vw, 30px);
  }
}

@media (max-width: 380px) {
  .vny-popup-root {
    padding: 9px;
  }

  .vny-popup-content {
    padding: 27px 13px 20px;
  }

  .vny-popup-title {
    font-size: 19px;
  }

  .vny-field input,
  .vny-field select,
  .vny-popup-submit {
    height: 53px;
  }
}

@media (max-height: 640px) {
  .vny-popup-content {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .vny-popup-root.is-success .vny-popup-content {
    padding-top: 44px;
    padding-bottom: 22px;
  }

  .vny-popup-title {
    margin-bottom: 15px;
  }

  .vny-popup-form {
    gap: 9px;
  }

  .vny-field input,
  .vny-field select,
  .vny-popup-submit {
    height: 52px;
  }

  .vny-popup-close {
    top: 9px;
    right: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vny-popup,
  .vny-popup-backdrop,
  .vny-popup-eyebrow,
  .vny-popup-submit,
  .vny-submit-arrow,
  .vny-whatsapp-btn {
    transition: none !important;
  }

  .vny-submit-loader {
    animation-duration: 1.7s;
  }

  .vny-live-dot {
    animation: none;
  }
}
.vny-offer-timer {
  color: #ff2b2b !important;
}

.vny-timer-label,
.vny-timer-value {
  color: #ff2b2b !important;
}