@media only screen and (min-width: 641px) and (min-height: 1081px) {
    /* Override fixed height for landing pages with auto-height class */
    .hero-container.auto-height {
      height: auto;
    }
}


/* Buttons */
.lead-gen-form-wrapper button[type="submit"],
body .fusion-button.btn-scrollto-lead-form {
    background-color: var(--awb-color5);
}

body .fusion-button.btn-scrollto-lead-form {
    font-family: unset;
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 20px 50px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

/* Landing text boxes */
.post-content .fb-landing-texth-box-container .fusion-column-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.post-content .fb-landing-texth-box {
    background: url('../images/lead-gen/Small_Text_Frame.png') no-repeat center center;
    border-radius: 10px;
    padding: 10px;
    max-width: 300px;
}

.post-content .fb-landing-texth-box h5 {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    margin: 20px;
}

.post-content .fb-landing-texth-box p {
    color: var(--awb-color9);
    font-size: 17px;
    text-align: center;
    margin-bottom: 5px;
}

.post-content .fb-landing-texth-box-container.tx-darker .fb-landing-texth-box p{
	font-size: 18px;
	color: #222;
}

/* =========================================================
   STICKY BOTTOM BAR — AVADA-SAFE FINAL FIX
   ========================================================= */

body .leadgen-sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;              /* IMPORTANT: NOT 100% or 100vw */
    max-width: none;
    margin: 0;
    z-index: 10020;
    overflow: hidden;         /* Prevent text clipping */
}

/* Kill all Avada horizontal offsets */
body .leadgen-sticky-bottom-bar,
body .leadgen-sticky-bottom-bar * {
    box-sizing: border-box;
}

