:root {
    --primary-green: #3A9D23;
    --dark-green: #2d7b1a;
    --light-grey: #f7f7f7;
    --text-color: #333;
    --tagline-color: #567d34;
    --overlay-bg: rgba(247, 247, 247, 0.9);
    --section-dark-bg: #222;
    --section-dark-text: #f7f7f7;
    --dark-text-primary: #f0f0f0;         /* For bright text and bold headings */
    --dark-text-secondary: #cccccc;        /* For regular links */
    --dark-text-muted: #999999;           /* For the copyright text */
    --dark-accent-green: var(--primary-green); /* Re-uses your existing green for the button */
    --dark-accent-green-hover: #45b82a; /* A slightly brighter green for hover */
    --dark-input-bg: transparent;        /* Makes the input background transparent */
    --dark-input-border: #666666;           /* A visible border for the input */
    --dark-input-placeholder: #888888;     /* Color for the 'Enter your email' text */
    --dark-border-color: #444444;           /* For the horizontal line above the copyright */
    --dark-bg-secondary: var(--section-dark-bg); /* Ensures footer bg matches */
}

body, html {
    background-color: var(--section-dark-bg);
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-content-wrapper {
    background: url('../images/landing-1.webp') no-repeat center center fixed;
    background-size: cover;
    flex-grow: 1; /* This makes the wrapper expand and push the footer down */
}

.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

header {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 100;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), transparent);
}

header .header-logo {
    width: 250px;
    height: auto;
    margin-right: 20px;
    object-fit: contain;
}

.main-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.content-left {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 20px;
}

.main-headline {
    font-size: 2.8rem;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 700;
}

.sub-tagline {
    font-size: 1.4rem;
    color: #E0E0E0;
    margin-bottom: 30px;
    font-style: normal;
}

.site-header {
    --header-actual-dark-bg: #2c2c2c; /* Defined a slightly lighter background for header */
    --header-actual-button-bg: #fcd87d;
    --header-actual-button-text: #333;
    --header-actual-link-hover-bg: #4a4a4a;
}

.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--header-actual-dark-bg);
    padding: 10px 30px;
    width: 100%;
    box-sizing: border-box; /* Added for consistency */
    z-index: 100;
}

.header-content-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    flex-wrap: nowrap;
}

.header-left {
    flex-grow: 1;
    height: 60px;
    display: flex;
    align-items: center;
}

.header-left .header-logo-link img {
    height: 30px;
    width: auto;
    vertical-align: middle;
}

