.container-city-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin: 12px 0 16px;
    box-sizing: border-box;
}

.container-city-field .container-city-label {
    display: block;
    margin: 0;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.container-city-field .container-city-select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 38px 10px 12px;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    color: #1a1b1b;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23555' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
}

.container-city-field .container-city-select:focus-visible {
    outline: 2px solid #666;
    outline-offset: 2px;
}

.elementor-form .container-city-field {
    margin-top: 0;
}

.step4_contacts > .container-city-field-quiz {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.container-city-field-quiz .container-city-select {
    padding-top: 16px;
    padding-bottom: 16px;
    border-color: #f3f5fc;
    background-color: #f3f5fc;
}

.wl-form-rent-fields > .container-city-field {
    margin: 0;
}

.wl-form-rent-fields .container-city-select {
    background-color: #ededed;
    border-color: #ededed;
}

.wl-banner-calculatorblock.container-city-expanded {
    height: auto;
}

/* The calculator extends below the banner; reserve room for its added row. */
.wl-banner.container-city-expanded {
    --container-city-extra-space: 110px;
    margin-bottom: calc(200px + var(--container-city-extra-space));
}

.wl-section-conditions-form.container-city-enabled {
    height: auto;
}

/* Let the contact card determine section height, keeping its shorter backdrop. */
.wl-section-leavecontacts.container-city-expanded {
    height: auto;
}

.wl-section-leavecontacts.container-city-expanded .wl-section-leavecontacts-wrapper {
    position: relative;
    isolation: isolate;
    height: auto;
    min-height: 360px;
    align-items: flex-start;
    padding-bottom: 50px;
    background: none;
}

.wl-section-leavecontacts.container-city-expanded .wl-section-leavecontacts-wrapper::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 360px;
    border-radius: inherit;
    background-color: #1a1b1b;
    background-image: url("images/form-map-vector.svg");
    background-repeat: no-repeat;
    background-position: right;
    background-blend-mode: overlay;
}

.wl-section-leavecontacts.container-city-expanded .wl-section-leavecontacts-right {
    height: auto;
}

.wl-form-rent-wrapper.container-city-expanded {
    padding-top: 52px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.wl-form-rent-wrapper.container-city-expanded .wl-form-close {
    right: 8px;
}

.wl-form-rent-wrapper.container-city-expanded .wl-form-close path {
    stroke: #1a1b1b;
}

@media (min-width: 1024px) and (max-width: 1399px) {
    .wl-banner.container-city-expanded {
        margin-bottom: calc(240px + var(--container-city-extra-space));
    }
}

@media (max-width: 1023px) {
    .wl-banner.container-city-expanded {
        margin-bottom: calc(420px + var(--container-city-extra-space));
    }

    .wl-banner.container-city-expanded .wl-banner-descriptionswrapper {
        bottom: calc(-402px - var(--container-city-extra-space));
    }
}

@media (max-width: 730px) {
    .wl-section-leavecontacts.container-city-expanded .wl-section-leavecontacts-wrapper {
        min-height: 700px;
        align-items: center;
    }

    .wl-section-leavecontacts.container-city-expanded .wl-section-leavecontacts-wrapper::before {
        height: 700px;
    }

    .wl-banner.container-city-expanded {
        margin-bottom: calc(800px + var(--container-city-extra-space));
    }

    .wl-banner-calculatorblock.container-city-expanded {
        bottom: calc(-400px - var(--container-city-extra-space));
    }

    .wl-banner.container-city-expanded .wl-banner-descriptionswrapper {
        bottom: calc(-760px - var(--container-city-extra-space));
    }
}
