/* Mesquita PopUp IPTU - estilos */
.mpi-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: mpiFade .25s ease-out;
}
.mpi-overlay.mpi-show { display: flex; }

@keyframes mpiFade { from { opacity: 0 } to { opacity: 1 } }

.mpi-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 880px;
    width: 100%;
    max-height: 92vh;
    overflow: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    animation: mpiUp .3s ease-out;
}
@keyframes mpiUp { from { transform: translateY(20px); opacity: 0 } to { transform: none; opacity: 1 } }

.mpi-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    z-index: 2;
}
.mpi-close:hover { color: #000; }

.mpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}
.mpi-banner {
    background-size: cover;
    background-position: center;
    background-color: #003a70;
    border-radius: 12px 0 0 12px;
}
.mpi-content {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mpi-titulo {
    margin: 0 0 6px;
    font-size: 28px;
    color: #003a70;
    font-weight: 800;
}
.mpi-subtitulo {
    margin: 0 0 18px;
    color: #444;
    font-size: 15px;
    line-height: 1.4;
}

.mpi-form .mpi-row { margin-bottom: 10px; }
.mpi-form .mpi-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mpi-form input[type=text],
.mpi-form input[type=email],
.mpi-form input[type=tel],
.mpi-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.mpi-form input:focus,
.mpi-form select:focus {
    outline: 0;
    border-color: #ffb800;
    box-shadow: 0 0 0 3px rgba(255,184,0,.2);
}

.mpi-lgpd {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #555;
    margin: 12px 0 14px;
    line-height: 1.4;
}
.mpi-lgpd input { margin-top: 2px; }
.mpi-lgpd a { color: #003a70; text-decoration: underline; }

.mpi-submit {
    width: 100%;
    padding: 13px;
    background: #ffb800;
    color: #1a1a1a;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s, transform .05s;
}
.mpi-submit:hover { background: #e6a600; }
.mpi-submit:active { transform: translateY(1px); }
.mpi-submit:disabled { opacity: .6; cursor: not-allowed; }

.mpi-feedback {
    margin-top: 12px;
    font-size: 14px;
    min-height: 1.2em;
}
.mpi-feedback.is-error   { color: #c62828; }
.mpi-feedback.is-success { color: #2e7d32; font-weight: 600; }

/* CEP loading state */
.mpi-form input.mpi-loading {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='none' stroke='%23ffb800' stroke-width='3' stroke-linecap='round' stroke-dasharray='40 20'><animateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/></circle></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 36px;
}

/* Endereço auto-preenchido */
.mpi-endereco {
    overflow: hidden;
}
.mpi-endereco input[readonly] {
    background: #f5f7fa;
    color: #555;
    cursor: default;
}
.mpi-slide-in {
    animation: mpiSlide .35s ease-out;
}
@keyframes mpiSlide {
    from { opacity: 0; transform: translateY(-8px); max-height: 0; }
    to   { opacity: 1; transform: none; max-height: 100px; }
}

/* Tela de sucesso */
.mpi-success {
    text-align: center;
    padding: 30px 20px;
    opacity: 0;
    transform: scale(.92);
    transition: opacity .35s ease-out, transform .35s ease-out;
}
.mpi-success.mpi-success-show {
    opacity: 1;
    transform: none;
}
.mpi-check {
    display: inline-block;
    margin-bottom: 16px;
}
.mpi-check-circle {
    stroke-dasharray: 145;
    stroke-dashoffset: 145;
    animation: mpiDraw .6s ease-out .1s forwards;
}
.mpi-check-mark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: mpiDraw .35s ease-out .55s forwards;
}
@keyframes mpiDraw {
    to { stroke-dashoffset: 0; }
}
.mpi-success-title {
    margin: 0 0 8px;
    color: #2e7d32;
    font-size: 24px;
    font-weight: 700;
}
.mpi-success-msg {
    margin: 0;
    color: #444;
    font-size: 15px;
    line-height: 1.4;
}

/* Mobile */
@media (max-width: 720px) {
    .mpi-grid { grid-template-columns: 1fr; }
    .mpi-banner {
        min-height: 140px;
        border-radius: 12px 12px 0 0;
    }
    .mpi-content { padding: 22px 18px; }
    .mpi-titulo { font-size: 22px; }
    .mpi-form .mpi-row-2 { grid-template-columns: 1fr; }
}
