.formnest-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Input & textarea styling */
.formnest-form input,
.formnest-form textarea,
.formnest-form select {
    background: #f5f6fa;
    border: none;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.formnest-form input:focus,
.formnest-form textarea:focus,
.formnest-form select:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #a18cff;
}

/* Two fields per row */
.formnest-field {
    flex: 1 1 calc(50% - 15px);
}

/* Full width fields (textarea & button) */
.formnest-full {
    flex: 1 1 100%;
}

/* Textarea */
.formnest-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit button */
.formnest-form button {
    background: linear-gradient(90deg, #5e4bfa, #8f6efc);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.formnest-form button:hover {
    opacity: 0.9;
}

/* Success / message box */
.formnest-message {
    padding: 12px;
    background: #e1f5e1;
    color: #2e7d32;
    border-radius: 8px;
    width: 100%;
}

/* Responsive: stack on mobile */
@media (max-width: 600px) {
    .formnest-field {
        flex: 1 1 100%;
    }
}




.formnest-title {
    width: 100%;
    font-size: 24px;
    font-weight: 700;
    color: orange;
    margin-bottom: 25px;
    text-align: center;
    user-select: none;
} ; and formnest-frontend.js code: jQuery(document).ready(function($) {
    $('.formnest-form').on('submit', function(e) {
        e.preventDefault();
        var $form = $(this);
        var formId = $form.data('form-id');
        var fields = {};

        $form.find('input, textarea, select').each(function() {
            var name = $(this).attr('name');
            if (name) {
                fields[name] = $(this).val();
            }
        });

        $.post(formnest_ajax.ajax_url, {
            action: 'formnest_submit',
            form_id: formId,
            fields: fields
        }, function(response) {
            var $msg = $form.find('.formnest-message');
            if (response.success) {
                $msg.css('color', 'green').text(response.data).show();
                $form.trigger('reset');
            } else {
                $msg.css('color', 'red').text(response.data || response).show();
            }
        });
    });
});