/* CSS Variables for Split Background Control */
:root {
    --lumina-nl-bg-left: #e0e0e0;
    --lumina-nl-bg-right: #2da12b;
    --lumina-nl-split: 45%;
    --lumina-nl-angle: 45deg;
}

/* Wrapper */
.lumina-nl-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    /* min-height controlled by Elementor slider */
    overflow: hidden; /* Hide excess background bleed */
}

/* The Background Layer - Creates the two-tone angled split */
.lumina-nl-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--lumina-nl-bg-left);
}

.lumina-nl-bg-layer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    /* Calculate the width based on the split percentage */
    width: calc(100% - var(--lumina-nl-split));
    background: var(--lumina-nl-bg-right);
    /* Create the angled edge - slant direction depends on angle */
    /* Using a standard polygon based on the angle */
    clip-path: polygon(calc(tan(var(--lumina-nl-angle)) * 100%) 0, 100% 0, 100% 100%, 0 100%);
    /* Fallback/Correction for transform approach to ensure full coverage */
    transform-origin: bottom left;
}

/* Container handles layout limits & z-index */
.lumina-nl-container {
    position: relative;
    z-index: 1; /* Keep above background layer */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px; /* Default left/right padding */
    gap: 20px;
}

/* Boxed layout option constraint */
.lumina-nl-layout-boxed .lumina-nl-container {
    max-width: 1140px; /* Standard boxed width */
    margin: 0 auto;
}

/* Headline / Message (Left Side) */
.lumina-nl-headline {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    white-space: nowrap; /* Keep on one line if possible */
    /* Flex basis to roughly align with the visual split */
    flex-basis: calc(var(--lumina-nl-split) - 40px); 
    text-align: right;
    padding-right: 20px;
}

/* Form structure (Right Side) */
.lumina-nl-form {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding-left: 20px;
}

.lumina-nl-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0; /* Elements touch by default */
}

/* Input Field */
.lumina-nl-input {
    flex-grow: 1;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background-color: transparent; /* Blends into green background */
    color: #fff;
    border-radius: 0; /* Square edges */
    outline: none;
    font-family: inherit;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.5); /* Subtle bottom border like reference */
}

.lumina-nl-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.lumina-nl-input:focus {
    background-color: rgba(0,0,0,0.1);
    border-color: #fff;
}

/* Submit Button */
.lumina-nl-btn {
    padding: 10px 30px;
    background-color: transparent; 
    color: #fff;
    border: 1px solid #fff;
    border-radius: 20px; /* Capsule shape like reference */
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap; /* Prevent wrapping */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.lumina-nl-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

/* --- Responsive Adjustments --- */

@media (max-width: 1024px) {
    /* Laptop */
    .lumina-nl-headline {
        text-align: left;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    /* Tablet: Stack layout, adjust background */
    .lumina-nl-wrapper {
        min-height: auto !important; /* Let content dictate height */
        padding: 40px 0;
    }
    
    /* Remove angled split on mobile/tablet */
    .lumina-nl-bg-layer::after {
        clip-path: none;
        top: 50%;
        width: 100%;
    }

    .lumina-nl-container {
        flex-direction: column;
        align-items: center;
        padding: 0 20px !important;
        gap: 20px;
    }
    
    .lumina-nl-headline {
        flex-basis: auto;
        white-space: normal;
        text-align: center;
        width: 100%;
        color: #333; /* Ensure readability on top bg */
    }
    
    .lumina-nl-form {
        width: 100%;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    /* Mobile: Stack form elements */
    .lumina-nl-input-group {
        flex-direction: column;
        gap: 15px !important; /* Force stack gap */
    }
    
    .lumina-nl-input {
        border: 1px solid rgba(255,255,255,0.5); /* Full border on mobile */
    }

    .lumina-nl-btn {
        width: 100%; /* Full width button on mobile */
        margin-left: 0;
    }
}