@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/inter-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/inter-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter/inter-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope/manrope-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope/manrope-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope/manrope-800.ttf') format('truetype');
}

/* ============================================================================
   CSS Custom Properties for Reusability
   ============================================================================
   These variables can be easily copied to other projects (e.g., trading-bot-landing)
   and adjusted for project-specific needs. Components marked as "Reusable" below
   can be copied with minimal modifications.
   ============================================================================ */
:root {
  /* Pricing Grid Variables - Reusable */
  --pricing-card-gap: 24px;
  --pricing-cards-columns-desktop: 3;
  --pricing-container-max-width: 1200px;
  
  /* Container Padding Variables */
  --container-padding-desktop: 20px;
  --container-padding-tablet: 30px;
  --container-padding-mobile: 16px;
  
  /* Banner Variables - Reusable */
  --banner-padding-mobile: 12px 20px;
  --banner-padding-tablet: 10px 16px;
  --banner-padding-mobile-small: 9px 14px;
  --banner-width-multiplier: 1.1; /* 10% wider than pricing card */
  
  /* Button Variables - Reusable */
  --btn-secondary-min-width: 200px; /* Touch target minimum */
  --btn-secondary-padding: 12px 24px;
  --btn-secondary-padding-mobile: 10px 18px;
  --btn-secondary-padding-mobile-small: 9px 14px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
:root{color-scheme:light}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.7;color:#1a1a1a;background:#F7F9FC;font-size:1.125rem;overflow-x:hidden;width:100%}
input,select,textarea{background-color:#fff;color:#0f172a;caret-color:#2563eb}

/* Modern scrollbar for webkit browsers */
::-webkit-scrollbar{width:12px}
::-webkit-scrollbar-track{background:#f1f5f9;border-radius:10px}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#2563eb,#1d4ed8);border-radius:10px;border:3px solid #f1f5f9}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#1d4ed8,#1e40af)}
::-webkit-scrollbar-thumb:active{background:linear-gradient(180deg,#1e40af,#1e3a8a)}

/* Firefox scrollbar */
*{scrollbar-color:#2563eb #f1f5f9;scrollbar-width:thin}
.container{max-width:1200px;margin:0 auto;padding:0 20px;width:100%;overflow-x:hidden}

/* Responsive padding for mobile/tablet */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
}

@media (min-width: 768px) {
  .section-subtitle,
  .benefits-subtitle,
  .pricing .section-subtitle {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero .hero-content p {
    max-width: 540px;
  }

  /* Legal notes should always be left-aligned (matching parent card) */
  .legal-note {
    text-align: left;
  }
}
.header{position:sticky;top:0;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.06);z-index:50;overflow:visible !important}
.header .container{overflow:visible !important}
.nav{display:flex;align-items:center;justify-content:space-between;padding:20px 0;position:relative;overflow:visible !important}

/* Additional nav spacing for mobile */
@media (max-width: 768px) {
  .nav {
    padding: 0 !important;
  }
  
  .brand {
    margin-right: auto;
  }
  
  .mobile-menu-toggle {
    margin-left: 8px;
  }
}
.brand{display:flex;align-items:center;gap:12px;color:#2563eb;text-decoration:none;font-weight:700;font-size:1.25rem;letter-spacing:-0.01em;transition:all 0.3s ease}
.brand:hover{transform:translateY(-1px);color:#1d4ed8}
.logo-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:linear-gradient(135deg,#2563eb,#1d4ed8);border-radius:6px;box-shadow:0 4px 12px rgba(37,99,235,0.3);transition:all 0.3s ease}
.logo-icon i{font-size:1.2rem;color:#fff}
.main-logo{width:24px;height:24px;object-fit:contain}
.logo-text{font-family:'Manrope',sans-serif;font-weight:800;font-size:1.4rem;background:linear-gradient(135deg,#2563eb,#1d4ed8);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.brand:hover .logo-icon{transform:scale(1.05);box-shadow:0 6px 16px rgba(37,99,235,0.4)}
.nav-links{display:flex;gap:24px;z-index:200}
.nav-links a{color:#555;text-decoration:none;font-weight:600;transition:all 0.3s ease;position:relative}
.nav-links a:hover{color:#2563eb}
.nav-links a::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:2px;background:#2563eb;transition:width 0.3s ease}
.nav-links a:hover::after{width:100%}
.mobile-menu-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px;
  border-radius: 14px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  width: 63px;
  height: 54px;
  min-width: 63px;
  min-height: 54px;
  box-sizing: border-box;
  position: relative;
  touch-action: manipulation;
  overflow: visible !important;
  /* Ensure button doesn't clip rotated content */
  contain: none;
}

.mobile-menu-toggle:hover{
  background: #f3f4f6;
}

.mobile-menu-toggle:active{
  opacity: 0.8;
}

/* Rebuild hamburger lines with absolute positioning for perfect centering */
.hamburger-line{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center center;
}

.hamburger-line:nth-child(1){
  top: 15px;
}

.hamburger-line:nth-child(2){
  top: 50%;
  margin-top: -1.5px;
}

.hamburger-line:nth-child(3){
  bottom: 15px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1){
  top: 50%;
  margin-top: -1.5px;
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2){
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3){
  top: 50%;
  margin-top: -1.5px;
  transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}
/* Hero Section - Desktop */
.hero{
  background: linear-gradient(135deg, #0066CC 0%, #004499 50%, #002266 100%);
  color: #fff;
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr; /* widen left column so H1 fits on one line */
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Small Desktop - 1024px to 1199px */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -10%; /* Move hero container 20% towards top (negative margin) */
    grid-template-columns: 1.2fr 1fr; /* Text block narrower, sample table gets space */
    align-items: flex-start;
  }
  
  /* Make hero text block 30% less wide on smaller desktop */
  .hero-copy {
    max-width: 70%; /* 30% less wide than container */
  }
  
  /* Reduce spacing between guarantees and table */
  .hero-guarantee {
    margin-top: 12px !important; /* Reduced from 16px */
  }
}

/* Desktop width constraint */
@media (min-width: 1200px) {
  .hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -10%; /* Move hero container 20% towards top (negative margin) */
    grid-template-columns: 1.12fr 1.28fr; /* Text block 20% less wide (1.4fr * 0.8 = 1.12fr), sample table gets the space (1fr + 0.28fr = 1.28fr) */
    align-items: flex-start; /* Align sample table top to text block top */
  }
  
  /* Make hero text block 20% less wide on desktop */
  .hero-copy {
    max-width: 704px; /* 20% less than 880px (880px * 0.8 = 704px) */
    justify-content: flex-start; /* Align content to top */
  }
  
  /* Efficient table positioning: Align table bottom to button bottom using CSS Grid */
  /* Method: Use grid row alignment to match hero-copy height, then flexbox to push table down */
  .hero-sample {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align table to bottom of grid cell (matches button bottom) */
    align-self: stretch; /* Fill entire grid cell height to match hero-copy */
    padding-top: 0;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
  }
  
  /* Fine-tuning: Adjust table vertical position */
  /* To move table UP (closer to buttons): Increase .sample-card margin-top value */
  /* To move table DOWN (further from buttons): Decrease .sample-card margin-top value */
  /* To align table TOP to text block TOP: Change .hero-sample to justify-content: flex-start */
  /* To align table TOP to text block HEIGHT: Use margin-top on .sample-card with relative units */
  
  /* Align guarantees vertically on desktop */
  .hero-guarantee {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-top: 16px !important; /* Add spacing between view sample and guarantees */
  }
  
  /* Add spacing between view sample format and guarantees */
  .hero-cta {
    margin-bottom: 16px !important;
  }
  
  /* Make sample table wider on desktop - gets the 20% space from text block */
  .sample-table {
    width: 100% !important;
    max-width: 125% !important; /* Wider to utilize the extra space from text block */
  }
  
  /* Fine-tune table position: Adjust margin-top to control table distance from buttons */
  /* Increase value to move table up, decrease to move table down */
  /* Using relative unit (em) for better scalability - 1em = ~16px at base font size */
  .sample-card {
    margin-top: -10em; /* ~18px - Adjust this value to fine-tune position */
    /* Alternative fine-tuning options: */
    /* margin-top: 0; - Aligns table directly to button bottom */
    /* margin-top: 1.5em; - Moves table further up */
    /* margin-top: calc(1em + 0.5rem); - Mixed units for precise control */
  }
}

.hero-copy{
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 880px; /* 20% smaller than 1100px (880px = 1100px * 0.8) */
  overflow: visible;
}

.hero-sample{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-title{
  font-family: Manrope, Inter, sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.1;
  word-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  width: 100%;
  max-width: 100%;
  text-wrap: balance;
}

/* Free Validation modern card styles */
#free-validation .container{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

#freeValidationResult {
  max-width: 720px;
  margin: 0 auto;
}

#free-validation .section-subtitle {
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

#freeValidationForm {
  max-width: 560px;
  margin: 16px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

#freeValidationForm input[type="email"] {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 14px 18px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  height: 52px;
  box-sizing: border-box;
  line-height: 1.2;
  margin: 0;
  vertical-align: top;
}

#freeValidationForm input[type="email"]:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-color: #2563eb;
}

#freeValidationForm button,
#freeValidationForm .btn {
  min-width: 160px;
  padding: 14px 28px;
  height: 52px;
  box-sizing: border-box;
  line-height: 1.2;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  vertical-align: top;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 600px) and (max-width: 991px) {
  #freeValidationForm input[type="email"] {
    flex: 1 1 55%;
  }
  #freeValidationForm button {
    flex: 0 0 35%;
  }
}

@media (min-width: 992px) {
  #freeValidationForm input[type="email"] {
    flex: 1 1 60%;
  }
  #freeValidationForm button {
    flex: 0 0 28%;
  }
}

#freeValidationResult .validation-card{
  border: 1px solid #d1fae5;
  border-radius: 14px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

/* Tablet and larger: Keep vertical layout */
@media (min-width: 768px) {
  #freeValidationResult .validation-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

/* Mobile: Keep vertical layout but allow tighter spacing */
@media (max-width: 767px) {
  #freeValidationResult .validation-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
  }
}

#freeValidationResult .validation-card.success{
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

#freeValidationResult .validation-card.warning{
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

#freeValidationResult .validation-summary{
  display:flex;
  align-items:center;
  gap:12px;
}

#freeValidationResult .status-icon{
  width:40px;
  height:40px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#10b981;
  color:#fff;
  font-size:1.25rem;
  flex-shrink:0;
}

#freeValidationResult .validation-card.warning .status-icon{
  background:#f59e0b;
}

#freeValidationResult .status-title{
  font-weight:600;
  font-size:1.05rem;
  margin:0;
}

#freeValidationResult .status-score{
  margin:2px 0 0;
  font-weight:500;
  font-size:0.95rem;
  color:inherit;
}

#freeValidationResult .validation-details p{
  margin:0;
  line-height:1.6;
}

#freeValidationResult .validation-issues{
  margin:10px 0 0 18px;
  padding:0;
  list-style:disc;
  line-height:1.5;
}

#freeValidationResult .validation-cta{
  display:flex;
  flex-direction:column;
  gap:6px;
}

#freeValidationResult .validation-cta .cta-text{
  margin:0;
  font-weight:600;
}

#freeValidationResult .validation-cta .cta-link{
  color:#2563eb;
  font-weight:600;
  text-decoration:none;
}

#freeValidationResult .validation-cta .cta-link:hover{
  text-decoration:underline;
}


#freeValidationForm input[type="email"]{
  border: 2px solid #d1d5db;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 1rem;
  height: 52px;
  box-sizing: border-box;
  line-height: 1.2;
  margin: 0;
  vertical-align: top;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.skip-link{position:absolute;left:-9999px;top:auto;width:auto;height:auto;overflow:hidden}
.skip-link:focus{left:16px;top:16px;z-index:1000;background:#fff;color:#111;padding:10px 14px;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.12);outline:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}
#freeValidationForm input[type="email"]:focus{
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

#freeValidationForm{
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  flex-direction: row;
}

#freeValidationForm .btn{
  min-width: 180px;
  height: 52px;
  box-sizing: border-box;
  line-height: 1.2;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  vertical-align: top;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile: Center validation button */
@media (max-width: 768px) {
  #freeValidationForm {
    justify-content: center;
    align-items: center;
  }
  
  #freeValidationForm .btn {
    margin: 0 !important;
    display: inline-block;
    width: auto;
    min-width: 180px;
    align-self: stretch;
  }
  #freeValidationForm input[type="email"]{width:80% !important}
}

/* Mobile: Make validation button same width as input, bigger text */
@media (max-width: 540px) {
  #freeValidationForm {
    flex-direction: column;
    gap: 12px;
}

  #freeValidationForm input[type="email"] {
    width: 100% !important;
    flex: 1 1 100%;
    min-width: 100%;
}

  #freeValidationForm button,
  #freeValidationForm .btn {
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100%;
    font-size: 1.05rem !important; /* Bigger text */
    padding: 14px 20px !important;
  }
}

.hero-subtitle{
  opacity: 0.95;
  margin-bottom: 20px;
  line-height: 1.5;
  word-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  width: 100%;
  max-width: 100%;
}

.hero-cta{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 0; /* Spacing handled by hero-guarantee margin-top */
  width: 100%;
  max-width: 100%;
  align-items: flex-start;
}

/* Base Desktop: Buttons match hero-copy text block width (not wider than text) */
/* Calculate by making primary bigger: secondary is 90.9%, primary is 100% (10% bigger) */
.hero-cta {
  max-width: 100%; /* Match hero-copy width */
  width: 100%;
}

.hero-cta .btn-secondary {
  width: 90.9%; /* Base width - 10% smaller than primary (100/90.9 = 1.1) */
  max-width: 90.9%; /* Don't exceed text block */
  text-align: left;
  justify-content: flex-start;
  align-items: center !important; /* Ensure icon alignment */
}

.hero-cta .btn-primary {
  width: 100%; /* 10% bigger than secondary (100/90.9 = 1.1) - matches text block width */
  max-width: 100%; /* Don't exceed text block */
  display: inline-flex !important; /* Force flex display for justify-content to work */
  justify-content: flex-start !important; /* Force left alignment */
  text-align: left !important;
  align-items: center !important; /* Ensure icon alignment */
}

.hero-guarantee{
  display: flex;
  gap: 24px;
  margin-top: 24px; /* Equal spacing above (from hero-cta) */
  margin-bottom: 24px; /* Equal spacing below (to sample-card) */
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
}

