/* =========================================================
   QUENDALE
   ENQUIRY + HOUSE INFORMATION
   ========================================================= */


/* =========================================================
   SHARED WRAPPERS
   ========================================================= */

.qre-enquiry,
.qre-house-info {
    width: 100%;

    text-align: center;

    box-sizing: border-box;
}


.qre-button-wrap {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 100%;

    margin: 0 auto;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.qre-open,
.qre-info-open,
.qre-submit,
.qre-thankyou-close {
    border-radius: 0;

    cursor: pointer;

    font-family: inherit;
}


/* Enquiry button */

.qre-open {
    width: auto;

    padding: 13px 24px;

    background: #8A6748;

    color: #FFFFFF;

    border: 1px solid #8A6748;

    font-size: 16px;
    font-weight: 500;
}


/* House Information button */

.qre-info-open {
    width: auto;

    padding: 13px 24px;

    background: transparent;

    color: #8A6748;

    border: 1px solid #8A6748;

    font-size: 16px;
    font-weight: 500;
}


/* Enquiry hover */

.qre-open:hover,
.qre-open:focus,
.qre-submit:hover,
.qre-submit:focus,
.qre-thankyou-close:hover,
.qre-thankyou-close:focus {

    background: #6F5037;

    border-color: #6F5037;

    color: #FFFFFF;
}


/* House Information hover */

.qre-info-open:hover,
.qre-info-open:focus {

    background: #8A6748;

    border-color: #8A6748;

    color: #FFFFFF;
}


/* =========================================================
   HIDDEN STATES
   ========================================================= */

.qre-modal[hidden],
.qre-form-view[hidden],
.qre-thankyou[hidden] {

    display: none !important;
}


/* =========================================================
   MODAL
   ========================================================= */

.qre-modal {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px;
}


/* Backdrop */

.qre-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(20, 20, 20, 0.62);
}


/* Main dialog */

.qre-dialog {
    position: relative;

    z-index: 1;

    width: min(680px, 100%);

    max-height: calc(100vh - 48px);

    overflow-y: auto;

    padding: 38px;

    background: #FAF8F3;

    box-sizing: border-box;

    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.25);

    text-align: left;
}


/* =========================================================
   MAIN MODAL HEADING
   ========================================================= */

.qre-dialog h2 {
    margin: 0 42px 10px 0;

    color: #76583D;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 400;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.qre-close {
    position: absolute;

    top: 14px;
    right: 16px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #302D2A;

    font-size: 34px;
    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   ENQUIRY INTRODUCTION
   ========================================================= */

.qre-intro {
    margin: 0 0 24px;

    color: #625D57;

    line-height: 1.55;
}


/* =========================================================
   FORM GRID
   ========================================================= */

.qre-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

.qre-field {
    margin-bottom: 18px;
}


.qre-field label {
    display: block;

    margin-bottom: 6px;

    color: #302D2A;

    font-size: 15px;
    font-weight: 500;
}


.qre-optional {
    color: #625D57;

    font-weight: 400;
}


.qre-field input,
.qre-field textarea {
    width: 100%;

    padding: 11px 12px;

    box-sizing: border-box;

    border: 1px solid #CFC6BA;

    border-radius: 0;

    background: #FFFFFF;

    color: #302D2A;

    font: inherit;
}


.qre-field input:focus,
.qre-field textarea:focus {
    outline: 2px solid #8A6748;

    outline-offset: 1px;

    border-color: #8A6748;
}


/* =========================================================
   FIELD MESSAGE
   ========================================================= */

.qre-field-message {
    margin-top: 7px;

    font-size: 14px;
    line-height: 1.45;
}


/* =========================================================
   SUBMIT / CLOSE BUTTON
   ========================================================= */

.qre-submit,
.qre-thankyou-close {
    padding: 12px 22px;

    background: #8A6748;

    color: #FFFFFF;

    border: 1px solid #8A6748;

    font-size: 16px;
    font-weight: 500;
}


/* =========================================================
   STATUS / ERROR
   ========================================================= */

.qre-status {
    margin: 0 0 16px;

    line-height: 1.5;
}


.qre-error {
    color: #8A2E2E;
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.qre-honeypot {
    position: absolute !important;

    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}


/* =========================================================
   THANK YOU
   ========================================================= */

.qre-thankyou {
    padding: 30px 10px 18px;

    text-align: center;
}


.qre-thankyou-message {
    max-width: 470px;

    margin: 0 auto 28px;

    color: #302D2A;

    font-size: 18px;
    line-height: 1.6;
}


/* =========================================================
   HOUSE INFORMATION
   ========================================================= */

.qre-info-dialog {
    width: min(720px, 100%);
}


.qre-info-title {
    margin-bottom: 30px !important;
}


/* Individual chapters */

.qre-info-section {
    margin-top: 30px;

    padding-top: 30px;

    border-top: 1px solid #D8CFC3;
}


/*
 * First chapter does not need a separator immediately
 * below the main House Information heading.
 */

.qre-info-section:first-of-type {
    margin-top: 0;

    padding-top: 0;

    border-top: 0;
}


/* Chapter headings */

.qre-info-section h3 {
    margin: 0 0 14px;

    color: #76583D;

    font-size: 22px;
    line-height: 1.25;
    font-weight: 400;
}


/* Chapter paragraphs */

.qre-info-section p {
    margin: 0 0 16px;

    color: #302D2A;

    font-size: 16px;
    line-height: 1.65;
}


.qre-info-section p:last-child {
    margin-bottom: 0;
}


/* Prevent background page scrolling */

body.qre-modal-open {
    overflow: hidden;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .qre-open,
    .qre-info-open {
        padding: 12px 22px;

        font-size: 15px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .qre-enquiry,
    .qre-house-info {
        padding-left: 18px;
        padding-right: 18px;
    }


    .qre-modal {
        padding: 14px;
    }


    .qre-dialog {
        max-height: calc(100vh - 28px);

        padding: 28px 20px 22px;
    }


    .qre-dialog h2 {
        font-size: 25px;
    }


    .qre-grid {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .qre-open,
    .qre-info-open {
        width: 100%;

        max-width: 340px;

        padding: 13px 18px;

        font-size: 15px;

        white-space: normal;

        box-sizing: border-box;
    }


    .qre-submit,
    .qre-thankyou-close {
        width: 100%;

        box-sizing: border-box;
    }


    .qre-info-title {
        margin-bottom: 24px !important;
    }


    .qre-info-section {
        margin-top: 24px;

        padding-top: 24px;
    }


    .qre-info-section h3 {
        font-size: 20px;
    }


    .qre-info-section p {
        font-size: 15px;

        line-height: 1.6;
    }

}