.aay-bpf-outer {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    clear: both;
    box-sizing: border-box;
}

.elementor-widget.aay-bpf-elementor-widget,
.e-con.e-con > .e-con-inner > .elementor-widget.aay-bpf-elementor-widget {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    flex-basis: 100% !important;
}

.aay-bpf-elementor-widget-container,
.aay-bpf-elementor-shortcode {
    width: 100% !important;
    max-width: 100% !important;
}

.aay-bpf-wrap {
    --aay-bpf-button-color: #f58220;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 24px;
    flex: 0 1 1100px;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.aay-bpf-wrap *,
.aay-bpf-wrap *::before,
.aay-bpf-wrap *::after {
    box-sizing: border-box;
}

.aay-bpf-heading {
    margin: 0 0 16px;
}

.aay-bpf-heading h2 {
    margin: 0 0 5px;
    color: #172033;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.aay-bpf-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.aay-bpf-form {
    display: grid;
    grid-template-columns: minmax(230px, 1.35fr) minmax(170px, 1fr) minmax(150px, 0.85fr) minmax(150px, 0.85fr) auto;
    gap: 12px;
    align-items: end;
}

.aay-bpf-field {
    min-width: 0;
}

.aay-bpf-field label {
    display: block;
    margin: 0 0 7px;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.aay-bpf-field select,
.aay-bpf-field input[type="text"] {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background-color: #fff;
    color: #111827;
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.aay-bpf-field select:focus,
.aay-bpf-field input[type="text"]:focus {
    border-color: var(--aay-bpf-button-color);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.14);
}

.aay-bpf-inline-selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.aay-bpf-action {
    display: flex;
    align-items: end;
}

.aay-bpf-action button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 138px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    background: var(--aay-bpf-button-color);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.18s ease, transform 0.18s ease;
}

.aay-bpf-action button:hover,
.aay-bpf-action button:focus {
    color: #fff;
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.aay-bpf-search-icon {
    position: relative;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 50%;
    flex: 0 0 auto;
}

.aay-bpf-search-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

.aay-bpf-notice,
.aay-bpf-no-results {
    border-radius: 7px;
}

@media (max-width: 1100px) {
    .aay-bpf-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aay-bpf-action {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .aay-bpf-outer {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .aay-bpf-wrap {
        width: 100%;
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
        flex: none;
        padding: 16px;
        border-radius: 8px;
    }

    .aay-bpf-form,
    .aay-bpf-inline-selects {
        grid-template-columns: 1fr;
    }

    .aay-bpf-action {
        grid-column: auto;
    }

    .aay-bpf-action button {
        width: 100%;
        min-width: 0;
    }
}
