
/* ==========================================
   FORMULAIRE NEWSLETTER - STYLE CNF
   ========================================== */


.newsletter-form-wrapper .forminator-ui {
    display: flex !important;
    align-items: stretch !important;

    width: 100% !important;
    max-width: 448px !important; /* Matches Tailwind's max-w-md */

    margin: 0 0 0 auto !important; /* Right aligns forminator-ui inside the w-full wrapper */
    padding: 0 !important;

    gap: 0 !important;
}

/* ----------------------------------------
   Rows
   ---------------------------------------- */

.newsletter-form-wrapper .forminator-row {
    margin: 0 !important;
    padding: 0 !important;
}

/* Target the row containing the email input */
.newsletter-form-wrapper .forminator-row:has(.forminator-email--field),
.newsletter-form-wrapper .forminator-row:first-of-type {
    flex: 1 1 auto !important;
    width: auto !important;
}

/* Target the row containing the submit button */
.newsletter-form-wrapper .forminator-row:has(.forminator-button-submit),
.newsletter-form-wrapper .forminator-row-last {
    flex: 0 0 auto !important;
    width: auto !important;
}

/* ----------------------------------------
   Columns / fields
   ---------------------------------------- */

.newsletter-form-wrapper .forminator-col,
.newsletter-form-wrapper .forminator-field {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ----------------------------------------
   Email input
   ---------------------------------------- */

.newsletter-form-wrapper .forminator-email--field {
    display: block !important;

    width: 100% !important;
    height: 58px !important;

    margin: 0 !important;
    padding: 14px 20px !important;

    background: transparent !important;

    border: 1px solid #1F2937 !important; /* Matches border-gray-800 (#1F2937) */
    border-right: 0 !important;
    border-radius: 12px 0 0 12px !important; /* Matches rounded-l-xl */

    color: #2B2B2B !important;

    font-size: 16px !important;
    line-height: 1.5 !important;

    outline: none !important;
    box-shadow: none !important;

    box-sizing: border-box !important;

    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out !important; /* Matches Tailwind's transition */
}

/* Placeholder */

.newsletter-form-wrapper
.forminator-email--field::placeholder {
    color: #4B5563 !important; /* Matches placeholder-gray-600 */
    opacity: 1 !important;
}

/* Focus */

.newsletter-form-wrapper
.forminator-email--field:focus {
    background: rgba(255, 255, 255, 0.5) !important; /* Matches focus:bg-white/50 */

    border-color: #1F2937 !important; /* Matches border-gray-800 */

    outline: none !important;
    box-shadow: none !important;
}

/* ----------------------------------------
   Submit button
   ---------------------------------------- */

.newsletter-form-wrapper .forminator-button-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important; /* Auto width lets padding define the size */
    height: 58px !important;

    margin: 0 !important;
    padding: 0 24px !important; /* Matches px-6 (24px) */

    background: transparent !important;

    border: 1px solid #1F2937 !important; /* Matches border-gray-800 */
    border-radius: 0 12px 12px 0 !important; /* Matches rounded-r-xl */

    color: #2B2B2B !important;

    font-size: 0 !important;

    box-shadow: none !important;

    cursor: pointer;

    transition: background-color 0.25s ease-in-out, border-color 0.25s ease-in-out !important; /* Matches Tailwind's transition */
}

.newsletter-form-wrapper .forminator-button-submit:hover {
    background: #e5e7eb !important; /* Matches hover:bg-gray-200 */
}

/* ----------------------------------------
   Send icon
   ---------------------------------------- */

.newsletter-form-wrapper .forminator-button-submit::before {
    content: "";

    display: block;

    width: 34px;
    height: 34px;

    background-image: url("../icons/airplane-send.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

@media (min-width: 1024px) {

    .newsletter-form-wrapper .forminator-email--field {
        font-size: 20px !important;
    }
}


@media (max-width: 640px) {

    .newsletter-form-wrapper .forminator-ui {
        max-width: 100% !important;
    }

    .newsletter-form-wrapper .forminator-email--field {
        height: 52px !important;

        padding: 12px 16px !important;

        font-size: 14px !important;
    }

    .newsletter-form-wrapper .forminator-button-submit {
        width: auto !important;
        padding: 0 20px !important;
        height: 52px !important;
    }

    .newsletter-form-wrapper
    .forminator-button-submit::before {
        width: 28px;
        height: 28px;
    }
}