.whatsapp-iara {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.whatsapp-iara-balloon {
    position: relative;
    margin-right: 12px;
    background: #fff;
    color: #18171c;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    padding: 10px 14px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-iara-balloon:after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    margin-top: -6px;
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.whatsapp-iara:hover .whatsapp-iara-balloon,
.whatsapp-iara:focus-within .whatsapp-iara-balloon,
.whatsapp-iara.is-open .whatsapp-iara-balloon {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-iara-btn {
    width: 62px;
    height: 62px;
    border: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-iara-btn:hover,
.whatsapp-iara-btn:focus {
    transform: scale(1.06);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55);
    outline: none;
}

.whatsapp-iara-btn svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.whatsapp-iara-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.whatsapp-iara-modal.is-visible {
    display: flex;
}

.whatsapp-iara-overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 23, 28, 0.62);
}

.whatsapp-iara-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    padding: 28px 24px 24px;
    z-index: 1;
}

.whatsapp-iara-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #18171c;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.whatsapp-iara-title {
    font-family: Montserrat, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #18171c;
    margin: 0 0 6px;
}

.whatsapp-iara-subtitle {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #5b5b5b;
    margin: 0 0 18px;
}

.whatsapp-iara-dialog .form-control,
.whatsapp-iara-dialog .form-select {
    min-height: 46px;
    border-radius: 8px;
}

.whatsapp-iara-dialog .form-check {
    margin-top: 4px;
}

.whatsapp-iara-dialog .form-check-label {
    font-size: 12px;
    line-height: 1.45;
    color: #5b5b5b;
}

.whatsapp-iara-submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #f28a1f;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.whatsapp-iara-submit:hover,
.whatsapp-iara-submit:focus {
    background: #e07c14;
    color: #fff;
}

.whatsapp-iara-step-thanks {
    display: none;
}

body.whatsapp-iara-locked {
    overflow: hidden;
}

.whatsapp-iara-thanks {
    text-align: center;
}

.whatsapp-iara-photo {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    margin: 8px auto 16px;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.whatsapp-iara-thanks-title {
    font-family: Montserrat, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #18171c;
    margin: 0 0 8px;
}

.whatsapp-iara-thanks-text {
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #5b5b5b;
    margin: 0 0 20px;
}

.whatsapp-iara-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    background: #25d366;
    color: #fff !important;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
}

.whatsapp-iara-cta:hover,
.whatsapp-iara-cta:focus {
    background: #1ebe5a;
    color: #fff !important;
}

.whatsapp-iara-cta svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

body.has-whatsapp-iara #totop {
    bottom: 170px;
}

body.lp-residence-multiform .whatsapp-iara {
    display: flex;
}

@media (hover: none) {
    .whatsapp-iara-balloon {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .whatsapp-iara {
        right: 14px;
        bottom: 18px;
    }

    .whatsapp-iara-btn {
        width: 56px;
        height: 56px;
    }

    body.has-whatsapp-iara #totop {
        bottom: 150px;
    }
}
