/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ════════════════════════════════════════════════
   EXIT-INTENT POPUP SYSTEM — Virgin Packaging
════════════════════════════════════════════════ */

/* Overlay backdrop */
.vp-exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999 !important;
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.vp-exit-overlay.vp-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.vp-exit-overlay.vp-open .vp-popup {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Base popup card */
.vp-popup {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: scale(0.93) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 0.68, 0, 1.15), opacity 0.35s ease;
  background: #ffffff;
}

.vp-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.vp-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.vp-close.dark {
  background: rgba(0, 0, 0, 0.08);
  color: #475569;
}

.vp-close.dark:hover {
  background: rgba(0, 0, 0, 0.15);
}

/* ── POPUP 1: Buy 1,000 Get 1,000 FREE ── */
.vp-p1 {
  background: #fff;
}

.vp-p1-header {
  background: linear-gradient(135deg, #003fbf 0%, #0057e7 50%, #1a6fff 100%);
  padding: 40px 44px 32px;
  position: relative;
  overflow: hidden;
}

.vp-p1-header::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.vp-p1-header::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 194, 224, 0.12);
}

.vp-p1-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.vp-p1-header h2 {
  color: #fff;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.vp-p1-header h2 span {
  color: #fbbf24;
}

.vp-p1-header p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.65;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.vp-offer-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.vp-offer-big {
  font-size: 44px;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
  letter-spacing: -2px;
}

.vp-offer-label p {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.vp-offer-label span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.vp-countdown {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.vp-cd-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.vp-cd-blocks {
  display: flex;
  gap: 8px;
}

.vp-cd-block {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  min-width: 52px;
}

.vp-cd-num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.vp-cd-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.vp-p1-body {
  padding: 28px 44px 36px;
}

.vp-p1-body .vp-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.vp-p1-body .vp-fspan {
  grid-column: span 2;
}

.vp-finput {
  width: 100%;
  background: #f0f4f8;
  border: 1.5px solid transparent;
  color: #1e293b;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.18s;
  outline: none;
  box-sizing: border-box;
}

.vp-finput:focus {
  background: #fff;
  border-color: #0057e7;
  box-shadow: 0 0 0 3px rgba(0, 87, 231, 0.1);
}

.vp-finput::placeholder {
  color: #94a3b8;
}

select.vp-finput option {
  background: #fff;
}

.vp-submit-blue {
  width: 100%;
  background: #0057e7;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 28px rgba(0, 87, 231, 0.35);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.vp-submit-blue:hover {
  background: #003fbf;
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0, 87, 231, 0.42);
}

.vp-submit-blue:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.vp-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  justify-content: center;
}

.vp-trust-item {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vp-skip {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: #94a3b8;
}

.vp-skip a {
  color: #0057e7;
  cursor: pointer;
  text-decoration: underline;
}

/* ── POPUP 2: $1 Custom Sample — lavish split ── */
.vp-p2 {
  background: #fff;
  max-width: 700px;
}

.vp-p2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.vp-p2-left {
  background: linear-gradient(160deg, #003fbf 0%, #0057e7 55%, #00c2e0 130%);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.vp-p2-left::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.vp-p2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  width: fit-content;
  position: relative;
  z-index: 1;
}

.vp-p2-left h2 {
  color: #fff;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.vp-p2-left p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.vp-price-hero {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.vp-price-dollar {
  font-size: 72px;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
  letter-spacing: -3px;
}

.vp-price-meta {
  display: flex;
  flex-direction: column;
}

.vp-price-meta strong {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.vp-price-meta span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.vp-p2-perks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  z-index: 1;
}

.vp-p2-perk {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.vp-p2-right {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vp-p2-right h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 5px;
  color: #1e293b;
}

.vp-p2-right > p {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 22px;
  line-height: 1.6;
}

.vp-submit-gold {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0a0a0a;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.vp-submit-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.45);
}

.vp-submit-gold:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ── POPUP 3: Packaging Audit / Problem-Capture ── */
.vp-p3 {
  background: #fff;
}

.vp-p3-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  padding: 36px 44px 28px;
  position: relative;
  overflow: hidden;
}

.vp-p3-header::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(0, 87, 231, 0.15);
}

.vp-p3-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.vp-p3-header h2 {
  color: #fff;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.vp-p3-header p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.vp-p3-body {
  padding: 28px 44px 36px;
}

.vp-problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
  margin-bottom: 22px;
}

.vp-prob {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f0f4f8;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

.vp-prob input[type="checkbox"] {
  accent-color: #0057e7;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.vp-prob label {
  cursor: pointer;
}

.vp-prob.vp-prob-sel,
.vp-prob:hover {
  background: #e8f0fe;
  border-color: #0057e7;
  color: #0057e7;
}

.vp-prob.vp-prob-sel {
  border-color: #0057e7;
}

.vp-p3-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.vp-p3-form-span {
  grid-column: span 2;
}

.vp-submit-dark {
  width: 100%;
  background: #1e293b;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.vp-submit-dark:hover {
  background: #0f172a;
  transform: translateY(-1px);
}

.vp-submit-dark:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Spinner helper */
@keyframes vp-spin {
  to { transform: rotate(360deg); }
}
.vp-spin {
  animation: vp-spin 0.7s linear infinite;
  display: inline-block;
}

/* reCAPTCHA responsive helper */
.recaptcha-wrapper {
  margin: 10px 0;
  display: flex;
  justify-content: flex-start;
}

/* Responsive Styles */
@media (max-width: 640px) {
  .vp-p1-header,
  .vp-p1-body,
  .vp-p3-header,
  .vp-p3-body {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .vp-p1-body .vp-form-grid {
    grid-template-columns: 1fr !important;
  }
  .vp-p1-body .vp-fspan {
    grid-column: span 1 !important;
  }
  .vp-p2-grid {
    grid-template-columns: 1fr !important;
  }
  .vp-p2-left {
    display: none !important;
  }
  .vp-p2-right {
    padding: 32px 20px !important;
  }
  .vp-problem-grid {
    grid-template-columns: 1fr !important;
  }
  .vp-p3-form-grid {
    grid-template-columns: 1fr !important;
  }
  .vp-p3-form-span {
    grid-column: span 1 !important;
  }
}

@media (max-width: 480px) {
  .vp-popup {
    max-height: 92vh !important;
    overflow-y: auto !important;
  }
  .recaptcha-wrapper {
    transform: scale(0.85);
    transform-origin: 0 0;
  }
}

@media (max-width:767px){
	.custom-breadcrumb {
    gap: 5px;
    font-size: 10px !important;
}
}
