.newsletter-small {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 32px;
    background-color: var(--primary);
    border-radius: 8px;
}

.newsletter-small__col {
    flex: 1;
}

.newsletter-small h2,
.newsletter-small h1 {
    color: var(--white);
}

.newsletter-small .form-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.newsletter-small .container {
    padding: 0;
}

.newsletter-small .newsletter-small__form-title {
    color: var(--white);
    font-size: 36px;
    font-family: var(--font-heading);
    letter-spacing: -1%;
    font-weight: 400;
    margin-bottom: 0;
}

.newsletter-small .wpforms-container-full input[type="submit"]:not(:hover):not(:active),
.newsletter-small .wpforms-container-full button[type="submit"]:not(:hover):not(:active),
.newsletter-small .wpforms-container-full .wpforms-page-button:not(:hover):not(:active),
.newsletter-small .wp-core-ui div.wpforms-container-full input[type="submit"]:not(:hover):not(:active),
.newsletter-small .wp-core-ui div.wpforms-container-full button[type="submit"]:not(:hover):not(:active),
.newsletter-small .wp-core-ui div.wpforms-container-full .wpforms-page-button:not(:hover):not(:active) {
    margin: 0 !important;
}

/* ---- Form layout ---- */

.newsletter-small .wpforms-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Flatten field-container so email + checkbox become direct flex children of the form */
.newsletter-small .wpforms-field-container {
    display: contents;
}

/* Hide WPForms honeypot/spam text fields */
.newsletter-small .wpforms-field[data-field-type="text"] {
    display: none !important;
}

/* Remove default WPForms field margins */
.newsletter-small .wpforms-field {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Email input – stretches to fill available width */
.newsletter-small .wpforms-field-email {
    order: 1;
    flex: 1 1 auto;
}

.newsletter-small .wpforms-field-email input[type="email"] {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    box-sizing: border-box;
    opacity: 0.79;
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    color: var(--white) !important;
    border-radius: 8px 0 0 8px;
    opacity: 0.79;
    background: rgba(150, 150, 150, 0.60);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
}

.newsletter-small--has-image .wpforms-submit-container button[type="submit"] {
    color: var(--primary-green-tint-3) !important;
}

.newsletter-small--has-image .wpforms-field-email input[type="email"]::placeholder,
.newsletter-small .wpforms-field-email input[type="email"]::placeholder {
    color: var(--primary-green-tint-3) !important;
}

/* Submit button – sits flush right of input */
.newsletter-small .wpforms-submit-container {
    order: 2;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

.newsletter-small .wpforms-submit-container button[type="submit"] {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 52px;
    padding: 0 16px;
    border: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    font-family: var(--font-sans);
    white-space: nowrap;
    background-color: var(--primary-green-tint-3) !important;
    color: var(--primary) !important;
}

.newsletter-small--has-image .wpforms-submit-container button[type="submit"] {
    background-color: var(--primary) !important;
    color: var(--primary-green-tint-3) !important;
}

/* Checkbox – full width row below email + submit */
.newsletter-small .wpforms-field-checkbox {
    order: 3;
    flex: 0 0 100%;
    margin-top: 16px !important;
}

.newsletter-small .wpforms-field-checkbox fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.newsletter-small .wpforms-field-checkbox legend.wpforms-label-hide {
    display: none;
}

.newsletter-small .wpforms-field-checkbox ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.newsletter-small .wpforms-field-checkbox li {
    position: relative;
}

/* Ukryj natywny checkbox, ale zostaw go klikalnym pod fake'iem */
.newsletter-small .wpforms-field-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    cursor: pointer;
    z-index: 1;
}


/* Fake checkbox box */
.newsletter-small .wpforms-field-checkbox .wpforms-field-label-inline {
    display: block;
    padding-inline-start: 24px !important;
    position: relative;
    cursor: pointer;
}

.newsletter-small .wpforms-field-checkbox .wpforms-field-label-inline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 3px;
    box-sizing: border-box;
}

/* Checkmark */
.newsletter-small .wpforms-field-checkbox .wpforms-field-label-inline::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: translateY(-65%) rotate(45deg);
    opacity: 0;
}

.newsletter-small .wpforms-field-checkbox input[type="checkbox"]:checked+.wpforms-field-label-inline::after {
    opacity: 1;
}

.newsletter-small .wpforms-field-checkbox .wpforms-field-label-inline {
    margin: 0;
    font-size: 16px;
    cursor: pointer;
    color: var(--white);
    font-family: var(--font-sans);
    color: var(--primary-green-tint-3);
}

.newsletter-small .wpforms-field-checkbox .wpforms-field-label-inline a {
    text-decoration: underline;
}


.newsletter-small .wpforms-field-label-inline a {
    color: var(--white) !important;
}

@media (max-width: 768px) {
    .newsletter-small__columns {
        flex-direction: column;
        gap: 30px;
    }

    .newsletter-small .form-title {
        gap: 8px;
        margin-bottom: 12px;
    }

    .newsletter-small .wpforms-form {
        gap: 16px;
    }

    .newsletter-small .wpforms-field-email {
        flex: 0 0 100%;
    }

    .newsletter-small .wpforms-field-email input[type="email"] {
        border-radius: 4px;
    }

    .newsletter-small .wpforms-submit-container {
        flex: 0 0 100%;
    }

    .newsletter-small .wpforms-submit-container button[type="submit"] {
        width: 100% !important;
        border-radius: 4px;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}