.header-nav {
    display: flex;
    gap: 25px;
    justify-content: center !important;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.header-nav a {
    color: var(--dark-text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-nav a.active,
.header-nav a:hover {
    background-color: #4a4a4a; /* Using explicit color for hover */
    color: var(--dark-text-primary);
    text-decoration: none; /* Add this line */
}

.header-right {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.header-button {
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
    font-family: 'Poppins', sans-serif; /* Ensure font is inherited */
    font-size: 1rem; /* Ensure font size is consistent */
}

.header-button.login,
.header-button.signup {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 20px;
    color: var(--dark-text-primary, #e0e0e0);
    padding: 8px 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-button.login:hover,
.header-button.signup:hover {
    background-color: #4a4a4a;
    color: var(--dark-text-primary, #e0e0e0);
}

.header-auth-buttons.hidden,
.header-user-info.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }
    .header-content-wrapper {
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
    }
    .header-nav {
        display: none; /* Hiding nav on mobile for landing page simplicity */
    }
    .header-left, .header-right {
        width: 100%;
        justify-content: space-between;
        display: flex;
    }
    .header-left {
        height: auto;
    }
    .header-right {
        justify-content: flex-end; /* Align buttons to the right */
    }
}


/* --- End of New Header Styles --- */


.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    flex-grow: 1;
}

.content-left {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 20px;
    margin-bottom: 6vh;
}

.main-headline {
    font-size: 2.5rem;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 700;
}

.sub-tagline {
    font-size: 1.4rem;
    color: #E0E0E0;
    margin-bottom: 30px;
    font-style: normal;
}


.search-container {
    width: 100%;
    max-width: 500px; /* Keep max-width for alignment */
    display: flex; /* Ensure it continues to be a flex container for centering */
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

#custom-search-input {
    width: 100%;
    padding: 12px 45px 12px 20px; /* Adjusted padding-right for icon space */
    border: 1px solid #ccc; /* Light border for light background */
    border-radius: 25px;
    font-size: 1.1rem; /* Slightly larger font size for clarity */
    background-color: #fff; /* White background for light theme */
    color: var(--text-color); /* Dark text for light background */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    margin: 0;
    display: block;
    box-sizing: border-box; /* Ensure padding is included in width */
}

#custom-search-input:focus {
    outline: none;
    border-color: var(--primary-green); /* Green focus */
    box-shadow: 0 0 0 3px rgba(58, 157, 35, 0.3); /* Green focus halo */
}

.search-icon-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888; /* Darker gray for icon on light background */
    transition: color 0.2s ease;
    z-index: 1;
}

.search-icon-button:hover {
    color: var(--primary-green); /* Green on hover */
}

.search-icon-button .search-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.impact-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    width: 100%;
}

.metric-item {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.metric-item span {
    display: block;
    font-size: 0.9rem;
    color: #d0d0d0;
    margin-top: 5px;
    font-weight: 400;
}

.visual-demo-right {
    flex: 1.5; /* Give the image side significantly more space (1.5x the text side) */
    min-width: 600px; /* Increase the minimum width to accommodate the larger frame */
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-container {
    width: 100%;
    max-width: 500px; /* Keep max-width for alignment */
    display: flex; /* Ensure it continues to be a flex container for centering */
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
    /* Removed max-width: 650px from here, as parent .search-container limits it */
}

#custom-search-input {
    width: 100%;
    padding: 12px 45px 12px 20px; /* Adjusted padding-right for icon space */
    border: 1px solid #ccc; /* Light border for light background */
    border-radius: 25px;
    font-size: 1.1rem; /* Slightly larger font size for clarity */
    background-color: #fff; /* White background for light theme */
    color: var(--text-color); /* Dark text for light background */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    margin: 0;
    display: block;
    box-sizing: border-box; /* Ensure padding is included in width */
}

#custom-search-input:focus {
    outline: none;
    border-color: var(--primary-green); /* Green focus */
    box-shadow: 0 0 0 3px rgba(58, 157, 35, 0.3); /* Green focus halo */
}

.search-icon-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888; /* Darker gray for icon on light background */
    transition: color 0.2s ease;
    z-index: 1;
}

.search-icon-button:hover {
    color: var(--primary-green); /* Green on hover */
}

.search-icon-button .search-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.impact-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    width: 100%;
}

