.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1f56a2;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    animation: heartbeat 1.5s infinite;
    cursor: pointer;
    z-index: 1000;
}

.whatsapp-button:hover {
    text-decoration: none;
    background-color: #1f56a2;
    color: white;
}

@keyframes heartbeat {
    0% {
        box-shadow: 0 0 0 0 #1f56a242;
    }
    80% {
        box-shadow: 0 0 0 10px #1f56a242;
    }
}

.whatsapp-form {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    width: 300px;
}

.whatsapp-form.active {
    display: block;
}

.close-button {
    background-color: #1f56a2;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -20px;
    right: -20px;
    cursor: pointer;
}

.loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    z-index: 1001;
}

.loading .loader {
    display: block;
}

.form-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.loading .form-overlay {
    display: block;
}

.loading .whatsapp-form {
    filter: blur(2px);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
