
/* 1. Target the Metform Wrapper directly */
.metform-form-content .e-con-inner, 
.metform-form-content .elementor-widget-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Forces 3 equal columns */
    gap: 20px !important;
    width: 100% !important;
}

/* 2. Fix the individual field widgets */
.metform-form-content .elementor-widget {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* 3. Make Address, Checkbox, and Button span all 3 columns */
.metform-form-content .full-width-field,
.metform-form-content .elementor-widget-mf-button,
.metform-form-content .container,
.metform-form-content .elementor-widget:has(textarea) {
    grid-column: span 3 !important; /* Stretches across the whole row */
}

/* 4. Responsive: Tablet (2 columns) */
@media (max-width: 1024px) {
    .metform-form-content .e-con-inner {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .metform-form-content .full-width-field,
    .metform-form-content .elementor-widget-mf-button,
    .metform-form-content .elementor-widget:has(textarea) {
        grid-column: span 2 !important;
    }
}

/* 5. Responsive: Mobile (1 column) */
@media (max-width: 767px) {
    .metform-form-content .e-con-inner {
        grid-template-columns: 1fr !important;
    }
    .metform-form-content .full-width-field,
    .metform-form-content .elementor-widget-mf-button,
    .metform-form-content .elementor-widget:has(textarea) {
        grid-column: span 1 !important;
    }
}

/* 6. Lucrative Input Styling */
.metform-form-content input, 
.metform-form-content select, 
.metform-form-content textarea {
    border: 1.5px solid #d1d1d1 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    background: #fff !important;
}