/* Remove Avada container + column padding */
body .leadgen-sticky-bottom-bar .fusion-flex-container,
body .leadgen-sticky-bottom-bar .fusion-layout-column,
body .leadgen-sticky-bottom-bar .fusion-column-wrapper {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Actual readable padding goes HERE */
body .leadgen-sticky-bottom-bar .fusion-text,
body .leadgen-sticky-bottom-bar p {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    word-wrap: break-word;
}

/* Typography */
body .leadgen-sticky-bottom-bar p {
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
}

body .leadgen-sticky-bottom-bar a {
    font-weight: bold;
    color: inherit;
    text-decoration: underline;
}

body .leadgen-sticky-bottom-bar a:hover {
    text-decoration: none;
}

/* Mobile tuning */
@media (max-width: 640px) {
    body .leadgen-sticky-bottom-bar p {
        font-size: 16px;
    }

    body .leadgen-sticky-bottom-bar .fusion-text,
    body .leadgen-sticky-bottom-bar p {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* =========================================================
   ZOHO FORM STYLING — MATCH AVADA FORM DESIGN
   ========================================================= */

/* Isolate form wrapper to prevent breaking Avada layout */
.lead-gen-form-wrapper {
    isolation: isolate;
    contain: layout style;
    position: relative;
    /* Prevent form from affecting parent/sibling columns */
    overflow: visible;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: var(--awb-color2);
    background: url('../images/lead-gen/FB-Paper-Texture_orig_white.jpg') repeat top left;
    padding: 35px 35px 10px 35px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.post-content .lead-gen-form-wrapper h2{
    color: var(--awb-custom_color_1);
    font-family: var(--h2_typography-font-family);
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-align: center;
}

.post-content .lead-gen-form-wrapper .tnc-info {
    font-size: 13px;
    text-align: center;
}

.post-content .lead-gen-form-wrapper .tnc-info p{
    margin-bottom: 0;
}

/* Main Zoho form container - inner div */
.lead-gen-form-wrapper #crmWebToEntityForm {
    width: 100%;
    padding: 30px 40px 20px;
    margin: 0 auto;
    box-sizing: border-box;
    /* Reset any conflicting styles */
    float: none;
    clear: both;
    background-color: transparent;
    color: inherit;
    max-width: 100%;
    /* Prevent breaking parent layout */
    position: relative;
    display: block;
    text-align: left;
}

.lead-gen-form-wrapper #crmWebToEntityForm * {
    box-sizing: border-box;
    direction: ltr;
}

/* Remove inline styles override */
.lead-gen-form-wrapper #crmWebToEntityForm.zcwf_lblLeft {
    background-color: transparent !important;
    color: inherit;
    max-width: 100%;
    /* Reset any conflicting styles */
    float: none;
    clear: both;
}

/* Form rows - convert to single column layout */
.lead-gen-form-wrapper .zcwf_row {
    margin: 0 0 20px 0;
    display: block;
    width: 100%;
    clear: both;
    /* Prevent layout breaking */
    float: none;
    overflow: visible;
}

/* Additional Zoho form specific styles */
.lead-gen-form-wrapper .zcwf_title {
    word-wrap: break-word;
    padding: 0px 6px 10px;
    font-weight: bold;
}

.lead-gen-form-wrapper .zcwf_privacy {
    padding: 6px;
}

.lead-gen-form-wrapper .dIB {
    display: inline-block;
}

.lead-gen-form-wrapper .zcwf_row:after,
.lead-gen-form-wrapper .zcwf_col_fld:after {
    content: '';
    display: table;
    clear: both;
}

.lead-gen-form-wrapper .zcwf_help_icon {
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: inline-block;
    background: #fff;
    border: 1px solid #c0c6cc;
    color: #c1c1c1;
    text-align: center;
    font-size: 11px;
    line-height: 16px;
    font-weight: bold;
    border-radius: 50%;
}

.lead-gen-form-wrapper .zcwf_privacy_txt {
    width: 90%;
    color: #313949;
    font-size: 14px;
    font-family: Tahoma;
    display: inline-block;
    vertical-align: top;
    padding-top: 2px;
    margin-left: 6px;
}

.lead-gen-form-wrapper .zcwf_tooltip_over {
    position: relative;
}

.lead-gen-form-wrapper .zcwf_tooltip_ctn {
    position: absolute;
    background: #dedede;
    padding: 3px 6px;
    top: 3px;
    border-radius: 4px;
    word-break: break-word;
    min-width: 100px;
    max-width: 150px;
    color: #313949;
    z-index: 100;
}

.lead-gen-form-wrapper .zcwf_ckbox {
    float: left;
}

.lead-gen-form-wrapper .zcwf_file {
    width: 55%;
    box-sizing: border-box;
    float: left;
}

.lead-gen-form-wrapper .cBoth:after {
    content: '';
    display: block;
    clear: both;
}

/* Zoho form button base styles */
.lead-gen-form-wrapper .zcwf_lblLeft .formsubmit {
    margin-right: 5px;
    cursor: pointer;
    color: #313949;
    font-size: 14px;
}

.lead-gen-form-wrapper .zcwf_lblLeft .zcwf_button {
    font-size: 14px;
    color: #313949;
    border: 1px solid #c0c6cc;
    padding: 3px 9px;
    border-radius: 4px;
    cursor: pointer;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Zoho primary button hover (legacy) */
.lead-gen-form-wrapper .zcwf_lblLeft.cpT_primaryBtn:hover {
    background: linear-gradient(#02acff 0, #006be4 100%) no-repeat padding-box !important;
    box-shadow: 0 -2px 0 0 #0159b9 inset !important;
    border: 0 !important;
    color: #fff !important;
    outline: 0 !important;
}

/* Responsive adjustments */
@media all and (max-width: 600px) {
    .lead-gen-form-wrapper .zcwf_col_lab,
    .lead-gen-form-wrapper .zcwf_col_fld {
        width: auto;
        float: none !important;
    }

    .lead-gen-form-wrapper .zcwf_col_help {
        width: 40%;
    }
}

/* Prevent form from affecting Avada's column system */
.fusion-column-wrapper .lead-gen-form-wrapper,
.fusion-layout-column .lead-gen-form-wrapper,
.fusion-builder-column .lead-gen-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Isolate from Avada's flex/grid */
    position: relative;
    display: block;
    /* Prevent breaking flex layout */
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    /* Prevent overflow issues */
    min-width: 0;
    min-height: 0;
}

/* Ensure form doesn't break Avada row containers */
.fusion-builder-row .lead-gen-form-wrapper,
.fusion-row .lead-gen-form-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    display: block;
}

/* Labels - full width, flex display for inline help */
.lead-gen-form-wrapper .zcwf_col_lab {
    width: 100% !important;
    float: none !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lead-gen-form-wrapper .zcwf_col_lab label {
    color: var(--awb-custom_color_1);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
    display: inline-block;
    flex: 0 0 auto;
    font-family: inherit;
}

.lead-gen-form-wrapper .zcwf_col_lab label span[style*="color:red"] {
    color: red !important;
}

/* Field containers - full width */
.lead-gen-form-wrapper .zcwf_col_fld {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* Input fields - match Avada styling */
.lead-gen-form-wrapper .zcwf_col_fld input[type="text"],
.lead-gen-form-wrapper .zcwf_col_fld input[type="email"],
.lead-gen-form-wrapper .zcwf_col_fld input[type="tel"],
.lead-gen-form-wrapper .zcwf_col_fld input[type="password"],
.lead-gen-form-wrapper .zcwf_col_fld textarea {
    width: 100% !important;
    height: unset;
    background-color: #ffffff;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 1rem;
    color: var(--awb-custom_color_1);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    float: none !important;
    resize: vertical;
    font-family: inherit;
}

.lead-gen-form-wrapper .zcwf_col_fld input:focus,
.lead-gen-form-wrapper .zcwf_col_fld textarea:focus {
    outline: none;
    border-color: var(--awb-color4) !important;
}

/* Select dropdowns */
.lead-gen-form-wrapper .zcwf_col_fld_slt,
.lead-gen-form-wrapper .zcwf_col_fld select {
    width: 100% !important;
    background-color: #ffffff;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 1rem;
    color: var(--awb-custom_color_1);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    float: none !important;
    font-family: inherit;
}

.lead-gen-form-wrapper .zcwf_col_fld select:focus {
    outline: none;
    border-color: var(--awb-color4) !important;
}

/* Help icons and tooltips - inline with label */
.lead-gen-form-wrapper .zcwf_col_lab {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lead-gen-form-wrapper .zcwf_col_lab label {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.lead-gen-form-wrapper .zcwf_col_help {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100%;
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: middle;
}

/* Hide empty help divs to save space */
.lead-gen-form-wrapper .zcwf_col_help:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    width: 0 !important;
}

/* Buttons - match Avada brown color scheme styling */
.lead-gen-form-wrapper .formsubmit.zcwf_button,
.lead-gen-form-wrapper input[type="submit"].formsubmit {
    background-color: var(--awb-color4) !important;
    background: var(--awb-color4) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px;
    padding: 20px 50px 15px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 10px;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    max-width: none;
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
    font-family: unset;
    line-height: 17px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: none !important;
    outline: 0;
}

.lead-gen-form-wrapper .formsubmit.zcwf_button:hover,
.lead-gen-form-wrapper input[type="submit"].formsubmit:hover {
    background-color: var(--awb-color5) !important;
    background: var(--awb-color5) !important;
    color: #ffffff !important;
}

.lead-gen-form-wrapper input[type="reset"].zcwf_button {
    background-color: transparent;
    color: var(--awb-custom_color_1);
    border: 1px solid var(--awb-custom_color_1);
    border-radius: 5px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: none;
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
    font-family: inherit;
}

.lead-gen-form-wrapper input[type="reset"].zcwf_button:hover {
    border-color: var(--awb-color4);
    background-color: #f5f5f5;
}

/* Captcha styling */
.lead-gen-form-wrapper #reCaptchaField {
    color: var(--awb-custom_color_1);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.lead-gen-form-wrapper #captchaField5979966000110311003 {
    width: 100% !important;
    background-color: #ffffff;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 1rem;
    color: var(--awb-custom_color_1);
}

.lead-gen-form-wrapper #imgid5979966000110311003 {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 6px;
}

.lead-gen-form-wrapper #imgid5979966000110311003 + a {
    color: var(--awb-color4);
    text-decoration: underline;
    font-size: 0.9rem;
}

.lead-gen-form-wrapper #imgid5979966000110311003 + a:hover {
    text-decoration: none;
}

