/**
 * Tenant application form.
 *
 * This compiled asset mirrors src/scss/global/_forms.scss and can be removed
 * once the main stylesheet has next been compiled by Prepros.
 */
.tenant-application {
    width: 100%;
}

.tenant-application__notice {
    margin: 0 0 3.2rem;
    padding: 1.6rem 2rem;
    border-left: 4px solid var(--e-global-color-secondary, #504552);
    background: rgba(255, 255, 255, 0.45);
}

.tenant-application .gf_progressbar_wrapper {
    margin-bottom: 4rem;
}

.tenant-application .gf_progressbar_title {
    margin: 0 0 1.6rem !important;
    color: #7d7d7d;
    font-family: var(--e-global-typography-accent-font-family), "DM Sans", sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    line-height: 1 !important;
    text-align: center;
    text-transform: uppercase;
}

.tenant-application .gf_progressbar {
    height: 1.2rem;
    overflow: visible;
    border-radius: 999px;
    background: #e5e1e2;
    box-shadow: none;
}

.tenant-application .gf_progressbar_percentage {
    position: relative;
    height: 1.2rem;
    border-radius: 999px;
    background: var(--e-global-color-secondary, #504552) !important;
}

.tenant-application .gf_progressbar_percentage span {
    position: absolute;
    top: 50%;
    right: 0.2rem;
    min-width: 4.4rem;
    padding: 0.55rem 0.8rem;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: var(--e-global-color-secondary, #504552);
    box-shadow: 0 1px 3px rgba(32, 26, 34, 0.18);
    color: #fff;
    font-family: var(--e-global-typography-accent-font-family), "DM Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.tenant-application .property-preview-container {
    --preview-background: #504552;
    --preview-text: #fff;
    --preview-muted: rgba(255, 255, 255, 0.7);
    --preview-divider: rgba(255, 255, 255, 0.2);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(80, 69, 82, 0.16);
    border-radius: 2px;
    box-shadow: none;
    background: var(--preview-background);
}

.tenant-application .gfield_property_select:has(select[data-filter="sale"]) .property-preview-container {
    --preview-background: #d6c0c2;
    --preview-text: #1a1a1a;
    --preview-muted: #1a1a1a;
    --preview-divider: rgba(26, 26, 26, 0.2);
}

.tenant-application .property-preview-card {
    display: grid;
    grid-template-columns: minmax(22rem, 38rem) 1fr;
    align-items: stretch;
    gap: 0;
}

.tenant-application .property-preview-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 0;
    background: #e5e1e2;
}

.tenant-application .property-preview-image a,
.tenant-application .property-preview-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.tenant-application .property-preview-image img {
    object-fit: cover;
    object-position: center center;
}

.tenant-application .property-preview-content {
    align-self: center;
    min-width: 0;
    padding: 3.2rem;
}

.tenant-application .property-preview-address {
    margin: 0;
    color: var(--preview-text);
    font-family: var(--e-global-typography-primary-font-family), "EB Garamond", Georgia, serif;
    font-size: clamp(2.8rem, 3vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.tenant-application .property-preview-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.6rem;
    color: var(--preview-muted);
    font-family: var(--e-global-typography-accent-font-family), "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.68px;
    line-height: 1.5;
    text-transform: uppercase;
}

.tenant-application .property-preview-price {
    order: -1;
    font-weight: 500;
}

.tenant-application .property-preview-details:has(.property-preview-price:not(:empty)) .property-preview-type:not(:empty) {
    padding-left: 1.6rem;
    border-left: 1px solid var(--preview-divider);
}

.tenant-application .property-preview-container .property-preview-content .property__corner-flash {
    margin-top: 1.6rem;
    border: 1px solid var(--preview-divider);
    border-radius: 2px;
    background: transparent !important;
    color: var(--preview-text) !important;
    font-family: var(--e-global-typography-accent-font-family), "DM Sans", sans-serif;
    font-weight: 500;
    letter-spacing: 1.68px;
}

.tenant-application .gform_fields {
    row-gap: 3.2rem;
}

.tenant-application .gfield_label {
    margin-bottom: 1.2rem !important;
}

.tenant-application .gfield_required_text {
    font-size: 0 !important;
}

.tenant-application .gfield_required_text::after {
    color: #9c2626;
    font-size: 14px;
    content: "*";
}

.tenant-application .select2-container {
    width: 100% !important;
}

.tenant-application .select2-selection--single {
    height: 56px !important;
    border: 0.1rem solid #e6e6e6 !important;
    border-radius: 2px !important;
    background: #ffffff !important;
}

.tenant-application .select2-selection__rendered {
    padding: 1.2rem 4rem 1.2rem 1.2rem !important;
    color: #333333 !important;
    font-family: var(--e-global-typography-primary-font-family), "EB Garamond", Georgia, serif !important;
    font-size: 1.8rem !important;
    line-height: 3rem !important;
}

.tenant-application .select2-selection__arrow {
    top: 50% !important;
    right: 1.2rem !important;
    transform: translateY(-50%);
}

.tenant-application .gfield_checkbox .gchoice,
.tenant-application .gfield_radio .gchoice {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tenant-application .gfield_checkbox input,
.tenant-application .gfield_radio input {
    flex: 0 0 auto;
    margin: 0 !important;
}

.tenant-application .gfield_checkbox label,
.tenant-application .gfield_radio label {
    margin: 0 !important;
    line-height: 1.5 !important;
}

.tenant-application .gfield_html {
    font-family: var(--e-global-typography-primary-font-family), "EB Garamond", Georgia, serif;
    font-size: 1.8rem;
    line-height: 1.55;
}

.tenant-application .gfield_html li + li {
    margin-top: 1rem;
}

.tenant-application .gform_page_footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 4rem;
}

.tenant-application .gform_page_footer .button {
    min-width: 13rem;
    margin: 0 !important;
    border: 1px solid var(--e-global-color-primary, #3b3a3c) !important;
    background: transparent !important;
    color: var(--e-global-color-primary, #3b3a3c) !important;
}

.tenant-application .gform_page_footer .button:hover,
.tenant-application .gform_page_footer .button:focus-visible {
    border-color: var(--e-global-color-secondary, #504552) !important;
    background: var(--e-global-color-secondary, #504552) !important;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .tenant-application .property-preview-card {
        grid-template-columns: 1fr;
    }

    .tenant-application .property-preview-content {
        padding: 2rem;
    }
    .tenant-application .gf_progressbar_wrapper {
        margin-bottom: 3.2rem;
    }

    .tenant-application .gform_fields {
        row-gap: 2.4rem;
    }

    .tenant-application .gfield--width-half,
    .tenant-application .gfield--width-third,
    .tenant-application .gfield--width-quarter {
        grid-column: 1 / -1;
    }

    .tenant-application .gform_page_footer {
        flex-direction: column-reverse;
    }

    .tenant-application .gform_page_footer .button {
        width: 100%;
    }
}
