/* Mobile optimization styles - Fix horizontal scrolling and process section */
@media (max-width: 768px) {
  /* Fix viewport width issues */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  /* Header improvements for mobile */
  .header {
    padding: 15px 0;
  }
  
  .header-container {
    padding: 0 5px;
  }
  
  .logo img {
    height: 40px;
  }
  
  /* Book a Call button in header - mobile optimization */
  .nav-cta .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  /* Hero section improvements */
  .hero {
    padding: 120px 0 60px;
    width: 100%;
    overflow-x: hidden;
  }
  
  .hero-content {
    gap: 20px;
    width: 100%;
  }
  
  .hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    word-wrap: break-word;
    text-align: center;
  }
  
  .hero-text p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
  }
  
  .available-times {
    text-align: center;
    margin: 0 auto;
  }
  
  /* Fix video container */
  .hero-video {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero-video iframe {
    max-width: 100%;
  }
  
  /* Badge container fixes */
  .badges-container {
    gap: 30px;
    margin: 40px auto 10px;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .badge {
    max-width: 80px;
  }
  
  /* Process section improvements - ENHANCED */
  .process {
    width: 100%;
    overflow-x: hidden;
    padding: 0;
  }
  
  .process-container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  .process-grid {
    display: block !important;
    width: 100%;
    grid-template-columns: none !important;
    grid-gap: 0 !important;
  }
  
  .process-step {
    display: block !important;
    padding: 15px;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 0 20px 0 !important;
    float: none !important;
    position: static !important;
    grid-column: auto !important;
    clear: both !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .process-step-number {
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    min-width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
  }
  
  .process-step-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .process-step-title {
    font-size: 1.1rem;
    line-height: 1.3;
    width: calc(100% - 45px);
    word-wrap: break-word;
  }
  
  .process-step-content {
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-left: 0;
    padding-left: 45px;
    box-sizing: border-box;
  }
  
  /* Special handling for step 13 that spans multiple columns */
  .process-step[data-step="13"] {
    width: 100%;
    grid-column: auto;
  }
  
  /* Calculator section improvements */
  
  /* Funnel section improvements */
  .funnel {
    width: 100%;
    overflow-x: hidden;
  }
  
  .funnel-content {
    width: 100%;
    box-sizing: border-box;
  }
  
  .funnel-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .funnel-text h2, 
  .funnel-text h3, 
  .funnel-text p {
    text-align: center;
    width: 100%;
  }  
  .calculator-result .result-value {
    font-size: 2.2rem;
  }
  
  /* CTA section improvements */
  .cta {
    width: 100%;
    overflow-x: hidden;
  }
  
  .cta-option {
    padding: 20px 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .cta-option .btn {
    font-size: 1.2rem;
    padding: 12px 30px;
    margin-bottom: 20px;
    max-width: 100%;
  }
  
  /* Calendly widget improvements */
  .calendly-inline-widget {
    height: 600px !important;
    min-width: 280px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  /* Container fixes */
  .container {
    width: 95%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  /* Fix all sections */
  section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }
  
  /* Fix grid layouts */
  .grid, .grid-3, .grid-2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }
  
  .grid-item {
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Specific fix for process step 3 */
  .process-step:nth-child(3) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    z-index: 1 !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  /* Further shrink Book a Call button for very small screens */
  .nav-cta .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .badges-container {
    gap: 20px;
  }
  
  .badge {
    max-width: 70px;
  }
  
  .process-step-header {
    flex-direction: row;
    align-items: center;
  }
  
  .process-step-title {
    font-size: 1rem;
  }
  
  .process-step-content {
    font-size: 0.85rem;
    padding-left: 35px;
  }
  
  .included-item {
    padding: 20px 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .cta-option .btn {
    font-size: 1.1rem;
    padding: 10px 25px;
  }
  
  /* Fix video sizing */
  .hero-video iframe,
  .funnel-image iframe {
    height: 200px;
    max-width: 100%;
  }
  
  /* Improve spacing */
  .section {
    padding: 40px 0;
    width: 100%;
  }
  
  h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    word-wrap: break-word;
  }
  
  /* Fix all images */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Additional specific fixes for process steps */
  .process-step {
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
  }
}
