/* Banner inquiry form: compact on desktop/tablet, modal on mobile (<=767px).
   Used by pages/page-product.php and taxonomy-product_category.php */
.breadcrumb_nav .bf-form-wrap {
    flex: 0 0 340px;
    max-width: 340px;
    align-self: center;
    background-color: rgba(51, 51, 51, .45);
    padding: 14px 14px 12px;
    border-radius: 6px;
}
.breadcrumb_nav .bf-form-title {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
    font-family: var(--fontFamily);
}
.breadcrumb_nav .bf-form-wrap .productForm > input,
.breadcrumb_nav .bf-form-wrap .productForm select {
    height: 34px;
    margin: 0 0 7px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px !important;
    box-shadow: none;
}
.breadcrumb_nav .bf-form-wrap .productForm .form_select {
    margin: 0 0 7px;
    padding-right: 10px !important;
    border-radius: 3px;
}
.breadcrumb_nav .bf-form-wrap .productForm .form_select select {
    margin: 0;
    padding: 0 6px;
}
.breadcrumb_nav .bf-form-wrap .productForm > textarea {
    display: block;
    height: 64px;
    min-height: 54px;
    margin: 0 0 7px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    border: 0;
    border-radius: 3px;
    resize: vertical;
}
.breadcrumb_nav .bf-form-wrap .productForm .cf-turnstile {
    margin: 0 0 7px;
    min-height: 65px;
}
.breadcrumb_nav .bf-form-wrap .productForm > button[type="submit"] {
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    border: 0;
    border-radius: 4px;
}
.breadcrumb_nav .bf-form-wrap .productForm > button[type="submit"]:disabled {
    opacity: .7;
}
/* hidden on desktop/tablet */
.breadcrumb_nav .bf-close,
.breadcrumb_nav .bf-quote-btn-row {
    display: none;
}

/* tablet: slightly narrower */
@media (min-width: 768px) and (max-width: 991px) {
    .breadcrumb_nav .bf-form-wrap {
        flex-basis: 330px;
        max-width: 330px;
    }
}

/* ---------- mobile: button in banner + modal ---------- */
@media (max-width: 767px) {
    .breadcrumb_nav .bf-quote-btn-row {
        display: block;
        margin: 14px 0 4px;
    }
    .breadcrumb_nav .bf-quote-btn {
        display: inline-block;
        width: auto;
        height: auto;
        margin: 0;
        padding: 11px 26px;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        color: #fff;
        background-color: var(--mainColor, #3074f1);
        border: 0;
        border-radius: 999px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
        cursor: pointer;
    }
    .breadcrumb_nav .bf-quote-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

    /* the wrap becomes the overlay; same form node, no DOM move */
    .breadcrumb_nav .bf-form-wrap {
        position: fixed;
        top: 0; right: 0; bottom: 0; left: 0;
        z-index: 100000;
        max-width: none;
        width: auto;
        flex: none;
        align-self: stretch; /* abspos align-self:center would shrink-wrap the overlay */
        justify-self: stretch;
        height: auto;
        margin: 0 !important;
        padding: 16px;
        border-radius: 0;
        background-color: rgba(0, 0, 0, .6);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--dl-transition) ease, visibility 0s linear var(--dl-transition);
    }
    .breadcrumb_nav .bf-form-wrap.bf-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: opacity var(--dl-transition) ease;
    }
    .breadcrumb_nav .bf-form-card {
        position: relative;
        width: 100%;
        max-width: 380px;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        background: #fff;
        border-radius: 10px;
        padding: 16px 16px 14px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    }
    .breadcrumb_nav .bf-form-title {
        color: #222;
        font-size: 18px;
        margin: 0 34px 10px 0;
    }
    .breadcrumb_nav .bf-close {
        display: block;
        position: absolute;
        top: 6px;
        right: 6px;
        width: 34px;
        height: 34px;
        margin: 0;
        padding: 0;
        font-size: 26px;
        line-height: 34px;
        font-weight: 400;
        text-align: center;
        color: #555;
        background: transparent;
        border: 0;
        border-radius: 50%;
        cursor: pointer;
    }
    .breadcrumb_nav .bf-close:hover { background: #f0f0f0; }
    .breadcrumb_nav .bf-form-wrap .productForm > input,
    .breadcrumb_nav .bf-form-wrap .productForm .form_select,
    .breadcrumb_nav .bf-form-wrap .productForm > textarea {
        border: 1px solid #d9d9d9 !important;
        background-color: #fff;
        color: #222;
    }
    .breadcrumb_nav .bf-form-wrap .productForm .form_select select { height: 32px; border: 0 !important; }
    .breadcrumb_nav .bf-form-wrap .productForm > input,
    .breadcrumb_nav .bf-form-wrap .productForm .form_select { height: 36px; }
    .breadcrumb_nav .bf-form-wrap .productForm .form_select { display: flex; align-items: center; }
    .breadcrumb_nav .bf-form-wrap .productForm .cf-turnstile { overflow: hidden; }
}
html.bf-lock,
html.bf-lock body {
    overflow: hidden !important;
}

