/* Address Infra Button Enquiry v1 */

:root {
    --aibe-width: 640px;
    --aibe-bg: #FAF8F3;
    --aibe-heading: #10283C;
    --aibe-body: #66716E;
    --aibe-accent: #B9955A;
    --aibe-button: #B9955A;
    --aibe-button-hover: #10283C;
    --aibe-field-bg: #FFFFFF;
    --aibe-field-border: #DED8CE;
}

html.aibe-lock,
html.aibe-lock body {
    overflow: hidden !important;
}

.aibe-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(7, 31, 27, .62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.aibe-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.aibe-dialog {
    position: relative;
    box-sizing: border-box;
    width: min(var(--aibe-width), 100%);
    max-height: calc(100dvh - 36px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 40px;
    background: var(--aibe-bg);
    border: 1px solid rgba(185, 149, 90, .45);
    box-shadow: 0 28px 90px rgba(7, 31, 27, .28);
}

.aibe-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border: 1px solid var(--aibe-accent) !important;
    border-radius: 0 !important;
    background: var(--aibe-accent) !important;
    background-color: var(--aibe-accent) !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 27px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.aibe-close:hover,
.aibe-close:focus {
    border-color: var(--aibe-button-hover) !important;
    background: var(--aibe-button-hover) !important;
    background-color: var(--aibe-button-hover) !important;
    color: #fff !important;
    outline: none !important;
}

.aibe-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--aibe-accent);
    font: 700 10px/1 Manrope, Arial, sans-serif;
    letter-spacing: .18em;
}

.aibe-dialog h2 {
    margin: 0 52px 10px 0;
    color: var(--aibe-heading);
    font: 500 42px/1.03 "Cormorant Garamond", Georgia, serif;
}

.aibe-subtext {
    margin: 0 0 24px;
    color: var(--aibe-body);
    font: 400 13px/1.55 Manrope, Arial, sans-serif;
}

#aibe-form {
    width: 100%;
    margin: 0;
}

.aibe-row {
    display: flex;
    gap: 14px;
    width: 100%;
}

.aibe-field {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 14px;
}

.aibe-row .aibe-field {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
}

.aibe-field label {
    display: block;
    min-height: 14px;
    margin: 0 0 7px;
    color: var(--aibe-heading);
    font: 700 10px/1.35 Manrope, Arial, sans-serif;
}

.aibe-field input,
.aibe-field select,
.aibe-field textarea {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 1px solid var(--aibe-field-border) !important;
    border-radius: 0 !important;
    background-color: var(--aibe-field-bg) !important;
    color: #1A2731 !important;
    font: 400 13px/1.3 Manrope, Arial, sans-serif !important;
    outline: none !important;
    box-shadow: none !important;
}

.aibe-field input,
.aibe-field select {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 42px 0 14px !important;
}

.aibe-field input {
    padding-right: 14px !important;
}

.aibe-field textarea {
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    padding: 13px 14px !important;
    resize: none !important;
    line-height: 1.45 !important;
}

.aibe-field input:focus,
.aibe-field select:focus,
.aibe-field textarea:focus {
    border-color: var(--aibe-accent) !important;
}

.aibe-field select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--aibe-heading) 50%),
        linear-gradient(135deg, var(--aibe-heading) 50%, transparent 50%) !important;
    background-position:
        calc(100% - 19px) 21px,
        calc(100% - 14px) 21px !important;
    background-size: 5px 5px, 5px 5px !important;
    background-repeat: no-repeat !important;
}

.aibe-submit {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 20px !important;
    border: 1px solid var(--aibe-button) !important;
    border-radius: 0 !important;
    background: var(--aibe-button) !important;
    background-color: var(--aibe-button) !important;
    color: #fff !important;
    font: 700 10px/1 Manrope, Arial, sans-serif !important;
    letter-spacing: .09em !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.aibe-submit:hover,
.aibe-submit:focus {
    border-color: var(--aibe-button-hover) !important;
    background: var(--aibe-button-hover) !important;
    background-color: var(--aibe-button-hover) !important;
    color: #fff !important;
}

.aibe-submit:disabled {
    opacity: .65 !important;
}

.aibe-message {
    min-height: 18px;
    margin-top: 10px;
    color: var(--aibe-body);
    font: 400 11px/1.4 Manrope, Arial, sans-serif;
}

.aibe-message.is-success {
    color: #0F3B33;
}

.aibe-message.is-error {
    color: #9B2C2C;
}

.aibe-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.aibe-shortcode-button {
    border: 1px solid var(--aibe-button);
    background: var(--aibe-button);
    color: #fff;
    padding: 13px 22px;
    font: 700 11px/1 Manrope, Arial, sans-serif;
    letter-spacing: .06em;
    cursor: pointer;
}

/* Connected Elementor buttons are only recolored when admin enables Style Connected Buttons */
body[style*="--aibe-style-triggers:1"] .address-enquiry-open,
body[style*="--aibe-style-triggers:1"] .address-enquiry-open .elementor-button {
    border-color: var(--aibe-button) !important;
    background: var(--aibe-button) !important;
    background-color: var(--aibe-button) !important;
    color: #fff !important;
    fill: #fff !important;
}

@media (max-width: 767px) {
    .aibe-overlay {
        padding: 10px;
    }

    .aibe-dialog {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 20px);
        padding: 30px 18px 20px;
    }

    .aibe-close {
        top: 10px !important;
        right: 10px !important;
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        font-size: 25px !important;
    }

    .aibe-dialog h2 {
        margin-right: 44px;
        font-size: 32px;
    }

    .aibe-subtext {
        margin-bottom: 20px;
        font-size: 12px;
    }

    .aibe-row {
        display: block;
    }

    .aibe-row .aibe-field {
        width: 100%;
        min-width: 100%;
    }

    .aibe-field {
        margin-bottom: 12px;
    }

    .aibe-field input,
    .aibe-field select {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
    }

    .aibe-field textarea {
        height: 84px !important;
        min-height: 84px !important;
        max-height: 84px !important;
    }

    .aibe-field select {
        background-position:
            calc(100% - 19px) 20px,
            calc(100% - 14px) 20px !important;
    }

    .aibe-submit {
        height: 46px !important;
        min-height: 46px !important;
    }
}


/* Inline Contact Us form shortcode */
.aibe-inline-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--aibe-width);
    margin: 0 auto;
    padding: 0;
}

.aibe-inline-head {
    margin-bottom: 24px;
}

.aibe-inline-head h2 {
    margin: 0 0 10px;
    color: var(--aibe-heading);
    font: 500 42px/1.03 "Cormorant Garamond", Georgia, serif;
}

.aibe-inline-wrap .aibe-subtext {
    margin-bottom: 0;
}

.aibe-inline-wrap .aibe-form-instance {
    width: 100%;
}

@media (max-width: 767px) {
    .aibe-inline-wrap {
        max-width: 100%;
    }

    .aibe-inline-head {
        margin-bottom: 20px;
    }

    .aibe-inline-head h2 {
        font-size: 32px;
    }
}
