.floating-contact {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: "Cairo", sans-serif;
}

.floating-contact-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.floating-btn {
    width:40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 40, 48, 0.22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.04);
    color: #fff;
    box-shadow: 0 14px 32px rgba(0, 40, 48, 0.28);
}

.floating-btn-whatsapp {
    background: linear-gradient(145deg, #25d366, #1ebe57);
}

.floating-btn-mail {
    background: linear-gradient(145deg, #34b69e, #005260);
}

.floating-mail-box {
    width: min(360px, calc(100vw - 32px));
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e4efed;
    box-shadow: 0 18px 50px rgba(0, 50, 58, 0.18);
    animation: floatingMailIn .22s ease;
}

.floating-mail-box[hidden] {
    display: none !important;
}

@keyframes floatingMailIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating-mail-header {
    background: linear-gradient(135deg, #005260, #0b7a72);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.floating-mail-header strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.floating-mail-header span {
    display: block;
    font-size: 12px;
    opacity: .88;
}

.floating-mail-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
}

.floating-mail-form {
    padding: 16px 16px 18px;
    display: grid;
    gap: 12px;
}

.floating-mail-form label {
    display: grid;
    gap: 6px;
    color: #0f3f3d;
    font-size: 13px;
    font-weight: 700;
}

.floating-mail-form input,
.floating-mail-form textarea {
    width: 100%;
    border: 1px solid #d7e5e2;
    border-radius: 12px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 14px;
    color: #123;
    background: #f9fcfb;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.floating-mail-form input:focus,
.floating-mail-form textarea:focus {
    border-color: #34b69e;
    box-shadow: 0 0 0 3px rgba(52, 182, 158, .15);
    background: #fff;
}

.floating-mail-form textarea {
    resize: vertical;
    min-height: 96px;
}

.floating-mail-submit {
    border: 0;
    border-radius: 12px;
    background: #34b69e;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 16px;
    cursor: pointer;
    transition: background .2s ease;
}

.floating-mail-submit:hover {
    background: #2a9f8a;
}

.floating-mail-submit:disabled {
    opacity: .7;
    cursor: wait;
}

.floating-mail-status {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.floating-mail-status.is-success {
    background: #e8f8f3;
    color: #0f6b57;
    border: 1px solid #b7e6d8;
}

.floating-mail-status.is-error {
    background: #fdeeee;
    color: #a33b3b;
    border: 1px solid #f0c4c4;
}

@media (max-width: 576px) {
    .floating-contact {
        right: 14px;
        bottom: 14px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .floating-mail-box {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: min(360px, calc(100vw - 28px));
        max-height: min(88vh, 640px);
        overflow-y: auto;
        transform: translate(-50%, -50%);
        animation: floatingMailInCenter .22s ease;
        z-index: 9992;
    }

    @keyframes floatingMailInCenter {
        from {
            opacity: 0;
            transform: translate(-50%, -46%) scale(.98);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }
}