.metric-item {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.metric-item span {
    display: block;
    font-size: 0.9rem;
    color: #d0d0d0;
    margin-top: 5px;
    font-weight: 400;
}

.visual-demo-right {
    flex: 1.5; /* Give the image side significantly more space (1.5x the text side) */
    min-width: 600px; /* Increase the minimum width to accommodate the larger frame */
    display: flex;
    justify-content: center;
    align-items: center;
}

.browser-frame {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    background-color: #fff;
}

.browser-header {
    background-color: #e8e8e8;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #ccc;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff5f56;
}

.browser-dot:nth-child(2) {
    background-color: #ffbd2e;
}

.browser-dot:nth-child(3) {
    background-color: #27c93f;
}

.browser-content img {
    width: 100%;
    height: auto;
    display: block;
}

.cookie-consent-popup {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #282828;
    color: var(--dark-text-primary, #e0e0e0); /* Fallback color added */
    border: 1px solid #444;
    padding: 25px 35px;
    border-radius: 12px; /* Slightly more rounded corners */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
    z-index: 2000; /* Ensure it's on top of everything */
    max-width: 600px;
    width: 90%;
    text-align: center;
    font-size: 1em;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.cookie-consent-popup.show {
    display: block;
    opacity: 1;
}

.cookie-consent-popup a {
    color: #58a6ff; /* A standard, high-contrast blue for links */
    text-decoration: underline;
}

.cookie-consent-popup button {
    background-color: #f0f0f0; /* A light, almost white button */
    color: #1c1c1c; /* Dark text for contrast */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    padding: 12px 28px;
    font-size: 1.05em;
    font-weight: bold;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-consent-popup button:hover {
    background-color: #ffffff; /* Brighter white on hover */
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .cookie-consent-popup {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: translateX(0);
        width: auto;
    }
}

.section-why-veeva {
    background-color: var(--section-dark-bg);
    color: var(--section-dark-text);
    padding: 80px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.why-veeva-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-headline {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.section-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
    color: var(--light-grey);
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pillar-item {
    background-color: #333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.pillar-item h3 {
    font-size: 1.6rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 700;
}

.pillar-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: #ccc;
}

.overlay {
    /* --- Consolidated Overlay Styles --- */
    background: rgba(18, 18, 18, 0.7);       /* Dark, semi-transparent background. Adjust 0.7 for transparency. */
    /* backdrop-filter: blur(10px); */         /* The blur effect is commented out. Remove the comment '/*' and '*/' to re-enable. */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); /* Using the stronger shadow */
    padding: 40px;
    max-width: 1450px;
    width: 100%;

    /* Flexbox properties for layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}


.pillar-icon {
    width: 60px; /* Desired width of your icon */
    height: 60px; /* Desired height of your icon */
    margin: 0 auto 20px auto; /* Centers the icon horizontally and adds space below it */
    display: block; /* Ensures it takes up its own line for margin: auto to work */
    object-fit: contain; /* Prevents image distortion, ensuring it fits within its dimensions */
}

.pillar-item {
    /* ... existing styles ... */
    padding-top: 40px;
}

.section-features-in-action {
    background-color: #1a1a1a; /* A slightly different dark shade to distinguish it */
    color: var(--section-dark-text);
    padding: 80px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #444; /* Separator line */
}

.footer-footer1 {
    background-color: #222 !important; /* A dark color from your theme */
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px; /* Increased gap for better separation */
    margin-top: 50px;
}

.feature-item {
    text-align: left;
}

.feature-description {
    padding: 20px 10px;
}

.feature-description h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

/* Re-using and adapting the browser frame for dark mode */
.browser-frame.dark-mode {
    border: 1px solid #444; /* Darker border for the dark theme */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    background-color: #2D2D2D; /* Dark background for the browser content */
    transition: transform 0.3s ease;
}

.browser-frame.dark-mode:hover {
    transform: translateY(-5px);
}


.browser-frame.dark-mode .browser-header {
    background-color: #3f3f3f; /* Darker header for the dark theme */
    border-bottom: 1px solid #555;
}

/* --- Responsive adjustments for the new section --- */
@media (max-width: 900px) {
    .feature-showcase-grid {
        grid-template-columns: 1fr; /* Stack them on smaller screens */
        gap: 60px;
    }
}

@media (max-width: 600px) {
    .section-features-in-action {
        padding: 40px 0;
    }

    .features-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .feature-showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-description h3 {
        font-size: 1.3rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    header .header-logo {
        width: 150px;
    }

    .content-left {
        padding-right: 0;
    }

    .main-headline {
        font-size: 2.2rem;
    }

    .sub-tagline {
        font-size: 1.2rem;
    }

    .visual-demo-right {
        order: -1;
    }

    .section-why-veeva {
        padding: 60px 20px;
    }

    .section-headline {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1.1rem;
    }

    .pillar-item h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    header {
        padding: 10px;
    }

    header .header-logo {
        width: 100px;
    }

    .main-headline {
        font-size: 1.8rem;
    }

    .sub-tagline {
        font-size: 1rem;
    }

    .search-container {
        flex-direction: column;
        max-width: 100%;
    }

    /* Input width needs to be adjusted based on its wrapper's new internal padding */
    #custom-search-input {
        padding: 12px 45px 12px 20px; /* Maintain padding for icon */
        width: 100%; /* Should be 100% of its parent .search-input-wrapper */
    }

    .search-input-wrapper {
        width: 100%; /* This needs to be 100% of its parent .search-container */
    }

    .impact-metrics {
        flex-direction: column;
        gap: 20px;
    }

    .metric-item {
        font-size: 1.3rem;
    }

    /* Apply horizontal padding to the *content inside* the overlay */
    .content-left, .visual-demo-right {
        padding-left: 20px;
        padding-right: 20px;
        min-width: unset;
    }

    /* Ensure search container now takes full width */
    .search-container {
        width: calc(100% - 40px); /* 100% of parent minus 20px left/right internal padding */
        margin: 0 auto 20px auto; /* Center it */
    }


    /* --- NEW SECTION MOBILE FIX --- */
    .section-why-veeva {
        padding: 40px 0;
    }

    /* Apply horizontal padding to the *content inside* the new section */
    .why-veeva-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .pillar-item {
        padding: 25px;
    }

    .pillar-item h3 {
        font-size: 1.3rem;
    }

    footer {
        padding: 10px;
        font-size: 0.8rem;
    }
}
