/* Wise Homes — shared enquiry popup modal (self-contained, shared across project pages) */
.wh-enq-modal {
    --we-deep: #2C2C2C;
    --we-dark: #1F1F1F;
    --we-gold: #C9A961;
    --we-gold-dk: #A8893F;
    --we-cream: #F5F5F5;
    position: fixed;
    inset: 0;
    z-index: 99995;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', Arial, sans-serif;
}
.wh-enq-modal.wh-enq-open { display: flex; }
body.wh-enq-lock { overflow: hidden; }

.wh-enq-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.72);
    backdrop-filter: blur(3px);
    animation: whEnqFadeIn .25s ease;
}
@keyframes whEnqFadeIn { from { opacity: 0; } to { opacity: 1; } }

.wh-enq-dialog {
    position: relative;
    width: min(460px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(201, 169, 97, 0.25);
    animation: whEnqScaleIn .3s cubic-bezier(.25, .8, .25, 1);
}
@keyframes whEnqScaleIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.wh-enq-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(44, 44, 44, 0.06);
    color: var(--we-deep);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.wh-enq-close:hover { background: rgba(44, 44, 44, 0.12); }

.wh-enq-body { padding: 40px 32px 32px; }

.wh-enq-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--we-deep);
    text-align: center;
    margin: 0 0 10px;
}
.wh-enq-desc {
    font-size: 13.5px;
    color: #666;
    text-align: center;
    line-height: 1.6;
    margin: 0 0 26px;
}
.wh-enq-desc strong { color: var(--we-gold-dk); }

.wh-enq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .wh-enq-row { grid-template-columns: 1fr; } }

.wh-enq-field { margin-bottom: 14px; }
.wh-enq-field input {
    width: 100%;
    border: 2px solid rgba(44, 44, 44, 0.15);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: var(--we-cream);
    color: var(--we-deep);
    transition: border-color .25s ease;
}
.wh-enq-field input:focus { border-color: var(--we-gold); background: #fff; }

.wh-enq-err { color: #dc3545; font-size: 11.5px; line-height: 1.4; margin: 6px 0 0; padding: 0 2px; display: none; }
.wh-enq-err.show { display: block; }

.wh-enq-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: #555; margin-bottom: 6px; }
.wh-enq-consent input[type=checkbox] { margin-top: 3px; flex-shrink: 0; accent-color: var(--we-gold-dk); width: 16px; height: 16px; cursor: pointer; }
.wh-enq-consent label { cursor: pointer; line-height: 1.5; }

.wh-enq-btn {
    width: 100%;
    margin-top: 18px;
    background: linear-gradient(135deg, var(--we-gold) 0%, var(--we-gold-dk) 100%);
    color: #201a0d;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.wh-enq-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 169, 97, 0.4); }
.wh-enq-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.wh-enq-btn-ghost {
    background: transparent;
    color: var(--we-deep);
    border: 2px solid rgba(44, 44, 44, 0.15);
    margin-top: 22px;
}
.wh-enq-btn-ghost:hover { background: rgba(44, 44, 44, 0.05); box-shadow: none; }

.wh-enq-success { display: none; text-align: center; padding: 10px 0 4px; }
.wh-enq-success.show { display: block; }
.wh-enq-success i { font-size: 52px; color: #2eb872; margin-bottom: 14px; display: block; }
.wh-enq-success h4 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--we-deep); margin: 0 0 10px; }
.wh-enq-success p { font-size: 13.5px; color: #666; line-height: 1.6; margin: 0; }

@media (max-width: 420px) {
    .wh-enq-body { padding: 34px 22px 26px; }
}
