/* Aggressive Jobber Form Section Layout Optimization */
.elementor-widget-wrap:has(iframe[src*="getjobber.com"]) {
    display: flex !important;
    flex-direction: column !important;
    padding-top: 0px !important; /* Eliminate white space above */
    margin-top: 0px !important;
}

/* Force Page Title to absolute top, strip margins */
.elementor-widget-wrap:has(iframe[src*="getjobber.com"]) > .elementor-widget-heading:first-of-type {
    order: 1 !important;
    margin-bottom: 5px !important;
    padding-bottom: 0px !important;
}

/* Force Short Intro Line directly under title, strip margins */
.elementor-widget-wrap:has(iframe[src*="getjobber.com"]) > .elementor-widget-text-editor:nth-of-type(2) {
    order: 2 !important;
    margin-bottom: 5px !important;
    margin-top: 0px !important;
    padding-bottom: 0px !important;
}

/* CRITICAL: Force Jobber Form as high as possible */
.elementor-widget-wrap:has(iframe[src*="getjobber.com"]) > .elementor-widget-html,
.elementor-widget-wrap:has(iframe[src*="getjobber.com"]) > .elementor-widget-shortcode {
    order: 3 !important;
    margin-top: 0px !important;
    padding-top: 0px !important;
    margin-bottom: 20px !important;
}

/* Move ALL Trust Text Blocks completely below the form */
.elementor-widget-wrap:has(iframe[src*="getjobber.com"]) > .elementor-widget-text-editor:not(:nth-of-type(2)) {
    order: 4 !important;
    margin-top: 25px !important;
}

/* Move Trust Badges entirely below form */
.elementor-widget-wrap:has(iframe[src*="getjobber.com"]) > .elementor-widget-image {
    order: 5 !important;
    margin-top: 20px !important;
}

/* Aggressive Mobile specific focus */
@media (max-width: 767px) {
    .elementor-widget-wrap:has(iframe[src*="getjobber.com"]) > .elementor-widget-heading:first-of-type h1,
    .elementor-widget-wrap:has(iframe[src*="getjobber.com"]) > .elementor-widget-heading:first-of-type h2 {
        font-size: 24px !important; /* Shrink title slightly to save space */
        line-height: 1.2 !important;
        margin-bottom: 0 !important;
    }
    
    .elementor-widget-wrap:has(iframe[src*="getjobber.com"]) > .elementor-widget-text-editor:nth-of-type(2) p {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }

    .elementor-widget-wrap:has(iframe[src*="getjobber.com"]) > .elementor-widget-image {
        display: none !important; /* Hide badges on mobile completely */
    }
}