/* Error messages */
.lead-gen-form-wrapper #captchaErr5979966000110311003 {
    color: red;
    font-size: 0.875rem;
    margin-top: 5px;
    position: relative !important;
    padding-top: 5px !important;
    visibility: visible !important;
}

/* Hide hidden fields container */
.lead-gen-form-wrapper .wfrm_fld_dpNn,
.wfrm_fld_dpNn {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Button container */
.lead-gen-form-wrapper .zcwf_row:has(input[type="submit"]) {
    margin-top: 25px;
    text-align: center;
}

.lead-gen-form-wrapper .zcwf_row:has(input[type="submit"]) .zcwf_col_fld {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive adjustments for Zoho form */
@media only screen and (max-width: 640px) {
    .lead-gen-form-wrapper {
        padding: 30px 25px;
        border-radius: 10px;;
    }

    .lead-gen-form-wrapper h2,
    .lead-gen-form-wrapper .fusion-title-heading,
    .lead-gen-form-wrapper h3 {
        font-size: 1.25rem;
        margin-bottom: 25px;
    }

    .lead-gen-form-wrapper #crmWebToEntityForm {
        padding: 20px 20px 10px;
    }

    .lead-gen-form-wrapper .formsubmit.zcwf_button,
    .lead-gen-form-wrapper input[type="submit"].formsubmit,
    .lead-gen-form-wrapper input[type="reset"].zcwf_button {
        width: 100%;
        margin: 5px 0;
    }

    .lead-gen-form-wrapper .zcwf_row:has(input[type="submit"]) .zcwf_col_fld {
        flex-direction: column;
    }
}

.lead-gen-form-wrapper .padder{
    padding: 20px;
}

.lead-gen-form-wrapper .padder.pt0{
	padding-top: 0;
}

.lead-gen-form-wrapper .padder.pb0{
	padding-bottom: 0;
}

.post-content .fb-landing-title-box2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px 40px;
    text-align: center;
	padding: 30px 0;
}

.post-content .fb-landing-title-box2 h5 {
    margin: 0;
    flex: 0 1 200px;
    min-width: 180px;
    letter-spacing: 2px;
	font-size: 18px;
	color: #fff;
}

@media (max-width: 786px){
	.post-content .fb-landing-title-box2 h5 {
        font-size: 18px;
        position: relative; /* Ensure that ::after is positioned properly */
    }

    .post-content .fb-landing-title-box2 h5::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 0;
        width: 100%;
        height: 1px;
        background: #bfb067;
    }

    .post-content .fb-landing-title-box2 h5:last-child::after {
        display: none;
    }
}

.lead-gen-form-wrapper.script-embed #crmWebToEntityForm.zcwf_lblLeft{
    padding-top: 0;
	padding-bottom: 0;
}

.lead-gen-form-wrapper.script-embed .zcwf_col_help{
	display: none;
}

.fb-landing-brand-mobile-fbc #far-logo-svg {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 767px) {
  .fb-landing-brand-mobile-fbc #far-logo-svg {
    max-width: 150px;
    height: auto;
  }
}