/* New Footer Styles from Figma - Refined with Debugging */

/* ... (previous font imports and .new-footer-section styles remain the same) ... */

/* --- Restoring styles for overlap --- */

.new-footer-section {
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
    padding: 0px;
    position: relative; /* Crucial for child z-index context */
    margin-top: 150px; /* Increased top margin for more space above footer */
    overflow: visible !important; /* Ensure this parent allows children to overlap its bounds */
  }

  .lead-capture-section {
    width: 100%;
    max-width: 1240px;
    background: #1583D0; /* Blue background */
    border-radius: 16px;
    margin: -170px auto 0 auto; /* Negative top margin for overlap, auto horizontal, 0 bottom */
    position: relative; /* Still needed for z-index */
    z-index: 1; /* To sit on top of main-footer */
    /* top: -170px; --- Removed */
    /* margin-left: auto; --- Handled by margin shorthand */
    /* margin-right: auto; --- Handled by margin shorthand */
    /* margin-bottom: 0; --- Handled by margin shorthand */
    padding: 49px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    color: #FFFFFF;
  }

  /* Decorative elements for Lead Capture - STILL COMMENTED OUT FOR NOW
  .lead-capture-section::before {
    content: '';
    position: absolute;
    width: 745.73px;
    height: 363px;
    left: calc(50% - 745.73px/2 - 0.14px);
    top: -103px;
    background: #E7E6E6;
    opacity: 0.1;
    filter: blur(150px);
    transform: rotate(0.06deg);
    z-index: -1;
    border-radius: 50%;
  }

  .lead-capture-pattern-1 {
    position: absolute;
    width: 1286.93px;
    height: 1262px;
    left: -848px;
    top: -123.23px;
    background: linear-gradient(129.38deg, rgba(255, 255, 255, 0) 24.67%, rgba(255, 255, 255, 0.2) 74.92%);
    opacity: 0.5;
    transform: rotate(-7.23deg);
    z-index: -1;
  }
  */

  .lead-capture-content {
    display: flex; 
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 27px;
    text-align: center;
    width: 100%;
    position: relative; /* Ensure it's in flow and for z-index */
    z-index: 2; /* Above decorative elements if they were active */
  }

  .lead-capture-section .lead-capture-content h2 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 48px;
    line-height: 61px;
    color: #FFFFFF !important; 
    margin: 0;
    display: block !important;
  }

  .lead-capture-section .lead-capture-content p {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #EBF1FD !important; 
    margin: 0;
    display: block !important;
  }

  .lead-capture-content .btn-secondary {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    gap: 10px;
    width: auto; 
    background: #FFFFFF !important; /* DEBUG */
    border: 2px solid #1583D0 !important; /* DEBUG */
    border-radius: 12px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #141414 !important; /* DEBUG */
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
  }
  .lead-capture-content .btn-secondary:hover {
      background-color: #f0f0f0 !important; /* DEBUG */
  }
  
  
  .lead-capture-features {
    display: flex;
    flex-direction: row;
    align-items: flex-start; 
    justify-content: center; 
    padding: 0px;
    gap: 60px; 
    margin-top: 40px; 
    flex-wrap: wrap; 
    position: relative; /* For the dashed line */
    z-index: 2; /* Above decorative elements */
  }
  
  /* Dashed line connecting feature items */
  .lead-capture-dashed-line-connector {
    position: absolute;
    height: 1px;
    border-top: 1px dashed #FFFFFF;
    top: 26px; /* Align with vertical center of 52px icons */
    left: 10%; /* Start after some padding or first icon */
    right: 10%; /* End before last icon or padding */
    width: 80%; /* Span across most of the feature items area */
    z-index: 1; /* Behind icons if they have higher z-index, but above background */
  }
  
  
  .feature-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 20px;
    width: 140px; 
    text-align: center;
    position: relative; /* So icon frame is relative to this */
    z-index: 2; /* Above dashed line */
  }
  
  .lead-capture-section .lead-capture-features .feature-item .feature-icon-frame {
    width: 52px;
    height: 52px;
    background: #1583D0 !important; /* DEBUG: Blue background */
    border: 3.54545px solid #FFFFFF !important; /* DEBUG: White border */
    border-radius: 63.8182px; 
    display: flex !important; /* DEBUG */
    justify-content: center !important; /* DEBUG */
    align-items: center !important; /* DEBUG */
    font-size: 24px !important; /* DEBUG: For Font Awesome icon size */
    color: #FFFFFF !important; /* DEBUG: White Icon */
    position: relative; /* Ensure it's part of the flow and z-index works */
    z-index: 2; /* Above dashed line */
  }
  
  .lead-capture-section .lead-capture-features .feature-item .feature-icon-frame i {
      color: #FFFFFF !important; /* DEBUG: Explicitly for the icon */
      display: inline-block !important; /* DEBUG */
      font-style: normal !important; /* DEBUG: Ensure FA styles apply */
      font-variant: normal !important; /* DEBUG */
      text-rendering: auto !important; /* DEBUG */
      -webkit-font-smoothing: antialiased !important; /* DEBUG */
  }
  
  .feature-item p {
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #C0D4FA !important; /* DEBUG */
    margin: 0;
  }
  
  /* Main Footer Content (Black Section) */
  .main-footer {
    width: 100%;
    background: #141414; /* Dark background */
    position: relative; /* Needed for z-index context */
    margin-top: -180px; /* Move black section significantly further up */
    padding-top: 180px; /* ADJUSTED: More space for lead-capture to overlap into, matching original */
    z-index: 0; /* To sit behind lead-capture-section */
    color: #FFFFFF; /* Default text color */
  }
  
  .footer-background-image {
    position: absolute;
    width: 100%; 
    height: 100%; 
    left: 0;
    top: 0; 
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.475) 98.27%), url('../images/bits_Background.jpg'), #000000; /* CHECK PATH */
    background-size: cover;
    background-position: center;
    z-index: -1; 
    opacity: 0.5; 
  }
  
  .footer-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding: 60px 20px 20px 20px; 
    gap: 31px;
    max-width: 1242px;
    margin: 0 auto; 
    position: relative; 
    z-index: 1;
  }
  
  .footer-top-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; /* Align items vertically */
    padding: 0px;
    gap: 48px; 
    width: 100%;
    flex-wrap: wrap; 
  }

  .footer-iso-logo img {
    max-width: 300px; /* Adjust size as needed */
    height: auto;
  }
  
  .footer-logo-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1; 
    min-width: 280px; 
  }
  
  .footer-logo {
    width: 165px;
    height: 49.5px;
    object-fit: contain;
    display: block !important; /* DEBUG: Ensure image displays if path is correct */
  }
  
  .footer-logo-cta p {
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 26px;
    color: #B2B2B2; 
    margin: 0;
  }

  .footer-company-name {
    white-space: nowrap;
  }
  
  .footer-logo-cta .btn-primary { 
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    gap: 10px;
    background: #3573EE; 
    border: 1px solid #3069D9;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.3s;
  }
  .footer-logo-cta .btn-primary:hover {
      background-color: #2a62d0;
  }
  
  .footer-links-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start; 
    padding: 0px;
    gap: 40px;
    flex-wrap: wrap; 
  }
  
  .footer-links-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: flex-start;
    padding: 0px;
    gap: 20px;
    min-width: 100px; 
  }
  
  .footer-links-column p { 
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #FFFFFF;
    margin: 0;
    cursor: pointer; 
    text-decoration: none; 
  }
  .footer-links-column p a {
    color: #B2B2B2;
    text-decoration: none;
  }

  .footer-links-column p:hover a {
      color: #FFFFFF; 
  }

  .footer-links-column p:hover {
      color: #B2B2B2; 
  }
  
  
  .footer-contact-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start; 
    padding: 20px 0; 
    gap: 24px;
    width: 100%;
    flex-wrap: wrap; 
  }
  
  .contact-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start; 
    padding: 0px;
    gap: 8px;
    flex: 1; 
    min-width: 200px; 
  }
  
  .contact-item > i { /* Styling for Font Awesome icons */
      font-size: 16px !important; /* DEBUG */
      color: #EEEEEE !important; /* DEBUG */
      margin-top: 2px;
      width: 20px; /* Ensure space for icon */
      text-align: center;
  }
  
  
  .contact-item > div { /* Text block next to icon */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 4px;
  }
  
  .contact-label {
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #B2B2B2; 
    margin: 0;
  }
  
  .contact-item p:not(.contact-label) {
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: #FFFFFF;
    margin: 0;
  }
  
  .footer-divider {
    width: 100%; 
    height: 0px;
    border: none;
    border-top: 0.5px solid #797979; 
    margin: 20px 0; 
  }
  
  .footer-bottom-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    gap: 24px; 
    width: 100%;
    flex-wrap: wrap; 
  }
  
  .footer-legal-links {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 24px;
    flex-wrap: wrap; 
  }
  
  .footer-legal-links p { 
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #8E8E8E; 
    margin: 0;
    cursor: pointer;
    text-decoration: none;
  }
  .footer-legal-links p:hover {
      color: #B2B2B2;
  }
  
  .footer-credits p {
    font-family: 'Geist', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #8E8E8E; 
    margin: 0;
    text-align: right; 
  }
  
  /* Responsive Adjustments (Basic Placeholders) */
  @media (max-width: 1024px) {
    .lead-capture-section {
      margin: -100px auto 0 auto; 
      padding: 30px 15px;
    }
    .lead-capture-section .lead-capture-content h2 {
      font-size: 36px;
      line-height: 48px;
    }
    .lead-capture-section .lead-capture-content p {
      font-size: 18px;
      line-height: 28px;
    }
    .lead-capture-features {
      gap: 30px;
      justify-content: space-around;
    }
    .lead-capture-dashed-line-connector {
        left: 5%;
        width: 90%;
    }
    .footer-top-row, .footer-contact-info, .footer-bottom-row {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 30px;
    }
    .footer-logo-cta, .footer-links-container, .contact-item, .footer-legal-links, .footer-credits p {
      align-items: center;
      text-align: center;
    }
    .footer-links-container {
        justify-content: center;
    }
    .contact-item {
        flex-direction: column;
    }
     .contact-item > i {
        margin-bottom: 5px;
    }
    .footer-credits p {
        text-align: center;
    }
  }
  
  @media (max-width: 768px) {
    .new-footer-section {
        margin-top: 50px;
    }
    .lead-capture-section {
      margin: -80px auto 0 auto; 
      border-radius: 10px;
    }
    .lead-capture-section .lead-capture-content h2 {
      font-size: 28px;
      line-height: 38px;
    }
    .lead-capture-section .lead-capture-content p {
      font-size: 16px;
      line-height: 24px;
    }
    .lead-capture-content .btn-secondary {
        font-size: 14px;
        padding: 12px 20px;
    }
    .feature-item {
        width: calc(50% - 20px); /* Two items per row on mobile */
        gap: 10px;
    }
    .lead-capture-features {
        gap: 20px; /* Adjust gap for mobile */
    }
    .lead-capture-dashed-line-connector {
        display: none; /* Hide complex dashed line on small mobile */
    }
    .feature-item p {
        font-size: 16px;
    }
    .lead-capture-section .lead-capture-features .feature-item .feature-icon-frame {
        width: 40px;
        height: 40px;
        font-size: 18px !important; /* Adjusted for smaller frame */
        border-width: 2.5px !important; /* Adjusted border */
    }
    .footer-logo-cta p {
        font-size: 16px;
    }
    .footer-links-column p, .contact-item p:not(.contact-label), .footer-legal-links p, .footer-credits p {
        font-size: 13px;
    }
    .contact-label {
        font-size: 11px;
    }
  }