/* ---------- round 3: extra-compact desktop/tablet (>=768px) ---------- */
@media (min-width: 768px) {
    .breadcrumb_nav .bf-form-wrap {
        padding: 10px 10px 10px;
    }
    .breadcrumb_nav .bf-form-title {
        font-size: 15px;
        line-height: 1.25;
        margin: 0 0 6px;
    }
    /* 2-column grid: phone+company and the two selects share a row */
    .breadcrumb_nav .bf-form-wrap .productForm {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 5px 6px;
    }
    .breadcrumb_nav .bf-form-wrap .productForm > * {
        grid-column: 1 / -1;
        margin: 0 !important;
    }
    .breadcrumb_nav .bf-form-wrap .productForm > input[name="phone"],
    .breadcrumb_nav .bf-form-wrap .productForm > input[name="company"],
    .breadcrumb_nav .bf-form-wrap .productForm > .form_select {
        grid-column: auto;
        min-width: 0;
    }
    .breadcrumb_nav .bf-form-wrap .productForm > div:empty:not(.cf-turnstile) {
        display: none;
    }
    .breadcrumb_nav .bf-form-wrap .productForm > input,
    .breadcrumb_nav .bf-form-wrap .productForm .form_select {
        height: 31px;
        font-size: 13px;
    }
    .breadcrumb_nav .bf-form-wrap .productForm > input {
        padding: 0 9px;
    }
    .breadcrumb_nav .bf-form-wrap .productForm .form_select {
        padding-right: 6px !important;
    }
    .breadcrumb_nav .bf-form-wrap .productForm .form_select select {
        height: 31px;
        padding: 0 4px 0 8px;
        font-size: 13px;
        line-height: 31px;
        text-overflow: ellipsis;
    }
    .breadcrumb_nav .bf-form-wrap .productForm > textarea {
        height: 50px;          /* ~2 rows */
        min-height: 44px;
        padding: 5px 9px;
        font-size: 13px;
        line-height: 1.4;
    }
    .breadcrumb_nav .bf-form-wrap .productForm .cf-turnstile {
        min-height: 65px;      /* widget's fixed height - don't shrink */
        line-height: 0;
    }
    .breadcrumb_nav .bf-form-wrap .productForm > button[type="submit"] {
        height: 34px;
        font-size: 14px;
    }
}

/* ---------- submit hover (all sizes, only when enabled) ---------- */
.breadcrumb_nav .bf-form-wrap .productForm > button[type="submit"] {
    cursor: pointer;
    transition: background-color var(--dl-transition) ease, transform var(--dl-transition) ease, box-shadow var(--dl-transition) ease;
}
.breadcrumb_nav .bf-form-wrap .productForm > button[type="submit"]:not(:disabled):hover,
.breadcrumb_nav .bf-form-wrap .productForm > button[type="submit"]:not(:disabled):focus-visible {
    background-color: #0045c2; /* darker brand blue (mainColor3 = #0055ef) */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 69, 194, .45);
}
.breadcrumb_nav .bf-form-wrap .productForm > button[type="submit"]:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 69, 194, .35);
}
.breadcrumb_nav .bf-form-wrap .productForm > button[type="submit"]:disabled {
    cursor: not-allowed;
}