.sample-card{
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 24px;
  border-radius: 6px;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.stats-section{background:#fff;padding:40px 0 60px 0;border-bottom:1px solid #e5e7eb}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:40px;text-align:center}
.stat-item{padding:20px;transition:all 0.3s ease;border-radius:6px}
.stat-item:hover{transform:translateY(-4px);box-shadow:0 8px 25px rgba(37,99,235,0.1)}
.stat-number{font-family:'Manrope',sans-serif;font-size:3rem;font-weight:800;color:#2563eb;line-height:1;margin-bottom:8px}
.stat-label{font-size:1rem;color:#6b7280;font-weight:600;text-transform:uppercase;letter-spacing:0.05em}
.social-proof{background:#f8fafc;padding:70px 0;text-align:center}
.social-proof-content{max-width:900px;margin:0 auto;padding:20px}
.customer-count{background:#fff;border-radius:12px;box-shadow:0 4px 14px rgba(0,0,0,.08);padding:40px;margin-bottom:30px;transition:all 0.3s ease}
.customer-count:hover{transform:translateY(-4px);box-shadow:0 8px 25px rgba(37,99,235,0.15)}
.count-number{font-family:'Manrope',sans-serif;font-size:3.5rem;font-weight:800;color:#2563eb;line-height:1;margin-bottom:12px}
.count-label{font-size:1.125rem;color:#6b7280;font-weight:600}
.testimonials-placeholder{margin-top:40px}
.testimonial-item{background:#fff;border-radius:12px;padding:32px;box-shadow:0 4px 14px rgba(0,0,0,.08);text-align:left;max-width:700px;margin:0 auto 24px}
.testimonial-text{font-size:1.125rem;color:#374151;line-height:1.7;margin-bottom:20px;font-style:italic}
.testimonial-author strong{display:block;color:#1f2937;font-size:1rem;margin-bottom:4px}
.testimonial-author span{color:#6b7280;font-size:0.9rem}
.customer-logos{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:32px;margin-top:48px;align-items:center;justify-items:center}
.customer-logo{max-width:150px;max-height:60px;object-fit:contain;filter:grayscale(100%);opacity:0.6;transition:all 0.3s ease}
.customer-logo:hover{filter:grayscale(0%);opacity:1}
@media (max-width:768px){.social-proof{padding:50px 0}.customer-count{padding:30px}.count-number{font-size:2.5rem}.testimonial-item{padding:24px}.customer-logos{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:24px}}
.btn{
  display: inline-block;
  padding: 14px 22px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  touch-action: manipulation; /* Prevents double-tap zoom */
  -webkit-tap-highlight-color: transparent; /* Removes tap highlight on iOS */
  user-select: none; /* Prevents text selection on touch */
}
.btn i{
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-primary{background:#fbbf24;color:#1f2937}
.btn-primary:hover{background:#f59e0b;transform:translateY(-1px)}
.btn-primary:focus, .btn-secondary:focus, .btn-outline:focus{outline:2px solid #2563eb;outline-offset:2px}
a:focus, input:focus, select:focus, textarea:focus{outline:2px solid #2563eb;outline-offset:2px}
.btn-secondary{background:#fff;color:#1f2937;border:2px solid #e5e7eb}
.btn-secondary:hover{background:#f9fafb;transform:translateY(-1px)}
.hero-guarantee{display:flex;gap:24px;margin-top:24px;margin-bottom:24px;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%;min-width:0}
.guarantee-item{display:flex;align-items:center;gap:8px;font-size:0.9rem;opacity:0.9;font-weight:600;transition:all 0.3s ease;justify-content:flex-start;white-space:nowrap}
.guarantee-item:hover{opacity:1;transform:translateY(-1px)}
.guarantee-item i{color:#10b981;font-size:1rem}
.sample-card{background:rgba(255,255,255,.1);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.25);padding:24px;border-radius:12px}
/* Table Responsive Container - Pixel-Perfect Inner Scrollbar */
.table-responsive{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
  border-radius: 6px; /* Reduced by 50% from 12px */
  background: rgba(255,255,255,0.98);
  position: relative;
  /* Inner scrollbar - appears inside container */
  display: block;
  box-sizing: border-box;
  /* Ensure scrollbar respects container's rounded corners */
  /* Use clip-path to force scrollbar inside rounded container */
  clip-path: inset(0 round 6px);
}

/* Ensure table maintains minimum width for scrolling */
.table-responsive .sample-table {
  min-width: 800px;
}

/* Premium inner scrollbar - transparent until hover */
.table-responsive {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s ease;
}

/* Show scrollbar on hover/interaction */
.table-responsive:hover,
.table-responsive:focus-within {
  scrollbar-color: #2563eb #f1f5f9;
}

.table-responsive::-webkit-scrollbar {
  height: 10px; /* Slightly taller for better visibility */
  background: transparent;
  /* Inner scrollbar - positioned inside container */
  /* Position scrollbar inside rounded container */
  margin: 0;
  padding: 0;
}

.table-responsive::-webkit-scrollbar-track {
  background: transparent;
  /* Rounded bottom corners only - matches container (6px) */
  border-radius: 0 0 6px 6px;
  transition: background 0.3s ease;
  margin: 0;
  /* Position track inside container, respecting bottom corners */
  margin-bottom: 0;
  padding: 0;
  /* Ensure track sits inside rounded container */
  position: relative;
}

.table-responsive:hover::-webkit-scrollbar-track,
.table-responsive:focus-within::-webkit-scrollbar-track {
  background: rgba(241,245,249,0.95);
  /* Maintain rounded bottom corners */
  border-radius: 0 0 12px 12px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
  margin: 0;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: transparent;
  /* Rounded bottom corners only - pixel-perfect match to container */
  border-radius: 0 0 12px 12px;
  transition: background 0.3s ease;
  border: none;
  margin: 0;
  /* Ensure thumb respects container's rounded bottom corners */
  margin-bottom: 0;
  padding: 0;
}

.table-responsive:hover::-webkit-scrollbar-thumb,
.table-responsive:focus-within::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  /* Pixel-perfect rounded bottom corners */
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
  border: none;
  margin: 0;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.5);
  /* Maintain rounded bottom corners on hover */
  border-radius: 0 0 12px 12px;
}

.sample-table{
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.98);
  color: #374151;
  border-radius: 0; /* Container handles corners */
  overflow: hidden;
  box-shadow: none; /* Container handles visual effects */
  table-layout: auto;
  min-width: 800px;
  border: none; /* Container handles border */
  margin: 0;
}
.sample-table th,.sample-table td{padding:12px 16px;border-bottom:1px solid rgba(229,231,235,0.4);text-align:left;font-size:0.9rem;line-height:1.5;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Column width constraints for desktop table */
.sample-table th:nth-child(1), .sample-table td:nth-child(1) { width: 15%; min-width: 80px; }
.sample-table th:nth-child(2), .sample-table td:nth-child(2) { width: 20%; min-width: 120px; }
.sample-table th:nth-child(3), .sample-table td:nth-child(3) { width: 20%; min-width: 120px; }
.sample-table th:nth-child(4), .sample-table td:nth-child(4) { width: 25%; min-width: 150px; }
.sample-table th:nth-child(5), .sample-table td:nth-child(5) { width: 15%; min-width: 100px; }
.sample-table th:nth-child(6), .sample-table td:nth-child(6) { width: 15%; min-width: 100px; }
.sample-table thead th{background:linear-gradient(135deg,#f8fafc,#e2e8f0);font-weight:700;color:#1e293b;text-transform:uppercase;font-size:0.8rem;letter-spacing:0.1em;border-bottom:2px solid #e2e8f0}
.sample-table tbody tr:nth-child(odd){background:rgba(255,255,255,0.7)}
.sample-table tbody tr:nth-child(even){background:rgba(248,250,252,0.7)}
.sample-table tbody tr:hover{background:rgba(241,245,249,0.9);transform:scale(1.01);transition:all 0.2s ease}
.sample-card h3,.sample-heading{font-size:1rem;font-weight:600;margin-bottom:12px;text-align:left;color:#fff;opacity:0.95}
.sample-caption{font-size:.8rem;opacity:.9;margin-top:10px;text-align:left}
.legal-note{font-size:.8rem;color:#e5e7eb;margin-top:6px;text-align:left}
.loading-spinner{width:36px;height:36px;border:4px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite;margin:12px auto}
@keyframes spin{to{transform:rotate(360deg)}}
.trust-signals{padding:70px 0;background:#f8fafc}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.trust-badge{background:#fff;border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.08);padding:22px;text-align:center;transition:all 0.3s ease}
.trust-badge:hover{transform:translateY(-4px);box-shadow:0 8px 25px rgba(37,99,235,0.15)}
.trust-icon{font-size:28px;color:#2563eb;margin-bottom:10px;transition:all 0.3s ease}
.trust-badge:hover .trust-icon{transform:scale(1.1);color:#1d4ed8}
.how-it-works{padding:80px 0}
/* Prevent orphaned words in headings */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #1f2937;
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile typography optimization */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
    line-height: 1.3;
    hyphens: none;
    word-break: keep-all;
  }
  
  .section-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Tablet typography optimization */
@media (min-width: 769px) and (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
    line-height: 1.25;
  }
  
  .pricing-card {
    padding: 24px;
  }
  
  /* Prevent buttons from being too wide on tablet */
  .pricing-card .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
    max-width: none;
  }
  
  .pricing-cards {
    gap: 20px;
  }
  
  /* Make hero buttons less wide than text block on phablet/tablet - scope to hero section only */
  .hero .hero-cta .btn {
    width: auto;
    max-width: 90%; /* Less wide than text block (100%) */
  }
  
  /* Tablet: Hero secondary button sizing - 10% smaller than primary */
  .hero .hero-cta .btn-primary {
    width: 100%;
    max-width: 100%;
  }
  
  .hero .hero-cta .btn-secondary {
    width: 90.9%; /* Makes primary 10% bigger (100/90.9 = 1.1) */
    max-width: 90.9%;
    min-width: auto;
  }
  
  /* Tablet modal button constraints */
  .tingle-modal-box .btn {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .payment-modal .tingle-modal-box {
    max-width: 500px;
  }
}

/* Tablet/Small Desktop Optimization (769px-1100px) */
@media (min-width: 769px) and (max-width: 1100px) {
  /* Ensure banner is positioned under subtitle (order property) */
  #pricing .section-subtitle {
    order: 2;
    margin-bottom: 12px;
    margin-top: 0;
    max-width: 70%; /* Reduced width as per Issue #7 */
  }
  
  /* Banner width handled by main rule at line 4990 - removed duplicate/conflicting rule */
  
  #pricing .pricing-cards {
    order: 4;
    margin-top: 0;
  }
  
  /* Hero Section Width Reduction (Issue #7) - Reduce by 20-30% */
  .hero-subtitle {
    max-width: 70%; /* Reduced from default (20-30% reduction) */
  }
  
  .hero-cta {
    max-width: 70%; /* Reduced from default (20-30% reduction) */
  }
  
  .process-step p,
  .process-step h3 {
    max-width: 70%; /* Reduced from default (20-30% reduction) */
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Trust badge text blocks - narrower for better readability (4-6 words per line) */
  .trust-badge p {
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Transparency note (Quality Assurance) - icon same height as text on tablet */
  .transparency-note {
    flex-direction: row; /* Side by side on tablet */
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }
  
  .transparency-note i {
    flex-shrink: 0;
    margin-top: 0; /* Align with text top */
  }
  
  .transparency-note p {
    max-width: 80%;
    text-align: left;
  }
  
  /* Limited offer banner - should not exceed single pricing card width on tablet */
  #pricing .limited-offer-banner {
    width: 100%; /* Match pricing card width (single column) */
    max-width: 100%;
  }
  
  /* Hero CTA buttons: Match hero-copy text block width (not wider than text) */
  .hero .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    max-width: 100%; /* Match hero-copy width */
    width: 100%;
  }
  
  .hero .hero-cta .btn-primary {
    width: 100%; /* Match text block width */
    max-width: 100%; /* Don't exceed text block */
    align-items: center !important; /* Ensure icon alignment */
  }
  
  /* Secondary button: Calculate by making primary bigger - secondary is 90.9%, primary is 100% */
  .hero .hero-cta .btn-secondary {
    width: 90.9%; /* Base width - 10% smaller than primary (100/90.9 = 1.1) */
    max-width: 90.9%; /* Don't exceed text block */
    min-width: auto;
    margin-left: 0;
    text-align: left;
    justify-content: flex-start;
    align-items: center !important; /* Ensure icon alignment */
  }
  
  .hero .hero-cta .btn-primary {
    width: 100%; /* 10% bigger than secondary (100/90.9 = 1.1) - matches text block width */
    max-width: 100%; /* Don't exceed text block */
  }
  
  /* Fix grid layouts to show 2 columns instead of single items */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns */
    gap: 20px;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns */
    gap: 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    gap: 24px;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns */
    gap: 24px;
  }
  
  /* Fix payment modal button widths on first step (ICP modal) - match input width */
  .icp-modal .form-options .btn-outline,
  .icp-modal .form-options .btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
  }
  
  .icp-modal .form-options {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  
  /* Fix ICP form submit button (Continue to Payment) - match input width and center */
  #icpForm button[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Desktop optimization */
@media (min-width: 1025px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  /* Desktop payment modal max-height */
  .payment-modal .tingle-modal-box__content {
    max-height: 85vh;
    overflow-y: auto;
  }
  
  #paypal-button-container {
    max-height: 400px;
    overflow-y: auto;
  }
}

/* Desktop (1025px+): Banner wider than pricing cards */
@media (min-width: 1025px) {
  /* Banner spans full container width (wider than individual pricing cards) */
  #pricing .limited-offer-banner {
    max-width: 1200px; /* Match pricing cards container width, but wider than single card */
    width: 100%;
    margin: 32px auto 24px auto;
    white-space: normal; /* Allow text wrapping on desktop too */
    overflow: visible;
    text-overflow: clip;
  }
}
.section-subtitle{text-align:center;color:#6b7280;font-size:1.125rem;margin-bottom:48px;max-width:600px;margin-left:auto;margin-right:auto}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.step{text-align:center;padding:10px}
.step-number{width:54px;height:54px;border-radius:50%;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;margin:0 auto 14px}
.pricing{padding:80px 0}
.pricing-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:1200px;margin:0 auto;align-items:stretch}
.pricing-card{background:#fff;border:2px solid #e5e7eb;border-radius:6px;padding:28px;text-align:center;position:relative;transition:all 0.3s ease;display:flex;flex-direction:column}
.pricing-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px rgba(37,99,235,0.1)}
.pricing-card.featured{border-color:#2563eb;box-shadow:0 4px 20px rgba(37,99,235,0.15)}
.popular-badge{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:#2563eb;color:#fff;padding:6px 14px;border-radius:8px;font-weight:700}
.pricing-card.featured h3{padding-top:20px}
.features{list-style:none;margin:16px 0;color:#555;flex:1 1 auto}
.pricing-subtext{font-size:.9rem;color:#6b7280;margin:8px 0;font-style:italic}
.pricing-card .btn{margin-top:auto}

/* Normalize heading and subtitle wrapping to avoid height drift */
.pricing-card h3{line-height:1.2}
.pricing-card .pricing-subtext{max-width:48ch;align-self:center}

/* Safety min-height for body content so CTAs baseline-align; adjust if needed */
.pricing-card .features{min-height:140px}
.pricing-card .pricing-subtext{min-height:40px}

/* Prevent long labels/subtitles from breaking layout */
.pricing-card .label{white-space:normal;word-break:break-word}
.section-subtitle,.hero-subtitle{word-break:break-word}
@media (max-width:480px){
  .section-subtitle{font-size:1rem}
}

/* Stats labels: avoid overflow on mid screens, allow wrap on very small */
.stat-label,.stat-note{white-space:nowrap}
@media (max-width:360px){.stat-label,.stat-note{white-space:normal}}
.bonus-text{color:#10b981;font-weight:700;background:linear-gradient(135deg,#10b981,#059669);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.8}}
.faq{padding:100px 0 80px;background:#f8fafc}
.faq-list{max-width:800px;margin:0 auto}
.faq-item{margin-bottom:24px;padding:20px;background:#fff;border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,0.1)}
.faq-item h3{font-size:1.1rem;font-weight:600;margin-bottom:8px;color:#1f2937}
.faq-item p{color:#6b7280;line-height:1.6;margin:0}
.footer{background:#1f2937;color:#fff;padding:60px 0 20px;margin-top:60px;border-top:1px solid #374151}
.footer-content{display:grid;grid-template-columns:1fr 2fr;gap:24px;margin-bottom:20px}
.footer-links{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.footer-brand{
  text-align:center;
}
.footer-brand p{
  max-width:26ch;
  text-wrap:balance;
  margin:0 auto;
}
.footer-brand h3{
  margin-bottom:8px;
}
.footer-section a{display:block;color:#9ca3af;text-decoration:none;margin:6px 0;transition:all 0.3s ease}
.footer-section a:hover{color:#fff;transform:translateX(4px)}
.trust-badges{display:flex;justify-content:center;align-items:center;gap:32px;padding:24px 0;border-top:1px solid #374151;border-bottom:1px solid #374151;flex-wrap:wrap}
.trust-badges img,.trust-badges svg{height:22px}
.trust-badge-item{display:flex;align-items:center;gap:8px;color:#9ca3af;font-size:0.9rem;transition:all 0.3s ease;padding:8px 12px;border-radius:6px}
.trust-badge-item:hover{color:#fff;background:rgba(37,99,235,0.1);transform:translateY(-2px)}
.trust-badge-item i{font-size:1.1rem;color:#2563eb}
.trust-badge-item:hover i{color:#3b82f6}
.footer-bottom{text-align:center;color:#6b7280;font-size:0.875rem;padding:20px 0}
@media (max-width:768px){.trust-badges{gap:20px;padding:20px 0}.trust-badge-item{font-size:0.85rem;padding:6px 10px}}

/* Footer mobile alignment improvements */
@media (max-width: 768px){
  .footer-content{grid-template-columns:1fr;text-align:center}
  .footer-links{grid-template-columns:1fr;justify-items:center}
}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;align-items:center;justify-content:center;z-index:100;pointer-events:auto;isolation:isolate}

/* Lock body scroll when modal open */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}
.modal[open], .modal.show{display:flex}
.modal-content{background:#fff;border-radius:6px;max-width:520px;width:92%;padding:24px;position:relative;max-height:85vh;min-height:auto;height:auto;overflow:hidden;display:flex;flex-direction:column;scroll-behavior:smooth;pointer-events:auto;box-sizing:border-box;z-index:1;contain:layout style;padding-right:20px}
/* Desktop - ICP form stage (compact) */
.modal.icp-stage .modal-content{max-height:70vh}
/* Desktop - Payment stage (expanded for PayPal) */
.modal.payment-stage .modal-content{max-height:85vh;padding:0;min-height:unset}
.modal-content h2{text-align:center;margin-bottom:16px}
.modal-content .help-text,.modal-content p{text-align:center}
.modal label{text-align:center;display:block;margin-bottom:8px}
.modal .btn,.modal .btn-outline,.modal .btn-secondary{width:100%;max-width:520px;margin:0 auto;justify-content:center}
/* Modal Navigation Header */
.modal-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 102;
  flex-shrink: 0;
}

.modal-nav-title {
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
  flex: 1;
  text-align: center;
}

.modal-back,
.modal-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #6b7280;
  font-size: 20px;
  transition: all 0.2s ease;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-back:hover,
.modal-close:hover {
  color: #1f2937;
  transform: scale(1.1);
}

.modal-back:active,
.modal-close:active {
  transform: scale(0.95);
}

.modal-back[style*="visibility: hidden"] {
  opacity: 0;
  pointer-events: none;
}

/* Adjust modal-header to not have border since nav-header has it */
.modal-header {
  border-bottom: none;
  padding-top: 12px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .modal-nav-header {
    padding: 10px 12px;
  }
  
  .modal-nav-title {
    font-size: 0.95rem;
  }
}

/* Enhanced Modal Structure */
.modal-header {
  text-align: center;
  margin-bottom: 8px; /* Reduce from 12px */
  padding-bottom: 6px; /* Reduce from 10px */
  flex-shrink: 0; /* Don't compress */
}

.modal-header h2 {
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 1.5rem;
}

.payment-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

.modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Allow flex shrink */
  overflow: visible; /* CHANGE from hidden to visible - allow child scrolling */
  position: relative; /* Add for proper positioning */
}

.modal-footer {
  margin-top: 8px; /* Reduce from 12px */
  padding-top: 6px; /* Reduce from 10px */
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0; /* Don't compress */
}

.payment-security {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
}

.security-item i {
  color: #10b981;
  font-size: 0.9rem;
}

/* Mobile Modal Improvements */
@media (max-width: 768px) {
  .modal-content {
    margin: 16px;
    max-height: 90vh;
    width: calc(100% - 32px);
  }
  
  .modal-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
  }
  
  .modal-header h2 {
    font-size: 1.25rem;
  }
  
  .modal-body {
    min-height: 250px;
  }
  
  .payment-security {
    gap: 16px;
  }
  
  .security-item {
    font-size: 0.8rem;
  }
}

@media (max-width: 414px) {
  .modal-content {
    margin: 12px;
    width: calc(100% - 24px);
    max-height: 95vh;
  }
  
  .payment-security {
    flex-direction: column;
    gap: 12px;
  }
  
  .security-item {
    justify-content: center;
  }
}
.toast-container{position:fixed;top:20px;right:16px;display:flex;flex-direction:column;gap:10px;z-index:10000}
.toast{background:#fff;border-left:4px solid #2563eb;padding:12px 16px;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.15);display:flex;align-items:center;gap:10px;font-size:0.9rem;line-height:1.5;color:#1f2937;touch-action:pan-y;user-select:none;cursor:grab}
.toast:active{cursor:grabbing}
.toast i{font-size:1.1rem;flex-shrink:0}
.toast.success{border-color:#10b981}
.toast.success i{color:#10b981}
.toast.error{border-color:#ef4444}
.toast.error i{color:#ef4444}
.toast.info{border-color:#2563eb}
.toast.info i{color:#2563eb}
#icpForm input, #icpForm select{display:block;width:100%;padding:12px;margin:10px 0;border:1px solid #ddd;border-radius:4px;font-size:16px;transition:border-color .2s}
#icpForm input:invalid, #icpForm select:invalid{border-color:#ef4444}
#icpForm input:valid, #icpForm select:valid{border-color:#10b981}
#icpForm button{width:100%;margin-top:10px}
#icpForm .error{color:#ef4444;font-size:.9rem;margin-top:4px}
#paypal-button-container{
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 260px;
  max-height: none;
  padding-right: 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* Custom scrollbar for PayPal container - ENHANCED */
#paypal-button-container::-webkit-scrollbar {
  width: 12px; /* Increase from 10px */
  background: #e5e7eb; /* Darker background */
}

#paypal-button-container::-webkit-scrollbar-track {
  background: #d1d5db; /* Darker for visibility */
  border-radius: 6px;
  margin: 8px 0;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.1);
}

#paypal-button-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%); /* Gradient for depth */
  border-radius: 6px;
  border: 2px solid #d1d5db;
  min-height: 50px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#paypal-button-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
  border-color: #9ca3af;
}

#paypal-button-container::-webkit-scrollbar-thumb:active {
  background: #1e293b;
}

/* Firefox scrollbar styling - ENHANCED */
#paypal-button-container {
  scrollbar-width: auto;
  scrollbar-color: #475569 #d1d5db; /* Darker thumb and track */
}

/* Pulse animation for backdrop clicks */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* PayPal iframe height management */
#paypal-button-container iframe {
  max-height: none !important; /* Allow iframe to expand */
  min-height: auto !important; /* Changed from 400px */
  max-width: 100% !important; /* PREVENT OVERFLOW */
  position: relative; /* ALREADY HAS THIS */
}

#paypal-button-container .paypal-button-container {
  min-height: 400px;
}

/* Ensure PayPal card fields container is scrollable */
#paypal-button-container [data-funding-source="card"] {
  min-height: auto; /* Changed from 500px */
}

/* Ensure PayPal iframe is clickable - REMOVE z-index overrides */
#paypal-button-container {
  /* REMOVE: z-index: 101; - causes iframe to escape modal stacking context */
  position: relative;
}

#paypal-button-container iframe {
  position: relative;
  /* REMOVE: z-index: 102; - inherits from parent stacking context */
  /* KEEP: pointer-events to ensure iframe is clickable */
  pointer-events: auto !important;
  max-width: 100%; /* ADD: prevent overflow */
}


/* Payment Modal States */
.payment-loading {
  text-align: center;
  padding: 40px 20px;
  background: rgba(248, 250, 252, 0.98); /* Slightly transparent to show it's an overlay */
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  z-index: 10; /* Ensure it's above buttons */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.payment-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.payment-loading p {
  color: #4a5568;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.security-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.security-badge {
  background: #e6fffa;
  color: #065f46;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.security-badge i {
  font-size: 0.85rem;
}

  .payment-error {
    text-align: center;
    padding: 40px 20px;
    background: #fef9f5;
    border-radius: 8px;
    border: 1px solid #fed7aa;
  }

  .payment-error .error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #d97706;
  }

  .payment-error h3 {
    color: #d97706;
    margin-bottom: 12px;
    font-size: 1.25rem;
  }

  .payment-error p {
    color: #92400e;
    margin-bottom: 24px;
    line-height: 1.5;
  }

  /* Payment error buttons - match ICP form button width */
  .payment-error .btn {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }

.retry-payment {
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
}

.fallback-options {
  border-top: 1px solid #fecaca;
  padding-top: 20px;
}

.fallback-options p {
  color: #7f1d1d;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.payment-processing {
  text-align: center;
  padding: 40px 20px;
  background: #f0f9ff;
  border-radius: 8px;
  border: 1px solid #bae6fd;
}

.processing-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #bae6fd;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.payment-processing h3 {
  color: #1e40af;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.payment-processing p {
  color: #1e3a8a;
  margin-bottom: 24px;
}

.processing-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
  margin: 0 auto;
}

.processing-steps .step {
  padding: 8px 16px;
  background: #dbeafe;
  border-radius: 20px;
  color: #1e40af;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.processing-steps .step.active {
  background: #2563eb;
  color: white;
  font-weight: 600;
}

.payment-info {
  margin-top: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #059669;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.security-notice i {
  color: #10b981;
}

.payment-methods {
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}

.payment-success {
  text-align: center;
  padding: 40px 20px;
  background: #f0fdf4;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

.payment-success .success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.payment-success h3 {
  color: #166534;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.payment-success p {
  color: #15803d;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.success-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #dcfce7;
  border-radius: 6px;
  color: #166534;
  font-size: 0.9rem;
}

.detail-item i {
  color: #10b981;
  font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .payment-loading,
  .payment-error,
  .payment-processing,
  .payment-success {
    padding: 30px 16px;
  }
  
  .security-badges {
    flex-direction: column;
    align-items: center;
  }
  
  .processing-steps {
    max-width: 100%;
  }
  
  .success-details {
    max-width: 100%;
  }
}

@media (max-width: 414px) {
  .payment-loading,
  .payment-error,
  .payment-processing,
  .payment-success {
    padding: 24px 12px;
  }
  
  .payment-loading .loading-spinner,
  .processing-spinner {
    width: 36px;
    height: 36px;
  }
  
  .payment-success .success-icon {
    font-size: 3rem;
  }
}
/* Tablet and Desktop */
@media (max-width:1024px){
  .hero-grid{grid-template-columns:1fr}
  .trust-grid{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:1fr}
  .pricing-cards{grid-template-columns:1fr}
  .nav {
    position: relative;
    overflow: visible !important;
  }
  
  .header .container {
    overflow: visible !important;
  }
  
  .nav-links{
    display: none;
    position: fixed;
    top: 60px;
    right: calc(12px + env(safe-area-inset-right, 0px));
    width: 280px;
    max-width: calc(100vw - 24px);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    flex-direction: column;
    padding: 12px 0;
    gap: 0;
    z-index: 1000;
    border-radius: 12px;
    text-align: left;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  
  .nav-links a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .nav-links a:hover {
    background: #f8fafc;
    color: #2563eb;
  }
  
  .nav-links a[href="#free-validation"] {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    margin: 12px 12px 6px;
    border-radius: 8px;
    border-bottom: none;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-links a[href="#free-validation"]:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #fff;
  }
  
  .nav-links.active{
    display: flex !important;
    flex-direction: column !important;
    z-index: 1000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 54px !important;
    right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    width: 320px !important;
    min-width: 320px !important;
    max-width: calc(100vw - 24px - env(safe-area-inset-right, 0px)) !important;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
    padding: 24px 20px;
    gap: 16px;
    overflow-y: auto;
    max-height: calc(100vh - 74px);
  }
  
  .header {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    overflow: visible;
    position: relative;
    z-index: 999;
    display: flex;
    align-items: center;
  }
  
  .nav {
    position: relative;
    overflow: visible;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .mobile-menu-toggle{
    display: block;
    cursor: pointer;
    padding: 15px;
    border-radius: 14px;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    margin-left: auto;
    margin-right: -15px; /* Move closer to right edge */
    width: 63px;
    height: 54px;
    min-width: 63px;
    min-height: 54px;
    max-width: 63px;
    max-height: 54px;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid transparent;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
    touch-action: manipulation;
    overflow: visible !important;
    contain: none;
  }
  
  .mobile-menu-toggle:hover{
    background: #f3f4f6;
  }
  
  .mobile-menu-toggle:active{
    opacity: 0.8;
  }
  
  .mobile-menu-toggle.active {
    z-index: 1600;
    position: relative !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    border-radius: 16px;
    padding: 15px;
    width: 63px;
    height: 54px;
    min-width: 63px;
    min-height: 54px;
    max-width: 63px;
    max-height: 54px;
    box-sizing: border-box;
    overflow: visible !important;
    clip-path: none !important;
    clip: auto !important;
    contain: none !important;
  }
  
  /* Use absolute positioning for perfect centering - prevents clipping */
  .hamburger-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center center;
  }
  
  .hamburger-line:nth-child(1){
    top: 15px;
  }
  
  .hamburger-line:nth-child(2){
    top: 50%;
    margin-top: -1.5px;
  }
  
  .hamburger-line:nth-child(3){
    bottom: 15px;
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    top: 50%;
    margin-top: -1.5px;
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(0);
  }
  
  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    top: 50%;
    margin-top: -1.5px;
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
  }
}

/* Tablet */
@media (max-width:768px){
  .hero{
    padding: 20px 0 24px;
    min-height: auto;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .hero-grid{
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: start;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero-copy{
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    margin: 0;
    text-align: start;
    padding: 0 16px;
  }
  
  .hero-sample{
    width: 100%;
    max-width: 100%;
  }
  
  .hero-title{
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    text-wrap: balance;
  }
  
  .hero-subtitle{
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    text-wrap: balance;
  }
  
  .hero-cta{
    flex-direction: column;
    gap: 6px; /* Consistent spacing between buttons (5-10px range) */
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  /* Mobile: Base button styles - DO NOT set width here, set in specific rules below */
  .hero-cta .btn {
    padding: 12px 16px;
    font-size: clamp(0.8rem, 3.5vw, 0.95rem); /* Increased min font size - scales down on small screens but not too small */
    box-sizing: border-box;
    white-space: nowrap !important; /* Never wrap text to 2 lines */
    overflow: visible; /* Allow text to be visible */
    margin: 0;
    display: inline-flex !important; /* Force flex display for justify-content to work */
    align-items: center;
  }
  
  /* Mobile: btn-primary is 10% bigger than btn-secondary - MUST come after .btn rule */
  .hero-cta .btn-primary {
    width: 100% !important; /* Full width of container to fit text */
    max-width: 100% !important; /* Don't exceed container */
    min-width: fit-content !important; /* Ensure button is at least as wide as text */
    justify-content: flex-start !important; /* Force left alignment */
    text-align: left !important;
  }
  
  /* Mobile: btn-secondary is 10% smaller than primary - MUST override .btn rule */
  .hero-cta .btn-secondary {
    width: 90.9% !important; /* Makes primary 10% bigger (100/90.9 = 1.1) - same as desktop */
    max-width: 90.9% !important; /* Don't exceed container */
    min-width: fit-content !important; /* Ensure button is at least as wide as text */
    padding: var(--btn-secondary-padding-mobile);
    margin-left: 0;
    margin-bottom: 12px;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  
  .hero-guarantee{
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    margin-bottom: 8px; /* Match top margin for consistent spacing */
    padding-left: 0;
  }
  
  .hero-guarantee .guarantee-item {
    justify-content: flex-start;
    text-align: left;
  }
  
  .guarantee-item{
    font-size: 0.875rem;
  }
  
  .stats-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .trust-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .process-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .process-step{
    padding: 28px 20px;
  }
  
  .form-options{
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .btn-outline, .btn-secondary, .btn-primary{
    min-width: 280px;
    width: 100%;
    max-width: 500px;
  }
  
  .benefits-card{
    padding: 32px 24px;
  }
  
  .benefits-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .transparency-note{
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
  }
}

/* Mobile Large (414px and below) */
@media (max-width: 414px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .container {
    padding: 0 16px;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }
  
  .nav {
    padding: 18px 0;
  }
  
  .brand {
    margin-left: 0;
  }
  
  .hero {
    padding: 14px 0 18px;
    min-height: auto;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .hero-grid {
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero-copy {
    width: 100%;
    max-width: 32ch;
    align-items: flex-start;
    margin: 0;
    text-align: start;
  }
  
  .hero-sample {
    width: 100%;
    max-width: 100%;
  }

  /* Sample card/table sizing and rounding (mobile tweaks) */
  .sample-card{border-radius:10px;padding:8px}
  .sample-table th,
  .sample-table td{padding:10px 12px;font-size:0.8rem}
  .sample-table th{font-size:0.7rem}
  
  .hero-title {
    font-size: 1.9rem;
    line-height: 1.25;
    margin-bottom: 20px;
    width: 100%;
    max-width: 32ch;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }
  
  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 18px;
    width: 100%;
    max-width: 32ch;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }
  
  /* CTA Container - Left-aligned by default */
  /* To re-center: set align-items: center; and reset button margins below */
  .hero-cta {
    gap: 6px; /* Consistent spacing between buttons (5-10px range) */
    width: 100%;
    max-width: 32ch;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 16px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  /* Mobile Large: Base button styles - DO NOT set width here */
  .hero-cta .btn {
    font-size: clamp(0.8rem, 3.5vw, 0.92rem); /* Increased min font size - scales down on small screens but not too small */
    box-sizing: border-box;
    white-space: nowrap !important; /* Never wrap text to 2 lines */
    overflow: visible; /* Allow text to be visible */
    margin: 0;
    display: inline-flex !important; /* Force flex display for justify-content to work */
    align-items: center;
    align-self: flex-start;
  }
  
  /* Mobile Large: btn-primary is 10% bigger than btn-secondary - MUST come after .btn rule */
  .hero-cta .btn-primary {
    width: 100% !important; /* Full width of container to fit text */
    max-width: 100% !important; /* Don't exceed container */
    min-width: fit-content !important; /* Ensure button is at least as wide as text */
    padding: 12px 20px; /* Equal left/right padding (20px) for safety spacing matching text side */
    justify-content: flex-start !important; /* Force left alignment */
    text-align: left !important;
  }
  
  /* Mobile Large: btn-secondary is 10% smaller than primary - MUST override .btn rule */
  .hero-cta .btn-secondary {
    width: 90.9% !important; /* Makes primary 10% bigger (100/90.9 = 1.1) - same as desktop */
    max-width: 90.9% !important; /* Don't exceed container */
    min-width: fit-content !important; /* Ensure button is at least as wide as text */
    font-size: clamp(0.78rem, 3.2vw, 0.9rem); /* Slightly smaller than primary */
    padding: var(--btn-secondary-padding-mobile);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 12px;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  
  .how-it-works {
    padding: 44px 0;
  }
  
  .how-it-works {
    padding: 48px 0;
  }
  
  .limited-offer-banner {
    font-size: 0.85rem;
    padding: var(--banner-padding-tablet);
  }
  
  /* Mobile: Move limited spots label to top (after title/subtitle, before cards) */
  #pricing {
    padding-top: 15px !important; /* Minimal top padding for scroll target */
    scroll-margin-top: 0; /* Remove default scroll margin */
  }
  
  #pricing .container {
    display: flex;
    flex-direction: column;
  }
  
  #pricing .section-title { 
    order: 1; 
    margin-bottom: 12px; 
    margin-top: 0; /* Remove top margin */
    padding-top: 0; /* Remove top padding */
    font-size: 1.2rem; /* Fit 2 lines on mobile */
    line-height: 1.4;
    text-wrap: balance;
  }
   #pricing .section-subtitle { 
     order: 2; 
     margin-bottom: 12px; 
     margin-top: 0; 
     max-width: 640px; /* Prevent breaking on certain screen sizes */
     margin-left: auto;
     margin-right: auto;
     text-wrap: balance !important; /* Prevent lone words */
     word-wrap: break-word !important;
     overflow-wrap: break-word !important;
     hyphens: auto !important;
     -webkit-hyphens: auto !important;
     white-space: normal; /* Allow wrapping when needed */
   }
  #pricing .limited-offer-banner { 
    order: 3; /* After subtitle (order: 2), before cards (order: 4) */
    /* Width controlled by media queries - removed conflicting default */
    margin: 12px auto;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  #pricing .pricing-cards { order: 4; margin-top: 0; }
  
  .footer-brand p {
    margin: 0 auto;
  }
  
  .hero-guarantee {
    gap: 8px;
    width: 100%;
    max-width: 32ch;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 16px;
    margin-bottom: 16px; /* Match top margin */
    margin-left: 0;
    padding-left: 0;
  }
  
  .guarantee-item {
    font-size: 0.85rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    line-height: 1.3;
    text-align: center;
    hyphens: none;
    word-break: normal;
    text-wrap: balance;
  }
  
  .section-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    hyphens: none;
    word-break: normal;
    text-wrap: balance;
    max-width: 85%;
  }
  
  /* Pricing section spacing adjustments for tablet */
  #pricing .section-subtitle {
    margin-bottom: 12px;
    margin-top: 0;
  }
  
  /* Removed duplicate margin rule - handled by main rule */
  
  .sample-card {
    padding: 12px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 7px;
  }
  
  .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .sample-table {
    font-size: 0.65rem;
    min-width: 500px;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }
  
  .sample-table th,
  .sample-table td {
    padding: 8px 10px;
    font-size: 0.7rem;
    word-break: break-word;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    text-align: left;
  }
  
  .sample-table th {
    font-weight: 600;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Mobile table rounding: outer 40% MORE, inner 40% LESS (3rd fix) */
  .sample-card {
    border-radius: 9.8px; /* 40% more: 7px * 1.4 = 9.8px */
    padding: 8px; /* Closer to edges */
  }
  
  .sample-table {
    border-radius: 3.6px; /* 40% less: 6px * 0.6 = 3.6px */
  }
  
  .sample-caption {
    font-size: 0.65rem; /* Smaller */
    margin-top: 8px;
  }
  
  .legal-note {
    font-size: 0.65rem; /* Smaller */
    margin-top: 4px;
  }
  
  .legal-note.contacts-text {
    font-size: 0.75rem; /* Bigger for "contacts text" (Full, validated contact details...) */
    font-weight: 500;
    margin-top: 6px;
  }
  
  /* Mobile stats banner: single-line chip */
  .stats-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    font-size: 0.7rem;
    padding: 6px 14px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    max-width: calc(100vw - 32px);
    border-radius: 16px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: auto; /* Auto width for proper centering */
    box-sizing: border-box;
  }
  
  .stats-banner span { 
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
  }
  
  .stats-banner i { 
    font-size: 0.8rem; 
    margin-right: 2px; 
    flex-shrink: 0;
  }
  
  /* Stats grid: 2 columns on mobile/tablet to fit all 4 items in 2x2 */
  .stats-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 16px;
  }
  
  /* Stat items sizing for mobile */
  .stat-item {
    padding: 14px 10px;
  }
  
  .stat-number {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }
  
  .stat-label {
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  }
  
  .stat-subtext {
    font-size: clamp(0.7rem, 2.2vw, 0.85rem);
  }
  
  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .process-step {
    padding: 24px 20px;
  }
  
  .benefits-card {
    padding: 24px 16px;
  }
  
  .modal-content {
    padding: 20px;
    margin: 10px;
  }
  
  .form-options {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-outline, .btn-secondary, .btn-primary {
    min-width: auto;
    width: 100%;
    padding: 14px 20px;
  }
}

/* Ultra-small screens: stats grid falls back to single column */
@media (max-width: 340px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

/* Mobile Small (375px and below) */
@media (max-width: 375px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .hero {
    padding: 42px 0 24px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .hero-grid {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero-copy {
    width: 100%;
    max-width: 32ch;
    align-items: flex-start;
    margin: 0;
    text-align: start;
  }
  
  .hero-sample {
    width: 100%;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 1.9rem;
    line-height: 1.25;
    margin-bottom: 22px;
    width: 100%;
    max-width: 32ch;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }
  
  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 16px;
    width: 100%;
    max-width: 32ch;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }
  
  .hero-cta {
    gap: 6px; /* Consistent spacing between buttons (5-10px range) */
    width: 100%;
    max-width: 32ch;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 14px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  /* Mobile Small: Base button styles - DO NOT set width here */
  .hero-cta .btn {
    padding: 12px 20px;
    font-size: clamp(0.78rem, 3.5vw, 0.9rem); /* Increased min font size - scales down on small screens but not too small */
    box-sizing: border-box;
    white-space: nowrap !important; /* Never wrap text to 2 lines */
    overflow: visible; /* Allow text to be visible */
    margin: 0;
    display: inline-flex !important; /* Force flex display for justify-content to work */
    align-items: center;
    align-self: flex-start;
  }
  
  /* Mobile Small: btn-primary is 10% bigger than btn-secondary - MUST come after .btn rule */
  .hero-cta .btn-primary {
    width: 100% !important; /* Full width of container to fit text */
    max-width: 100% !important; /* Don't exceed container */
    min-width: fit-content !important; /* Ensure button is at least as wide as text */
    justify-content: flex-start !important; /* Force left alignment */
    text-align: left !important;
  }
  
  /* Mobile Small: btn-secondary is 10% smaller than primary - MUST override .btn rule */
  .hero-cta .btn-secondary {
    width: 90.9% !important; /* Makes primary 10% bigger (100/90.9 = 1.1) - same as desktop */
    max-width: 90.9% !important; /* Don't exceed container */
    min-width: fit-content !important; /* Ensure button is at least as wide as text */
    font-size: clamp(0.76rem, 3.2vw, 0.88rem); /* Slightly smaller than primary */
    padding: var(--btn-secondary-padding-mobile);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 12px;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  
  .limited-offer-banner {
    font-size: 0.83rem;
    padding: var(--banner-padding-mobile-small);
  }
  
  .hero-guarantee {
    gap: 8px;
    width: 100%;
    max-width: 32ch;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 14px;
    margin-bottom: 14px; /* Match top margin */
    margin-left: 0;
    padding-left: 0;
  }
  
  .guarantee-item {
    font-size: 0.85rem;
  }
  
  .section-title {
    font-size: 1.6rem;
    line-height: 1.3;
    text-align: center;
    hyphens: none;
  }
  
  /* Pricing section title optimization for smaller mobile */
  #pricing .section-title {
    font-size: 1.3rem; /* Optimized for better fit */
    line-height: 1.35;
    padding: 0 8px;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    hyphens: none;
    max-width: 95%;
  }
  
  /* Pricing section spacing adjustments */
  #pricing .section-subtitle {
    margin-bottom: 12px; /* Match spacing above */
    margin-top: 0;
  }
  
  /* Removed duplicate margin rule - handled by main rule */
  
  .sample-card {
    padding: 16px;
  }
  
  .sample-table {
    font-size: 0.7rem;
  }
  
  .sample-table th,
  .sample-table td {
    padding: 4px 6px;
    font-size: 0.7rem;
  }
  
  /* Center stats banner on tablet */
  .stats-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: fit-content;
  }
  
  .stats-grid {
    gap: 16px;
  }
  
  .process-step {
    padding: 20px 16px;
  }
  
  .process-note {
    font-size: 0.8rem;
    padding: 8px 12px;
    height: 36px;
  }
}

/* Mobile Extra Small (320px and below) */
@media (max-width: 320px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .container {
    padding: 0 8px;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }
  
  .hero {
    padding: 34px 0 18px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .hero-grid {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero-copy {
    width: 100%;
    max-width: 30ch;
    align-items: flex-start;
    margin: 0;
    text-align: start;
  }
  
  .hero-sample {
    width: 100%;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 18px;
    width: 100%;
    max-width: 30ch;
    overflow-wrap: normal;
    word-break: normal;
  }
  
  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 14px;
    width: 100%;
    max-width: 30ch;
    overflow-wrap: normal;
    word-break: normal;
  }
  
  .hero-cta {
    gap: 6px; /* Consistent spacing between buttons (5-10px range) */
    width: 100%;
    max-width: 30ch;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 12px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  /* Mobile Extra Small: Base button styles - DO NOT set width here */
  .hero-cta .btn {
    padding: 11px 16px;
    font-size: clamp(0.75rem, 3.5vw, 0.85rem); /* Increased min font size - scales down on small screens but not too small */
    box-sizing: border-box;
    white-space: nowrap !important; /* Never wrap text to 2 lines */
    overflow: visible; /* Allow text to be visible */
    margin: 0;
    display: inline-flex !important; /* Force flex display for justify-content to work */
    align-items: center;
    align-self: flex-start;
  }
  
  /* Mobile Extra Small: btn-primary is 10% bigger than btn-secondary - MUST come after .btn rule */
  .hero-cta .btn-primary {
    width: 100% !important; /* Full width of container to fit text */
    max-width: 100% !important; /* Don't exceed container */
    min-width: fit-content !important; /* Ensure button is at least as wide as text */
    justify-content: flex-start !important; /* Force left alignment */
    text-align: left !important;
  }
  
  /* Mobile Extra Small: btn-secondary is 10% smaller than primary - MUST override .btn rule */
  .hero-cta .btn-secondary {
    width: 90.9% !important; /* Makes primary 10% bigger (100/90.9 = 1.1) - same as desktop */
    max-width: 90.9% !important; /* Don't exceed container */
    min-width: fit-content !important; /* Ensure button is at least as wide as text */
    font-size: clamp(0.73rem, 3.2vw, 0.83rem); /* Slightly smaller than primary */
    padding: var(--btn-secondary-padding-mobile-small);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 12px;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  
  .limited-offer-banner {
    font-size: 0.78rem;
    padding: var(--banner-padding-mobile-small);
  }
  
  .how-it-works {
    padding: 40px 0;
  }
  
  .hero-guarantee {
    gap: 6px;
    width: 100%;
    max-width: 30ch;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 12px;
    margin-bottom: 12px; /* Match top margin */
    margin-left: 0;
    padding-left: 0;
  }
  
  .guarantee-item {
    font-size: 0.7rem;
  }
  
  .section-title {
    font-size: 1.25rem; /* Reduced from 1.4rem for better fit */
    line-height: 1.3;
    text-align: center;
    hyphens: none;
    word-break: keep-all;
    text-wrap: balance; /* Balance line lengths to avoid lone words */
    max-width: 95%; /* Prevent edge clipping */
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Pricing section title - even more optimized for iPhone SE */
  #pricing .section-title {
    font-size: 1.15rem; /* Further reduced for pricing title */
    line-height: 1.35; /* Slightly tighter line height */
    padding: 0 8px; /* Add small padding to prevent edge clipping */
  }
  
  .section-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    hyphens: none;
    word-break: keep-all;
    max-width: 98%;
  }
  
  .sample-card {
    padding: 12px;
  }
  
  .sample-table {
    font-size: 0.65rem;
  }
  
  .sample-table th,
  .sample-table td {
    padding: 3px 4px;
    font-size: 0.65rem;
  }
  
  .process-step {
    padding: 16px 12px;
  }
  
  .process-note {
    font-size: 0.75rem;
    padding: 6px 10px;
    height: 32px;
  }
  
  .benefits-card {
    padding: 20px 12px;
  }
  
  .modal-content {
    padding: 16px;
    margin: 5px;
  }
}

/* Process Transparency Section */
.process-transparency {
  padding: 60px 0 40px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin: 48px 0;
  align-items: stretch;
}

.process-step {
  background: white;
  padding: 32px 24px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

.process-step:hover {
  border-color: #2563eb;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.process-step i {
  font-size: 2.5rem;
  color: #2563eb;
  margin-bottom: 16px;
  flex-shrink: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  flex-shrink: 0;
  text-align: center; /* Center process step headings */
}

.process-step p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
  min-height: 72px;
}

.process-note {
  font-size: 0.875rem;
  color: #10b981;
  font-weight: 600;
  background: #f0fdf4;
  padding: 10px 18px;
  border-radius: 6px;
  flex-shrink: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-width: 120px;
}

.transparency-note {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 24px 32px;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  align-items: start;
  margin-top: 48px;
}

.transparency-note i {
  font-size: 1.5rem;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 4px;
}

.transparency-note p {
  color: #1e40af;
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
  word-break: break-word;
  hyphens: auto;
}

/* Stats Section Updates */
.stats-banner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  margin: 0 0 32px 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  white-space: nowrap;
  font-size: 0.85rem;
  width: fit-content;
}

.stats-banner i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Mobile stats-banner centering */
@media (max-width: 768px) {
  .stats-banner {
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 0.85rem;
    padding: 10px 18px;
    gap: 10px;
    width: fit-content;
    max-width: calc(100vw - 32px);
    display: inline-flex;
    align-items: center;
  }
  
  .stats-banner i {
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  
  .stats-banner span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 80px);
  }
}

.stat-note {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 8px;
  font-weight: 500;
}

/* Early Customer Benefits */
.early-customer-benefits {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.benefits-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 48px;
  backdrop-filter: blur(10px);
}

.benefits-header {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}

.benefits-header i {
  font-size: 2rem;
  color: #fbbf24;
}

.benefits-header h2 {
  font-size: 2rem;
  color: white;
  margin: 0;
}

.benefits-subtitle {
  text-align: center;
  color: #cbd5e1;
  font-size: 1.125rem;
  margin-bottom: 48px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.benefit-item {
  text-align: center;
}

.benefit-item i {
  font-size: 2rem;
  color: #60a5fa;
  margin-bottom: 16px;
}

.benefit-item h3 {
  font-size: 1.25rem;
  color: white;
  font-weight: 700;
  margin-bottom: 12px;
}

.benefit-item p {
  color: #cbd5e1;
  line-height: 1.6;
}

.benefits-cta {
  text-align: center;
}

.benefits-cta .btn {
  font-size: 1.125rem;
  padding: 16px 48px;
  margin-bottom: 16px;
}

.benefits-guarantee {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
}

/* Mobile Modal and Form Improvements */
@media (max-width: 768px) {
  .modal {
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
  }
  
  .modal-content {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    max-height: calc(100vh - 80px);
    min-height: auto;
    height: auto;
    border-radius: 16px;
    margin: 0;
    padding: 20px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  
  .modal.payment-stage .modal-content {
    max-height: calc(100vh - 40px);
    min-height: 500px;
  }
  
  /* Removed conflicting height constraints - handled by .payment-modal #paypal-button-container */
  
  .modal-footer {
    margin-top: 8px;
    padding-top: 8px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  .modal-header {
    margin-bottom: 6px; /* Even more compact on mobile */
    padding-bottom: 4px;
  }
  
  .modal-header h2 {
    font-size: 1.2rem; /* Slightly smaller */
    margin-bottom: 4px;
  }
  
  .payment-subtitle {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  .modal-footer {
    margin-top: 6px; /* Even more compact on mobile */
    padding-top: 4px;
  }
  
  /* Mobile - ICP form stage (compact) */
  .modal.icp-stage .modal-content {
    max-height: 60vh;
  }
  
  /* Mobile - Payment stage (larger for card form) */
  .modal.payment-stage .modal-content {
    max-height: 90vh;
    min-height: 70vh;
  }
  
  .toast-container {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    max-width: 520px;
    width: 92%;
  }
  
  .toast {
    width: 100%;
  }
  
  .modal .btn-outline,
  .modal .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .modal-content h2 {
    text-align: center;
    width: 100%;
    display: block;
  }
  
  .modal-content label {
    text-align: center;
    width: 100%;
    display: block;
  }
  
  .modal-header {
    margin-bottom: 20px;
  }
  
  /* Removed conflicting height constraints - handled by .payment-modal #paypal-button-container */
  
  .back-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .form-options {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .btn-outline, .btn-secondary, .btn-primary {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  #icpForm {
    padding: 0;
    gap: 10px;
  }
  
  #icpForm input, #icpForm select {
    padding: 10px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  #icpForm button {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .transparency-note {
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
  }
  
  .benefits-card {
    padding: 32px 24px;
  }
  
  .benefits-header {
    flex-direction: column;
    text-align: center;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}




/* Form Options Styling */
.form-options {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  transition: all 0.3s ease;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  justify-content: center;
}

.btn-outline:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* ============================================================================
   Reusable Component: .btn-secondary
   ============================================================================
   Secondary button component. Can be copied to other projects.
   Adjust colors/gradients in the background property for project-specific branding.
   ============================================================================ */
.btn-secondary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 2px solid #2563eb;
  color: white;
  transition: all 0.3s ease;
  padding: var(--btn-secondary-padding);
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: var(--btn-secondary-min-width);
  justify-content: center;
  width: auto;
  max-width: 100%;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-secondary i,
.btn-outline i {
  font-size: 1.1em;
}

/* Back Button Alignment Fix */
#backToOptions {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 16px auto;
  justify-content: center;
}

@media (max-width: 768px) {
  #backToOptions {
    width: 100%;
    max-width: 100%;
  }
}

/* Modal Header Styling */
.modal-header {
  position: relative;
  margin-bottom: 24px;
}

.back-btn {
  background: transparent;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 16px;
}

.back-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #f8fafc;
  transform: translateX(-2px);
}

.back-btn i {
  font-size: 12px;
}

/* Smart Suggestions Styling */
input[list] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* Enhanced Form Validation */
input:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input:valid {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Form Field Styling */
#icpForm input,
#icpForm select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

/* Modern 2025 approach: All selects get arrow icon with text truncation */
#icpForm select {
  /* Arrow icon for all selects */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px; /* Reserve space for arrow - always visible */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  /* Text truncation to prevent arrow from being hidden */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0; /* Allow shrinking in flex containers */
}

#icpForm input:focus,
#icpForm select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#icpForm input::placeholder {
  color: #9ca3af;
}

/* Form Layout */
#icpForm {
  display: none;
  margin-top: 24px;
}

#icpForm.show {
  display: block;
}

#icpForm .form-group {
  margin-bottom: 20px;
}

#icpForm label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
}

/* Error Styling */
.error {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Generic error/success classes - but NOT for validation cards or promo messages */
.error:not(#freeValidationResult .validation-card):not(.promo-code-message)::before {
  content: "\f06a";
  font-size: 12px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Success Styling - but NOT for validation cards or promo messages */
.success:not(#freeValidationResult .validation-card):not(.promo-code-message) {
  color: #10b981;
  font-size: 14px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.success:not(#freeValidationResult .validation-card):not(.promo-code-message)::before {
  content: "\f00c";
  font-size: 12px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Explicitly prevent icons on validation cards and promo messages */
#freeValidationResult .validation-card.success::before,
#freeValidationResult .validation-card.warning::before,
#freeValidationResult .validation-card.success .status-icon::before,
#freeValidationResult .validation-card.warning .status-icon::before,
#freeValidationResult .validation-card.success .status-title::before,
#freeValidationResult .validation-card.warning .status-title::before,
.promo-code-message.success::before,
.promo-code-message.error::before,
.promo-code-message.info::before {
  content: none !important;
  display: none !important;
}

/* Quick Start Form (Hidden by default) */
#quickStartForm {
  display: none;
}

#quickStartForm.active {
  display: block;
}

#icpForm.hidden {
  display: none;
}

/* Industry Dropdown Improvements */
/* Industry select - inherits from #icpForm select above, no need for duplicate */

/* Enhanced Button States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tingle Modal Customizations */
/* Safety: Ensure body is scrollable when no modal is open */
body:not(.tingle-enabled) {
  position: static !important;
  overflow: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
}

/* Safety: Ensure closed/hidden modals don't block clicks */
body:not(.tingle-enabled) .tingle-modal,
.tingle-modal:not(.tingle-modal--visible) {
  pointer-events: none !important;
  display: none !important;
  visibility: hidden !important;
  z-index: -1 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

.tingle-modal {
  background: rgba(0, 0, 0, 0.65);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

.tingle-modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 0;
  max-width: 600px;
  /* Force vertical centering */
  margin-top: auto !important;
  margin-bottom: auto !important;
  overflow-x: hidden !important;
  max-width: 100%;
}

.tingle-modal-box__content {
  padding: 32px;
  overflow-x: hidden !important;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tingle-modal-box__footer {
  border-top: 1px solid #e5e7eb;
  padding: 16px 32px;
}

/* ICP Modal Specific */
.icp-modal .tingle-modal-box {
  max-width: 600px;
  overflow-x: hidden !important;
}

.icp-modal h2 {
  text-align: center;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 1.3rem;
}

.icp-modal p {
  text-align: center;
  color: #6b7280;
  margin-bottom: 8px;
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  text-wrap: balance; /* Balance line lengths for better readability */
}

.icp-modal .form-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
  width: 100%;
  align-items: stretch; /* Ensure buttons take full width */
}

/* ICP Modal buttons should match input width */
.icp-modal .form-options .btn-primary,
.icp-modal .form-options .btn-outline {
  width: 100%;
  max-width: 100%;
  min-width: auto;
}

.icp-modal #icpForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cascading location selectors */
#icpRegion[style*="display: none"],
#icpCity[style*="display: none"],
#icpCityCustom[style*="display: none"],
#icpJobTitleCustom[style*="display: none"] {
  display: none !important;
  height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
}

/* Mobile keyboard accessibility - ensure focused inputs are visible */
@media (max-width: 768px) {
  #icpForm input:focus,
  #icpForm select:focus {
    scroll-margin-top: 120px;
    scroll-margin-bottom: 120px;
  }
  
  /* Reduce gap between fields on mobile to fit more in viewport */
  .icp-modal #icpForm {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  #promoCodeInput:focus {
    scroll-margin-top: 140px;
    scroll-margin-bottom: 100px;
  }
}

/* Promo Switch Modal Styling */
.promo-switch-modal .tingle-modal-box {
  max-width: 420px;
  border-radius: 12px;
}

.promo-switch-modal .tingle-modal-box__content {
  padding: 16px;
  max-height: 85vh;
  overflow-y: auto;
}

.promo-switch-modal .tingle-modal-box__footer {
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.promo-switch-modal .tingle-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.promo-switch-modal .tingle-btn--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

.promo-switch-modal .tingle-btn--primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.promo-switch-modal .tingle-btn--default {
  background: #f3f4f6;
  color: #374151;
}

.promo-switch-modal .tingle-btn--default:hover {
  background: #e5e7eb;
}

@media (max-width: 768px) {
  .promo-switch-modal .tingle-modal-box {
    max-width: calc(100vw - 32px);
    margin: 16px;
  }
  
  .promo-switch-modal .tingle-modal-box__content {
    padding: 12px;
    max-height: 80vh;
  }
  
  .promo-switch-modal .tingle-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 100%;
  }
  
  .promo-switch-modal .tingle-modal-box__footer {
    flex-direction: column-reverse;
    gap: 8px;
  }
}

/* Payment Modal Specific */
.payment-modal .tingle-modal-box {
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.payment-modal .tingle-modal-box__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px; /* Consistent spacing between all elements */
  flex: 1 1 auto;
  padding: 24px 24px 28px;
  overflow-y: auto;
  max-height: calc(90vh - 48px);
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
}

/* Mobile spacing reduction - Optimized for viewport height */
@media (max-width: 767px) {
  .payment-modal .tingle-modal-box__content {
    gap: 8px !important; /* Aggressively reduced from 18px for mobile */
    padding: 12px 12px 16px 12px !important; /* Reduced padding */
    max-height: calc(100dvh - 60px) !important; /* More aggressive height constraint */
  }
  
  /* Reduce price display spacing */
  .price-display {
    padding: 10px 12px !important; /* Reduced from 12px 16px */
    margin: 0 0 6px 0 !important; /* Reduced margins */
    font-size: clamp(0.85rem, 2vw + 0.4rem, 1rem) !important;
  }
  
  /* Reduce leads count display spacing */
  .leads-count-display {
    padding: 6px 10px !important; /* Reduced from 8px 12px */
    margin: 2px 0 !important; /* Reduced from 4px 0 */
    font-size: 0.8rem !important; /* Slightly smaller */
  }
  
  /* Reduce promo code section spacing */
  .promo-code-section {
    padding: 8px 10px !important; /* Reduced padding */
    margin-top: 4px !important; /* Reduced top margin */
  }
  
  .promo-code-input-group {
    gap: 4px !important; /* Consistent spacing */
    margin-bottom: 4px !important; /* Consistent spacing */
  }
  
  /* Reduce security badges spacing */
  .payment-security-info {
    margin-top: 4px !important; /* Reduced top margin */
    margin-bottom: 0 !important; /* Remove bottom margin */
    padding: 8px 0 !important; /* Reduced padding */
  }
  
  .security-badges {
    gap: 12px !important; /* Reduced gap */
    padding: 8px 0 !important; /* Reduced padding */
  }
  
  .security-badge {
    font-size: 0.75rem !important; /* Smaller font */
    padding: 4px 8px !important; /* Reduced padding */
  }
}

.payment-modal h2 {
  font-size: clamp(1.05rem, 2vw + 0.6rem, 1.28rem);
  text-align: center;
  margin: 0;
  margin-top: 0; /* Spacing handled by header padding */
  margin-bottom: 6px; /* Consistent spacing below h2 */
  color: #1f2937;
  line-height: 1.25;
}

.payment-modal.card-form-active h2 {
  font-size: clamp(0.92rem, 1.6vw + 0.4rem, 1.08rem);
  margin-top: 0;
  margin-bottom: 0;
}

.payment-modal .payment-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: clamp(0.7rem, 2.5vw + 0.3rem, 0.9rem);
  margin: 0; /* Spacing handled by header padding */
  max-width: 100%;
  white-space: nowrap; /* Single line on larger screens */
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-modal.card-form-active .payment-subtitle {
  font-size: clamp(0.65rem, 1vw + 0.34rem, 0.78rem);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Only allow wrapping on very small screens */
@media (max-width: 375px) {
  .payment-modal .payment-subtitle {
    white-space: normal;
    font-size: clamp(0.68rem, 3.4vw, 0.82rem);
    overflow: visible;
    text-overflow: clip;
  }
}

.payment-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 12px 0 16px 0; /* Consistent spacing above and below */
  z-index: 25;
  border-bottom: 1px solid #e5e7eb;
  min-height: 80px; /* Ensure header always has enough space */
}

.payment-modal.card-form-active .tingle-modal-box,
.payment-modal.card-form-active .tingle-modal-box__content {
  background: #f8fafc;
}

.payment-modal.card-form-active .payment-modal-header {
  background: transparent; /* Transparent to blend with gradient background */
  box-shadow: none; /* Remove shadow when transparent */
  border-bottom: none; /* Remove border when transparent */
  /* Ensure text remains readable with subtle text shadow */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.payment-modal-titles {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px; /* Increased gap between h2 and subtitle for better spacing */
  text-align: center;
  width: auto;
  max-width: calc(100% - 100px);
  pointer-events: none;
  padding: 0 8px; /* Extra spacing on sides */
}

.payment-modal-titles h2 {
  white-space: nowrap;
}

.payment-modal-titles .payment-subtitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Allow wrapping only on very small screens */
@media (max-width: 375px) {
  .payment-modal-titles .payment-subtitle {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible;
    text-overflow: clip;
  }
}

.payment-modal-titles * {
  pointer-events: auto;
}

.payment-modal #paypal-button-container {
  flex: 0 0 auto; /* Don't expand - prevents large gap between buttons and leads counter */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px; /* Consistent spacing between buttons */
  align-items: stretch; /* Stretch buttons to full width */
  justify-content: flex-start; /* Start from top, not center */
  overflow: visible;
  margin: 0;
  padding: 0 4px;
}

.payment-modal.card-form-active #paypal-button-container {
  margin-top: 0; /* Reduced from 4px for tighter spacing */
  min-height: clamp(260px, 45vh, 360px);
}

/* Card form: Reduce header/sum/card spacing for better layout */
.payment-modal.card-form-active .payment-modal-header {
  padding-bottom: 8px !important; /* Reduced padding */
  min-height: auto !important;
}

/* Card form: Hide the X close button (back arrow is sufficient) */
.payment-modal.card-form-active .tingle-modal__close {
  display: none !important;
}

.payment-modal #paypal-button-container .paypal-button-row + .paypal-button-row {
  margin-top: 6px; /* Reduced from 12px to match spacing pattern */
}

/* Dynamic Security Badges Styling */
.payment-modal .tingle-modal-box__content > #paypal-button-container {
  margin-top: 4px; /* Match spacing between price and buttons */
  margin-bottom: 0;
}

/* Consistent spacing between payment modal elements */
.payment-modal .tingle-modal-box__content > #paypal-button-container {
  margin-bottom: 0;
}

.payment-modal .tingle-modal-box__content > .promo-code-section,
.payment-modal .tingle-modal-box__content > #leadsCountDisplay,
.payment-modal .tingle-modal-box__content > .payment-security-info {
  margin: 0;
}

/* Spacing between buttons and leads counter - use gap from parent flex container */
.payment-modal .tingle-modal-box__content > #leadsCountDisplay {
  margin-top: 0;
}

/* Card form iframe proper spacing - prevents overstacking */
.payment-modal.card-form-active #paypal-button-container .paypal-button-wrapper[data-funding-source="card"] iframe {
  margin-top: 8px !important; /* Add spacing above card form */
}

/* Card form container spacing - ensure proper gap between header and card form */
.payment-modal.card-form-active .price-display {
  margin-bottom: 8px !important;
}

/* Card form wrapper - ensure full height and proper spacing */
.payment-modal.card-form-active .paypal-button-wrapper[data-funding-source="card"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding-top: 4px !important;
}

.payment-security-info {
  margin-top: 4px;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f8fafc;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.payment-security-info .security-badges {
  display: flex;
  justify-content: center;
  gap: clamp(4px, 0.8vw, 8px);
  flex-wrap: nowrap;
  align-items: center;
}

.payment-security-info .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f2937;
  font-size: clamp(0.46rem, 0.7vw + 0.3rem, 0.58rem);
  font-weight: 500;
  white-space: nowrap;
  padding: clamp(2px, 0.5vw, 4px) clamp(6px, 1vw + 2px, 10px);
  line-height: 1.1;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  flex: 0 0 auto;
}

.payment-security-info .badge i {
  color: #10b981;
  font-size: 0.9rem;
}

.leads-count-display,
.promo-code-section,
.payment-security-info {
  flex-shrink: 0;
}

/* Price Display */
.price-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  margin: 0 4px 4px 4px; /* Reduced from 8px to 4px to match spacing pattern */
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.4vw + 0.5rem, 1.1rem);
}

.price-display.price-free {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #10b981;
}

.price-label {
  color: #1e40af;
  font-size: clamp(0.8rem, 1.2vw + 0.4rem, 0.95rem);
}

.price-display.price-free .price-label {
  color: #059669;
}

.price-amount {
  color: #1e40af;
  font-size: clamp(1.1rem, 1.8vw + 0.6rem, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-amount.price-amount-free {
  color: #059669;
}

.payment-modal.card-form-active .price-display {
  margin-bottom: 6px; /* Reduced from 12px for tighter card form spacing */
  margin-top: 0; /* Remove top margin */
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.payment-modal.card-form-active .price-display.price-free {
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.payment-modal.card-form-active .modal-back-btn {
  border-color: #2563eb;
  color: #2563eb;
}

.payment-modal.card-form-active .modal-back-btn i {
  color: #2563eb;
}

/* Correctly hide non-card buttons when card form is active */
.payment-modal.card-form-active #paypal-button-container .paypal-button-wrapper:not([data-funding-source="card"]) {
  display: none !important;
}

.payment-modal.card-form-active #paypal-button-container .paypal-button-wrapper[data-funding-source="card"] {
  display: block !important;
  width: 100%;
  flex: 1 1 auto;
}

/* Ensure container remains visible */
.payment-modal.card-form-active #paypal-button-container {
  display: flex !important;
}

.paypal-button-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  justify-content: center; /* Center buttons within wrapper */
  align-items: center;
}

/* Ensure PayPal iframes are clickable even with DevTools open and stretch to full width */
.paypal-button-wrapper iframe {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  margin: 0 auto; /* Center iframe within wrapper */
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

/* PayPal buttons - all same width (reverted unauthorized change) */
.payment-modal .paypal-button-wrapper {
  width: 100%;
  max-width: 100%;
}

/* Ensure PayPal buttons container centers and stretches children */
.payment-modal #paypal-button-container {
  align-items: stretch; /* Stretch children to full width */
}

/* Ensure all PayPal button wrappers take full width */
.payment-modal #paypal-button-container .paypal-button-wrapper {
  width: 100%;
  max-width: 100%;
}

.payment-modal.card-form-active .modal-back-btn {
  cursor: pointer !important;
}

.payment-modal:not(.card-form-active) .modal-back-btn[data-mode="card"] {
  pointer-events: none;
  opacity: 0.5;
}

/* Tingle Close Button Refinements */

.tingle-modal__close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 10px;
  color: #1f2937 !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  cursor: pointer;
  z-index: 100 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.tingle-modal__closeIcon {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
}

.tingle-modal__closeIcon svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.tingle-modal__closeIcon svg path {
  fill: #1f2937 !important;
}

.tingle-modal__close:hover {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.tingle-modal__close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.tingle-modal__closeIcon {
  display: block;
  font-size: 22px;
  line-height: 1;
  color: currentColor;
  pointer-events: none;
}

.tingle-modal__closeLabel {
  display: none;
}

.tingle-modal__close.card-disabled {
  pointer-events: none;
  opacity: 0.35;
}

/* Close button should always be visible */

@media (max-width: 768px) {
  .tingle-modal__close {
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    transform: none !important;
  }
  
  .tingle-modal__close:hover {
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    transform: none !important;
  }

  .tingle-modal__closeIcon {
    font-size: 20px !important;
  }
}

@media (max-width: 540px) {
  .payment-modal .tingle-modal-box__content {
    padding: 16px 12px 20px; /* Reduced padding for mobile height optimization */
    gap: 4px; /* Reduced gap between elements */
  }
  
  .payment-modal-header {
    padding: 10px 0 14px 0 !important; /* Consistent spacing on mobile */
    min-height: 70px !important; /* Ensure header always has enough space */
  }
  
  .payment-modal h2 {
    margin-top: 0 !important; /* Spacing handled by header padding */
    margin-bottom: 6px !important; /* Consistent spacing below h2 */
  }
  
  .payment-modal .payment-subtitle {
    margin: 0 !important; /* Spacing handled by header padding */
  }
  
  .payment-modal-titles {
    gap: 5px !important; /* Consistent gap between h2 and subtitle */
  }
  
  .price-display {
    margin-bottom: 4px !important; /* Match spacing pattern */
  }
  
  #paypal-button-container {
    margin-top: 4px !important; /* Match spacing */
    margin-bottom: 4px !important; /* Spacing before "Powered by PayPal" */
  }

  .tingle-modal__close {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  .tingle-modal__closeIcon {
    font-size: 19.8px !important; /* 10% bigger than 18px */
  }

  .payment-security-info {
    padding: 8px 10px !important; /* Aggressively reduced for mobile */
    margin-top: 2px !important; /* Reduced top margin */
  }

  .payment-security-info .security-badges {
    gap: 6px !important; /* Reduced gap */
    padding: 0 !important; /* Remove padding */
  }

  .payment-security-info .badge {
    font-size: 0.65rem !important; /* Smaller font */
    padding: 3px 6px !important; /* Reduced padding */
  }
}

/* CRITICAL: Override Tingle's mobile styles at 540px breakpoint */
@media (max-width: 540px) {
  /* Override Tingle's border-radius: 0 with proper rounded corners */
  .tingle-modal-box {
    border-radius: 12px !important;
    margin: 16px !important;
    width: calc(100% - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    overflow: hidden !important;
  }
  
  .tingle-modal__closeLabel {
    display: none !important;
  }
  
  .tingle-modal__close {
    position: fixed !important;
    top: 20px !important;
    right: 10px !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    z-index: 10001 !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    outline: none !important;
    border: none !important;
  }
  
  .tingle-modal__close:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    color: #ffffff !important;
    opacity: 0.8 !important;
    outline: none !important;
    border: none !important;
  }
  
  .tingle-modal__close:focus,
  .tingle-modal__close:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .tingle-modal__closeIcon {
    display: block !important;
    font-size: 26.4px !important; /* 10% bigger than 24px */
    color: #ffffff !important;
    font-weight: 300 !important;
  }
  
  .tingle-modal__closeIcon svg path {
    fill: #ffffff !important;
  }
  
  /* Override Tingle's padding-top that causes positioning issues */
  .tingle-modal {
    padding-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Ensure modal content has proper padding */
  .tingle-modal-box__content {
    padding: 20px 16px !important;
    max-height: calc(100dvh - 80px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .payment-subtitle,
  .payment-modal-titles p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  
  .icp-modal .tingle-modal-box__content {
    padding: 16px 12px !important;
    max-height: calc(100dvh - 80px) !important;
  }
  
  .payment-modal .tingle-modal-box__content {
    padding: 16px 12px !important;
    max-height: calc(100dvh - 80px) !important;
  }
  
  .icp-modal h2 {
    font-size: 1.1rem !important;
    margin-bottom: 6px !important;
  }
  
  .icp-modal p {
    font-size: 0.85rem !important; /* Slightly bigger since it will wrap to 2 lines */
    line-height: 1.4 !important; /* Better line spacing for 2 lines */
    margin-bottom: 6px !important;
    white-space: normal !important; /* Allow wrapping */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-wrap: balance !important; /* Balance line lengths to avoid lone words */
    max-width: 100% !important;
    padding: 0 8px !important; /* Add small padding to prevent edge clipping */
  }
  
  .icp-modal .form-options {
    gap: 12px !important;
    margin-bottom: 12px !important;
  }
  
  .icp-modal #icpForm {
    gap: 12px !important;
  }
  
  #icpForm input, #icpForm select {
    padding: 10px 14px !important;
    padding-right: 36px !important; /* Reserve space for arrow on mobile */
    font-size: 15px !important;
    margin: 0 0 8px 0 !important;
  }
  
  /* Ensure arrow is always visible on small screens - modern 2025 approach */
  #icpForm select {
    background-size: 14px !important; /* Slightly smaller arrow on mobile */
    background-position: right 10px center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    min-width: 0 !important; /* Allow shrinking in flex containers */
  }
  
  #icpForm button {
    padding: 14px 20px !important;
    font-size: 0.92rem !important;
    margin-top: 12px !important;
  }
  
  /* Fix PayPal button container on mobile */
  .payment-modal #paypal-button-container {
    min-height: auto;
    max-height: none;
    margin: 0 !important;
    overflow-y: visible;
  }
  
  /* Enforce consistent button heights on mobile */
  #paypal-button-container .paypal-buttons {
    min-height: 45px !important;
    max-height: none !important;  /* Allow expansion */
  }

  /* Removed iframe height restrictions that were hiding card forms */
  
  /* Ensure security badges fit in single line */
  .payment-security-info .security-badges {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .payment-security-info .badge {
    font-size: clamp(0.42rem, 0.7vw + 0.26rem, 0.54rem) !important;
    padding: clamp(2px, 0.45vw, 3px) clamp(5px, 0.9vw + 2px, 7px) !important;
    white-space: nowrap !important;
  }

  .payment-modal-header {
    padding: 4px 0 10px 0;
    gap: 12px;
  }

  .modal-back-btn {
    width: 36px;
    height: 36px;
  }
}

/* Tablet and medium screens: Ensure modal is centered */
@media (min-width: 541px) and (max-width: 1024px) {
  .tingle-modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
  }
  
  .tingle-modal-box {
    margin-top: auto !important;
    margin-bottom: auto !important;
    max-width: 600px !important;
  }
  
  .tingle-modal__close {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #1f2937 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }
  
  .tingle-modal__closeIcon svg path {
    fill: #1f2937 !important;
  }
  
  /* Fix gap between buttons and leads counter at 540-1024px */
  .payment-modal .tingle-modal-box__content {
    gap: 6px !important; /* Consistent spacing between elements */
  }
  
  .payment-modal:not(.card-form-active) #paypal-button-container {
    flex: 0 0 auto !important; /* Prevent expansion that causes large gap */
    min-height: auto !important; /* Remove min-height that creates gap */
    max-height: fit-content !important; /* Only take needed height */
    margin-bottom: 0 !important;
  }
  
  .payment-modal:not(.card-form-active) #leadsCountDisplay {
    margin-top: 4px !important; /* Consistent positive margin */
  }
  
  /* ICP Modal buttons - consistent width as inputs */
  .icp-modal .form-options {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
  }
  
  .icp-modal .form-options .btn-primary,
  .icp-modal .form-options .btn-outline {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .tingle-modal-box {
    margin: 16px !important;
    width: calc(100% - 32px) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  
  .tingle-modal-box__content {
    padding: 24px 20px;
  }
  
  /* Payment modal specific mobile rules */
  .payment-modal .tingle-modal-box {
    max-height: 90vh !important;
    overflow: hidden !important;
    /* Maintain center alignment on mobile */
    margin-top: auto !important;
    margin-bottom: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .payment-modal .tingle-modal-box__content {
    max-height: calc(90vh - 40px);
    overflow-y: auto;
    overflow-x: hidden !important;
    padding: 24px 20px;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .payment-modal .payment-subtitle {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  .payment-modal.card-form-active .tingle-modal-box__content {
    overflow-y: auto !important;
    max-height: calc(90vh - 40px) !important;
  }
  
  .payment-modal .payment-security {
    flex-direction: column;
    gap: 12px;
  }
  
  .payment-security-info .security-badges {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
    justify-content: center;
  }
  
  .payment-security-info .badge {
    font-size: clamp(0.44rem, 0.9vw + 0.28rem, 0.56rem);
    padding: 2px 6px;
  }
}

/* Mobile CTA sizing refinements (left aligned) */
@media (max-width: 420px){
  /* Mobile (≤420px): Consistent spacing between buttons */
  .hero-cta {
    gap: 6px !important; /* Consistent spacing between buttons (5-10px range) */
  }
  
  /* Mobile (≤420px): Base button styles - DO NOT set width here */
  .hero-cta .btn {
    margin: 0;
    align-self: flex-start;
    display: inline-flex !important; /* Force flex display for justify-content to work */
    white-space: nowrap !important; /* Never wrap text to 2 lines */
    overflow: visible; /* Allow text to be visible */
    font-size: clamp(0.8rem, 3.5vw, 0.95rem); /* Increased min font size - scales down on small screens but not too small */
  }
  
  /* Mobile (≤420px): btn-primary is 10% bigger than btn-secondary - MUST come after .btn rule */
  .hero-cta .btn-primary {
    width: 100% !important; /* Full width of container to fit text */
    max-width: 100% !important; /* Don't exceed container */
    min-width: fit-content !important; /* Ensure button is at least as wide as text */
    justify-content: flex-start !important; /* Force left alignment */
    text-align: left !important;
  }
  
  /* Mobile (≤420px): btn-secondary is 10% smaller than primary - MUST override .btn rule */
  .hero-cta .btn-secondary {
    width: 90.9% !important; /* Makes primary 10% bigger (100/90.9 = 1.1) - same as desktop */
    max-width: 90.9% !important; /* Don't exceed container */
    min-width: fit-content !important; /* Ensure button is at least as wide as text */
    margin: 10px 0 0 0;
    text-align: left !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 1024px){
  .hero{
    padding-top:clamp(36px,7vw,64px);
  }
  .hero-cta{
    margin-top:10px;
  }
}

@media (min-width: 769px) and (max-width: 1024px){
  .hero-cta{
    align-items:flex-start;
  }
  /* Tablet: Base button styles - DO NOT set width here */
  .hero-cta .btn {
    min-width: 0;
    padding: 14px 22px;
    margin: 0;
    align-self: flex-start;
    display: inline-flex !important; /* Force flex display for justify-content to work */
  }
  
  /* Tablet: Buttons match hero-copy text block width (not wider than text) */
  .hero-cta {
    max-width: 100% !important; /* Match hero-copy width */
    width: 100% !important;
  }
  
  .hero-cta .btn-primary {
    width: 100% !important; /* Match text block width */
    max-width: 100% !important; /* Don't exceed text block */
    justify-content: flex-start !important; /* Force left alignment */
    text-align: left !important;
    align-items: center !important; /* Ensure icon alignment */
  }
  
  /* Tablet: Calculate by making primary bigger - secondary is 90.9%, primary is 100% */
  .hero-cta .btn-secondary {
    width: 90.9% !important; /* Base width - 10% smaller than primary (100/90.9 = 1.1) */
    max-width: 90.9% !important; /* Don't exceed text block */
    min-width: auto !important;
    margin-left: 0;
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: center !important; /* Ensure icon alignment */
  }
  
  .hero-cta .btn-primary {
    width: 100% !important; /* 10% bigger than secondary (100/90.9 = 1.1) - matches text block width */
    max-width: 100% !important; /* Don't exceed text block */
  }
}

@media (max-width: 375px) {
  /* ICP Modal subtitle - iPhone SE specific fix */
  .icp-modal p {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-wrap: balance !important;
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 12px !important;
  }
  
  .icp-modal .tingle-modal-box__content {
    padding: 12px 10px !important; /* Reduced for mobile height optimization */
    max-height: calc(100dvh - 60px) !important; /* Increased available height */
    gap: 6px !important; /* Reduced gap between elements */
  }
  
  .payment-modal:not(.card-form-active) .tingle-modal-box__content {
    padding: 12px 10px !important; /* Reduced for mobile height optimization */
    max-height: calc(100dvh - 60px) !important; /* Increased available height */
    gap: 6px !important; /* Reduced gap between elements */
  }

  .payment-modal-header {
    padding: 10px 0 14px 0 !important; /* Consistent spacing on mobile */
    min-height: 70px !important; /* Ensure header always has enough space */
  }

  .payment-modal h2 {
    font-size: clamp(0.95rem, 4.6vw, 1.12rem);
    margin-top: 0 !important; /* Spacing handled by header padding */
    margin-bottom: 6px !important; /* Consistent spacing below h2 */
  }

  .payment-modal .payment-subtitle {
    font-size: clamp(0.68rem, 3.4vw, 0.82rem);
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-wrap: balance !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    margin: 0 !important; /* Spacing handled by header padding */
  }
  
  .payment-modal-titles {
    gap: 5px !important; /* Slightly reduced gap on very small screens */
  }
  
  .icp-modal h2 {
    font-size: 1.1rem !important;
    margin-bottom: 4px !important; /* Reduced */
    margin-top: 4px !important; /* Reduced top spacing */
  }
  
  .icp-modal p {
    font-size: 0.85rem !important; /* Slightly bigger since it will wrap to 2 lines */
    line-height: 1.4 !important; /* Better line spacing for 2 lines */
    margin-bottom: 4px !important; /* Reduced */
    white-space: normal !important; /* Allow wrapping */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .icp-modal .form-options {
    gap: 8px !important; /* Reduced for mobile height optimization */
    margin-bottom: 8px !important; /* Reduced for mobile height optimization */
  }
  
  .icp-modal #icpForm {
    gap: 8px !important; /* Reduced for mobile height optimization */
  }
  
  /* Reduce spacing on top of back button in ICP */
  .icp-modal .modal-back-btn {
    margin-top: 4px !important; /* Reduced spacing */
  }
  
  /* Pricing section spacing - iPhone SE specific */
  #pricing {
    padding-top: 15px !important; /* Minimal top padding for scroll target */
    scroll-margin-top: 0 !important;
  }
  
  #pricing .section-title {
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  #pricing .section-subtitle {
    margin-bottom: 10px !important;
    margin-top: 0 !important;
  }
  
  /* Removed duplicate margin rule - handled by main rule */
  
  /* Trust section spacing - iPhone SE specific */
  .trust-signals {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  
  .trust-grid {
    gap: 16px !important;
  }
  
  /* ICP Modal subtitle - ensure proper wrapping on iPhone SE */
  .icp-modal p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-wrap: balance !important;
    max-width: calc(100% - 16px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 8px !important;
  }

  .payment-modal #paypal-button-container {
    gap: 10px;
  }

  .payment-modal .promo-code-section {
    padding: 10px 12px;
    margin-top: 8px;
  }
}

/* Desktop hero grid alignment refinement */
@media (min-width: 1024px){
  .hero-grid{align-items:center;column-gap:40px}
  /* Desktop: btn-primary is 5-10% bigger than btn-secondary */
  .hero-cta .btn-primary {
    width: 80% !important; /* 20% smaller than full width, but still 10% bigger than secondary */
    max-width: 80% !important;
    align-items: center !important; /* Ensure icon alignment */
  }
  
  .hero-cta .btn-secondary{
    width: 72.7% !important; /* Makes primary exactly 10% bigger (80/72.7 = 1.1) */
    max-width: 72.7% !important;
    padding: 16px 24px;
    font-size: 1.05rem;
    min-width: auto;
    align-items: center !important; /* Ensure icon alignment */
    text-align: left;
    justify-content: flex-start;
  }
  /* Desktop: Top-align process step paragraphs to highest, center horizontally */
  .process-step{align-items:flex-start;text-align:center}
  .process-step p{align-self:center;margin-top:0;text-align:center}
  .process-note{align-self:center;margin-top:auto}
  /* Desktop: Top-align trust cards text to highest, center horizontally */
  .trust-item{align-items:flex-start;text-align:center}
  .trust-item p{text-align:center}
  /* Desktop pricing cards: center everything, equalize rows */
  .pricing-card{align-items:center;text-align:center}
  .pricing-card h3{min-height:2.2rem}
  .pricing-card .price{display:flex;justify-content:center;align-items:flex-end;min-height:2.6rem}
  .pricing-card .btn{width:240px}
  /* Desktop process grid: lock heading height so paragraph tops align */
  .process-step h3{min-height:56px}
  /* Desktop: Top-align italic pricing labels to highest, 40% thinner, centered */
  .pricing-card .pricing-subtext{
    text-align:center;
    align-self:center;
    margin-top:0;
    margin-left:auto;
    margin-right:auto;
    max-width:28.8ch; /* 40% thinner: 48ch * 0.6 = 28.8ch */
  }
  /* Desktop: Fix validation button alignment (restore from mobile changes) */
  #freeValidationForm .btn{margin-top:0;align-self:stretch}
}

/* ============================================================================
   Reusable Component: .limited-offer-banner
   ============================================================================
   Promotional banner component. Width automatically matches pricing card width
   on all breakpoints. Can be copied to other projects.
   Adjust colors/gradients in the background property for project-specific branding.
   ============================================================================ */
.limited-offer-banner {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--banner-padding-mobile);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Width, max-width, margin controlled by media queries to avoid conflicts */
}

.limited-offer-banner i {
  margin-right: 8px;
  color: #fbbf24;
}

.pricing-card .btn{
  margin-top:auto;
  margin-left:auto;
  margin-right:auto;
  display:inline-flex;
  justify-content:center;
  width:min(280px,90%);
  max-width:280px;
}

/* Tablet and Mobile: Banner width and positioning */
/* At max-width 1024px, pricing cards are single column (100% width) */
@media (max-width: 1024px){
  .pricing>.container{
    display:flex;
    flex-direction:column;
    gap:16px;
    align-items:stretch;
  }
  .pricing-cards{
    order:4; /* After banner (order: 3) */
    grid-template-columns: 1fr; /* Single column - each card is 100% width */
  }
  
  /* Banner: exactly 10% wider than pricing card, centered, never overflow screen */
  /* Pricing card is 100% of container content width */
  /* Banner should be 110% of container content width, constrained to viewport */
  #pricing .limited-offer-banner{
    order: 3; /* After subtitle (order: 2), before cards (order: 4) */
    /* Calculate: container content width * 1.1 = exactly 10% wider than card */
    /* Constrain to viewport accounting for container padding (16px each side = 32px total on mobile) */
    /* Note: Tablet (769-1024px) uses 60px total - see tablet-specific rule below */
    width: calc(100% * var(--banner-width-multiplier));
    max-width: min(calc(100% * var(--banner-width-multiplier)), calc(100vw - 32px));
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
    margin-bottom: 12px;
    box-sizing: border-box;
  }

  /* Responsive typography */
  .limited-offer-banner {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: clamp(0.75rem, 1.4vw + 0.35rem, 0.9rem);
    padding: var(--banner-padding-tablet);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Tablet specific: ensure banner doesn't exceed viewport and stays centered */
@media (min-width: 769px) and (max-width: 1024px) {
  #pricing .limited-offer-banner {
    /* Banner is 110% of container content width */
    /* Constrain to viewport accounting for container padding (30px each side = 60px total) */
    width: calc(100% * var(--banner-width-multiplier));
    max-width: min(calc(100% * var(--banner-width-multiplier)), calc(100vw - 60px));
    margin-left: auto;
    margin-right: auto;
  }
}

/* Small mobile (< 600px): Banner matches card width exactly (100%) */
@media (max-width: 599px) {
  #pricing .limited-offer-banner {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Small mobile (≤480px): Adjusted padding only */
@media (max-width: 480px) {
  .limited-offer-banner {
    font-size: clamp(0.7rem, 3.5vw, 0.85rem);
    padding: var(--banner-padding-mobile-small);
  }
}

/* Promo Code Section */
.promo-code-section {
  margin-top: 0;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #f8f9fa;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  border: 1px solid #e9ecef;
}

/* Mobile specific reduction */
@media (max-width: 768px) {
  .promo-code-section {
    margin-top: 12px;
    padding-top: 12px;
    padding: 12px;
  }
}

.promo-code-input-group {
  display: flex;
  gap: 4px; /* Consistent spacing */
  margin-bottom: 4px; /* Consistent spacing - matches other elements */
  justify-content: center;
  align-items: stretch;
  width: 100%; /* Match ICP form input width */
  max-width: 100%;
}

.promo-code-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
  height: 48px;
  min-width: 0; /* Allow flex item to shrink */
}

.promo-code-input:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.apply-promo-btn {
  padding: 0 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  height: 48px; /* Match input height */
  min-height: 48px;
  white-space: nowrap; /* Prevent text wrapping */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.apply-promo-btn:hover {
  background: #0056b3;
}

.apply-promo-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.promo-code-message {
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
  transition: opacity 0.3s, transform 0.3s;
  /* Match landing page card styling */
}

.promo-message-close {
  flex-shrink: 0;
}

.promo-message-close:hover {
  opacity: 1 !important;
}

/* Single line on tablets/desktop */
@media (min-width: 768px) {
  .promo-code-message {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
    font-size: clamp(0.8rem, 1.2vw + 0.4rem, 0.9rem);
  }
}

/* Allow 2-line wrap on mobile only */
@media (max-width: 767px) {
  .promo-code-message {
    white-space: normal;
    line-height: 1.4;
    font-size: 0.85rem;
  }
}

.promo-code-message i {
  font-size: 1rem;
  flex-shrink: 0;
}

.promo-code-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  /* Match #freeValidationResult .card.success styling */
}

.promo-code-message.success i {
  color: #10b981;
}

.promo-code-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  /* Match landing page error styling */
}

.promo-code-message.error i {
  color: #ef4444;
}

.promo-code-message.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  /* Match landing page info styling */
}

.promo-code-message.info i {
  color: #2563eb;
}

/* Leads Count Display */
/* Free Order Security Info */
.free-order-security {
  margin: 16px 0 8px 0 !important;
}

.leads-count-display {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 4px 0; /* Reduced from 8px 0 4px 0 to match spacing pattern */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #374151;
}

.leads-count-display i {
  color: #2563eb;
  font-size: 1.1rem;
}

.leads-count-display strong {
  color: #1f2937;
  font-weight: 600;
}

/* Modal Back Button Styling */
.modal-back-btn {
  position: relative;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
  z-index: 10;
  margin-right: auto;
}

.modal-back-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.modal-back-btn:active {
  transform: scale(0.96);
}

.modal-back-btn i {
  font-size: 14px;
}

/* Promo Code Section in ICP Modal */
.promo-code-section-icp {
  margin-top: 16px;
  margin-bottom: 8px;
}

.promo-code-section-icp .promo-code-input {
  width: 100%;
}

/* Mobile responsive promo code */
@media (max-width: 540px) {
  .promo-code-input-group {
    flex-direction: column;
    width: 100%;
  }
  
  .apply-promo-btn {
    width: 100%;
    min-height: 48px;
  }

  .promo-code-input {
    width: 100%;
  }
}

/* Testimonial Modal */
.testimonial-modal .tingle-modal-box {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.testimonial-content {
  padding: 20px;
}

.testimonial-content h2 {
  color: #28a745;
  margin-bottom: 10px;
  text-align: center;
}

.testimonial-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.testimonial-form {
  margin-bottom: 30px;
}

.rating-section {
  margin-bottom: 25px;
}

.rating-section label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #333;
}

.star-rating {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  font-size: 30px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
  margin: 0;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
  color: #ffc107;
}

.feedback-section {
  margin-bottom: 25px;
}

.feedback-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.feedback-section textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.feedback-section textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.contact-section {
  margin-bottom: 25px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.testimonial-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.testimonial-actions .btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.testimonial-actions .btn-primary {
  background: #007bff;
  color: white;
  border: none;
}

.testimonial-actions .btn-primary:hover {
  background: #0056b3;
}

.testimonial-actions .btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
}

.testimonial-actions .btn-secondary:hover {
  background: #545b62;
}

.download-section {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.download-text {
  margin-bottom: 15px;
  color: #333;
  font-weight: 500;
}

.download-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.download-btn:hover {
  background: #218838;
  color: white;
  text-decoration: none;
}

/* Mobile responsive testimonial */
@media (max-width: 540px) {
  .testimonial-modal .tingle-modal-box {
    max-width: 95vw;
    margin: 10px;
  }
  
  .testimonial-content {
    padding: 15px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .testimonial-actions {
    flex-direction: column;
  }
  
  .testimonial-actions .btn {
    width: 100%;
  }
  
  .star-rating label {
    font-size: 25px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    align-items: flex-start;
    gap: 6px; /* Consistent spacing between buttons (5-10px range) */
  }

  .hero-cta .btn {
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 12px 20px;
    justify-content: center;
    text-align: center;
    align-self: flex-start;
  }

  .hero-cta .btn i {
    margin-right: 8px;
  }

  /* Large Desktop: btn-primary is 5-10% bigger than btn-secondary */
  .hero-cta .btn-primary {
    width: 80% !important; /* 20% smaller than full width, but still 10% bigger than secondary */
    max-width: 80% !important;
    align-items: center !important; /* Ensure icon alignment */
  }
  
  .hero-cta .btn-secondary {
    width: 72.7% !important; /* Makes primary exactly 10% bigger (80/72.7 = 1.1) */
    max-width: 72.7% !important;
    min-width: auto;
    margin-left: 0;
    text-align: left;
    align-items: center !important; /* Ensure icon alignment */
    justify-content: flex-start;
  }
}

/* Free Order Form Styles */
.free-order-form {
  width: 100%;
  padding: 20px 0;
  overflow: visible; /* Ensure button is not clipped */
  position: relative; /* For proper stacking */
}

.free-order-info {
  margin-bottom: 24px;
}

.free-order-info p {
  margin: 0;
  line-height: 1.5;
}

.free-order-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mobile spacing reduction - Optimized for viewport height */
@media (max-width: 767px) {
  .free-order-form {
    padding: 8px 0 !important; /* Aggressively reduced from 20px 0 */
  }
  
  .free-order-info {
    margin-bottom: 8px !important; /* Reduced from 24px */
  }
  
  .free-order-info p {
    margin-bottom: 4px !important; /* Aggressively reduced spacing */
    font-size: 12px !important; /* Smaller font */
    line-height: 1.4 !important; /* Tighter line height */
  }
  
  .free-order-form form {
    gap: 8px !important; /* Reduced from 16px */
  }
  
  .free-order-form label {
    margin-bottom: 3px !important; /* Reduced */
    font-size: 12px !important; /* Smaller */
  }
  
  .free-order-form input[type="email"],
  .free-order-form input[type="text"] {
    padding: 10px 12px !important; /* Reduced padding */
    font-size: 15px !important;
    margin-bottom: 0 !important; /* Remove extra margin */
  }
  
  .free-order-form button[type="submit"] {
    padding: 12px 20px !important; /* Reduced padding */
    margin-top: 2px !important; /* Aggressively reduced top margin */
    font-size: 14px !important; /* Slightly smaller */
  }
  
  .free-order-security {
    margin-top: 6px !important; /* Aggressively reduced */
    margin-bottom: 4px !important; /* Aggressively reduced */
    font-size: 10px !important; /* Smaller */
    line-height: 1.3 !important; /* Tighter line height */
  }
}

/* iPhone SE specific - further reduction */
@media (max-width: 375px) {
  .payment-modal .tingle-modal-box__content {
    gap: 6px !important; /* Even more aggressive on very small screens */
    padding: 10px 10px 12px 10px !important; /* Further reduced padding */
  }
  
  .free-order-form {
    padding: 6px 0 !important; /* Aggressively reduced */
  }
  
  .free-order-info {
    margin-bottom: 6px !important; /* Further reduced */
  }
  
  .free-order-info p {
    font-size: 11px !important; /* Even smaller */
    margin-bottom: 3px !important;
  }
  
  .free-order-form form {
    gap: 6px !important; /* Further reduced */
  }
  
  .free-order-form label {
    font-size: 11px !important; /* Smaller */
    margin-bottom: 2px !important;
  }
  
  .free-order-form input[type="email"],
  .free-order-form input[type="text"] {
    padding: 9px 10px !important; /* Further reduced */
    font-size: 14px !important;
  }
  
  .free-order-form button[type="submit"] {
    padding: 11px 18px !important; /* Further reduced */
    font-size: 13px !important; /* Smaller */
  }
  
  .free-order-security {
    margin-top: 4px !important;
    margin-bottom: 2px !important;
    font-size: 9px !important; /* Even smaller */
  }
  
  /* Further reduce other elements */
  .price-display {
    padding: 8px 10px !important;
    margin: 0 0 4px 0 !important;
    font-size: clamp(0.8rem, 3vw + 0.3rem, 0.95rem) !important;
  }
  
  .leads-count-display {
    padding: 5px 8px !important;
    margin: 1px 0 !important;
    font-size: 0.75rem !important;
  }
  
  .promo-code-section {
    padding: 6px 8px !important;
    margin-top: 2px !important;
  }
}

/* Tablet optimizations - fit within viewport height */
@media (min-width: 768px) and (max-width: 1024px) {
  .payment-modal .tingle-modal-box__content {
    gap: 10px !important; /* Reduced gap for tablet */
    padding: 16px 16px 20px 16px !important; /* Reduced padding */
    max-height: calc(100dvh - 70px) !important; /* Optimized height */
  }
  
  .payment-modal-header {
    padding: 10px 0 12px 0 !important; /* Reduced header padding */
    min-height: 65px !important; /* Slightly reduced */
  }
  
  .free-order-form {
    padding: 10px 0 !important; /* Reduced padding */
  }
  
  .free-order-info {
    margin-bottom: 10px !important; /* Reduced margin */
  }
  
  .free-order-form form {
    gap: 10px !important; /* Reduced gap */
  }
  
  .price-display {
    padding: 10px 14px !important; /* Slightly reduced */
    margin: 0 0 6px 0 !important;
  }
  
  .leads-count-display {
    padding: 6px 10px !important;
    margin: 2px 0 !important;
  }
  
  .promo-code-section {
    padding: 8px 10px !important;
    margin-top: 4px !important;
  }
  
  .payment-security-info {
    padding: 8px 12px !important; /* Reduced padding */
    margin-top: 4px !important;
  }
}

/* Desktop specific fixes */
@media (min-width: 1025px) {
  .free-order-form {
    max-width: 100%;
    overflow: visible;
  }
  
  .free-order-form button[type="submit"] {
    position: relative;
    z-index: 1;
    visibility: visible !important;
    display: block !important;
  }
  
  #paypal-button-container {
    overflow: visible;
    min-height: auto;
  }
}

.free-order-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.free-order-form input[type="email"],
.free-order-form input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.free-order-form input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.free-order-form button[type="submit"] {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}

.free-order-form button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.free-order-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Processing Modal Styles */
.processing-modal .tingle-modal-box {
  max-width: 500px;
  width: 90%;
}

.processing-content {
  text-align: center;
  padding: 40px 20px;
}

.processing-spinner {
  margin: 0 auto 24px;
  width: 64px;
  height: 64px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.processing-progress {
  margin-top: 24px;
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  width: 0%;
  transition: width 0.3s ease;
}