/* Modern mobile navigation styles */
@media only screen and (max-width: 767px) {
  body {
    padding-top: 95px; /* Increased from 60px to accommodate header elements */
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    background: #f8f9fa;
  }
  
  /* Sleek mobile header */
  .mobile-financing {
    background-color: #296AB1;
    color: white;
    text-align: center;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    font-size: 14px;
    letter-spacing: 0.5px;
  }
  
  .mobile-financing a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
  }
  
  .mobile-nav.burger {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: fixed;
    top: 35px; /* Position right below financing bar */
    left: 0;
    width: 100%;
    z-index: 999;
    height: 40px; /* Set explicit height for the menu bar */
  }
  
  /* Modern burger menu */
  .burger span {
    color: #333 !important;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1px;
  }
  
  .inner-burger div {
    width: 22px;
    height: 2px;
    background-color: #333 !important;
    margin: 4px 0;
    transition: all 0.3s ease;
  }
  
  /* Clean logo presentation - Reduced top spacing */
  .logo.mobile {
    text-align: center;
    padding: 15px;
    background-color: white;
    position: relative;
    z-index: 997;
    margin-top: 95px; /* Increased from 60px to match body padding */
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    display: block;
  }
  
  .logo.mobile img {
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  
  /* Modern mobile menu */
  .nav-links {
    background-color: white;
    position: fixed;
    top: 75px; /* Should be equal to financing bar (35px) + menu bar height (40px) */
    left: 0;
    width: 100%;
    height: calc(100vh - 75px);
    z-index: 998;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    margin: 0; /* Remove any margins */
    padding: 0; /* Remove any padding */
    border-top: 1px solid #f0f0f0; /* Optional: adds a subtle separator */
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links ul {
    margin: 0;
    padding: 0;
  }
  
  .nav-links ul li:first-child {
    margin-top: 0;
  }
  
  .nav-links ul li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .nav-links ul li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
  }
  
  .nav-links ul li:last-child {
    border-bottom: none;
  }
  
  /* Modern header styling */
  .mobile-header {
    background: white;
    padding: 0;
    margin-top: 0; /* Remove top margin since logo has margin */
  }
  
  .header-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
  }
  
  .header-bg {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
  
  .header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
  }
  
  .header-content h1 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 80px 0px 0px 0px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  
  /* Modern action buttons */
  .header-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
  }
  
  .action-btn {
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
  }
  
  .call-btn {
    background-color: #EA1C24;
    color: white;
  }
  
  .quote-btn {
    background-color: #296AB1;
    color: white;
  }
  
  /* Modern testimonials section */
  .testimonials {
    background: white;
    padding: 30px 20px;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  }
  
  .testimonials h2 {
    color: #333;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .testimonials p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
  }

  /* Secondary Page Specific Styles */
  .secondary-page {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .secondary-page-banner {
    margin-top: 75px; /* Increased from 20px to 75px for more space */
    padding: 60px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
  }

  .secondary-page-banner h1 {
    font-size: 28px;
    color: white;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .secondary-page-intro {
    padding: 30px 20px;
    background: white;
  }

  .secondary-page-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
  }

  /* Content Sections */
  .secondary-page-container {
    padding: 20px;
    background: white;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
  }

  .secondary-page-info {
    order: 2;
    width: 100%;
  }

  .secondary-page-img {
    order: 1;
    width: 100%;
  }

  .secondary-page-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* Other Services Section */
  .secondary-page-info-header {
    background: white;
    margin: auto;
   justify-content: center;
   text-align: center;
  }

  .secondary-page-info-header h3 {
    font-size: 28px;
    color: #333;
    text-align: center;
    font-weight: 600;
  }

  /* Remove unnecessary containers */
  .f5-container {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* Other Services Grid */
  .other-services {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
  }

  .other-services-block {
    width: 100%;
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .other-services-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
  }

  .other-services-block a {
    position: relative;
    z-index: 2;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    letter-spacing: 0.5px;
  }

  /* Remove any inline styles from HTML */
  /* .secondary-page-info-header[style],
  .other-services-block[style] {
    margin: 0 !important;
  } */

  /* Remove unnecessary breaks */
  br {
    display: none;
  }

  /* Contact Form Container - FIXED STRETCHING */
  .contact-form-section {
    padding: 40px 20px;
    background: white;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .contact-form-body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* Form Headers */
  .get-in-touch {
    color: #296AB1;
    font-size: 32px;
    text-align: center;
    margin: 0 0 10px 0;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .reach-out {
    color: #666;
    font-size: 16px;
    text-align: center;
    margin: 0 0 40px 0;
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* Form Fields - FIXED STRETCHING */
  .form-group {
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px 0;
    padding: 0;
    box-sizing: border-box;
  }

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

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    box-sizing: border-box;
    margin: 0;
  }

  textarea {
    min-height: 120px;
    resize: vertical;
  }

  input:focus,
  textarea:focus {
    outline: none;
    border-color: #296AB1;
    box-shadow: 0 0 0 2px rgba(41, 106, 177, 0.1);
  }

  /* File Upload - FIXED STRETCHING */
  .file-upload-container {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    padding: 0;
    box-sizing: border-box;
  }

  .file-upload-label {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: black;
    box-sizing: border-box;
  }

  .file-upload-label i {
    margin-right: 8px;
    color: #296AB1;
  }

  /* Submit Button - FIXED STRETCHING */
  .submit-btn {
    width: 100%;
    max-width: 100%;
    margin: 20px 0 0 0;
    padding: 0;
    box-sizing: border-box;
  }

  .submit-btn button {
    width: 100%;
    padding: 16px;
    background: #296AB1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-sizing: border-box;
  }

  .submit-btn button:active {
    background: #1f5490;
  }

  /* Placeholder Styling */
  ::placeholder {
    color: #bbb;
    font-size: 15px;
  }

  /* Footer Styling */
  footer {
    padding: 30px 20px;
    text-align: center;
    background: #296AB1;
    color: white;
  }

  footer a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
  }

  footer p {
    margin: 5px 0;
    font-size: 16px;
  }

  /* Reset any potential container constraints */
  body, 
  .secondary-page,
  .other-services,
  .other-services-block {
    min-width: 100%;
    max-width: 100%;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  /* Other Services Header */
  .secondary-page-info-header {
    background: white;
  }

  .secondary-page-info-header h3 {
    font-size: 28px;
    color: #333;
    text-align: center;
    font-weight: 600;
  }

  /* Remove ALL container margins and padding */
  .f5-container,
  .secondary-page-info-header > div,
  section {
    width: 100vw;
    margin: 0;
    padding: 0;
  }

  /* Other Services Grid */
  .other-services {
    display: flex;
    flex-direction: column;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
  }

  .other-services-block {
    width: 100vw;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
  }

  .other-services-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
  }

  .other-services-block a {
    position: relative;
    z-index: 2;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* Remove any potential inline styles */
  [style*="margin"],
  [style*="width"],
  [style*="padding"] {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Override any potential conflicting styles */
  .mobile-nav,
  .mobile-nav.burger,
  .nav-links,
  .nav-links ul,
  .nav-links ul li,
  .nav-links ul li a {
    background-color: white !important;
    color: #333 !important;
  }
} 