/* Mobile-specific fixes for Ascensa landing page */
@media (max-width: 767px) {
  /* Improve general spacing */
  .container {
    padding: 0 16px;
  }
  
  /* Hero section improvements */
  .hero {
    padding: 150px 0 60px;
    min-height: auto;
    text-align: center;
  }
  
  .hero .container {
    flex-direction: column;
    gap: 30px;
    min-height: auto;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
  }
  
  .hero-content {
    text-align: center;
    padding: 0 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-content h1 {
    font-size: 2.5rem !important;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 100%;
    text-align: center;
  }
  
  .hero-content p {
    font-size: 1rem !important;
    margin-bottom: 24px;
    max-width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Hero image improvements */
  .hero-image {
    width: 90%;
    margin: 0 auto;
    padding: 15px 0;
    display: flex;
    justify-content: center;
  }
  
  .product-image {
    max-height: 350px !important;
    margin: 0 auto;
    transform: scale(1.15);
  }
  
  /* Form improvements */
  .notify-form {
    max-width: 100% !important;
    margin: 0 auto;
    width: 90%;
    padding: 0;
  }
  
  .form-row {
    flex-direction: column;
    width: 100%;
    margin-bottom: 0; /* Reset the desktop margin */
  }
  
  .notify-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px; /* Add spacing between inputs on mobile */
    font-size: 16px; /* Prevent zoom on iOS */
    border-radius: 10px;
  }
  
  .cta-button {
    width: 100% !important;
    padding: 14px 16px;
    margin-top: 20px; /* Increased spacing between inputs and button */
    font-size: 16px;
    border-radius: 10px;
  }
  
  /* Specific styling for the join form */
  .join-form input {
    margin-bottom: 16px;
  }
  
  .join-form .cta-button {
    margin-top: 24px; /* Increased spacing for join form button */
  }
  
  /* Improve text alignment for hero section */
  .coming-soon {
    text-align: center;
    width: 100%;
    margin-top: 15px;
  }
  
  /* Make the logo and header better on mobile */
  .logo {
    height: 40px;
    width: auto;
  }
  
  .brand-name {
    font-size: 1.1rem;
  }
  
  /* Adjust spacing for ingredients cards */
  .ingredient-card {
    margin-bottom: 16px;
    padding: 16px;
  }
  
  /* Fix modal display on mobile */
  .modal-container {
    width: 95% !important;
    margin: 0 auto;
  }
  
  /* Improve benefits section layout */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Fix footer spacing */
  .footer-content {
    text-align: center;
    padding: 20px 0;
  }
  
  /* Ensure Join Movement section is centered on mobile */
  .join-content {
    text-align: center !important;
    padding: 0 15px;
  }
  
  .join-form {
    margin: 30px auto !important;
  }
  
  .early-benefits {
    text-align: center !important;
    margin-top: 20px;
  }
}

/* Fix zoom issues on iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) { 
  select,
  textarea,
  input[type="text"],
  input[type="email"] {
    font-size: 16px !important; 
  }
}

/* Ensure canvas-confetti shows up properly on mobile devices */
canvas.confetti-canvas {
  position: fixed !important;
  z-index: 999 !important;
  top: 0 !important;
  left: 0 !important;
  pointer-events: none !important; /* Allow interaction with elements below */
  width: 100% !important;
  height: 100% !important;
}
