/* =========================================================
   RAHEJA PROPERTIES — GLOBAL ENQUIRY POPUP
========================================================= */

.enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .3s ease, visibility .3s ease;
}

.enquiry-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* BACKDROP */

.enquiry-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 21, 18, .72);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* POPUP BOX */

.enquiry-modal-box {
    position: relative;
    z-index: 2;

    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;

    padding: 50px;

    background: #fcfaf6;
    color: #26231f;

    box-shadow: 0 30px 100px rgba(0, 0, 0, .28);

    transform: translateY(24px) scale(.98);
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}

.enquiry-modal.is-open .enquiry-modal-box {
    transform: translateY(0) scale(1);
}

/* CLOSE BUTTON */

.enquiry-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(38,35,31,.18);
    background: transparent;

    color: #26231f;
    font-size: 26px;
    line-height: 1;

    cursor: pointer;
    transition: .25s ease;
}

.enquiry-modal-close:hover {
    background: #f47716;
    border-color: #f47716;
    color: #fff;
}

/* HEADING */

.enquiry-modal-label {
    display: block;
    margin-bottom: 14px;

    color: #f47716;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
}

.enquiry-modal-head h2 {
    margin: 0;

    max-width: 580px;

    color: #26231f;

    font-family: "DM Sans", sans-serif;
    font-size: clamp(36px, 4vw, 50px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -.04em;
}

.enquiry-modal-head h2 em {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
}

.enquiry-modal-head p {
    max-width: 600px;
    margin: 17px 0 0;

    color: #706a62;

    font-size: 14px;
    line-height: 1.65;
}

/* FORM */

.enquiry-popup-form {
    margin-top: 32px;
}

.enquiry-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.enquiry-field {
    margin-bottom: 21px;
}

.enquiry-field label {
    display: block;

    margin-bottom: 7px;

    color: #514b44;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.enquiry-field input,
.enquiry-field select,
.enquiry-field textarea {
    display: block;

    width: 100%;
    box-sizing: border-box;

    padding: 13px 2px;

    border: 0;
    border-bottom: 1px solid #d8d0c5;
    border-radius: 0;

    outline: none;

    background: transparent;
    color: #26231f;

    font-family: "DM Sans", sans-serif;
    font-size: 14px;
}

.enquiry-field input:focus,
.enquiry-field select:focus,
.enquiry-field textarea:focus {
    border-bottom-color: #f47716;
}

.enquiry-field textarea {
    min-height: 78px;
    resize: vertical;
}

/* SUBMIT */

.enquiry-submit {
    width: 100%;
    min-height: 58px;

    margin-top: 5px;
    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;

    background: #f47716;
    color: #fff;

    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;

    cursor: pointer;

    transition: background .25s ease;
}

.enquiry-submit:hover {
    background: #26231f;
}

body.enquiry-modal-open {
    overflow: hidden;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .enquiry-modal {
        padding: 15px;
    }

    .enquiry-modal-box {
        padding: 44px 25px 28px;
        max-height: calc(100vh - 30px);
    }

    .enquiry-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .enquiry-modal-head h2 {
        font-size: 38px;
    }
}

@media (max-width: 430px) {

    .enquiry-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .enquiry-modal-box {
        max-height: 92vh;
        padding: 40px 20px 24px;
    }

    .enquiry-modal-head h2 {
        font-size: 32px;
    }

    .enquiry-modal-head p {
        font-size: 13px;
    }

    .enquiry-modal-close {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }
}
/* =========================================================
   ENQUIRY SUCCESS STATE — FINAL
========================================================= */

/* Success state ke andar old modal heading hide */
.enquiry-modal-box:has(.enquiry-success) .enquiry-modal-head {
    display: none !important;
}

/* Success screen */
.enquiry-success {
    width: 100%;
    min-height: 430px;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 45px 30px 30px;
    box-sizing: border-box;

    text-align: center;
}


/* ORANGE CHECK CIRCLE */

.enquiry-success-icon {
    width: 72px !important;
    height: 72px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 72px;

    margin: 0 auto 24px !important;

    border-radius: 50% !important;
    border: 0 !important;

    background: #f47716 !important;
    color: #ffffff !important;

    font-family: Arial, sans-serif;
    font-size: 32px !important;
    font-weight: 700;
    line-height: 1 !important;
}


/* SMALL ORANGE LABEL */

.enquiry-success .enquiry-modal-label {
    display: block !important;

    margin: 0 0 18px !important;

    color: #f47716 !important;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2;

    letter-spacing: 3px !important;
    text-transform: uppercase;
}


/* SUCCESS TITLE */

.enquiry-success h3 {
    margin: 0 0 18px !important;

    color: #26231f !important;

    font-family: "DM Sans", Arial, sans-serif !important;
    font-size: 38px !important;
    font-weight: 600 !important;
    line-height: 1.12 !important;

    letter-spacing: -1px;
}


.enquiry-success h3 em {
    font-family: "Playfair Display", Georgia, serif !important;
    font-weight: 500 !important;
}


/* SUCCESS DESCRIPTION */

.enquiry-success p {
    width: 100%;
    max-width: 540px;

    margin: 0 auto 30px !important;

    color: #756f67 !important;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 15px !important;
    font-weight: 400;
    line-height: 1.7 !important;
}


/* CLOSE BUTTON */

.enquiry-success-close {
    min-width: 190px !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 17px 32px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #26231f !important;
    color: #ffffff !important;

    font-family: "DM Sans", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background .25s ease,
        transform .25s ease;
}


.enquiry-success-close:hover {
    background: #f47716 !important;
    color: #ffffff !important;

    transform: translateY(-2px);
}


/* SUCCESS STATE POPUP SIZE */

.enquiry-modal-box:has(.enquiry-success) {
    width: min(680px, 100%);
    padding: 50px !important;
}


/* =========================================================
   SUCCESS — TABLET / MOBILE
========================================================= */

@media (max-width: 767px) {

    .enquiry-modal-box:has(.enquiry-success) {
        padding: 45px 24px 30px !important;
    }

    .enquiry-success {
        min-height: 360px;
        padding: 30px 5px 15px;
    }

    .enquiry-success-icon {
        width: 62px !important;
        height: 62px !important;
        flex-basis: 62px;

        font-size: 27px !important;

        margin-bottom: 20px !important;
    }

    .enquiry-success h3 {
        font-size: 30px !important;
    }

    .enquiry-success p {
        font-size: 14px !important;
        margin-bottom: 25px !important;
    }

    .enquiry-success-close {
        width: 100% !important;
    }
}