.lead-magnet-landing-page .section {
    padding: 40px 0;
}

.lead-magnet-landing-page .section h1 {
  font-size: 50px;
  line-height: 1.3;
}

.lead-magnet-landing-page .section h2 {
    font-size: 40px;
    line-height: 1.3;
    text-align: left;
}

.lead-magnet-landing-page .section_cta h2,
.lead-magnet-landing-page .section_content h2 {
    text-align: center;
}

.lead-magnet-landing-page .section h3 {
    font-size: 30px;
    line-height: 1.1;
}


.lead-magnet-landing-page .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.lead-magnet-landing-page .section_cta .container {
    flex-direction: column;
}
    
.lead-magnet-landing-page .button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%; 
}

.lead-magnet-landing-page .section_intro {
    background-color: #2D3142;
}

.lead-magnet-landing-page .section_intro .button-wrapper {
    display: block; /* The button in the intro section should not be centered */
}

.lead-magnet-landing-page .image-wrap {
    flex: 0 0 30%; /* Allocate 30% space for image */
    max-width: 30%;
    padding: 10px;
    box-sizing: border-box;
}

.lead-magnet-landing-page .text-wrap {
    flex: 0 0 65%; /* Allocate 65% space for text */
    max-width: 65%;
    padding: 10px;
    box-sizing: border-box;
}

.lead-magnet-landing-page .section_intro {
    color: #F9F9F9;
}

.lead-magnet-landing-page .section_intro p {
    font-size: 22px;
}

.lead-magnet-landing-page .section_intro img {
    height: auto;
    display: block;
}

.lead-magnet-landing-page .section_target,
.lead-magnet-landing-page .section_content {
    background-color: #ffffff;
    text-align: center;
}

.lead-magnet-landing-page .section_content .icon {
  max-height:100px;
}


.lead-magnet-landing-page .section_content .subsections-wrap {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.lead-magnet-landing-page .section_content .subsection {
    width: 30%;
    margin: 20px 0;
    text-align: center;
}


.lead-magnet-landing-page .section_target .text-wrap {
    text-align: left;
}


.lead-magnet-landing-page .section_target img {
    height: auto;
    display: block;
}


.lead-magnet-landing-page .section_cta {
    color: #f9f9f9;
    background-color: #404660;
    text-align: center;
}

.lead-magnet-landing-page .section_author {
    background-color: #ffffff;
}

.lead-magnet-landing-page .section_author .container {
    display: block;
    text-align: left;
}

.lead-magnet-landing-page .landing-button {
    display: inline-block;
    margin-top: 20px;
    padding: 20px 30px;
    background-color: #f7a541;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 24px;
    cursor: pointer;
}


.lead-magnet-landing-page .author-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Allocate space evenly */
    width: 100%;
    box-sizing: border-box;
}

.lead-magnet-landing-page .author-text {
    flex: 0 0 75%; /* Allocate 75% space for text */
    max-width: 75%;
    padding: 10px;
    box-sizing: border-box;
}

.lead-magnet-landing-page .author-image {
    flex: 0 0 20%; /* Allocate 20% space for image */
    max-width: 20%;
    padding: 10px;
    box-sizing: border-box;
}

.lead-magnet-landing-page img.round {
    border-radius: 50%;
    width: 100%; /* Image adjusts to fill allocated space */
    height: auto;
    object-fit: cover;
}


/* Popup styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Black background with transparency */
    z-index: 1000; /* Ensure the popup is above other elements */
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
}

.popup-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 5px;
    max-width: 400px;
    width: 90%;
    margin: auto;
    text-align: center;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.popup-content h2 {
    margin: 0 0 15px 0;
}

.popup-content input[type="email"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px;
}

.popup-content .landing-button {
    margin-top: 0;
    padding: 10px 20px;
    border: none;
}

.popup-content .conditions {
    font-size: 14px;
    line-height: 1.2;
    padding-top: 20px;
    margin: 0;
}


/* Simple spinner */
.loading-spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000; /* Black top border for visibility */
    border-right-color: transparent; /* Skip applying color to the right border */
    border-bottom-color: rgba(0, 0, 0, 0.1); /* Slightly lighter bottom border for visual effect */
    border-left-color: rgba(0, 0, 0, 0.3); /* Match the initial visibility style */
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .lead-magnet-landing-page .container {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center align items horizontally when stacked */
    }

    .lead-magnet-landing-page .image-wrap,
    .lead-magnet-landing-page .text-wrap,
    .lead-magnet-landing-page .author-text,
    .lead-magnet-landing-page .author-image,
    .lead-magnet-landing-page .section_content .subsection {
        flex: 0 0 100%; /* Allow full width for better visibility */
        width: 100%;
        max-width: 100%;
        text-align: center; /* Center text for smaller screens */
    }
  
    .lead-magnet-landing-page .section h1 {
        font-size: 36px; /* Reduce heading font size for readability */
    }

    .lead-magnet-landing-page .section h2 {
        font-size: 28px; /* Reduce heading font size for readability */
    }
    
    .lead-magnet-landing-page .section h3 {
        font-size: 24px; /* Reduce heading font size for readability */
    }

    .lead-magnet-landing-page .landing-button {
        font-size: 20px; /* Reduce button font size for smaller screens */
        font-weight: bold;
    }
    
    .lead-magnet-landing-page .section_intro p {
        font-size: 20px;
    }

    .lead-magnet-landing-page .section_content .subsections-wrap,
    .lead-magnet-landing-page .author-wrap {
        flex-direction: column;
        align-items: center;
    }

    .lead-magnet-landing-page .icon {
        max-width: 50px; /* Adjust icons width for smaller screens */
    }
}

@media (max-width: 480px) {
    .lead-magnet-landing-page .section h1 {
        font-size: 28px; /* Further reduce heading for very small devices */
    }

    .lead-magnet-landing-page .section h2 {
        font-size: 24px; /* Further reduce heading */
    }
    
    .lead-magnet-landing-page .section h3 {
        font-size: 20px; /* Further reduce heading */
        font-weight: bold;
    }
    
    .lead-magnet-landing-page .section_intro p {
        font-size: 18px;
    }
    
    .lead-magnet-landing-page .landing-button {
        font-size: 18px; /* Adjust button size further for small devices */
        padding: 15px 20px; /* Adjust padding for better fit */
    }
}
