/* Inline layout for SureForms Form 619 */
#srfm-form-619 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 12px !important;
    max-width: 600px;
    margin: 0 auto;
}

/* Clean up WordPress auto-paragraphs and margins */
#srfm-form-619 p {
    margin: 0 !important;
    padding: 0 !important;
    display: none !important; /* Hide empty helper paragraphs */
}
#srfm-form-619 p:has(input), 
#srfm-form-619 p:has(button),
#srfm-form-619 p:has(div) {
    display: block !important;
}

/* Ensure the wrapper blocks don't force block display or 100% width */
#srfm-form-619 .srfm-email-block-wrap {
    flex: 1 1 70% !important;
    margin: 0 !important;
    width: auto !important;
}

#srfm-form-619 .srfm-custom-button-ctn {
    flex: 0 0 30% !important;
    margin: 0 !important;
    width: auto !important;
}

/* Align inner wrappers cleanly */
#srfm-form-619 .srfm-block-wrap,
#srfm-form-619 .srfm-email-block {
    margin: 0 !important;
    padding: 0 !important;
}

/* Synchronize exact input and button heights & line heights */
#srfm-form-619 .srfm-input-email {
    width: 100% !important;
    height: 46px !important;
    line-height: 46px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

#srfm-form-619 #srfm-submit-btn {
    width: 100% !important;
    height: 46px !important;
    line-height: 46px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
}

/* Mobile Responsiveness - Stack the fields vertically */
@media screen and (max-width: 600px) {
    #srfm-form-619 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }
    
    #srfm-form-619 .srfm-email-block-wrap,
    #srfm-form-619 .srfm-custom-button-ctn {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
}
